‎2005 Dec 16 2:17 PM
Can anyone just tell me the steps which one follows before going for a BDC Program. i mean right frm the starting if any Company want to implement SAP.
‎2005 Dec 16 2:23 PM
‎2005 Dec 16 2:23 PM
Hi Welcome to SDN,
First take the transaction code and run the transaction
SHDB to record the transaction , and the after that you copy the transaction to program , and make the modifications to that ,excute the BDC program..
regards
vijay
‎2005 Dec 16 2:23 PM
Hi Nag,
First thing is to have all the data in the legacy system to be converted into flat files, so that you can use BDC logic to transfer that data into SAP system once you install it.
Once you have the legacy data in the form of Flat files, you can upload the files using GUI_UPLOAD function module and transfer that data into internal tables first.
Then you can do a Call Transaction or a BDC Session method to upload the data into the wanted transaction.
You can use a BAPI insteda of a BDC also.
In this case you need to fill the BAPI interface structures and tables and pass them to the BAPIs.
Regards,
Ravi
‎2005 Dec 16 2:55 PM
HI,
For a BDC upload you need to write a program which created BDC sessions.
Steps:
1. Work out the transaction you would use to create the data manually.
2. Use transaction SHDB to record the creation of one material master data.
Click the New recording button or the Menu - Recording - Create
3. Save the recording, and then go back a screen and go to the overview.
4. Select the recording and click on Edit - Create Program. Give the program a Z name, and select transfer from recording.
5. Edit the program. You will see that all the data you entered is hard-coded into the program. You need to make the following changes:
5.1 After the start-of-selection, Call ws_upload to upload the file (the excel file needs to be saved as TAB separated).
5.2 After the open-group, Loop on the uploaded data. For each line, perform validation checks on the data, then modify the perform bdc_field commands to use the file data.
5.3. After perform bdc_transaction, add the endloop.
Execute the program. It will have options to create a batch session or to process directly.
<b>These are all my finds . Might be it will be useful to you.</b>
Regards
Sudheer
Direct call of transactions, session handling:
/nxxxx This terminates the current transaction, and starts transaction xxxx
/n This terminates the transaction. This generally corresponds to pressing F15 to go back.
/nend This termiantes all separate sessions and logs off (corresponds to System - Logoff).
/nex This terminates all separate sessions and logs off immediately (without any warning!).
/oxxxx This opens a new session and starts transaction xxxx in This session.
/o This lists existing sessions and allows deletion or opening of a new session.
/i This terminates the current session (corresponds to System End
/i1, /i2,... This terminates the session with the number given.
.xyzw Fast path: 'xyzw' refers to the underlined letters in the menus. This type of navigation is uncommon and is provided more for emergencies (such as a defective mouse).
Batch
The following commands can be entered in correction mode ('Process in foreground' or 'Display errors only') when processing a batch input session:
/n This terminates the current batch input transaction and characterizes it as
/bdel This deletes the current batch input transaction.
/bend This terminates batch input processing and sets the session to Failed
/bda This switches from Display errors only to Process in foreground
/bde This switches from Process in foreground to Display errors only
ABAP/4
/h This switches into debugging mode.
/hs This switches into debugging mode and activates the debugging of system functions.
Buffer
WARNING: Resetting buffers can significantly change the performance of the entire system for a long time.
It should therefore only be used where there is a good reason tdso. As of release 3.0B system administator authorization is required (authorization object (S_ADMI_FCD). The action is noted in the system log.
/$SYNC This resets all buffers of the application server
/$CUA This resets the CUA buffer of the application server
/$TAB This resets the TABLE buffers of the application server
/$NAM This resets the nametab buffer of the application server
/$DYNP This resets the screen buffer of the application server
‎2005 Dec 16 3:25 PM
Hi,
Welcome to SDN.
First you need to analyse the transaction for which you are going to transfer the data.
I mean the screen number,screen program name,field name,and the function keys which are used to move from one screen to another or to end a transaction.
Once this is done then you need to write your BDC Program.
Read your leagacy data and convert into SAP Format.
LSMW can be used for this purpose also.
Once this is done then you can transfer the data into SAP using either Session/ Call transaction methods.
If the transaction to which you transfer has standard SAP Program then u can also use Direct Input methods.
Regards,
Abdul