Skip to Content

ABAP Posting check for FB01 with BAPI_ACC_DOCUMENT_CHECK

Hi Experts,

Maybe there is a topic, which can give me answer, but because I'm not an FI expert I can't adapt it to my case. I've searched a lot, but I didn't find the answer.

I have to develop a program with the following logic:

Read a file of posting data for FB01, than I have to check whether the data is valid for posting. Than display the result of check, and if everything is ok, than generate a batch input with RFBIBL00.

QUESTION

I'm using BAPI_ACC_DOCUMENT_CHECK, but I don't know how exactly I should fill the parameter tables. (unfortunately I don't have financial support). So how should I map source fields to BAPI input fields?

Source fields:

Head: BLDAT, BLART, BUKRS, BUDAT, MONAT, WAERS, XBLNR, BKTXT

Item: NEWBS, WRBTR, GSBER, KOSTL, SGTXT, NEWKO

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Feb 21, 2019 at 06:53 PM

    What exactly are you checking for? This BAPI has documentation, have you gone through it already?

    You can see the technical names in the BAPI structure definitions. E.g. BUKRS would go into DOCUMENTHEADER-COMP_CODE, I presume. You could also use "where used" to see how this BAPI is called from other programs. Look up SAP Notes, they have clues sometimes.

    Also Google -> BAPI_ACC_DOCUMENT_CHECK parameters -> finds this and many other posts.

    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.