Return to BIG Manual

Steps to follow for Batch Input Program Generation

There are two alternatives for program generation:

Alternative #1 (with automatic recording of transactions)

 

Run the transaction for which you intend to generate the Batch Input program.

From there click System/Status and write down the transaction code.

From the command prompt, run: /NSHDB

Enter recording name (it is advisable to use a name which identifies the transaction).

Click on create button and enter the transaction code.

When process finishes a tree with the recorded transaction/s will appear on the screen.

Click on Save button to save the recording.

Return to SHDB transaction. Enter the recording name you have just recorded and press <ENTER>.

If you are on SAP below 4.0 (and a connection from BIG Code Generator to the SAP system is not possible):

Click on Generate Program.

Once in the source code, download it to the workstation.

If you are on SAP 4.0 or later (and a connection from BIG Code Generator to the SAP system is not possible):

Click on Generate Session.

Reach transaction SM35 (from the command prompt run: /NSM35).

Position the mouse-pointer over the session with the same name of the recording.

From the "Utilities" menu choose the option "Export session".

Select "File from Presentation server" and assign a path and a name to the "Physical file name" (for example C:\My Documents\TRANS_XK01).

Execute by pressing execute button.

Double-click on the name of the session to be exported.

Alternative #2 (without automatic analysis of transactions)

TRANS

XK01

 

 

SAPLKMA1

0300

 

 

 

 

BDC_OKCODE

'/00'

 

 

SGTXT

 

 

 

KNAME

 


In case of a field that should be repeated (a step-loop), enter a subindex for the field, for example SGTXT(1). Then, you should define a step-loop as indicated in "Step-Loops definition". If the screen contains a step-loop, you should have two OKCODEs, the first of them would indicate the page-down code or new-position-code, and the second one the OKCODE to leave the screen (see "Step-Loops definition" to clearly understand how the screen must be completed).

Common for both alternatives