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

Accounting documents posted using BAPI_ACC_DOCUMENT_POST but not available.

Former Member
0 Likes
653

Hi Experts

We have developed an Inbound Interface to SAP for posting accounting documents using BAPI_ACC_DOCUMENT_POST.

We are getting a message saying that the document was posted successfully, but we are unable to locate the posted document in BKPF/BSEG tables. Also the current number against the Document Type/Number Range is getting updated when the document is getting posted.

Please provide your valuable inputs on this or guide me if I would have missed out some thing in the program logic.

Thanks in Advance

Best Regards

KIM Khan & Shravan

1 ACCEPTED SOLUTION
Read only

Clemenss
Active Contributor
0 Likes
609

Hi,

if you called BAPI_ACC_DOCUMENT_POST., you should chak that RETURN table does not contain messages of type E A or X and then call FM BAPI_TRANSACTION_COMMIT.

COMMIT WORK is triggered by IDoc inbound process if not user process calls ROLLBACK WORK. Sol I woinder whats is happening.

Regards,

Clemens

3 REPLIES 3
Read only

Clemenss
Active Contributor
0 Likes
609

Hi,

if you called BAPI_ACC_DOCUMENT_POST., you should chak that RETURN table does not contain messages of type E A or X and then call FM BAPI_TRANSACTION_COMMIT.

COMMIT WORK is triggered by IDoc inbound process if not user process calls ROLLBACK WORK. Sol I woinder whats is happening.

Regards,

Clemens

Read only

Clemenss
Active Contributor
0 Likes
610

Hi,

if you called BAPI_ACC_DOCUMENT_POST., you should chak that RETURN table does not contain messages of type E A or X and then call FM BAPI_TRANSACTION_COMMIT.

COMMIT WORK is triggered by IDoc inbound process if not user process calls ROLLBACK WORK. Sol I woinder whats is happening.

Regards,

Clemens

Read only

Former Member
0 Likes
609

Hi Clemens

Thanks for your reponse. Some how the developer has missed out calling FM BAPI_TRANSACTION_COMMIT. We are now able to get the appropriate document number from the range assigned to the document type.

Thanks and best regards

KIM Khan & Shravan.