Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SUBMIT z_progm2 WITH SELECTION-TABLE rspar_tab AND RETURN.

Hi Experts,

I want to call a report program z_progm2 in my current program z_progm1. While calling I have to pass the selection-screen values on z_progm1 to z_progm2.

So I thought of using "WITH SELECTION-TABLE" option in SUBMIT as below

SUBMIT z_progm2 WITH SELECTION-TABLE rspar_tab AND RETURN.

But here the issue is rspar_tab-low which is of type RSPARAMS-low has only 45 characters and I have some values which are more then 60 charaters.

Is there any other way where we can pass values from z_progm1 to the called program z_progm2.

Thanks,

Shano

Edited by: Shano on Sep 23, 2008 9:55 PM

Tags:
Former Member
replied

You can try like:

SUBMIT z_progm2 
  WITH S_VBELN IN R_VBELN
  WITH S_POSNR IN R_POSNR
  AND RETURN.

Here S_VBELN is the selection field of the Z_PROGM2

and R_VBELN is the selection field of the Z_PROGM1.

In this option you need to pass all your selection-fields using the WITH option

Regards,

Naimesh Patel

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question