Bapi BAPI_REQUISITION_CREATE : how to populate data for sevices tab

Hi all,
I am creating a purchase requisition through bapi .I am using  bapi BAPI_REQUISITION_CREATE
For creating purchase requisition. The bapi is  creating PR.
I need to add item level services details also through bapi.i am Using structure BAPIESLLC to populate data. But the data is not getting populated in the services tab.
For header data i am populating the following data.
itab_bapiebanc-preq_item      =    '10'.
  itab_bapiebanc-doc_type       =    'NB'.
  itab_bapiebanc-short_text     =    'Blinding'.
  itab_bapiebanc-quantity        =    '1'.
  itab_bapiebanc-unit              =    'AU'.
  itab_bapiebanc-deliv_date      =    '20081027'.
  itab_bapiebanc-plant             =    '1000'.
  itab_bapiebanc-pur_group      =    '001'.
  itab_bapiebanc-preq_name    =    'tracking no'.
  itab_bapiebanc-trackingno     =    '2/C/1B'.
  itab_bapiebanc-mat_grp        =    '007'.
  itab_bapiebanc-acctasscat    =    'P'.
itab_bapiebanc-ITEM_CAT      =    '9'.
itab_bapiebanc-GR_IND          =    'X'.
itab_bapiebanc-IR_IND            =    'X'.
itab_bapiebanc-FIXED_VEND    =    ' '.
APPEND itab_bapiebanc.
itab_bapiebkn-wbs_elem        =    'E-2004'.
itab_bapiebkn-g_l_acct  =  '0000417000'.
APPEND itab_bapiebkn.
itab_bapiebantx-PREQ_ITEM = '10'.
APPEND itab_bapiebantx.
when i am adding the above data the p,r is creating sucessfully in the system.
I need to add data in the item level services tab also.
I am populating for services tab .
*----- this part is not working
itab_bapiservices-SERVICE  = '100217'.
itab_bapiservices-PCKG_NO  = '0000000001'.
itab_bapiservices-LINE_NO  = '0000000001'.
itab_bapiservices-EXT_LINE = '0000000010'.
itab_bapiservices-short_text = 'BREAKFAST CNTR TOP; AS PER SPECS'.
itab_bapiservices-QUANTITY  = '680'.
itab_bapiservices-BASE_UOM  = 'M2'.
itab_bapiservices-GR_PRICE  = '23.00'.
itab_bapiservices-MATL_GROUP = '007'.
itab_bapiservices-PRICE_UNIT = '1'.
append itab_bapiservices.
I am populating data for service tab like given above.But the value is not get updaing in purchase requisation.
Please let me know how to populate the data for service tab.
with regards,
ambrose
itab_bapiebantx-text_line      =    'Test for Purchase requisiton'.
APPEND itab_bapiebantx.

Hello
Try this:
    CALL FUNCTION 'NUMBER_GET_NEXT'
         EXPORTING
           nr_range_nr                   = '01'
           object                        = 'SERVICE'
         IMPORTING
           NUMBER                        = pacno
         EXCEPTIONS
           INTERVAL_NOT_FOUND            = 1
           OTHERS                        = 8.
itab_bapiservices-PCKG_NO = pacno + 1.
Also Note 499626 - FAQ: BAPIs in the service

Similar Messages

  • How to populate data for 2LIS_40_REVAL, 2LIS_43_POSCAS and 2LIS_44_POSREC

    Hi
    How to populate data for 2LIS_40_REVAL, 2LIS_43_POSCAS and 2LIS_44_POSREC datasources at RSA3?
    I'm very new to retail BI.
    I think there is no setup tables for Retail infosources.
    Any IDoc or BAPI activation is required or other procedure?
    We are in BI-700 SAPKW70015 support pack R/3 side
    and SAP_BW 700 Support pack SAPKW70016 &
    BI_CONT 703 Support pack SAPKIBIIP9 BI side
    Can anyone guide me how to load data?
    Points assured
    Thanks in advance
    Ramana P

    Dear Ramana,
    There is no setup table for POSCAS and POSREC.This has to be popuated with a BADI Implementation. 
    As of PlugIns 2002_1_470 and 2002_2_470, POS data is update into BW the 2LIS_44_POSREC and 2LIS_43_POSCAS extractors using a BADI. To be able to update data into BW, the relevant implementation for the BADI must be activated in each case. You can activate the implementation in transaction SE19. The implementations are as follows:
    POS_EX_REC_PI2003_1 for extractor 2LIS_44_POSREC
    POS_EX_CAS_PI2003_1 for extractor 2LIS_44_POSCAS
    Once the activation of BADI , create the back ground jobs for the 44 application and the data is pushed into Delta queue and it can be loaded into BI .
    Hope this helps you.
    Thanks,
    Krishna Charan

  • How to populate data for a field in data source

    Hi
      I have a field(VGBEL) in the data source 2LIS_11_VAITM, but i do not have data in it. I will have to populate data into it for that, I guess i need to write some  ABAP code .My question is where should i write the code.
    P.S If I have to write in the functional module or user exit how do i know the relavent functional module or user exit for the particular data source
    Thanks
    Sheetal

    HI sheetal,
    there will not be different user exit for each datsource. check this thread for the steps, which are general for any datsource.
    How to enhance datasources
    How to Data source enhancement i.e Transactional data
    you need to write your code in function module EXIT_SAPLRSAP_001 .
    hope it helps
    Regards
    Kiran
    *do assign points for helpfull answers.
    Message was edited by:
            ravi kiran naalla

  • How to populate data for SharePoint Team Foundation Server web part burndown, bug progress chart

    Hi,
    We are configuring the Team Foundation Server web part to show dashboards associated with burndown, user stories, etc. I added some active but when I click on the Bug Progress link, the chart does not display any data. I click on the Burndown link to
    add some issues data. When I click on the Task burndown or the  user story progress, I get the following message
    "The error occured during an attempt to establish a connection to the external data source. The following connections failed to refresh:
    TfsOlaReport"
    I would like the see the data correctly populated in the chart. Any help is greatly appreciated.

    Hi Comicrage86, 
    Thanks for your post.
    What’s the version of your TFS and SharePoint?
    Do you mean the burndown report and bug progress chart in team project site? If yes, your current team project created using which process template?
    As far as I know team project Release Burndown report shows in team project site by default. How did you add the active to show Bug Progress chart and did you custom your Burndown in team project site? Please share the detailed steps here. And you can share
    your screenshots here, it will help us provide the better response.
    If reports cannot show correctly in your team project site, please check the default reports in your team project>>Reports, ensure that default team project reports working fine in your Reporting Service site first. Then follow the
    steps in this
    article to troubleshooting the SharePoint Dashboards data source issue.
    Or refer to the solution in this post:
    https://social.msdn.microsoft.com/Forums/en-US/af054ca3-110b-4414-85d8-f36ea2416b0c/new-sharepoint-portal-excel-refresh-issues?forum=tfssetup.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Populate data for Invoice tab in UDM_SUPERVISOR transaction code.

    Hi All,
    I need to add new fields to invoice tab of tcode UDM_SUPERVISOR .
    For this i am appending new fileds to structure FDM_COLL_INVOICE.
    I need to calculate the new added fields and display it .
    The suggested solution was using BADI FDM_COLL_SEND_ITEMS, but this BADI can only update table UDM_COLL_ITEM and not passing any data to the structure FDM_COLL_INVOICE.
    can anyone help me me how to achieve this. Any BADI or exit available ?
    Is that the structure would get the values automatically in the suggested BADI ?

    My Query has been resolved using below option :-
    I have used an implicit enhancement at the end of the FM FDM_COLL_INVOICES_READ  to populate the additional fields added to structure FDM_COLL_INVOICE .

  • How to populate data in TargetCube from SourceCube for a particular product/currency dimension selected in form1.

    Hi,
    Need help regarding Business rule scenario "How to populate data in "Target Form (plantype2)" from "Source Form(plantype1)" for a particular product/currency dimension combination selected in form1"
    Scenario 1) :  I have data for Product(Computer)/Currency(USD) dimension combination in Source Form
                        When i open Target Form and then select a Product(Computer)/Currency(USD) combination and then right click on form to invoke a Business rule to get data for this same                     product/currency combination from Source Form.
    Scenario 2) : If there isnt any data in Source Form for product(Computer)/Currency(USD) combination, then the data for product(computer)/Currency(Default Currency) to be populated into Target                     Form.
    The members in Currency Dimension (Shared Dimension) are USD & Default Currency.
    Can anyone please help.
    Thanks,
    Rajkumar

    Adding to what Celvin Kattookaran has said
    You can either write a Business Rule / Calculation script with @XREF function and also you can check condition if there is data in USD then populate USD else "Default currency"
    If you want that data in source to be available in target, then you can use @XWRITE in a rule from source cube to push the data to Target.
    Amarnath
    ORACLE | Essbase

  • How to populate data in PAY_PEOPLE_GROUPS table (People Group Flexfiled)

    Hello
    We are migrating the data from one oracle instance to another oracle instance which are in same version of Oralce Applications 11.5.10.2. As a part of migration can anybody let me know how to populate data in "People Group Key Flexfiled" (PAY_PEOPLE_GROUPS table), ideally I will create or update employee records from the source instance to destination instance, so while creating or updating the employee records in can pass people_group_id while calling to the assignment api but my question here is before passing group id to the api i should have the data populated in PAY_PEOPLE_GROUPS TABLE so that i can fetch the group id as per the combination and pass it in to the api.. please suggest...

    Thanks for your information! by any chance do you have any sample code which will create/update assignments with People Group Flexfield; when i check "hr_assignment_api.update_emp_asg_criteria" it only has parameter to pass people group id and not having segments parameters to pass individual segments.
    Also let me know the links if you have any for all HR API guide which will help me to develope the interfaces...
    My requirement is we have two instances in which in one instance we are treating as source for HR which will be used to master for all HR related activities and we are planning to develope an interface which will bring master instance in sync with dummy instance.

  • How to populate data in a JTable?????????

    hi there
    can anyone tell me how to populate data in a JTable? when a table is displayed, the table should have data retrieved from a file. thank you.

    Hi,
    it is correct, that the best way to learn about JTable is to read the online tutorial about JTable. To give you a quick guideline, where to start your implementation, I will add this:
    A JTables data is hold in a TableModel. TableModel is an interface, so if a class implements this interface correctly, you can simply populate the data hold by this TableModel by constructing a JTable this way
    JTable jt = new JTable(MyTableModel);
    where MyTableModel is your class, which implements the TableModel interface.
    When JTable has to render a cell, it will call the getValueAt(...) method of the TableModel for example.Your implementation of this method must deliver the requested data - if you prefetch a bunch of data from a file and store it internally in this TableModel or fetch it from the file just in time, is up to you.
    greetings Marsian

  • How to populate values for a new field in target infoprovider

    Hi Experts,
    am new to BI. i would like to know on how to populate values for a new field in the target cube with start rotuine.In my case,  i have a source infoprovider, which has 3 fields and a target infoprovider, which has 5 fields. i need to populate the new 2 fields in start routine. i dont want to populate using Field routine and am using 3.5 version. please assist with code on how to solve this issue.
    Thank you,
    Chitra.
    Edited by: Chitra_BI on Jun 13, 2011 10:23 AM

    Debug the standard code and see where the other fields are getting update. you can use the similar approach and area to code for the new field.
    Regards,
    Lalit Mohan Gupta.

  • How to use CrossReference and DVM in ODI &how to populate data into Xref

    Can any one tell how to use Domain Value Maps and Cross Referencing in ODI?
    DVM or Domain Value Map are created and used in ESB console of SOA suite.
    My actual requirement is as follows:
    The below steps describe loading data from ERP Application 1 to ERP Application 2.
    1. The Source Application ERP APP1, populates the interface table using their native technology.
    2. A job scheduler invokes the Source side ODI Package.
    3. ODI then extracts the data from Source Interface table and populates the Target Interface table.
    4. After populating the Target interface table the ODI populates the X-ref table with App 1 ID and generated common ID.
    5. The ODI either deletes or updates the rows that were processed from the Source interface table.
    6. On the Target Application ERP APP2, the native application extracts data from target interface table and populates target database there by generating ERP Application 2 ID.
    7. A job scheduler on the Target application invokes the ODI package to populate the Application 2 ID onto the Xref table matching on the Common ID.
    I just want to know :
    1. How to populate data into the Xref table from Source datastore
    2. And if data is successfully laoded from target datastore to actual base table of target then how to populate the target id into the cross reference table.

    can anyone suggest me some answer, then it would be of great help?

  • How to populate data from table into datagrid in form

    hi there. may i know how to populate data from a table into a datagrid? i have created a datagrid in a form using OLE's microsoft datagrid. i'm having problem to populate data from table into the grid. can i know how to do that? thanks

    Not exactly. I want to enter input from form and the user can have all options to choose i.e. HIGH, MEDIUM or so on.
    Suppose, you have option to select HIGH, MEDIUM or LOW and you can see all these options together. You select LOW and when you save, it is saves in the table as a value. So when you view the table again, it will show LOW as active and HIGH and MEDIUM are null.

  • How to populate data dynamically in WSelect web element.

    How to populate data dynamically in WSelect web element. what is the syntax of WSelect web element to populate data from the database

    Hi Jamie,
    There is no Url to download ackage, instead the link is taking here
    Crystal Reports webElements
    Can you give me correct link?

  • Bapi or FM to read data for inspection lot

    Hi Experts
    I need bapi or FM that will read all specifications and result value for entered inspection lot
    the data that we also got in transaction qa13
    I need exactly that data
    Thanks
    Taran

    hI,
    Check the below bapi's
    GetDetail : Load detail data for inspection lot [ BAPI_INSPLOT_GETDETAIL ]
    GetList : Select inspection lots [ BAPI_INSPLOT_GETLIST ]
    GetOperations : Select inspection operations for inspection lots [ BAPI_INSPLOT_GETOPERATIONS ]
    SetUsageDecision : Make automatic usage decision [ BAPI_INSPLOT_SETUSAGEDECISION ]
    StatInterface : QM-STI Interface [ BAPI_INSPLOT_STATINTERFACE ]
    Reward if helpful.
    Regards,
    nagaraj

  • HT4623 how to recover data for contacts on iPad mini

    how to recover data for contacts on ipad mini?

    You don't give much info to go on. Do you sync your contacts?

  • IDOC: How to fill data for sub segments ?

    Hi,
    I have 3 segments, segA , segB , segA1 . segA1's parent segment is segA . segA and segB are at the same level .
    How to fill data for segA1  ? can you give some sample code ?
    Thanks a lot !

    hi,
    You can fill the segment in the sequence in the idoc either parent or child.
    In you case first fill parent segment SEGA next SEGA1. Then you can fill the SEGB.(If segB is deifned as next segment of segA in the idoc structre)
    Thanks and regards,
    shyla kumar

Maybe you are looking for

  • How do I move a document from my MacBook Pro to my iPad?

    How do I move a document from my MacBook Pro to my iPad?

  • RowBanding with BC4J doesn't work

    I want to use rowBanding in a table with a viewObject as its source. It doesn't work. Could anybody help me? TIA Francisco Bosch

  • Query Reiqnred

    Hi All I have a data in the below format. PROJ_ID PRNT_V 27575 2-5 27576 2-5,8,13 27577 2-10,19,27-30 The above table data i want to convert from row to column as Proj ID Prnt_v 27575 2 27575 3 27575 4 27575 5 27576 2 27576 3 27576 4 27576 5 27576 8

  • Why do I see weird characters when I run javac?

    Here is what I received at my window cmd when I do, javac C:\java>javac MortgageWindow.java ╫?╥Γ?║ MortgageWindow.java ╩╣╙├╗≥╕▓╕╟┴╦╥╤╣?╩▒╡─ API?? ╫?╥Γ?║ ╥?┴╦╜Γ╧Ω╧╕╨┼╧???╟δ╩╣╙├ -Xlint:deprecation ╓╪╨┬▒α╥δ?? It apparently compiled successfully though.

  • Css Background Gradient

    i have a css background gradient... but when i scroll, the gradient stick in the loading height. what can i do to have the gradient correct always? html {     height:100%; body {     height:100%;     font: 100%/1.4 Verdana, Arial, Helvetica, sans-ser