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

how to simulate GL line items using POSTING_INTERFACE_DOCUMENT

Former Member
0 Likes
888

Hi Experts - We need <removed by moderator> help from you if you have come across same/similar issue with Custom Z Program to post Manual Journal Entries.

SAP Version: ECC6 - EHP7.

We have a custom Z Program to post Manual Journal Entries by business users which is using by 1000s of users.

Program was developed using CALL FUNCTION "BAPI_ACC_DOCUMENT_CHECK" for simulation and  CALL FUNCTION "POSTING_INTERFACE_DOCUMENT " for posting.  Now issue is some errors are not catching in simulation by CALL FUNCTION "BAPI_ACC_DOCUMENT_CHECK" and failing during Posting,  due to that files are partially posting and partially not posting which is creating a lot of mess and manual work for business users.

And also we don't know why CALL FUNCTION "BAPI_ACC_DOCUMENT_POST" not used in the place of "POSTING_INTERFACE_DOCUMENT" by Implementation Team.


It would be very much appreciated if somebody faced same/similar issue and please help us to fix this issue if you have already fixed it.


Thanks and Regards,

Prathap

Message was edited by: Manish Kumar

2 REPLIES 2
Read only

Former Member
0 Likes
659

What sort of errors are not being caught?

Rob

Read only

RaymondGiuseppi
Active Contributor
0 Likes
659

Maybe POSTING_INTERFACE_DOCUMENT was used for generation of a BDC for further processing if CALL TRANSACTION failed, or the requirement for checking before posting was added later in the life of the transaction?

Also code to fill the parameters of the BAPI and code to fill the parameters of the FM are not the same (BAPI add structured records in itab and use internal values, when POSTING FM add one record per field and external values), so some errors may result from difference there.


Could you detail the types of errors triggered by POSTING FM?


Regards,

Raymond