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

doubt in uploading purchase order data using BDC

Former Member
0 Likes
834

Hi friends,

how to upload purchase order data.

1) In both BDC and BAPI which one is preferable?

2) for suppose if it is through BDC, how to use? what are the transactions that we can use(SHDB, ME21N,ME21)?

3) To execute the job in background, is it possible for both call transaction and session method.

Thanks in advance

Sreenivas k

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
693

It really depends on the number of records you have. Still for a set of 5,000 records my answer to your questions will be:

1) In both BDC and BAPI which one is preferable? - <b>Go with BDC</b>

2) for suppose if it is through BDC, how to use? what are the transactions that we can use(SHDB, ME21N,ME21)? - <b>Yes, its SHDB for recording, SE38 for abap program and ME21 for PO. Avoid SAP Enjoy transactions for recording as you may end up having problems wiht it.</b>

3) To execute the job in background, is it possible for both call transaction and session method. - <b>If you use call transaction method then you have to schedule the job to run in background or simply run it through F9 instead of F8. In case of session method you can chose to process the session in background. However I would suggest you go with BDC Session method for this.</b>

- Guru

Reward points for helpful answers

Hi friends,

how to upload purchase order data.

1) In both BDC and BAPI which one is preferable?

2) for suppose if it is through BDC, how to use? what are the transactions that we can use(SHDB, ME21N,ME21)?

3) To execute the job in background, is it possible for both call transaction and session method.

Thanks in advance

Sreenivas k

6 REPLIES 6
Read only

Former Member
0 Likes
694

It really depends on the number of records you have. Still for a set of 5,000 records my answer to your questions will be:

1) In both BDC and BAPI which one is preferable? - <b>Go with BDC</b>

2) for suppose if it is through BDC, how to use? what are the transactions that we can use(SHDB, ME21N,ME21)? - <b>Yes, its SHDB for recording, SE38 for abap program and ME21 for PO. Avoid SAP Enjoy transactions for recording as you may end up having problems wiht it.</b>

3) To execute the job in background, is it possible for both call transaction and session method. - <b>If you use call transaction method then you have to schedule the job to run in background or simply run it through F9 instead of F8. In case of session method you can chose to process the session in background. However I would suggest you go with BDC Session method for this.</b>

- Guru

Reward points for helpful answers

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
693

I say use the BAPI. BAPIs are always better to use than BDC. Why, because BDC is screen dependent, BAPIs are not. THere faster, and the signatures do not change from release to release, so it will always work.

You can use LSMW and the BAPI together to create a good tool for uploading the purchase orders, the BAPI will handle the creation of the PO, and the LSMW will handle the uploading and formatting of the data used by the BAPI.

Regards,

Rich Heilman

Read only

abdul_hakim
Active Contributor
0 Likes
693

hi

welcome to sdn.

i would say use BAPIs.

BAPIs are always better than BDCs.

Also note that BDC wont support enjoy SAP Transactions.

Cheers,

Abdul Hakim

Mark all useful answers..

Read only

Former Member
0 Likes
693

Hi friends, is it possible to use GUI_UPLOAD function module while uploading data in bdc in background ? if not what is the error? what is the reason?

Thanks in advance

sreenivasula reddy k

Read only

0 Likes
693

No, it is not. The reason is that the background process is not tied to a frontend session, so it does not know of your C:\ drive on your PC(or any other) The GUI_UPLOAD function module is stricly used to upload files from your PC or frontend and must be done in a dialog session.

If you need to upload in background process, then you need to have the file on the application server and use the DATASET statements to upload it. OPEN DATA, READ DATASET, CLOSE DATASET.

Regards,

RIch Heilman

Read only

Former Member
0 Likes
693

Hi,

This is Shankar.I got requirement that creating PO using BDC for ME21N in 4.6C

Please if u have code please send it to me to mail id.

[email protected]

Thanks & Regards,

Shankar