Application Development and Automation 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: 
Read only

SM35 Batch input recording test data

manthana_c
Contributor
0 Likes
3,759

Hi :

I just finished create 1 t.code by batch input recording.

how to create test data maybe 100 records and feed into this batch input session please.

I see button create test data . but i not know what to do next.

pls advise..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,900

After creating the program from SHDB, edit it get the data from the input file.

  • use the parameters statement to accept the input of the text file (path):

parameters: p_file like rlgrap-filename.

  • Create an internal table that contains the structure of the import file.

data: begin of itab occurs 10,

vendor like lfa1-lifnr,

name like lfa1-name1,

city like lfa1-ort01,

zip  like lfa1-pstlz,

end of itab.

  • Move all the values from itab into your BDC program.

  • Execute the program.

  • Test the results of your program by going to transaction SM35.

  • If you forget the name of your session, click on the overview button.  You should be able to see your session in the ‘Session still to be processed’ area.

   

  • Double-click on your session:

  • Click on Process.

The system will now walk you through the batch process for your text file.  Notice the values that are given to each field during this walk through.  In the future, you may run this process in ‘Background’ mode if you are importing thousands of records, rather than just a few.  This is a good test to see if your program can successfully run the text file.

When the batch process completes, you will the window with message of Session processing status.

  • To check the log, go back to SM35 and click overview.  Select your session and click on Log from the toolbar.

You will see the results from your successful batch input:

For more details, see this link.

www-bcf.usc.edu/~anthonyb/itp321/BDC/BDC.doc‎

1 REPLY 1
Read only

Former Member
0 Likes
1,901

After creating the program from SHDB, edit it get the data from the input file.

  • use the parameters statement to accept the input of the text file (path):

parameters: p_file like rlgrap-filename.

  • Create an internal table that contains the structure of the import file.

data: begin of itab occurs 10,

vendor like lfa1-lifnr,

name like lfa1-name1,

city like lfa1-ort01,

zip  like lfa1-pstlz,

end of itab.

  • Move all the values from itab into your BDC program.

  • Execute the program.

  • Test the results of your program by going to transaction SM35.

  • If you forget the name of your session, click on the overview button.  You should be able to see your session in the ‘Session still to be processed’ area.

   

  • Double-click on your session:

  • Click on Process.

The system will now walk you through the batch process for your text file.  Notice the values that are given to each field during this walk through.  In the future, you may run this process in ‘Background’ mode if you are importing thousands of records, rather than just a few.  This is a good test to see if your program can successfully run the text file.

When the batch process completes, you will the window with message of Session processing status.

  • To check the log, go back to SM35 and click overview.  Select your session and click on Log from the toolbar.

You will see the results from your successful batch input:

For more details, see this link.

www-bcf.usc.edu/~anthonyb/itp321/BDC/BDC.doc‎