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

What is the use BAPI_ACC_DOCUMENT_POST?

Former Member
0 Likes
923

HI DEVELOPRES,

     I have requirement, to upload the program using BAPI( BAPI_ACC_DOCUMENT_POST). but in FS they mentioned to


     1. Execution of the program will create one document if the file is having less than 999 and multiple document if the line item is more than 999.


     i didn't understand above point, please explain properly and if you know the code post it.


     2. How can i validate file name .(suppose file is uploaded using BAPI, next time i've try to upload same file. in this case i've display error message.

         

         how can i do this? please explain.

    

HI DEVELOPRES,

     I have requirement, to upload the program using BAPI( BAPI_ACC_DOCUMENT_POST). but in FS they mentioned to


     1. Execution of the program will create one document if the file is having less than 999 and multiple document if the line item is more than 999.


     i didn't understand above point, please explain properly and if you know the code post it.


     2. How can i validate file name .(suppose file is uploaded using BAPI, next time i've try to upload same file. in this case i've display error message.

         

         how can i do this? please explain.

    

2 REPLIES 2
Read only

paul_bakker2
Active Contributor
0 Likes
674

Hi.

As you may know, that BAPI posts GL documents. These can have multiple lines.

Point 1 is specifying that if the number of lines in your interface file is over 999, you should post multiple GL documents. (I assume they can only manage 999 lines).

Point 2 is standard interface logic: if you receive the same file twice, don't upload it again!

Have you done any interface programs before? They can be tricky.

cheers

Paul

Read only

Former Member
0 Likes
674

FI document will have 999 lines as maximum.

So, if you exceed this number, SAP will generate more than 1 document.

Best regards,

Juan