Problem in FB50,FB60 transactions

Recently due to some change which we are not able to track in transactions FB50,FB60 the line item column data is altered
Ideally it starts with  Compcode,D/C indicator ,G/L acct etc
But it now starts with the 5 customer specific fields added as part of OSS note( 174413) at the start.
earlier to it after implementing this note these 5 fields were shown at the end
the fields are: ACGL_ITEM_GEN-GEN_CHAR1
                      ACGL_ITEM_GEN-GEN_CHAR2
                     ACGL_ITEM_GEN-GEN_CHAR2
                    ACGL_ITEM_GEN-GEN_CHAR2
                   ACGL_ITEM_GEN-GEN_CHAR2
the fields now appear at start rather then at end.
how do i change the order to make it display at end.
Am not sure if implementaiton of some other OSS note led to the field positon getting shifted to be first
This is affecting many transactions FB50,FB60
Solution to this is rewared

Hi,
have you tried changing the order of the fields by means of transaction
SHD0 (Transaction and screen variants)?
Best regards.

Similar Messages

  • Userexit for FB50/Fb60 transaction

    Hi Gurus,
    Can someone give me a Userexit or BADI that will trigger before posting an invoice thru FB50 or Fb60 transactions?
    Thanks,
    -Anthony.

    FB50 all avaliable user exits:
    F050S001
    F050S002
    F050S003
    F050S004
    F050S005
    F050S006
    F050S007
    F180A001
    FARC0002
    FEDI0001
    RFAVIS01
    RFEPOS00
    RFKORIEX
    SAPLF051
    Transaction Code - FB60                     Enter Incoming Invoices
    F050S001            FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002            FIDCC1: Change IDoc/do not send
    F050S003            FIDCC2: Change IDoc/do not send
    F050S004            FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S005            FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006            FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007            FIDCCH Outbound: Influence on IDoc for Document Change
    F180A001            Balance Sheet Adjustment
    FARC0002            Additional Checks for Archiving MM Vendor Master Data
    FEDI0001            Function Exits for EDI in FI
    RFAVIS01            Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00            Line item display: Checking of selection conditions
    RFKORIEX            Automatic correspondence
    SAPLF051            Workflow for FI (pre-capture, release for payment)

  • Userexit or BADI for FB50/Fb60 transactions

    Hi Gurus,
    Can someone give me a Userexit or BADI that will trigger before posting an invoice thru FB50 or Fb60 transactions?
    Thanks,
    -Anthony.

    These ara exits i found for ut Tcode FB50.
    F050S001 FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002 FIDCC1: Change IDoc/do not send
    F050S003 FIDCC2: Change IDoc/do not send
    F050S004 FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S005 FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006 FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007 FIDCCH Outbound: Influence on IDoc for Document Change
    F180A001 Balance Sheet Adjustment
    FARC0002 Additional Checks for Archiving MM Vendor Master Data
    RFAVIS01 Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00 Line item display: Checking of selection conditions
    RFKORIEX Automatic correspondence
    SAPLF051 Workflow for FI (pre-capture, release for payment).
    i cant keep the break-point in these exits ,
    u keep the break-point in all FM's and run the tcode it will trigger ,then u can find the where it is triggering ,then delete all the grk-points.
    Reward Points if useful.

  • Table control in Enjoy transactions like FB50/FB60/FB70

    Hi,
    I am using enjoy transactions like FB50/FB60/FB70 which provide me the facility to enter more than one GL Accounts in a very easy manner.
    The screen looks like a table where we can enter the data very easily.
    Now we can hide and display fields in enjoy transactions using the Table Settings button.
    This button is provided at the right most corner of the section where GL accounts can be entered.
    If the curson of the mouse is placed at this button the decription "Configuration" will appear.
    Now when I click on this button and click on Administrator button, I will get the fields which can be made invisible for this transaction.
    This is a user specific setting.
    Now I can see that at the end of the screen explained above, there are certain fields that are not assigned.
    Example, in FB70, the "Fld name" ACGL_ITEM-UZAWE is assigned to Pmt meth.supl. but ACGL_ITEM_GEN-GEN_CHAR1 is not assigned to anything.
    I want to use this field ACGL_ITEM_GEN-GEN_CHAR1 for Reference Key 1.
    Can anyone please guid me how to use this functionality of SAP?
    Thanks in anticipation,
    Nitish

    Hi
    I think the table in which it is updating the data has some constraint ....check the constraints

  • Screen Layout with MIRO, FB50, FB60, FB65, FB70, FB75 ETC.

    Hi,
    Can anybody let me know how the screen layout of TCode= MIRO, FB50, FB60, FB70, FB65, FB75 etc. is changed?
    I want to add the column "COMMITMENT ITEM" during posting with the above Transaction Code.
    Please help.
    Regards
    Rahkes

    Hi Amanullah,
    Thanks for your response.
    For Commitment Item - I have created one DUMMY Commitment Item with Financial Transaction = 50 (Clearing). (TCode-FMCIA)
    I like to assign this DUMMY Commitment Item where I don't require the Fund Management Activities like Budget. I am doing this b'cos commitment item is mandagory in Fund Management.
    I have assigned Commitment Item = DUMMY to all remaining GL Account in FS00.
    When I am posting transaction with FB01 then it has no problem b'cos the field Commitment Item is visible and optional and "DUMMY" is automatically assign to the commitment item. But in case of FB50, FB60, FB70, MIRO etc where the Commitment Item field is not visible I am getting the error "No Commitment Item entered".
    To avoid this error, to me there are two options
    1. I can assign the "DUMMY" commitment item to each GL Account under FMDERIVE
    2. To assign to "DUMMY" commitment item to each GL Account in FS00 and make the commitment item visible and optional in all T-Code like FB50, FB60, FB70, MIRO etc. But in this case I am not able to make the commitment item visible and optional during posting of the transactions.
    Could you please help with your expereise?
    Which option is more logical in this case?
    Regards
    Rahkes

  • Cost Center Description in FB50,FB60,FBV0 ,FV50,FV65,FV70,FB70,FV75,FB75

    Hi FI Experts,
    Could you please  suggest  me if there is any  way we can add Cost center ,WBS and Internal order description fields in  transactions  FB50,FB60,FBV0,FV50,FV65,FV70,FB70,FV75,FB75.
    Programatically yes it is possible , we can copy the standard programs and may add new columns ,but which will be a Lengthy work .
    Thanks in advance .
    Regards,
    Kishore.S

    Hi
    Refer to SAP Note 174413. This should be of help to you in form of a very minor enhancement
    To include customer-specific fields, proceed as follows.
    1. Include structure CI_COBL, which contains the customer fields, as an Include in structure ACGL_ITEM.
    Attention: If you have maintained foreign key dependencies for your customer fields, then copy structure CI_COBL into structure CI_ACGL and include it in structure ACGL_ITEM instead of structure CI_COBL. Adjust the foreign key checks in structure CI_ACGL so that you ony use fields of structure ACGL_ITEM as foreign key fields.
    2. Place the customer fields on screen SAPLFSKB 0100 (Transaction SE51).
    3. Enter '001' in Mod. group 4 for the added customer fields in the element list of the screen, and in Mod. group 1 fill the value from TCOBF-GROUP1 of the respective field.
    4. Transfer the fields to the flow logic of this screen. For every field, insert a FIELD statement between each of the two CHAIN/ENDCHAIN statements.
    5. In routine MOVE_ACGL_ITEM in Include LFSKBF01, insert a statement such as ACGL_ITEM-ZFIELD = *ACGL_ITEM-ZFIELD for every customer field (example ZFIELD).
    6. Generate or activate all objects.
    7. To take the new fields in the entry variants into account, choose 'Create entry variant' via the menu. You can then take the customer fields into account when creating the new entry variant.
    To include SAP standard fields that exist in structure ACGL_ITEM, proceed as follows:
    Increase the number of columns of screen SAPLFSKB-0100 or switch visible fields you do not need to invisible. Afterwards, copy the fields that you require from the Data Dictionary (structure ACGL_ITEM).
    As described above, execute points 4-7 for the fields that you supplemented, and use the modification groups as described in point 3.
    For technical reasons, fields of ACGL_ITEM for local currency amounts cannot be copied to the table control.
    Regards
    Sanil Bhandari

  • 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

  • Screen Variants disabled for FB50,FB60,FB70

    Hello All,
    The screen variants for FB50 FB60 FB70 disabled. These vairants can be selected as Edit --> Screen variant --> Select screen variant.
    When any user executes transaction he gets some field missing (table control setting set as basic settings) and when he try from the above option for the desired screen then also screen remains same. It doesn't change
    Previously it was not the case. previously when user executes these trasnaction screen was coming correctly.
    Many users facing this issue.
    If anyboday faced similer kind of issue then request you to please share your inputs.
    Thanks  & regards,
    Prashant

    Hi Prashant,
    Please refer to notes 546889 and 186961.
    if user is calling transaction FB*0 the first time no screen variant
    for items is selected. So in order to assign a user to a screen variant,
    the user has to switch the tree on (SHIFT+F1).
    In the folder 'Screen variants for items' the user has to choose your
    'default' variant by a double click. After clicking on the button
    'Refresh Tree' this screen variant is saved in the table TFBUF, which
    contains the personalizations for ENJOY transaction. This table is
    always read by starting transaction FB*0. Because of the user
    personalization with table TFBUF the SET/GET-Parameters SCRVAR & STV are
    not used in the FI-Enjoy transactions. It's the enjoy and personlization
    system design that always the last selected screen variant of the user
    is used by starting transaction FB*0 and not a default one.
    But I can suggest you a modification, for setting your default screen
    variant in FB*0 with the value of parameter SCRVAR until the user will
    chosse another screen variant in the tree. Furthermore this default
    variant is set if user is executing 'Reset screen variant' under
    EDIT -> Screen variant. You can find the program changes of this
    modification below:
    Because it is only possible to set standard for transaction variants and
    not for screen variants and due to user personalization goal of the
    enjoy transaction It cannot change this system behaviour during
    maintenance.
    Here is the program code for this modification:
    1.
    FORM posting_transaction_init.
    If variant transaction is active, get screen variant     "Note 421236
          CALL FUNCTION 'RS_HDSYS_GET_SC_VARIANT'              "Note 331997
               EXPORTING                                       "Note 331997
                    progname         = 'SAPLFSKB'              "Note 331997
                    dynpro           = '0100'                  "Note 331997
               IMPORTING                                       "Note 331997
                    scvariant        = g_scvariant             "Note 331997
               TABLES                                          "Note 331997
                    values_scvariant = tab_values_scvariant    "Note 331997
                    guixt_scripts    = tab_guixt_scripts.      "Note 331997
        ENDIF.                                                 "Note 421236
    *Modification Begin of insert
        IF acc_kontext-scvariant IS INITIAL and g_scvariant is initial.
          GET PARAMETER ID 'SCRVAR' FIELD G_SCVARIANT.
        endif.
    *Modification End of insert
        IF NOT g_scvariant IS INITIAL                           "Note430830
    2.
    FORM create_tree_treev_style_enj.
    data entry variants
    Only if screen variant not provided by transaction variant
    *Modification begin of deletion
    IF p_scvariant IS INITIAL.                               "Note 331997
    *Modification end of deletion
        PERFORM create_tree_ev TABLES p_node_table.    " Erfassungsvarianten
        PERFORM create_item_ev TABLES p_item_table.
    *Modification begin of deletion
    ENDIF.                                                   "Note 331997
    *Modification end of deletion
    assignment models
      PERFORM create_tree_km TABLES p_node_table.      "Kontierungsmuster
    3.
    MODULE tree OUTPUT.
    read screen variants
    Only if no screen variant provided by transaction var.   "Note 331997
    *Modification Begin of deletion
    IF g_scvariant IS INITIAL.                               "Note 331997
    *Modification end of deletion
        PERFORM get_screen_variants.
    *Modification Begin of deletion
    ENDIF.                                                   "Note 331997
    *Modification end of deletion
    read parked documents if required.
    I recommend you to check with your local consultants if this modification is suitable to your requirements.
    Kind Regards,
    Fernando Evangelista

  • Problem while  data processing TRANSACTION data from DSO to CUBE

    Hi Guru's,
    we are facing problem while  data processing TRANSACTION data from DSO to CUBE. data packets  processing very slowly  and updating .Please help me regarding this.
    Thanks and regards,
    Sridhar

    Hi,
    I will suggest you to check a few places where you can see the status
    1) SM37 job log (give BIrequest name) and it should give you the details about the request. If its active make sure that the job log is getting updated at frequent intervals.
    2) SM66 get the job details (server name PID etc from SM37) and see in SM66 if the job is running or not. See if its accessing/updating some tables or is not doing anything at all.
    If its running and if you are able to see it active in SM66 you can wait for some time to let it finish.
    3) RSMO see what is available in details tab. It may be in update rules.
    4) ST22 check if any short dump has occured.
    You can also try SM50 / SM51 to see what is happening in the system level like reading/inserting tables etc.
    If you feel its active and running you can verify by checking if the number of records has increased in the cube.
    Thanks,
    JituK

  • Problems with a call transaction

    Hi, I'm having some problems with a call transaction and I cannot understand why. I put A in the mode, and I am seeing the dynpros and I am pressing enter it works perfectly but when I use mode N it tells me that there is not information for one of the dynpros and it doesn't work. Does anybody know the problem and how to solve it??
    Thanks in advance

    Hi,
    First of all thank you very much for your time.
    I am using FB05 and the problem is in dynpro SAPLKACB 0002, and it says that batch input data doesn't exist. Here is the code, maybe you can see what is happening
    LOOP AT t_resumen WHERE belnr = t_batch-belnr AND
                                ( contador = 3 OR contador = 4 or CONTADOR = 5 ).
          READ TABLE t_clave WITH KEY belnr = t_resumen-belnr.
          d_clave = t_clave-bschl.
          i = i + 1.
          CASE i.
            WHEN 1.
              PERFORM bdc_dynpro  USING 'SAPMF05A'    '0700'.
              PERFORM bdc_field   USING 'BDC_OKCODE'  '/00'.
              PERFORM bdc_field   USING 'RF05A-NEWBS' t_resumen-bschl.
              PERFORM bdc_field   USING 'RF05A-NEWKO' t_resumen-hkont.
              PERFORM bdc_field   USING 'BDC_OKCODE'  '/00'.
              PERFORM bdc_dynpro  USING 'SAPMF05A'    '0300'.
              PERFORM bdc_field   USING 'BDC_OKCODE'  '/00'.
              j_wrbtr = t_resumen-wrbtr.
              REPLACE '.' WITH ',' INTO j_wrbtr.
              PERFORM bdc_field   USING 'BSEG-WRBTR' j_wrbtr.
              PERFORM bdc_dynpro  USING 'SAPLKACB'    '0002'.
              PERFORM bdc_field   USING 'BDC_OKCODE'  '/00'.
            WHEN t.
              PERFORM bdc_dynpro  USING 'SAPMF05A'    '0300'.
              PERFORM bdc_field   USING 'RF05A-NEWBS'  t_resumen-bschl.
              PERFORM bdc_field   USING 'RF05A-NEWKO'  t_resumen-hkont.
              PERFORM bdc_field   USING 'BDC_OKCODE'  '/00'.
              j_hkont = t_resumen-hkont.
              j_clave = t_resumen-bschl.
              PERFORM bdc_dynpro  USING 'SAPMF05A'    '0300'.
              PERFORM bdc_field   USING 'BDC_OKCODE'  '=BU'.
              j_wrbtr = t_resumen-wrbtr.
              REPLACE '.' WITH ',' INTO j_wrbtr.
              PERFORM bdc_field   USING 'BSEG-WRBTR' j_wrbtr.
              PERFORM bdc_dynpro  USING 'SAPLKACB'    '0002'.
              PERFORM bdc_field   USING 'BDC_OKCODE'  '/00'.
            WHEN OTHERS.
              PERFORM bdc_dynpro  USING 'SAPMF05A'    '0300'.
              PERFORM bdc_field   USING 'RF05A-NEWBS'  t_resumen-bschl.
              PERFORM bdc_field   USING 'RF05A-NEWKO'  t_resumen-hkont.
              PERFORM bdc_field   USING 'BDC_OKCODE'  '/00'.
              j_hkont = t_resumen-hkont.
              j_clave = t_resumen-bschl.
              PERFORM bdc_dynpro  USING 'SAPMF05A'    '0300'.
              PERFORM bdc_field   USING 'BDC_OKCODE'  '/00'.
              j_wrbtr = t_resumen-wrbtr.
              REPLACE '.' WITH ',' INTO j_wrbtr.
              PERFORM bdc_field   USING 'BSEG-WRBTR' j_wrbtr.
              PERFORM bdc_dynpro  USING 'SAPLKACB'    '0002'.
              PERFORM bdc_field   USING 'BDC_OKCODE'  '/00'.
          ENDCASE.
            READ TABLE t_porcentajes WITH KEY gjahr = t_resumen-zzbad
                                           zzbtd = t_resumen-zzbtd.
            IF j_hkont = t_porcentajes-cfacpr.
              PERFORM bdc_field   USING 'COBL-PRCTR' t_porcentajes-prctrfac.
              PERFORM bdc_field   USING 'COBL-ZZBTD' t_resumen-zzbtd.
              PERFORM bdc_field   USING 'COBL-ZZBAD' t_resumen-zzbad.
            ELSEIF t_resumen-hkont = t_porcentajes-cadmin.
             PERFORM bdc_field   USING 'COBL-KOSTL' '20801'.
            ELSEIF t_resumen-hkont = t_porcentajes-creca.
             PERFORM bdc_field   USING 'COBL-KOSTL' '20401'.
            ELSE.
              IF d_clave = 01 OR d_clave = 04 OR d_clave = 40 OR d_clave = 09.
                IF j_hkont >= 424001 AND j_hkont <= 424005.
                  PERFORM bdc_field   USING 'COBL-PRCTR' 'DUMMY'.
                ELSEIF j_hkont >= 424601 AND j_hkont <= 424605.
                  IF j_clave = 40.
                    PERFORM bdc_field   USING 'COBL-PRCTR' 'DUMMY'.
                  ENDIF.
                ENDIF.
              ELSEIF d_clave = 11 OR d_clave = 12 OR d_clave = 14 OR d_clave = 50.
                IF j_hkont >= 424001 AND j_hkont <= 424005.
                  PERFORM bdc_field   USING 'COBL-PRCTR' 'DUMMY'.
                ELSEIF j_hkont >= 424601 AND j_hkont <= 424605.
                  IF j_clave = 50.
                    PERFORM bdc_field   USING 'COBL-PRCTR' 'DUMMY'.
                  ENDIF.
                ENDIF.
              ENDIF.
    *Fin modificacion marzo 2007.----
              PERFORM bdc_field   USING 'COBL-ZZBTD' t_resumen-zzbtd.
              PERFORM bdc_field   USING 'COBL-ZZBAD' t_resumen-zzbad.
              PERFORM bdc_field   USING 'COBL-ZZBTT' t_resumen-zzbtt.
              PERFORM bdc_field   USING 'COBL-ZZBTU' t_resumen-zzbtu.
              PERFORM bdc_field   USING 'COBL-ZZBTS' t_resumen-zzbts.
              PERFORM bdc_field   USING 'COBL-ZZBAG' t_resumen-zzbag.
              PERFORM bdc_field   USING 'COBL-ZZBRE' t_resumen-zzbre.
              PERFORM bdc_field   USING 'COBL-ZZBC8' t_resumen-zzbc8.
              PERFORM bdc_field   USING 'COBL-ZZBC9' t_resumen-zzbc9.
            ENDIF.
        ENDLOOP.

  • Problem with V.25 transaction

    Hi All
    I have problem with V.25 transaction. This transaction contains some variants, and currently my variant dispalying 10 feilds. Now i want to add 2 more feilds to the report. So i went to transaction VOKF and added the two feilds to my variant. But while saving it throwing an error "Total output length (142) is larger than 132 characters". So how we can rectify this error. OR how can we increase report width from 132 char to 150..?
    And can u please tell me the way like how we will search for SAP notes or OSS notes for a particular transaction in SNOTE..??
    Thanks In Advance
    Raghu

    <b>hi jayan,
    Just read the error in dump what is the problem and where it has been terminated. IF the problem in print progrm check the print program is active or not. If it is active the dump will give the line no where the termincation occurs check the line no in print programme what is the error occured.  Once go through the dump analyis and and revert back with acutal problem may then u ll get the required ans.
    <b>reward for useful answers</b>
    Regards,
    sunil kairam.

  • Tax and W Tax tabs uneditable for fb60 transaction

    Dear All,
    I have a requirement to make the TAX and WITH HOlDING TAX TABS uneditable in FB60 transaction for specific company codes.
    Kindly guide, how this can be achieved.
    Thanks
    Vinda

    Hi:
           It is not possible to disable them specifically for a company code. However you can disable these using SHD0 or alternatively you can control it via settings in
    SPRO....Financial Accounting.....Financial Accounting Global Settings....WHT....Extended WHT ....Calculations....Define WHT for payment postings...Select Tax code and in control data you can them.
    For a specific co code it will not be possible.
    Regards

  • Adding a screen field in FB60 transaction

    Hi all,
    I just want to add a screen field in FB60 transaction. In that transaction there is a table control. I want to add a coloumn there. Can anyone help me how to do that? I am working in ECC 5.0
    Thanks in advance
    Pranav

    Hi Pranav,
    If you want to add a new column under the table control in FB60, there is a way to do it through config.
    This is how it can be done:-
    1) Go to T-Code SPRO
    2) Financial Accounting New>Financial Global Settings New>Ledgers>Fields>Customer Fields>Edit Coding Block
    3) Define your new field under "Customer defined account assignments" . Make sure the name starts with either 'ZZ' or "YY". This creates a standard structure with your custom field and also appends this new custom field in many FI related tables including BSEG so make sure to check the impact with your functional consultant.
    4) Once it is defined, you might need to change the characteristics of your field under
    Financial Accounting New>Financial Global Settings New>Document>Define Posting Keys
    (This changes your fields status from suppresed to either Optional or Required depending on your requirement)
    Hope this link also helps
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/65/ec4bd7fb0f44f6814fa790dde9a172/frameset.htm
    Reward points if helpful
    Cheers
    Sanjiv

  • Default Variant at user specific in FB50,FB60 & FB70

    Hi,
    I have a created variant in T.Codes: FB50, FB60 & FB70, user wants invisible some of the fileds. This Vairant I have created in configuration(middle in the left side small box) and I used administration selected  few of the fileds as invisible and activated. but still all fields are appearing, when I check those fields it is selected as invisible. How can I restrict those fields and  I want to use this variant as default at user specific level. Please advise me how can I set as default variant.
    Thanks
    VS Rao

    HI,
    First you suppress the fields in Field status group and then create variant for those fields.
    Regards,
    Azeem

  • 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