2007 Mar 09 12:37 PM
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
2007 Mar 09 12:42 PM
hi
good
go through this link
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba51a35c111d1829f0000e829fbfe/content.htm
thanks
mrutyun^
2007 Mar 09 12:45 PM
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
2007 Mar 09 12:46 PM
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
2007 Mar 09 12:53 PM
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......
2007 Mar 09 3:59 PM
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.