Skip to Content

BAPI for transaction code 'f-02'.

Hello exoerts,

Good Morning...

I foun the BAPI for the transaction code 'F-02' i.e 'BAPI_ACC_DOCUMENT_POST'. In this BAPI , under the table tab it have two parameters like 'EXTENSION1' and 'EXTENSION2'. Here i am facing problem how to pass input data to those parameters. In SDN already search for this those post says implement BADI, I donot know how implement the BADI and how to pass input to the two parameters 'EXTENSION1' and 'EXTENSION2'. <text removed>

Thanks in advance.

Message was edited by: Matthew Billingham - do not say your requirement is urgent.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Dec 30, 2013 at 05:16 AM

    Extension parameters are used to pass some information to the BAPI for processing inside probably some user exit.

    DATA: it_extension TYPE STANDARD TABLE OF bapiacextc,

    wa_extension TYPE bapiacextc.

    For example, if you want to pass the withholding tax information.

    wt_item_th = wt_item_th + 1.

    wa_extension-field1 = 'WHT'. "Identifier to distinguish the type of information that is passed

    wa_extension-field2+0(6) = wt_item_th . "ACCWT-WT_KEY

    wa_extension-field2+6(2) = t059z-witht. "ACCWT-WITHT

    wa_extension-field2+8(2) = t059z-wt_withcd. "ACCWT-WT_WITHCD

    wa_extension-field3 = wa_data-witht. "Withholding tax base amount from input file.

    APPEND wa_extension TO it_extension.

    Now you have all the required details for calculating withholding tax passed in the BAPI.

    If you want to pass some other information, you can do so, by providing an appropriate identifier, to distinguish them within the BAPI.

    Also check SAP Note 487722 for more details on using this parameter.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 30, 2013 at 06:36 AM

    Hi Krishna,

    Use the BAPI "BAPI_ACC_DOCUMENT_POST"

    Regards,

    Rajesh.B

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.