03-20-2006 3:27 AM
How can I write a ABAP program that create a batch input session (with or without execution) that can be viewed in SM35?
Currently, I only know how to use BDC and call transaction.
Thanks!
03-20-2006 3:31 AM
Hi,
You have to use the BDC_OPEN_GROUP,BDC_INSERT & BDC_CLOSE_GROUP function modules. PL take a look at the following <a href="http://help.sap.com/saphelp_47x200/helpdata/en/fa/097140543b11d1898e0000e8322d00/frameset.htm">SAP Help</a>
Regards,
Suresh Datti
03-20-2006 3:29 AM
You can use tx. <b>SHDB</b> it records a transactions a generates the code for a new SM35 session.
Greetings,
Blag.
03-20-2006 3:31 AM
Hi,
You have to use the BDC_OPEN_GROUP,BDC_INSERT & BDC_CLOSE_GROUP function modules. PL take a look at the following <a href="http://help.sap.com/saphelp_47x200/helpdata/en/fa/097140543b11d1898e0000e8322d00/frameset.htm">SAP Help</a>
Regards,
Suresh Datti
03-20-2006 3:32 AM
Hi,
Go to transaction SHDB.
Create a new recording.
Create a new program from the recording.
Modify the generated program to suit your functionality.
Run the program. It will create a BDC sessions for you.
Regards,
Wenceslaus.
03-20-2006 4:13 AM
hi
For a BDC upload you need to write a program which created BDC sessions.
<u>Steps</u>:
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
4. Select the recording and <b>click on Edit - Create Program.</b> 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.
Execute the program. It will have options to create a batch session or to process directly.
IF THIS FINDS USEFUL PLEASE REWARD POINTS
REGARDS
ANOOP
03-20-2006 7:10 AM
Hi Suresh Datti,
the method you mentioned is exactly what I want.
But I still have a question
In BDC_INSERT, there are 2 optional parameter that I don't know what are their use.
SIMUBATCH
CTUPARAMS
In CTYPARAMS, there are many fields inside the structure.
Where can I find their value domain and their usage?
In the link you gave, I can find any. Thanks!
03-21-2006 9:53 AM
Hi,
In transaction SE11 enter CTU_PARAMS & hit display. In the next screen double click on the component type CTU_MODE. In the next screen double click on the Donain CTU_MODE. In the next screen click on value Range & the possible values will be displayed. Repeat the same steps for all he component types in the structure CTU_PARAMS.
SIMUBATCH is an optional parameter used to simulate a Batch Input.
Regards,
Suresh Datti