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: 

Submit:

Former Member
0 Kudos
166

Hi,

I need to call a program from a exisiting program. I need to pass a value to a selection screen of the second program. But the values are not getting passed to the second program . Please correct the coding below.

ranges: lv_docu for edidc-docnum.

DATA: SELTAB TYPE TABLE OF RSPARAMS,

SELTAB_WA LIKE LINE OF SELTAB.

MOVE: 'DOCNUM-LOW' TO SELTAB_WA-SELNAME,

'S' TO SELTAB_WA-KIND, " SELECT-OPTION

'I' TO SELTAB_WA-SIGN,

'EQ' TO SELTAB_WA-OPTION,

'0000000000033076' TO SELTAB_WA-LOW,

'' TO SELTAB_WA-HIGH.

APPEND SELTAB_WA TO SELTAB.

*submit RBDAPP01 USING SELECTION-SET 'DEFAULT'

  • WITH SELECTION-TABLE SELTAB .

*

submit RBDAPP01 via selection-screen

WITH docnum EQ '0000000000033076'.

write:/ 'test'.

regards

Suresh

5 REPLIES 5

Former Member

Former Member
0 Kudos
85

try this ....

submit RBDAPP01 via selection-screen

WITH DOCNUM-LOW EQ '0000000000033076'.

or otherwise send this with VARIANT parameter of submit.

reward helpful answers...

sai ramesh

Former Member
0 Kudos
85

your report is working properly... the values which you are passing thru the first report are passed to the other report... check the output once....

Regards,

Pavan P

Former Member
0 Kudos
85

Hi Suresh

Just Try the following code.....

It is working.....

DATA: SELTAB TYPE TABLE OF RSPARAMS,

SELTAB_WA LIKE LINE OF SELTAB.

MOVE: 'DOCNUM' TO SELTAB_WA-SELNAME,

'S' TO SELTAB_WA-KIND, " SELECT-OPTION

'I' TO SELTAB_WA-SIGN,

'EQ' TO SELTAB_WA-OPTION,

'0000000000033076' TO SELTAB_WA-LOW,

'' TO SELTAB_WA-HIGH.

APPEND SELTAB_WA TO SELTAB.

SUBMIT RBDAPP01 VIA SELECTION-SCREEN

WITH selection-table seltab.

Here the values are passed to the submit program.

Suresh......

Former Member
0 Kudos
85

by giving the values as following it will give the output. once check.

DATA: SELTAB TYPE TABLE OF RSPARAMS,

SELTAB_WA LIKE LINE OF SELTAB.

MOVE:

'DOCNUM-LOW' TO SELTAB_WA-SELNAME,

'S' TO SELTAB_WA-KIND, " SELECT-OPTION

'I' TO SELTAB_WA-SIGN,

'EQ' TO SELTAB_WA-OPTION,

'0000000000033076' TO SELTAB_WA-LOW.

APPEND SELTAB_WA TO SELTAB.

*submit RBDAPP01 USING SELECTION-SET 'DEFAULT'

  • WITH SELECTION-TABLE SELTAB .

*

submit RBDAPP01 via selection-screen

WITH docnum EQ '0000000000033076'.

write:/ 'test'.

SUBMIT YH623_TEST10 and return.