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 Report

nikhil_chitre
Active Participant
0 Likes
510

Hi Friends,

I am submitting an report with the code as below...here I am passing selection screen variant.

SUBMIT zrkpep003 USING SELECTION-SET 'ZTEST'

AND RETURN.

this is working fine and getting the desired report.

however I need to pass the Selection screen values through Table. L_S_select which is of type rsprams.

coded as below...

SUBMIT zrkpep003 WITH SELECTION-TABLE l_s_select

AND RETURN.

This does not give any output....!!

Please suggest....!!!!

Regards,

Nikhil

3 REPLIES 3
Read only

Former Member
0 Likes
454

Hi,

The table l_s_select need to be populated with all the values that the selection screen of the called program should be executed with..

So that table needs to be populated like follows:

SELNAME : Parameter/Select-Option name

KIND : P for Paramater and S for select-option

SIGN, OPTION, LOW and HIGH just like we fill in case of Select-options and Parameters.

Hope it helps.

Regards,

Himanshu

Read only

0 Likes
454

yes himanshu the table is populated with data...!!!

Read only

Former Member
0 Likes
454

Hi Nikhil,

Refer Below Code:

SUBMIT called_prog_name
    WITH s_carrid IN s_carrid
    WITH s_connid IN s_connid
     VIA SELECTION-SCREEN
     AND RETURN.

Where s_carrid is also an Internal table,

take care that the Internal Table in Called Program is also of same type.

or Simply you can Use Export to Memory Id and Import from Memory Id.

write the below code in calling program.

EXPORT itab TO MEMORY ID 'FLD'.

and write the below code in called program.

IMPORT itab FROM MEMORY ID 'FLD'.

Regards,

Sunil.