Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How use BAPI_ACC_DOCUMENT_POST for multiple accounting

Former Member
0 Likes
2,989

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

1 ACCEPTED SOLUTION
Read only

anup_deshmukh4
Active Contributor
0 Likes
1,986

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.

5 REPLIES 5
Read only

ThomasZloch
Active Contributor
0 Likes
1,986

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

Read only

0 Likes
1,986

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

Read only

anup_deshmukh4
Active Contributor
0 Likes
1,987

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.

Read only

0 Likes
1,986

A do you have any examples.

How to write.


I have no experiences with BADI.

gustav


Read only

0 Likes
1,986

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