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

bapi_acc_document_post values are not updating in BKPF

HI Experts ,

bapi_acc_document_post -- I m using Bapi for posting purpose .

in header i gave input.

IN Account GL i gave input and also in currency i gave input and i am able to get the output as

Document posted successfully: BKPFF 0000500029KA012010 ECPCLNT100

but in bkpf table values are not updating. if i do through transaction level means its getting updated in the table.

Thanks &Regards

ajay

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Nov 30, 2010 at 09:35 AM

    Have you called BAPI_TRANSACTION_COMMIT after bapi call?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 01, 2010 at 04:41 AM

    I DINT GET THE EXACT ANSWER

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      correct answer is this..

      U have to implement the BADI for this.. ‘AC_DOCUMENT’

      Add source code into Method: CHANGE_INITIAL & CHANGE_AFTER_CHECK,

      *---<SAPLBPFC> is for Posting with BAPI: BAPI_ACC_DOCUMENT_POST

      *---<SAPCNVE > is for Posting(Tax) with BAPI: BAPI_ACC_DOCUMENT_POST

      *---<SAPMSSY1> is for Test(Check) with BAPI: BAPI_ACC_DOCUMENT_CHECK

      *for example I used this for getting the header text

      DATA: wa_header TYPE acchd.

      IF sy-xprog NE ' SAPMSSY1 '.

      CLEAR wa_header.

      wa_header = im_document-header.

      ex_document-header-bktxt = wa_header-bktxt.

      CLEAR wa_header.

      ENDIF.

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.