Application Development 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: 

Question about createing a batch input session in ABAP

former_member220801
Participant
0 Kudos

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!

1 ACCEPTED SOLUTION

suresh_datti
Active Contributor
0 Kudos

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

6 REPLIES 6

former_member583013
Active Contributor
0 Kudos

You can use tx. <b>SHDB</b> it records a transactions a generates the code for a new SM35 session.

Greetings,

Blag.

suresh_datti
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

former_member220801
Participant
0 Kudos

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!

0 Kudos

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