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

help needed on bapi

Former Member
0 Likes
477

hi,

I would be extremely gratefull if anyone could guid me how to upload & post excel data sheet in sap using bapi or bapi active X control.Also how data coversion are to be carried off ?

Scenario :

Excel sheet:

Name1 Name2 Age

joe dave 24

smith S 26

I want to upload this using bapi & then post the document in transaction zf12.

2 REPLIES 2
Read only

Former Member
0 Likes
421

Amna,

You can upload the file from the

Presentation Server - CL_GUI_FRONTEND_UTILITIES->GUI_UPLOAD

Application Server - OPEN DATASET.

However, you have not mentioned what data you are uploading as the BAPI will change depending on that. Look at the BAPI transaction and you will find a list of BAPI's classified according to the business functionality.

Once the data is internal table, you need to pass that to the BAPI function module.

Regards,

Ravi

Note : Please mark the helpful answers.

Read only

Former Member
0 Likes
421

You said, that you have to post the data to transaction ZF12. This no standard SAP transaction, so there won't be a standard BAPI for this transaction. Perhaps you want to try the function module RFC_CALL_TRANSACTION. This works like the ABAP-command CALL TRANSACTION, see the ABAP-docu for details.