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

Error in Using BAPI_ACC_GL_POSTING_POST

Former Member
0 Likes
645

Hi,

I am using BAPI BAPI_ACC_GL_POSTING_POST for transaction F-02 for uploading salary details.

here i am using posting key 39 and account no as vendor no and special GL indicator.

From that system automatically pick the GL attached to that Vendor and posting the document while i am doing that one manually.

but when i am doing the same using BAPI system is throwing an error saying that GL acnt (Vendor no ) is not defined in chart of

acnt.But The GL attached to the vendor no is reconcillation acnt,so it is not defined in chart of acnt.

please help me in this regard.

Thanks

Anil D

4 REPLIES 4
Read only

Former Member
0 Likes
560

Try to fetch the g/l account from company vendor data before calling bapi.

DATA: l_akont TYPE lfb1-akont.

SELECT SINGLE akont FROM LFB1 INTO l_akont

WHERE bukrs = l_bukrs AND lifnr = l_lifnr.

/BR

Simo

Read only

0 Likes
560

Hi,

I hv already done that one but the problem is the acnt is reconcilation acnt so we can't directly post document to reconcilation

acnt.

Systerm is throwing an error of the same saying that u can't post doc for reconcilation directly.

Thanks

Anil D

Read only

Former Member
0 Likes
560

Function POSTING_INTERFACE_DOCUMENT is always worth trying, though you have to do some extra coding.

/Simo

Read only

Former Member
0 Likes
560

Done