‎2008 Jun 17 4:19 AM
hi Gurus,
I am trying to create billing doc using the following bapi:'BAPI_BILLINGDOC_CREATEMULTIPLE'
Now, I am not pretty sure how the flat file structure should be and what are the values I should give in the BAPI function module.
So,If there is any sample program you can send it to me or show it would be great. If you click on my user id,you will get my id.
Thanks and Regards,
Vishwa.
‎2008 Jun 17 4:50 AM
Hi,
Refer the sample code
https://forums.sdn.sap.com/click.jspa?searchID=12961488&messageID=2741084
Regards
Kiran Sure
‎2008 Jun 17 4:57 AM
Hi,
CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
EXPORTING
posting = ''
TABLES
billingdatain = ti_billingdatain
errors = ti_errors
return = ti_return2
success = ti_success.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = ' '.Thanks
Vikranth
‎2008 Jun 17 5:15 AM
Hi
Thanks for the replies. But the above codes dont help for the reason that, I am not able to get the clarity on how the flat file is given in to the BAPI FM. If it is header and item wise,then how should the internal table structure be. Can I get some more relevant and detail answers please?
Thanks and Regards,
Vishwa.
‎2008 Jun 17 5:16 AM
I actually mean,how should the flat file structure be?not the internal table structure.
‎2008 Sep 12 8:28 AM
The structure of the flat file doesn't matter, you cannot directly use a raw data in the BAPI, you need somehow a program that will process the flat file and built the data within the required internal tables.
for example, if you use MDM then you just need to make the correct mapping. the same goes for other third party programs available.