FB60 BAPI

Hi there ,
can anybody please tell me if there exists any std BAPI
for
1) FB60 for posting
2) FV60 for parking
Please help as it is urgent

Hello Shaiil,
Check the below BAPI
BAPI_ACC_GL_POSTING_POST or
BAPI_ACC_DOCUMENT_POST   for the transaction FB60
BAPI_INCOMINGINVOICE_PARK  For transaction FV60.
If i am wrong correct me.
Regards,
Phani.

Similar Messages

  • Problem in FB60 bapi

    Hi friends ,
    i m developing a prog with bapi of FB60 it always fire the error no 014
    i.e.
    FI/CO interface: Line item entered several times
    i am feeding the data which is given below in the BAPI .
    Please help me if anybody has worked on this BAPI
    w_item = w_item + 1 .
    t_headerdata-COMP_CODE = 'BAI' .
    t_headerdata-PSTNG_DATE = sy-datum.
    t_headerdata-BUS_ACT = 'RFBU' .
    t_headerdata-USERNAME = sy-uname .
    t_headerdata-HEADER_TXT = 'ABCsk123' .
    t_headerdata-COMP_CODE = 'BAI' .
    t_headerdata-DOC_DATE = sy-datum .
    t_headerdata-PSTNG_DATE = sy-datum .
    t_headerdata-FISC_YEAR = '2007' .
    t_headerdata-DOC_TYPE = 'KG' .
    t_headerdata-REF_DOC_NO = 'ABCsk123' .
    append t_headerdata .
    t_currency-itemno_acc = w_item .
    t_currency-CURRENCY = 'IDR' .
    t_currency-AMT_DOCCUR = '1000' .
    t_currency-curr_type = '00'.
    append t_currency .
    t_accntgl-ITEMNO_ACC = w_item .
    t_accntgl-GL_ACCOUNT = '0000619999' .
    t_accntgl-COMP_CODE = 'BAI' .
    t_accntgl-BUS_AREA = 'JA01' .
    t_accntgl-PLANT = 'JA01' .
    t_accntgl-doc_type = 'KG' .
    t_accntgl-FISC_YEAR = '2007' .
    t_accntgl-PSTNG_DATE = sy-datum.
    append t_accntgl .
    t_ACCOUNTPAYABLE-ITEMNO_ACC = w_item .
    t_ACCOUNTPAYABLE-VENDOR_NO = '0000108521' .
    append t_ACCOUNTPAYABLE.
    Please help as this is very urgent

    Shouldn't you be incrementing "w_item" before adding in the accounts payable line item... and specifying the t_currency entry for it too?
    Jonathan

  • Maximum Line-Items in FB60

    Hi,
       How many maiximum lin-items I can specify in FB60.
      Awaiting replies.

    Check the links
    BAPI for FB60
    BAPI for Txn FB60
    assign marks if found useful
    Regards,
    Praisty
    Edited by: Praisty on Apr 2, 2009 3:12 PM

  • BAPI for Vendor Invoice and Credit memo - FB60

    Hi
    Iam using BAPI_ACC_DOCUMENT_POST for creating Vendor invoice and Credit memo ..Could you please tell me which fields to be populated on the below structures?
    what will be the value i should use for BAPIACHE09-BUS_ACT...RFBU or RMRP?
    ACCOUNTPAYABLE ( BAPIACAP09)
    ACCOUNTGL(BAPIACGL09)
    CURRENCYAMOUNT( BAPIACCR09)
    Only the fields which needs to be populated on these structures when we do FB60 invoice and credit memo using bapi..
    Thanks in advance
    Govi

    Hi,
    Populate in Document_header : (User name, Comp code, Doc DAte, Doc type, Ref Doc No)
                       Account GL : ItemNo_Acc, GL Accuont, REf Key1, Refkey2, Refkey3, Account Type = 'A', Doc Type, Comp code
                                              Account_number, Cost_center
                       Account Payable: ItemNo_Acc, Vendor_No, Rey_key1, Ref_key2, Ref_key3
                      Currency Amount: Item No_Acc = 2, 1
                                                    Curr = USD, USD
                       Amt_Doccur 
    At last use commit bapi.
    Thanks,
    Krishna

  • Bapi for FB60 - Park an invoice

    Hi gurus,
    Im trying to park an invoice in transaction FB60. i allready tried an batch inout but it's giving me an error, that i can't park an invoice using a batch input in transaction FB60... Don't know why, if someone can explain me why i cant park using an batch input i'll be appreciated..
    Anyway , is it any bapi that i can use to park an invoice to transaction FB60??
    Thanks in advance,
    Best Regards

    I worked with the FV60 transaction and able to park the invoice successfully by batch input method. I am pasting the sample code. Try with the below code::
    Populating the Header Details
      PERFORM bdc_dynpro   USING 'SAPMF05A'  '1100'.
      PERFORM bdc_field  USING 'BDC_OKCODE'  '/ECCDE'.
      PERFORM bdc_field   USING 'INVFO-ACCNT'  pv_vendor.
      MOVE pv_invoice_date TO lw_date.
      WRITE lw_date TO lw_fdate.
      PERFORM bdc_field  USING 'INVFO-BLDAT'  lw_fdate.
      PERFORM bdc_field  USING 'INVFO-XBLNR'  vendor_invoice.
      IF pr_posting_date IS INITIAL.
        MOVE sy-datum TO pr_posting_date.
      ENDIF.                           
      CLEAR: lw_date, lw_fdate.
      MOVE pr_posting_date TO lw_date.
      WRITE lw_date TO lw_fdate.
      PERFORM bdc_field USING 'INVFO-BUDAT'  lw_fdate.
      PERFORM bdc_field USING 'INVFO-SGTXT'   pv_text.
      PERFORM bdc_dynpro  USING 'SAPLACHD'  '1000'.
      PERFORM bdc_field  USING 'BDC_OKCODE'  '=ENTR'.
      PERFORM bdc_field  USING 'BKPF-BUKRS'  pv_bukrs.
    Populating the Item Details
      LOOP AT pr_item_details INTO fs_item_details.
        IF sy-tabix NE 1.
          PERFORM bdc_dynpro USING 'SAPMF05A' '1100'.
          PERFORM bdc_field  USING 'BDC_OKCODE'  '=0005'.
          PERFORM bdc_field  USING 'ACGL_ITEM-MARKSP(01)'  'X'.
        ENDIF.                             " If sy-tabix...
        PERFORM bdc_dynpro   USING 'SAPMF05A'   '1100'.
        PERFORM bdc_field  USING 'BDC_OKCODE'  '/00'.
        PERFORM bdc_field  USING 'ACGL_ITEM-HKONT(01)'
                                              fs_item_details-expense.
        PERFORM bdc_field  USING 'ACGL_ITEM-WRBTR(01)'   lw_amount.
          PERFORM bdc_field  USING 'ACGL_ITEM-MWSKZ(01)'   pv_tax.
        PERFORM bdc_field    USING 'ACGL_ITEM-KOSTL(01)'   pv_costcenter.
        PERFORM bdc_field    USING 'ACGL_ITEM-SGTXT(01)'
                                              fs_item_details-item_text.
        lw_totamount = lw_totamount + lw_amount.
      ENDLOOP.                          
      lw_totamount = lw_totamount + lw_taxamount.
      PERFORM bdc_dynpro USING 'SAPMF05A'  '1100'.
      PERFORM bdc_field  USING 'BDC_OKCODE'  '=PBBP'.
      PERFORM bdc_field  USING 'INVFO-WRBTR'         lw_totamount.
      PERFORM bdc_field USING 'INVFO-WMWST'         lw_taxamount.
      CALL TRANSACTION 'FV60' USING    t_bdc_data
                              MODE     lw_mode
                              UPDATE   c_update
                              MESSAGES INTO t_bdcmsgcoll.
    **ignore the variable used
    Regards,
    Kiran Bobbala

  • BAPI for  FB60 park vendor invoice

    Hi SAP Gurus,
    Please let me know what is the BAPI for Park Vendor invoice in FB60.
    Thanks in advance
    Vinod
    Edited by: Vinod Malagi on Dec 9, 2008 7:21 AM
    Message was edited by: Jürgen L.

    Hi Preethi,
    I ahev checked this BApi this is for With PO and i need for without refernce to PO.
    only Vendor number, GL account numbers, amount, date and other details.
    Please suggest.
    Thanks in advance
    Vinod

  • Need Bapi for posting docuemtn through - FB60

    Hi Friends..
    I need a Bapi for Transaction FB60.I tried with lot of option including BAPI_INCOMINGINVOICE_CREATE.But I didn't get a proper one.
    No Bapi have a Vendor input field.Plz help me to identify the right Bapi for FB60.
    Thanks
    Gowrishankar

    Hi,
      Check the link given: ["Change" BAPI for FB60]
    Regards,
    Naveen M.

  • "Change" BAPI for FB60

    Is there a BAPI for changing/updating documents that were created by FB60?

    BAPI_INCOMINGINVOICE*,  package MRM, object IncomingInvoice,  are linked to transacton MIRO; not FB60 which is "pure" FI and not MM.
    Look for FI BAPI via objects like AcctngInvoiceReceipt, package ACID, with BAPI BAPI_ACC_PYMNTBLK_UPDATE_POST or BAPI_ACC_INVOICE_REV_POST and BAPI_ACC_INVOICE_RECEIPT_POST.
    Regards

  • BAPI's for FB50,FB60,KB31N and KP46

    Hi
    Can any one suggest me BAPI function modules for FB50,FB60,KB31N and KP46
    Transaction codes
    Thanks in advance

    For FB60 we used
    AcctngInvoiceReceipt.BAPI_ACC_INVOICE_RECEIPT_POST
    For FB50 we used
    AcctngDocument.Post
    These can be found under Accounting General, Accounting Interface in the BAPI explorer
    We have not used the others.
    Laurie

  • IDOC/ BAPI for transaction FB60

    Hi Experts,
    Can anybody tell me IDOC/ BAPI for transaction FB60 for document type (KR = Original Invoice).
    Thanks

    Hi Venkata,
    Please refer below code, this works similar to FB60.
    REPORT z_bapi_test.
    *REPORT acc_bapi_test_document .
    SELECTION-SCREEN BEGIN OF BLOCK bl01 .
    PARAMETERS:
    check_l RADIOBUTTON GROUP rb1,
    check_a DEFAULT 'X' RADIOBUTTON GROUP rb1,
    post RADIOBUTTON GROUP rb1.
    SELECTION-SCREEN ULINE.
    PARAMETERS:
    rev_c RADIOBUTTON GROUP rb1,
    rev_p RADIOBUTTON GROUP rb1.
    SELECTION-SCREEN ULINE.
    PARAMETERS:
    ref_key LIKE bapiache01-obj_key DEFAULT 'TEST000001BAPICALL',
    dest LIKE bdi_logsys-logsys DEFAULT ' '.
    SELECTION-SCREEN END OF BLOCK bl01 .
    DATA:
    gd_documentheader LIKE bapiache09,
    gd_customercpd LIKE bapiacpa09,
    gd_fica_hd LIKE bapiaccahd,
    it_accountreceivable LIKE TABLE OF bapiacar09 WITH HEADER LINE,
    it_accountgl LIKE TABLE OF bapiacgl09 WITH HEADER LINE,
    it_accounttax LIKE TABLE OF bapiactx09 WITH HEADER LINE,
    it_criteria LIKE TABLE OF bapiackec9 WITH HEADER LINE,
    it_valuefield LIKE TABLE OF bapiackev9 WITH HEADER LINE,
    it_currencyamount LIKE TABLE OF bapiaccr09 WITH HEADER LINE,
    it_return LIKE TABLE OF bapiret2 WITH HEADER LINE,
    it_receivers LIKE TABLE OF bdi_logsys WITH HEADER LINE,
    it_fica_it LIKE TABLE OF bapiaccait WITH HEADER LINE,
    it_accountpayable LIKE TABLE OF bapiacap09 WITH HEADER LINE,
    it_paymentcard LIKE TABLE OF bapiacpc09 WITH HEADER LINE,
    it_ext LIKE TABLE OF bapiacextc WITH HEADER LINE.
    it_re LIKE TABLE OF bapiacre09 WITH HEADER LINE,
    it_ext2 LIKE TABLE OF bapiparex WITH HEADER LINE.
    PERFORM fill_internal_tables.
    IF check_l = 'X'.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
    DESTINATION dest
    EXPORTING
    documentheader = gd_documentheader
    customercpd = gd_customercpd
    contractheader = gd_fica_hd
    TABLES
    accountgl = it_accountgl
    accountreceivable = it_accountreceivable
    accountpayable = it_accountpayable
    accounttax = it_accounttax
    currencyamount = it_currencyamount
    criteria = it_criteria
    valuefield = it_valuefield
    extension1 = it_ext
    return = it_return
    paymentcard = it_paymentcard
    contractitem = it_fica_it.
    extension2 = it_ext2
    realestate = it_re.
    WRITE: / 'Result of check lines:'. "#EC NOTEXT
    PERFORM show_messages.
    ENDIF.
    IF check_a = 'X'.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
    DESTINATION dest
    EXPORTING
    documentheader = gd_documentheader
    customercpd = gd_customercpd
    contractheader = gd_fica_hd
    TABLES
    accountgl = it_accountgl
    accountreceivable = it_accountreceivable
    accountpayable = it_accountpayable
    accounttax = it_accounttax
    currencyamount = it_currencyamount
    criteria = it_criteria
    valuefield = it_valuefield
    extension1 = it_ext
    return = it_return
    paymentcard = it_paymentcard
    contractitem = it_fica_it.
    extension2 = it_ext2
    realestate = it_re.
    WRITE: / 'Result of check all:'. "#EC NOTEXT
    PERFORM show_messages.
    ENDIF.
    IF post = 'X'.
    DATA: l_type LIKE gd_documentheader-obj_type,
    l_key LIKE gd_documentheader-obj_key,
    l_sys LIKE gd_documentheader-obj_sys.
    IF dest = space OR
    dest = gd_documentheader-obj_sys.
    post synchron
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
    EXPORTING
    documentheader = gd_documentheader
    customercpd = gd_customercpd
    contractheader = gd_fica_hd
    IMPORTING
    obj_type = l_type
    obj_key = l_key
    obj_sys = l_sys
    TABLES
    accountgl = it_accountgl
    accountreceivable = it_accountreceivable
    accountpayable = it_accountpayable
    accounttax = it_accounttax
    currencyamount = it_currencyamount
    criteria = it_criteria
    valuefield = it_valuefield
    extension1 = it_ext
    return = it_return
    paymentcard = it_paymentcard
    contractitem = it_fica_it.
    extension2 = it_ext2
    realestate = it_re.
    WRITE: / 'Result of post:'. "#EC NOTEXT
    PERFORM show_messages.
    ELSE.
    create Idoc
    it_receivers-logsys = dest.
    APPEND it_receivers.
    CALL FUNCTION 'ALE_ACC_DOCUMENT_POST'
    EXPORTING
    documentheader = gd_documentheader
    customercpd = gd_customercpd
    contractheader = gd_fica_hd
    TABLES
    accountgl = it_accountgl
    accountreceivable = it_accountreceivable
    accountpayable = it_accountpayable
    accounttax = it_accounttax
    currencyamount = it_currencyamount
    criteria = it_criteria
    valuefield = it_valuefield
    extension1 = it_ext
    paymentcard = it_paymentcard
    contractitem = it_fica_it
    extension2 = it_ext2
    realestate = it_re
    receivers = it_receivers
    COMMUNICATION_DOCUMENTS* APPLICATION_OBJECTS EXCEPTIONS
    error_creating_idocs = 1
    OTHERS = 2 .
    IF sy-subrc = 0.
    WRITE: / 'IDoc created'. "#EC NOTEXT
    ELSE.
    WRITE: sy-msgid.
    ENDIF.
    ENDIF.
    ENDIF.
    IF rev_p = 'X' OR rev_c = 'X'.
    DATA: rev LIKE bapiacrev,
    rev_key LIKE ref_key.
    rev_key = ref_key.
    rev_key(1) = 'R'.
    rev-obj_type = gd_documentheader-obj_type.
    rev-obj_key = rev_key.
    rev-obj_sys = gd_documentheader-obj_sys.
    rev-obj_key_r = ref_key.
    IF rev_c IS INITIAL.
    IF dest = space OR
    dest = gd_documentheader-obj_sys.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_REV_POST'
    EXPORTING
    reversal = rev
    bus_act = gd_documentheader-bus_act
    TABLES
    return = it_return.
    ELSE.
    it_receivers-logsys = dest.
    APPEND it_receivers.
    CALL FUNCTION 'ALE_ACC_DOCUMENT_REV_POST'
    EXPORTING
    reversal = rev
    busact = gd_documentheader-bus_act
    OBJ_TYPE = 'BUS6035'
    SERIAL_ID = '0'
    TABLES
    receivers = it_receivers
    COMMUNICATION_DOCUMENTS* APPLICATION_OBJECTS EXCEPTIONS
    error_creating_idocs = 1
    OTHERS = 2
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ELSE.
    WRITE: / 'IDoc created'. "#EC NOTEXT
    ENDIF.
    ENDIF.
    ELSE.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_REV_CHECK'
    EXPORTING
    reversal = rev
    bus_act = gd_documentheader-bus_act
    TABLES
    return = it_return.
    ENDIF.
    WRITE: / 'Result of Reversal Posting:'. "#EC NOTEXT
    PERFORM show_messages.
    ENDIF.
    COMMIT WORK.
    Kindly close if it helps you.
    Regards
    Abhii...

  • Anything wrong with Bapi of FB60

    Hi friends ,
    i m developing a prog with bapi of FB60 it always fire the error no 014
    i.e.
    FI/CO interface: Line item entered several times 
    i am feeding the data which is given below in the BAPI .
    Please help me if anybody has worked on this BAPI
    w_item = w_item + 1 .
       t_headerdata-COMP_CODE  = 'BAI' .
       t_headerdata-PSTNG_DATE  = sy-datum.
       t_headerdata-BUS_ACT = 'RFBU' .
       t_headerdata-USERNAME = sy-uname .
       t_headerdata-HEADER_TXT = 'ABCsk123' .
       t_headerdata-COMP_CODE = 'BAI' .
       t_headerdata-DOC_DATE = sy-datum .
       t_headerdata-PSTNG_DATE = sy-datum .
       t_headerdata-FISC_YEAR = '2007' .
       t_headerdata-DOC_TYPE = 'KG' .
       t_headerdata-REF_DOC_NO = 'ABCsk123' .
      append t_headerdata .
    t_currency-itemno_acc = w_item  .
    t_currency-CURRENCY = 'IDR' .
    t_currency-AMT_DOCCUR = '1000' .
    t_currency-curr_type = '00'.
    append t_currency .
    t_accntgl-ITEMNO_ACC = w_item .
    t_accntgl-GL_ACCOUNT = '0000619999' .
    t_accntgl-COMP_CODE = 'BAI' .
    t_accntgl-BUS_AREA = 'JA01' .
    t_accntgl-PLANT = 'JA01'  .
    t_accntgl-doc_type     = 'KG' .
    t_accntgl-FISC_YEAR = '2007' .
    t_accntgl-PSTNG_DATE  = sy-datum.
    append t_accntgl .
    t_ACCOUNTPAYABLE-ITEMNO_ACC = w_item .
    t_ACCOUNTPAYABLE-VENDOR_NO = '0000108521' .
    append t_ACCOUNTPAYABLE.

    I don't know if this will help or not:
    w_item = w_item + 1 .
    t_headerdata-comp_code = 'BAI' .
    t_headerdata-pstng_date = sy-datum.
    t_headerdata-bus_act = 'RFBU' .
    t_headerdata-username = sy-uname .
    t_headerdata-header_txt = 'ABCsk123' .
    t_headerdata-comp_code = 'BAI' .
    t_headerdata-doc_date = sy-datum .
    t_headerdata-pstng_date = sy-datum .
    t_headerdata-fisc_year = '2007' .
    t_headerdata-doc_type = 'KG' .
    t_headerdata-ref_doc_no = 'ABCsk123' .
    APPEND t_headerdata .
    t_currency-itemno_acc = w_item .
    t_currency-currency = 'IDR' .
    t_currency-amt_doccur = '1000' .
    t_currency-curr_type = '00'.
    APPEND t_currency .
    t_accntgl-itemno_acc = w_item .
    t_accntgl-gl_account = '0000619999' .
    t_accntgl-comp_code = 'BAI' .
    t_accntgl-bus_area = 'JA01' .
    t_accntgl-plant = 'JA01' .
    t_accntgl-doc_type = 'KG' .
    t_accntgl-fisc_year = '2007' .
    t_accntgl-pstng_date = sy-datum.
    APPEND t_accntgl .
    w_item = w_item + 1 .           "<============
    t_accountpayable-itemno_acc = w_item .
    t_accountpayable-vendor_no = '0000108521' .
    APPEND t_accountpayable
    Rob

  • Need Bapi or IDOC to insert data into FB60 T-Code

    Hi Experts,
    I need Bapi or standard IDOC to insert data in to FB60 T-Code.
    Thanks in advace
    Krishna

    Hi,
    Thanks for the reply i cant find this fileds.
    INVFO-ACCNT
    LFA1-NAME1
    INVFO-XBLNR
    INVFO-XREF1
    INVFO-XREF2
    INVFO-BLDAT
    INVFO-DMBTR
    ACGL_ITEM-HKONT
    ACGL_ITEM-AUFNR
    ACGL_ITEM-KOSTL
    Thanks,
    Krisna

  • Reg : BAPI For FB60

    Hi All,
    Can Any one Tell me which bapi should i use for fb60 transaction i have tried BAPI_INCOMINGINVOICE_PARK but it is asking PO as mandatory field but i don't have po for this scenario.
    i have tried BAPI_ACC_DOCUMENT_POST but its not having a export parameter to give the invoice number.
    So can anyone suggest me which bapi i have to go without referring the po.
    Regards,
    Karthik.

    Hi Sudharshan,
    Thanks For your quick response could you provide any sample program for this type of scenario so that it is easy to understand .I have tried BAPI_ACC_DOCUMENT_POST but in the ACCOUNTTAX  tables its asking me to fill the posting date but its not there ,so can you provide any sample program.

  • BAPI functions for FB60 and F-02

    Hi,
        Can any one please tell me the BAPI functions for FB60 and F-02 tcodes.
        I had searched in forum,but din't solved my purpose.
    Thanks.
    Sri
    Moderator message - Search harder. Maybe Google will help - post locked
    Edited by: Rob Burbank on May 8, 2010 6:25 PM

    This has been solved for FB50. The original variant for FB50 had never beer created in our QAS system! So I was able to get the screen variant menu selections to reappear by running SHD0, editing, and then saving the transaction variant 'STANDARD 1' (not sure if that is SAP's name for the default variant).
    Hope others find this information useful.
    J. Haynes
    Denver, CO

  • BAPI FUNCTIONAL MODULES FOR T codes FB50,FB60,KB31n,KP46

    Hi friends
    Can u suggest me BAPI function modules for T codes FB50,FB60,KB31n,KP46
    Thanks in advance

    Use BAPI_INCOMINGINVOICE_PARK
    Import parameters HEADERDATA is mandatory in BAPI_INCOMINGINVOICE_PARK .
    Also tables ITEMDATA and RETURN are mandatory.
    Check the following sample code
    LOOP AT i_ekbe INTO wa_ekbe.
    CLEAR: wa_invoice_header,
    i_invoice_item,
    i_return,
    v_inv_doc_no,
    v_fisc_year,
    wa_return.
    REFRESH: i_invoice_item,
    i_return.
    Appending Invoice header Work Area
    wa_invoice_header-invoice_ind = c_x.
    wa_invoice_header-doc_date = sy-datum.
    wa_invoice_header-pstng_date = wa_ekbe-budat.
    wa_invoice_header-comp_code = c_100.
    wa_invoice_header-gross_amount =
    wa_invoice_header-currency = c_usd.
    wa_invoice_header-calc_tax_ind = c_x.
    Appending Invoice item data
    i_invoice_item-invoice_doc_item = '0001'.
    i_invoice_item-po_number = wa_ekbe-ebeln.
    i_invoice_item-po_item = wa_ekbe-ebelp.
    i_invoice_item-tax_code = ' '.
    i_invoice_item-item_amount = '20.00'.
    i_invoice_item-quantity = '10.000'.
    i_invoice_item-ref_doc = '5600000634'.
    i_invoice_item-ref_doc_year = '2006'.
    i_invoice_item-ref_doc_it = '10'.
    i_invoice_item-po_unit = 'EA'.
    i_invoice_item-COND_TYPE = 'VPRS'.
    APPEND i_invoice_item.
    Calling module BAPI_INCOMINGINVOICE_PARK
    CALL FUNCTION 'BAPI_INCOMINGINVOICE_PARK'
    EXPORTING
    headerdata = wa_invoice_header
    ADDRESSDATA =
    IMPORTING
    invoicedocnumber = v_inv_doc_no
    fiscalyear = v_fisc_year
    TABLES
    itemdata = i_invoice_item
    NFMETALLITMS =
    ACCOUNTINGDATA =
    GLACCOUNTDATA = i_gla
    MATERIALDATA = i_mat
    TAXDATA =
    WITHTAXDATA =
    VENDORITEMSPLITDATA =
    return = i_return.
    READ TABLE i_return INTO wa_return
    WITH KEY type = c_e.
    IF sy-subrc EQ 0.
    ENDIF.
    ENDLOOP.
    Reward if useful.

Maybe you are looking for