Skip to Content
0
Former Member
Nov 30, 2006 at 09:43 AM

Regarding SUBMIT Statement

34 Views

Hi All,

I have a issue with SUBMIT statement.

My issue is as below:

I have a report say <b>REPORT1</b> .

In this right now i am capturing material information and storing in one new internal table <b>I_MAT</b>. which is having MATNR field in it.

Now from here i need to submit a new program say <b>REPORT2</b> which is having few selection-screen elements i need to fill them from here with SUBMIT statement.

Selection screen elements need to be filled:

<b>S_MATNR, P_WERKS, P_MAT, P_S, S_EMAIL.</b>

Now for this purpose i have declared another internal table as below:

<b>DATA: RSPAR LIKE RSPARAMS OCCURS 0 WITH HEADER LINE.</b>

Now i need to fill this internal table for above screen elements.

I have appended <b>P_WERKS, P_MAT, P_S</b> elements as below:

<b> RSPAR-SELNAME = 'P_WERKS'.

RSPAR-KIND = 'P'.

RSPAR-LOW = p_werks.

APPEND RSPAR.

RSPAR-SELNAME = 'P_MAT'.

RSPAR-KIND = 'P'.

RSPAR-LOW = C_X.

APPEND RSPAR.

RSPAR-SELNAME = 'P_S'.

RSPAR-KIND = 'P'.

RSPAR-LOW = ''.

APPEND RSPAR.</b>

Now i need to update <b>S_MATNR, S_EMAIL</b>.

<b>S_MATNR i need to fill with I_MAT internal table with values of I_MAT-MATNR. which can be multiple.

Here how i need to append the same.

S_EMAIL i need to fill in with values in S_EMAIL which can be multiple.

Here how i need to append the same.</b>

Then i can write submit statement as below:

<b> SUBMIT REPORT2 VIA SELECTION-SCREEN

WITH SELECTION-TABLE RSPAR

AND RETURN.</b>

Can anybody tell me how can i fill above two <b>[S_MATNR, S_EMAIL]</b> elements to pass all the data to <b>SUBMIT</b> statement.

Thanks in advance.

Thanks,

Deep.