Skip to Content
author's profile photo Former Member
Former Member

Error in Using BAPI_ACC_GL_POSTING_POST

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 09, 2009 at 02:14 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2009 at 08:04 AM

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

    /Simo

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2010 at 10:36 AM

    Done

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.