cancel
Showing results for 
Search instead for 
Did you mean: 

Code to Submit RIMODGEN in the Background

former_member182295
Participant
0 Kudos

Does anyone know how to submit RIMODGEN in the background? Here's a small clip of my code. I don't think the problem is with my parameters. The program executes but the integration model is not created.

CLEAR gt_params.

PERFORM load_params USING 'I_INCR' 'P' 'I' 'EQ' 'X'. "Dark Mode

PERFORM load_params USING 'I_MODID' 'P' 'I' 'EQ' p_model.

PERFORM load_params USING 'I_LOGSYS' 'P' 'I' 'EQ' p_lsys.

PERFORM load_params USING 'I_APPL' 'P' 'I' 'EQ' 'MATERIALS'.

PERFORM load_params USING 'I_MATINC' 'P' 'I' 'EQ' 'X'.

LOOP AT gt_mara INTO gs_mara.

PERFORM load_params USING 'MA_MATNR' 'S' 'I' 'EQ' gs_mara-matnr.

ENDLOOP.

SUBMIT rimodgen

WITH SELECTION-TABLE gt_params

AND RETURN.

Thanks in advance for any help someone can provide.

Mike

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Mike - the submit only handles the selection screen. On the next screen there is a button to generate the IM. I recommend creating a tempoprary BDC program dynamically in your program then generating the code and executing or submitting job OR using RSBDCSUB to submit RIMODGEN.

Andy

aparna_ranganathan
Active Contributor
0 Kudos

Sorry Mike. Please ignore my previous post . I did not know what "submit" means

Thanks

Saradha

aparna_ranganathan
Active Contributor
0 Kudos

Could you please elaborate on your requirement. In general we use SM36 and SM37 for IM creation and scheduling. For IM activation you have to use program RIMODAC2 and create and schedule job using SM36 and SM37

Thanks

Aparna

Edited by: Saradha Ramesh on Jun 12, 2009 6:15 PM