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

SUBMIT Command

Former Member
0 Likes
869

Hi

I have an internal table with all my materials in it.

I want to submit program 'RBDSEMAT' (Transaction Code BD10) for all the materials in my internal table.

Can I use the SUBMIT command for all my materials in the internal table in One go ie. for all the materials in one shot.

or Do I need to go record by record after looping the internal table.

Thanks

6 REPLIES 6
Read only

Manohar2u
Active Contributor
0 Likes
762

You have use below option

SUBMIT .... .. WITH SELECTION-TABLE seltab

<b>Effect</b>

seltab is an internal table with the structure RSPARAMS.

This variant allows you to set the names and contents of the parameters and selection options dynamically at runtime.

You can use the function module RS_REFRESH_FROM_SELECTOPTIONS to read the contents of the parameters and selection options of the current program into an internal table seltab with the structure RSPARAMS. By using SUBMIT ... WITH SELECTION-TABLE seltab, you can then pass these values on directly.

Regds

Manohar

Read only

Former Member
0 Likes
762

Hi.

Thanks for your quick response.

Can I replace the default selction parameters of the selection-screen of the called program with this FM?

Read only

Former Member
0 Likes
762
Hi

  You can use something like below.

ranges: r_matnr FOR mara-matnr.

  r_matnr-sign = 'I'.
  r_matnr-option = 'EQ'.
  loop at itab.
    r_matnr-low = itab-matnr.
    append r_matnr.
  endloop.
  SUBMIT RRBDSEMAT
     WITH MATNR IN R_MATNR
     AND RETURN.

  
Kind Regards
Eswar
Read only

Manohar2u
Active Contributor
0 Likes
762
Read only

Former Member
0 Likes
762

hi,

You can use the following with SUBMIT command.

<b>... USING SELECTION-SCREEN scr</b>

Effect

When you execute the report, the system uses the selection screen number that you specify in the scr field. This must be a selection screen defined using the SELECT-OPTIONS, PARAMETERS and SELECTION-SCREEN statements.If you omit the addition, the system uses the standard selection screen 1000.

This addition allows you to start the same report in different situations, using a different selection screen each time.

Notes

The addition VIA SELECTION SCREEN determines whether the report is processed in the foreground or the background.

What happens if the required screen does not exist or is not a selection screen?

Screen 1000:

If you want to use the standard selection screen (... USING SELECTION-SCREEN 1000 or do not specify a ... USING SELECTION-SCREEN) addition, the system does not process a selection screen.

Other selection screens:

The system triggers a runtime error.

<b>... VIA SELECTION-SCREEN</b>

Effect

The selection screen is displayed. In this case, the selection screen is displayed again after the report list has been displayed. The values entered by the user remain displayed.

Regards,

Richa

Read only

Former Member
0 Likes
762

Hi

Parameter passing with SUBMIT can be done in many ways. 1. ... USING SELECTION-SET vari

2. ... WITH p op f SIGN s

3. ... WITH p BETWEEN f1 AND f2 SIGN s

4. ... WITH p NOT BETWEEN f1 AND f2 SIGN s

5. ... WITH p IN sel

6. ... WITH SELECTION-TABLE seltab

7. ... WITH FREE SELECTIONS texpr

As per your requirment, with selection-table seltab will solve the purpose. It allows to dynamically pass the names and contents of parameter and selection options to the target program. I found it in help you can check for more details. Hope this will solve the issue

Regards,

Richa