2006 Dec 09 12:02 PM
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
2006 Dec 09 6:48 PM
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
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
2006 Dec 09 6:48 PM
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
2006 Dec 09 6:59 PM
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
2006 Dec 10 2:32 PM
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..
2006 Dec 10 5:28 PM
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
2006 Dec 10 5:41 PM
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
2008 Jan 23 7:23 PM
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.
Thanks & Regards,
Shankar
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |