Bapi program

hi,
i am sending a bapi program .
this bapi program is not executed only selection screen appears. but when i click on execute button then no data
shows what id plz suggest.
*& Report  ZBAPI_1                                                     *
REPORT  ZBAPI_1  .
*tables: ekko.
DATA: BEGIN OF I_POITEM OCCURS 0.
      INCLUDE STRUCTURE BAPIEKPO.
DATA: END OF I_POITEM.
*data: begin of it_ekko occurs 0,
     ebeln like ekko-ebeln,
     end of it_ekko.
PARAMETERS P_EBELN LIKE EKKO-EBELN default '4500012164'  ..
CALL FUNCTION 'BAPI_PO_GETDETAIL'
  EXPORTING
    PURCHASEORDER                    = P_EBELN
  ITEMS                            = 'X'
  ACCOUNT_ASSIGNMENT               = ' '
  SCHEDULES                        = ' '
  HISTORY                          = ' '
  ITEM_TEXTS                       = ' '
  HEADER_TEXTS                     = ' '
  SERVICES                         = ' '
  CONFIRMATIONS                    = ' '
  SERVICE_TEXTS                    = ' '
  EXTENSIONS                       = ' '
*IMPORTING
  PO_HEADER                        =
  PO_ADDRESS                       =
TABLES
  PO_HEADER_TEXTS                  =
  PO_ITEMS                         = I_POITEM.
  PO_ITEM_ACCOUNT_ASSIGNMENT       =
  PO_ITEM_SCHEDULES                =
  PO_ITEM_CONFIRMATIONS            =
  PO_ITEM_TEXTS                    =
  PO_ITEM_HISTORY                  =
  PO_ITEM_HISTORY_TOTALS           =
  PO_ITEM_LIMITS                   =
  PO_ITEM_CONTRACT_LIMITS          =
  PO_ITEM_SERVICES                 =
  PO_ITEM_SRV_ACCASS_VALUES        =
  RETURN                           =
  PO_SERVICES_TEXTS                =
  EXTENSIONOUT                     =
*select po_number po_item pur_mat changed_on
       short_text co_code
       plant mat_grp ner_price from bapiekpo
       into table i_poitem
       where ebeln in p_ebeln.
*select ebeln from ekko
into table it_ekko
  where ebeln = p_ebeln.
LOOP AT I_POITEM.
write: / 'ebeln    = ' , it_ekko-ebeln.
WRITE: / 'PO NUMBER  = ' , I_POITEM-PO_NUMBER COLOR COL_HEADING,
        / 'ITEM        =' , I_POITEM-PO_ITEM,
        / 'MATERIAL = ' , I_POITEM-PUR_MAT,
        / 'CHANGED ON = ', I_POITEM-CHANGED_ON,
        / 'SHORT TEXT = ' , I_POITEM-SHORT_TEXT,
       / 'COMPANY CODE = ' , I_POITEM-CO_CODE,
       / 'PLANT = ' , I_POITEM-PLANT,
       / 'MATERIAL GROUP = ' , I_POITEM-MAT_GRP,
       / 'QUANTITY = ' , I_POITEM-QUANTITY LEFT-JUSTIFIED,
        / 'UNIT = ' , I_POITEM-UNIT,
       / 'NET PRICE = ' , I_POITEM-NET_PRICE LEFT-JUSTIFIED.
  ULINE.
  ENDLOOP.

Hello.
Try is like this:
*& Report ZBAPI_1 *
REPORT ZBAPI_1 .
*tables: ekko.
DATA: BEGIN OF I_POITEM OCCURS 0.
INCLUDE STRUCTURE BAPIEKPO.
DATA: END OF I_POITEM.
*data: begin of it_ekko occurs 0,
ebeln like ekko-ebeln,
end of it_ekko.
PARAMETERS P_EBELN LIKE EKKO-EBELN default '4500012164' ..
start-of-selection.
CALL FUNCTION 'BAPI_PO_GETDETAIL'
EXPORTING
PURCHASEORDER = P_EBELN
ITEMS = 'X'
ACCOUNT_ASSIGNMENT = ' '
SCHEDULES = ' '
HISTORY = ' '
ITEM_TEXTS = ' '
HEADER_TEXTS = ' '
SERVICES = ' '
CONFIRMATIONS = ' '
SERVICE_TEXTS = ' '
EXTENSIONS = ' '
*IMPORTING
PO_HEADER =
PO_ADDRESS =
TABLES
PO_HEADER_TEXTS =
PO_ITEMS = I_POITEM.
PO_ITEM_ACCOUNT_ASSIGNMENT =
PO_ITEM_SCHEDULES =
PO_ITEM_CONFIRMATIONS =
PO_ITEM_TEXTS =
PO_ITEM_HISTORY =
PO_ITEM_HISTORY_TOTALS =
PO_ITEM_LIMITS =
PO_ITEM_CONTRACT_LIMITS =
PO_ITEM_SERVICES =
PO_ITEM_SRV_ACCASS_VALUES =
RETURN =
PO_SERVICES_TEXTS =
EXTENSIONOUT =
*select po_number po_item pur_mat changed_on
short_text co_code
plant mat_grp ner_price from bapiekpo
into table i_poitem
where ebeln in p_ebeln.
*select ebeln from ekko
into table it_ekko
where ebeln = p_ebeln.
end-of-selection.
LOOP AT I_POITEM.
write: / 'ebeln = ' , it_ekko-ebeln.
WRITE: / 'PO NUMBER = ' , I_POITEM-PO_NUMBER COLOR COL_HEADING,
/ 'ITEM =' , I_POITEM-PO_ITEM,
/ 'MATERIAL = ' , I_POITEM-PUR_MAT,
/ 'CHANGED ON = ', I_POITEM-CHANGED_ON,
/ 'SHORT TEXT = ' , I_POITEM-SHORT_TEXT,
/ 'COMPANY CODE = ' , I_POITEM-CO_CODE,
/ 'PLANT = ' , I_POITEM-PLANT,
/ 'MATERIAL GROUP = ' , I_POITEM-MAT_GRP,
/ 'QUANTITY = ' , I_POITEM-QUANTITY LEFT-JUSTIFIED,
/ 'UNIT = ' , I_POITEM-UNIT,
/ 'NET PRICE = ' , I_POITEM-NET_PRICE LEFT-JUSTIFIED.
ULINE.
ENDLOOP.
Please reward if ot helps,
Regards
George

Similar Messages

  • How to use BAPI Program for change workcenter in co02?

    Hi  Abapers.
           Anybody please tell me how to change the workcenter in CO02 using BAPI Programe.
          Please give me sample of this.
           I will give urs reward of points.
    Thanks
    Regards,
    S.Muthu.

    Hi,
    Use the Function module CR_WORKCENTER_UPDATE
    for workcenter change.
    It is an update function module so you have to call it in update mode with a COMMIT statement to trigger it.
    CALL FUNCTION CR_WORKCENTER_UPDATE IN UPDATE TASK
    exporting...
    imporing..
    COMMIT WORK.
    Note: only after the commit statement the function module will be called in update mode.
    Regards,
    Raj.

  • Need BAPI program to upload PO creation with flatfile having HEADER N  ITEM

    Hi abap experts,
    I Need sample BAPI program to upload PO creation(ME21) with flatfile having HEADER AND   ITEM datas.
    arun

    Hi,
    Look at the below links
    Re: BAPI_PO_CREATE1 and net price
    Re: Using BAPI_PO_CREATE1 : Linking service, and account assignment
    Regards
    Sudheer

  • BDC or BAPI program For IP01

    Hi
    I am trying to create a upload program for Maintenance plan using IP01.
    If you have a BDC or BAPI program for this, please provide me same.
    Regards,
    Veera

    Hi,
    Use Function Module:MAINTENANCE_PLAN_POST

  • BAPI Program -Invoice_update- For not allowing MIRO if Quality not clear

    Hello Gurus,
    Does anybody have program done for BAPI -Invoice Update
    This is for not allowing user to post MIRO-Vendor Incoming Invoice Creation & Posting if any material against that PO or GR is lying in the Quality Inspection.
    Please send if you have the same.
    Thanks
    Rahul

    hi,
       You can use user exit  --EXIT_SAPLMRMP_010 (LMR1M001)    which definitely will solve ur issue.
       revert to me if u have any doubts on it.
    murali.c

  • Any FM/Bapi/program to find BAPIs for tcodes?

    Hi,
    Is there any program or BAPI or FM  to find all the BAPIs that are used in Tcode.
    Thanks
    Ganesh

    There is no such report, and it will be hard (via ABAP) to determine which BAPI should be used for a certain transaction. These BAPI's are normally not used in transactions since these BAPI's are to be called from remote systems. So there is no 'where used'  for this.
    So to determine this will be very very hard. A long shot, not even sure this will work:
    1. Determine BAPI's called from IDoc's.
    2. Determine function module which is called from within BAPI.
    3. Simulate the 'where used' functionality in other programs.
    4. Check if any of these programs have a transaction code attached to it.
    As I said, very hard, if not impossible.
    BTW: Are you looking for BAPI's or BADI's? Big difference.
    Edited by: Micky Oestreich on Mar 6, 2009 6:22 PM

  • BAPI Programing- CODE

    Hi All,
             I am new to ABAP and just now started to make hand on practise in BAPI,  
    I need a code to try out this program
    here goes the program.
    Write a report to print or display the list of customers given the customer numbers and country codes (select options). Formatting and coloring should be professional.
    I-B: Use the standard Bapi instead of direct table access.
    I dont know how to proceed with this. please help in writing the code .
    Thanks in advance
    Thanks & regards.
    Prasannakesavan

    You could start with this....
    report zrich_0002.
    tables: kna1.
    data: iadd type table of bapicustomer_addressdata with header line.
    select-options: s_kunnr for kna1-kunnr.
    start-of-selection.
      call function 'BAPI_CUSTOMER_GETLIST'
    * EXPORTING
    *   MAXROWS           = 0
    *   CPDONLY           =
    * IMPORTING
    *   RETURN            =
        tables
          idrange           = s_kunnr
          addressdata       = iadd
    *   SPECIALDATA       =
      check sy-subrc = 0.
    Welcome to SDN.  Please remember to award points for helpful answers.  Thanks.
    Regards,
    Rich Heilman

  • About BAPI Programming

    Hi
    I want to learn BAPI's for my requirement, so i request you to please send me bapi material where i can learn step by step. Required material for the below points
    1. How to use existing bapis with example prog
    2. How to create a user defined bapi
    3. steps to take while creating a user defined bapi.
    Thanks
    Nag

    HI,
    Please go through these links
    <b>BAPI-step by step</b>
    http://www.sapgenie.com/abap/bapi/example.htm
    <b>list of all bapis</b>
    http://www.planetsap.com/LIST_ALL_BAPIs.htm
    <b>for BAPI's</b>
    http://www.sappoint.com/abap/bapiintro.pdf
    http://www.sappoint.com/abap/bapiprg.pdf
    http://www.sappoint.com/abap/bapiactx.pdf
    http://www.sappoint.com/abap/bapilst.pdf
    http://www.sappoint.com/abap/bapiexer.pdf
    http://service.sap.com/ale
    http://service.sap.com/bapi
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
    http://www.planetsap.com/Bapi_main_page.htm
    http://www.topxml.com/sap/sap_idoc_xml.asp
    http://www.sapdevelopment.co.uk/
    http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf
    http://www.erpgenie.com/abap/bapi/example.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    http://www.sap-img.com/abap/bapi-step-by-step-guidance.htm
    http://www.allsaplinks.com/bapi_example.html
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
    <b>
    For More Info check this thread.</b>
    https://forums.sdn.sap.com/click.jspa?searchID=2721366&messageID=1761503
    <b>Regards,
    Jackie.</b>
    Message was edited by:
            Jackie Chan

  • BAPI or BDC Program For Contracts VA41,42

    Hi all,
    send me BDC or BAPI programs for Contracts VA41.
    I fond some sample coding by searching in SDN but they looks like a single paragraph can't split that.
    Thanks & regards,
    Arun.

    Hi,
    Use BAPI BAPI_CONTRACT_CREATEFROMDATA. For coding, you don't have to search. Just read the FM documentation. Thats enough for coding.
    Try to search for where used list of this BAPI. If you are lucky enough, you can get the sample code as well.
    Thanks,
    Vinod.

  • BAPI or Batch Input Program for FB01

    Hi all!
    I am trying to post invoice through transaction code FB01, i need a standard BAPI program or Batch Input Program for FB01 (except recording).
    thanks.

    Hello,
    In the 'Specify Files' step,
    1. give some short file name (about 20 Characters )
    2. In the File option for 'Converted Data' option check the Logical path / logical file entries. Normally it is LSMW ( Logical Path ) and the same File name for logical file. If you do not have a Logical path 'LSMW' create one in Tx. FILE'.
    3. Please note that you need authority to save the file on application server ( You can see the files on Appl. Server in Tx. AL11 ).
    Let me know how it goes on!
    Regds, Murugesh AS
    Message was edited by: Murugesh Arcot
    Message was edited by: Murugesh Arcot

  • Problem in calling bapi

    hi
    i developed one report and one bapi (to create sale order with ref to contract) every thing working fine.
    now my client asked he want to call bapi program from report because my report output is input to bapi for this i maintained check box for every row in report and in application tool bar i maintained one key , suppose he selected one record and press on that key it should move to bapi up to this working fine .for this my logic is
    SET PF-STATUS 'ZCON'.
    At USER-COMMAND.
    CASE SY-UCOMM.
    WHEN 'BAPI'. "this is key
    CALL TRANSACTION 'ZBC'. "zbc = my bapi tcode
    endcase.
    now i have to pass selected record values to bapi input automatically so what i have to write .
    please share information
    thanks in advance
    Moderator message : Duplicate post locked. Continue with the original thread.
    Edited by: Vinod Kumar on Sep 7, 2011 10:32 AM

    Hello Bhavin,
    you have marked your question an self solved. Would be fine if you post your solution.
    Regards
    Gregor

  • Data load from Legacy system to BW Server through BAPI

    Requirements: We have different kind of legacy systems and SAP BW server. We want to load all legacy system data into SAP BW server using BAPI. Before loading we have to validate all data. If there are bad data, data missing we have to let the legacy system user/ operator knows to fix the data into their system with detail explanation. When it is fixed, we have to load the data again.
    Load Scenario:  We have two options to load data from legacy systems to BW Server.
    1.     We need to load data directly from legacy system to BW Server using BAPI program.
    2.     Legacy Systems data would be in workstations or flash drive as .txt (one line separated by comma) or .csv file. Need to load from .txt /.csv file to BW Server using BAPI program.
    What we want in the BAPI program code?
    It will Read / Retrieve data from text / csv file and will put into the Internal table. Internal table structure would be based on BAPI InfoObject structure.
    Call BAPI InfoObject function module ‘BAPI_IOBJ_CREATE’ to create InfoObject, include all necessary / default components, do the error check, load the data and return the status.
    Could some one help me with the sample code please? I am new in ABAP / BAPI coding.
    Is there any other better idea to load data from legacy system to BW server? BTW we are using BW 3.10. Is there any better option with BI 7.0 to resolve the issue? I appreciate your help.

    my answers:
    1. this is a scendario for a data push into SAP BW. You can only use SOAP-Based Transfer of Data.
    http://help.sap.com/saphelp_nw04/helpdata/en/fd/8012403dbedd5fe10000000a155106/frameset.htm
    (here for BW 3.5, but you'll find similar for 7.0)
    In this scenario you'll have an RFC dinamically created for every Infosource you need to transfer data.
    2. You can make a chain for each data load, so you can call the RFC "RSPC_API_CHAIN_START" to start the chain from external.
    the second solution is more simply and available on every release.
    Regards,
    Sergio

  • Error while creating Contracts using BAPI

    Hello,
    I am trying to use BAPI BUS2014 to create new Purchasing Contracts. Now everything works fine, except for some strange cases where Contracts are failing out with a message as:
    Reference document or master record has different language
    I don't understand it why. Language being set in Contracts is defined for those items in MM and it works for others but not for all. I think I am missing some basic point here. Can anyone please suggest?
    Any help is highly appreciated!
    Cheers
    EssKay

    OK - stupid question. I did figure it out myself. Sorry for my impatience. This is my first BAPI program, so a bit too shaky
    Cheers
    EssKay

  • Reg bapi for creation of purchase order

    hai to all,
    i have to upload purchase orders from  legacy file to R/3 system
    certain order having more than 50 line items
    so please any one send me <b>stardard bapi program or bdc program for me21n</b> transaction which will suitable for my senario.
    please send asap
    regards
    vijay

    hai
    i am trying to create po using bapi
    the following code explains
    constants : c_x value 'X'.
      data: del_date type sy-datum.
      data: pohead  type bapimepoheader.
      data: poheadx type bapimepoheaderx.
      data: exp_head type bapimepoheader.
      data: t_return_out  type table of bapiret2 with header line,
            wa_return_out  TYPE bapiret2.
      data: poitem  type table of bapimepoitem with header line.
      data: poitemx type table of bapimepoitemx with header line.
      data: posched  type table of bapimeposchedule with header line.
      data: poschedx type table of bapimeposchedulx with header line.
      data: ex_po_number type bapimepoheader-po_number.
    Header Level Data
      pohead-comp_code = '1011'.
      pohead-doc_type   = 'NB'     .
      pohead-creat_date = sy-datum   .
      pohead-vendor = 'A1138'.
      pohead-purch_org = 'DOMS'.
      pohead-pur_group = 'MFR'.
      pohead-langu      = sy-langu   .
      pohead-doc_date   = sy-datum.
      poheadx-comp_code  = c_x.
      poheadx-doc_type   = c_x.
      poheadx-creat_date = c_x.
      poheadx-vendor     = c_x.
      poheadx-langu      = c_x.
      poheadx-purch_org  = c_x.
      poheadx-pur_group  = c_x.
      poheadx-doc_date   = c_x.
    Item Level Data
      poitem-po_item  = 1.
      poitem-material = '000000000100001079'.
      poitem-plant    = 'HO01'.
    poitem-stge_loc = ''.
      poitem-quantity = 1.
      append poitem.
      poitemx-po_item    = 1.
      poitemx-po_itemx   = c_x.
      poitemx-material   = c_x.
      poitemx-plant      = c_x .
      poitemx-stge_loc   = c_x .
      poitemx-quantity   = c_x .
      poitemx-tax_code   = c_x .
      poitemx-item_cat   = c_x .
      poitemx-acctasscat = c_x .
      append poitemx.
    Schedule Line Level Data
    posched-po_item        = 1.
    posched-sched_line     = 1.
    posched-del_datcat_ext = 'D'.
    del_date = sy-datum + 1.
    write del_date to posched-delivery_date.
    posched-deliv_time     = '000001'.
    posched-quantity       = 1.
    append posched.
    poschedx-po_item        = 1.
    poschedx-sched_line     = 1.
    poschedx-po_itemx       = c_x.
    poschedx-sched_linex    = c_x.
    poschedx-del_datcat_ext = c_x.
    poschedx-delivery_date  = c_x.
    poschedx-quantity       = c_x.
    append poschedx.
      call function 'BAPI_PO_CREATE1'
           EXPORTING
                poheader         = pohead
                poheaderx        = poheadx
                testrun          = ' '
           IMPORTING
                exppurchaseorder = ex_po_number
                expheader        = exp_head
           TABLES
                return           = t_return_out
                poitem           = poitem
                poitemx          = poitemx.
               poschedule       = posched
               poschedulex      = poschedx.
    call function 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
               wait = 'X'.
    if not ex_po_number is initial.
       call function 'DEQUEUE_ALL'.
    else.
       call function 'DEQUEUE_ALL'.
       message i036.
    endif.
    **endform. " create_po
    IF ex_po_number IS NOT INITIAL.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
          PERFORM show_result.
    ELSE.
          CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
          PERFORM show_result.
        ENDIF.
    *&      Form  show_result
          text
    -->  p1        text
    <--  p2        text
    FORM show_result .
      LOOP AT t_return_out INTO wa_return_out.
        write : ex_po_number.
        WRITE : / wa_return_out-type,
                / wa_return_out-id,
                / wa_return_out-number,
                / wa_return_out-message,
                / wa_return_out-log_no,
                / wa_return_out-log_msg_no,
                / wa_return_out-message_v1,
                / wa_return_out-message_v2,
                / wa_return_out-message_v3,
                / wa_return_out-message_v4,
                / wa_return_out-parameter,
                / wa_return_out-row,
                / wa_return_out-field,
                / wa_return_out-system.
      ENDLOOP.
    <b>iam geting the error such that</b>
    E                                                                            
    BAPI                                                                         
    001                                                                          
    No instance of object type PurchaseOrder has been created. External reference:
    000000                                                                       
    PurchaseOrder                                                                
    POHEADER                                                                     
            1                                                                 
    E                                                                         
    ME                                                                        
    062                                                                       
    Account assignment mandatory for material 100001079 (enter acc. ***. cat.)
    000000                                                                    
    100001079                                                                 
    POITEM                                                                    
    <b>how to correct this error</b>
    regards
    vijay

  • Populating Customized fields in Sales Order Creation using BAPI

    Hi All,
    I have a requirement that, I need to populate 2 customized fields which are appedned in the VBAK tables through Append structure. I am using BAPI_SALESORDER_CREATEFROMDAT2 FM for creating it.
    Could anybody tell me how to send these 2 coustomized field values in this BAPI using EXTERNIN parameter.
    Regards
    Rajesh
    [email protected]

    Hi,
    To add data to custom fields there are two appraoches.
    <b>1)</b>Using the <b>EXTENSIONIN</b> in the Tables option in the FM <b>BAPI_SALESORDER_CREATEFROMDAT2</b>
    Check the Documentation for the same,
    <b>Customer Enhancement for VBAK, VBAP, VBEP</b>
    <i>Description</i>
    You can use this parameter to transfer user-specific enhancments to a BAPI. The customer has to complete the EXTENSION structure and the system automatically continues processing it. If you have not defined any user-specific fields, then you can transfer a blank EXTENSIONIN structure.
    <b>Technical information about Customer Enhancements</b>
    The following description uses an example to explain how to proceed with customer enhancements to the SD tables VBAK, VBKD, VBAP and VBEP.
    The customer has added their own fields to table VBAP using the INCLUDE structure CUTEST. This structure contains 2 fields:
    CFIELD1, CHAR 10
    CFIELD2, CHAR 3.
    The customer also requires that these two fields can be maintained with the BAPI.
    1. Maintain structure CUTEST in table VBAP
    2. Because the BAPIs work with checkboxes, you must also define a CUTESTX checkbox for the customer structure. It should be structured like this:
    Field name       Data element
    CFIELD1            CHAR1
    CFIELD2          CHAR1
    3. Define these customer structures in the structures VBAPKOZ und VBAPKOZX using INCLUDE or APPEND.
    4. Add the customer structures to the BAPE_VBAP and BAPE_VBAPX BAPI structures using the APPEND technique.
    5. Adjust the following structures for customer enhancements to table VBAK:
    a) VBAKKOZ
    b) VBAKKOZX
    c) BAPE_VBAK
    d) BAPE_VBAKX
    6. Adjust the following structures for customer enhancements to table VBEK:
    a) VBEPKOZ
    b) VBEPKOZX
    c) BAPE_VBEP
    d) BAPE_VBEPX
    7. Generally, the data should be added to the BAPI interface in the internal communication structures (VBAKKOM, and so on). There, you can process the data in the SD tables (VBAK, and so on).
    8. If the EXTENSIONIN parameter contains customer data, you must complete at least the key fields in the relevant standard parameters.
    <i>For example:</i>
    You want to change customer field VBAP-CFIELD2 for item 20 to "XYZ" in order 4711.
    The following entries are expected:
    Import:     BAPIVBELN-VBELN       = '0000004711'  Document number
                BAPISDHD1X-UPDATEFLAG = 'U'           UPDKZ for doc header
    Tables:     BAPISDITM-ITM_NUMBER  = '000020'      Item number
                BAPISDITMX-ITM_NUMBER = '000020'      Item number
              + BAPISDITMX-UPDATEFLAG = 'U'           UPDKZ for item
    You must complete the EXTENSION table as follows:
    STRUCTURE                          VALUEPART1       1234561234567890123
    BAPE_VBAP                       0000004711000020                 XYZ
    BAPE_VBAPX                      0000004711000020       X
    <b>Further Information</b>
    You can find more information in the BAPI programming guide in the chapter for enhancements to BAPIs.
    Notes
    You must complete the STRUCTURE field with the name of the relevant enhancement structure (BAPE_VBAK, BAPE_VBAP, BAPE_VBEP). You can complete the remaining fields with the append structures from the enhancement structures.
    At the moment, you can use the BAPI to store enhancements in the following structures:
    VBAK : An enhancement to header data requires an append structure to BAPE_VBAK and an enhancement to structure VBAKKOZ.
    VBAP : An enhancement to item data requires an append structure to BAPE_VBAP and an enhancment to structure VBAPKOZ.
    VBEP : An enhancement to schedule line data requires an append structure to BAPE_VBEP and an enhancement to structure VBEPKOZ.
    VBKD : If you are using an enhancement for header data, you must add an append structure to BAPE_VBAK. You also need to enhance structure VBAKKOZ. If it is for item data, you need to add an append structure to BAPE_VBAP. You must also enhance structure VBAPKOZ.
    If you also want to work with checkboxes, each X-structure must also contain an append structure.
    For example:
    A customer has created an order and wants to include the material long text (50 digits long).
    The EXTENSIONIN structure must be completed with BAPE_VBAP. Two fields have fixed definitions in this structure. These are in the VBAP host key (VBELN, POSNR). The customer sets up an append structure that contains field ZMAT50.
    Because the VBELN is normally blank when you create an order, the data can look like this:
    STRUCTURE   |BAPE_VBAP
    <b>2)</b> Create the Sales Document using the FM and when successfully craeted you will get the Sales Document No in the Export parameter <b>SALESDOCUMENT</b>.
    After its created and Committed using <b>BAPI_TRANSACTION_COMMIT</b> , do a <b>BDC</b> recording for the same to (<b>VA02</b> Change Sales Order) update the fields only and save the document.
    Regards,
    AS

Maybe you are looking for

  • HT4623 iOS 6 update on iphone 5 failed now itunes does not find my phone

    I have been seeing some distubing things about this update and this is of course after i have had the current problem.  long and the short of it using my MAC i was able to update my ipad no issues but when doing my phone it got most of the way throug

  • Unable to log into HP ePrint . Error message "Ajax submit failed: error =403, Forbidden"

    Installed new HP 8600 Plus printer.  Attempting to log into HP ePrint with user name and password I created.  Error message "Ajax submit failed: error =403, Forbidden".  What does the error message mean and why can't I log into the HP ePrint website?

  • SCC4 standard currency change

    Hi experts, We want to upgrade SAP system form 4.7 to 6.0. We set standard currency 'USD' in SCC4 in 4.7 version. But for IFRS issue I need set group currency 'EUR' in FI document after upgrading, So I need to change standard currency by using SCC4.

  • HT4623 i want to update my ipod touch but it says i am up to date when i no its not

    i have a ipod that has not been used for a while but i now want to start and use it but i've tried to up date it but it says it is but it is using ios 3. please help any one ....

  • Container web item

    Hi, Wanted to understand what does a container web item gain us , i am able to have views , charts etc using tab page item and trying to understand what a container gets us. Also i didnt get too much clarity on the container layout item . I got to th