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

BAPI FOR BILLING DOC

Former Member
0 Likes
764

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.

5 REPLIES 5
Read only

Former Member
0 Likes
735
Read only

Former Member
0 Likes
735

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

Read only

0 Likes
735

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.

Read only

0 Likes
735

I actually mean,how should the flat file structure be?not the internal table structure.

Read only

0 Likes
735

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.