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

BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
615

Hi,

I am testing this function in se37 but am having difficulties.

I want to post a very simple 40/50 debit credit against 2 accounts. (2 line items)

What is the minimum structures that i need to populate ?

any examples

1 ACCEPTED SOLUTION
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
585

Hi,

Try to fill values like : DOCUMENTHEADER and structures like ACCOUNTGL,ACCOUNTTAX,CURRENCYAMOUNT.

Hope this helps.

5 REPLIES 5
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
586

Hi,

Try to fill values like : DOCUMENTHEADER and structures like ACCOUNTGL,ACCOUNTTAX,CURRENCYAMOUNT.

Hope this helps.

Read only

0 Likes
585

Tnks.

Getting stuck on this.

Field Prof.Segmt is a required field for G/L account 5101 470000

Can someone tell me which field in import table structure does this refer to ?

Read only

0 Likes
585

Hi Ed,

In the structure ACCOUNTGL , populate the field PROFIT_CTR which is basically for assigning profit center to any cost object.

Read only

0 Likes
585

Making some progress.

Can can i affect the controlling area in the bapi. i am getting an error saying that "G/L account 470000 is not defined in chart of accounts WMAX"

it should be cmax. can i put cmax into the bapi somewhere ?

Read only

0 Likes
585

ok the error is caused by not putting leading zeros into my G/L account.