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

Calling an standard program

Former Member
0 Likes
661

Hi all,

I am coding an Z Program and in this Zprogram i have to call an Standard Program(RFFOUS_T) and after giving the Necessary input Manually in the first selection screen (1000)of the Standard program i have to return back to my Z program

How can i do this

Regards

Ajya

4 REPLIES 4
Read only

Former Member
0 Likes
548

if you only want to use the selstion screen of the standard report.. then why dont you copy that selection screen in your Z report....

Read only

former_member386202
Active Contributor
0 Likes
548

Hi,

Yes u can do that using submit statement, Refer below code

*--Submit report zk_ra_enhancement

SUBMIT zk_ra_enhancement "TO SAP-SPOOL

"IMMEDIATELY 'X'

"WITHOUT SPOOL DYNPRO

USING SELECTION-SCREEN 1000

WITH cn_pspnr CP st_wbs-low

WITH koagr = c_cost_ele_grp

WITH r_budat BETWEEN g_first_date_in_period AND g_last_date_in_period

AND RETURN.

Regards,

Prashant

Read only

Former Member
0 Likes
548

SUBMIT [program_name] AND RETURN.

reward if helpfull.

Read only

Former Member
0 Likes
548

Hi Ajay,

You can use addition WITH SELECTION-TABLE rspar to pass the selection screen parameters.

SUBMIT report1 WITH SELECTION-TABLE rspar_tab.

Here table rspar_tab contains values for Selection Screen.

Also you can pass value to selection screen field dirsctly

SUBMIT report1

WITH sel_screed_field1 BETWEEN 'H' AND 'K'

WITH sel_screed_field2 IN range_tab.

If Found Help Full Do Reward.

Regards.

Eshwar.