2014 Sep 05 1:40 AM
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.
2014 Sep 05 2:28 AM
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
2014 Sep 05 2:48 AM
FI document will have 999 lines as maximum.
So, if you exceed this number, SAP will generate more than 1 document.
Best regards,
Juan