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

file mapping

Former Member
0 Likes
866

Hi

I have to develop BAPI PO posting prog. But the mapping file

I got is according to BDC. Can anyone suggest whats the best

way to convert BDC formal mapping into BAPI mapping format.

BAPIs i am using are BAPI_INCOMINGINVOICE_CREATE and

BAPI_ACC_DOCUMENT_POST.

Thanks

7 REPLIES 7
Read only

former_member191735
Active Contributor
0 Likes
828

If you can read the file into internal table and you know the fields and required fileds... I would suggest bapi. with bapi, you dont really map the file but read the contents into internal table and call bapi according to the data.

Read only

Former Member
0 Likes
828

Hi,

There is no automatic mechanism to convert BDC mappings to BAPI. So need to pass data from Source internal tables to BAPI internal tables and finally need to call the BAPI.

For Sample code you can refer : [Link|http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-BAPIIncomingInvoicePost%28MIRO%29]

Read only

0 Likes
828

Thank you Sampath and Satya.

Just asking an unusual question here... is it possible some one can guide me over phone so I can understand things better

Read only

0 Likes
828

That is unusual though where are you? i mean in which country?

Read only

matt
Active Contributor
0 Likes
828

The publishing of personal information on these forums is forbidden

If you want to be contacted, you can maintain email addresses, phone numbers etc. on your business card. At your own risk.

Read only

0 Likes
828

USA

Read only

0 Likes
828

Sorry. See MATT response.