2012 Jun 07 1:53 PM
Hi,
First, excuse my English language.
I want to ask how to use multiple accounts in BAPI_ACC_DOCUMENT_POST. Must match billed as tr. FB01
I think the structure should be used extension but I do not know when and where the value of the fill.
I use the positive and negative charging.
The documentation I found but I just use it for my problem.
Function BDC I can not use.
Can you please me.
Help me and some examples
Thanks you.
Regards
gustav
2012 Jun 08 10:21 AM
To my assumption I guess you have to populate the extra fields in your custom field in your line item table BSEG ( i.e. coding block fields CI_COBL ) for which you have to use Extensions structure of mentioned bapi
you can use badi : ACC_DOCUMENT and method CHANGE
Populate the data in the extension line item wise and read it in the method in BADI and populate it to C_ACCIT
Please read the documentation of BADI for further assistance.
Hope this helps.
2012 Jun 07 3:08 PM
Please clarify what you mean with "multiple accounting", e.g. post an example of a document that you would like create via that BAPI.
Thomas
2012 Jun 08 10:00 AM
I need to use the correlation on Account for example:
How to post this account or (How to recognize these accounts) in BAPI_ACC_DOCUMENT_POST.
I have filled the document header, general ledger account line item and currency.
I can also fill extension1 for Account 502103, but I do not know how and where to add other accounts M900002, S323300 and M326900.
I have to use the EXTENSION2 for completion of these accounts.
I do not know how to proceed.
Can you with advice.
Thank you to everybody.
gustav
2012 Jun 08 10:21 AM
To my assumption I guess you have to populate the extra fields in your custom field in your line item table BSEG ( i.e. coding block fields CI_COBL ) for which you have to use Extensions structure of mentioned bapi
you can use badi : ACC_DOCUMENT and method CHANGE
Populate the data in the extension line item wise and read it in the method in BADI and populate it to C_ACCIT
Please read the documentation of BADI for further assistance.
Hope this helps.
2012 Jun 08 10:28 AM
A do you have any examples.
How to write.
I have no experiences with BADI.
gustav
2012 Jun 08 10:37 AM
Please confirm are my assumption correct .
Lets see if I can help ,
You have to populate your extra fields in the Accounting document line items.
When you call the babpi You will populate them in Extension table according to indexes .
In the BADI you will get the Line items of your document and your extensions both the tables
In the method of badi you will have to write the code for which line item in the document what data from the extension are to be populated.
IPM_SPLIT_CHECK is one of the standard implementation of the BADI you can refer
you will have to have your own custom implementation for same.
You can search how to implement any kind of badi .
Hope this helps