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 problem

umberto_panico
Participant
0 Likes
1,182

Hi to all.

I have the following problem:

when I use the FM "BAPI_ACC_DOCUMENT_POST" for Accounting Vendor Document post, if I use the field SP_GL_IND (Special G/L Indicator) in ACCOUNTPAYABLE structure to refer to field GL_ACCOUNT of the same structure, the BAPI create the document with G/L account referred to Vendor and not the value insert before in GL_ACCOUNT field.

Help me please.

Thanks thanks thanks.

Umberto

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
865

Hi

U should insert the GL account data in the structure ACCOUNTGL, not in ACCOUNTPAYABLE, check the help of BAPI:

If the vendor account number VENDOR_NO is not given, only the general

ledger is updated. In this case, an entry must be made in the field

GL_ACCOUNT (G/L account for general ledger accounting).

Max

5 REPLIES 5
Read only

Former Member
0 Likes
866

Hi

U should insert the GL account data in the structure ACCOUNTGL, not in ACCOUNTPAYABLE, check the help of BAPI:

If the vendor account number VENDOR_NO is not given, only the general

ledger is updated. In this case, an entry must be made in the field

GL_ACCOUNT (G/L account for general ledger accounting).

Max

Read only

0 Likes
865

Hi Max,

sorry for the english :).

Suppose that CO.GE of vendor is equal to 'PPPD999999' and I fill the ACCOUNTPAYABLE structure as:

ACCOUNTPAYABLE-ITEMNO_ACC = '10'.

ACCOUNTPAYABLE-VENDOR_NO = '0000000011'.

ACCOUNTPAYABLE-GL_ACCOUNT = 'PP12345678'.

ACCOUNTPAYABLE-SP_GL_IND = 'J'.

After executution of the BAPI, G/L account 'PP12345678' was replaced by 'PPPD999999'.

This isn't correct!

Can you help me?

Thanks!

Umberto

Read only

0 Likes
865

Hi

If 0000000011 is vendor code you DON'T HAVE TO FILL the field GL_ACCOUNT.

ACCOUNTPAYABLE-ITEMNO_ACC = '0000000001'.

ACCOUNTPAYABLE-VENDOR_NO = '0000000011'.

ACCOUNTPAYABLE-SP_GL_IND = 'J'.

and

ACCOUNTGL-ITEMNO_ACC = '0000000002'.

ACCOUNTGL-GL_ACCOUNT = 'PP12345678'.

Max

Read only

0 Likes
865

Hi Max,

dont' work .

Read only

0 Likes
865

Hi

What doesn't work?

What PPPD999999 and PP12345678? i.e. what kind of gl account?

PPPD999999 is reconciliation account? If it's so it should be posted automatically.

Give us more details

Max