11-25-2008 5:29 AM
Hi,
I have created a Z-report which is displaying the data according to the selection screen,but while going to click on 1 pushbutton,it should call z-transaction.
My problem is how i will pass the selected data to my screen.suppose i have selected 1 material no.,i want to pass the material no. to my matnr field in my screen(which is already present in my screen)
11-25-2008 5:44 AM
Hi Priya,
you can use IMPORT EXPORT to pass values from one program to another or SET PARAMETER and GET PARAMETERS
For further info please go through the KEY word documentaion.
Please note If you are using screen the screen field name and Program variable name should be same then the data transfer takes place automatically.
Regards
Ramchander Rao.K
11-25-2008 5:35 AM
Hi,
The input value is passed to the z-program using 'WITH' statement as shown in below sample statement
submit ZXXX and return
with begda = p_begda
with endda = p_endda
Hope it helps u.
Regards,
K.Tharani.
11-25-2008 5:38 AM
my program is module-pool program. can i use the submit statement?
11-25-2008 5:40 AM
11-25-2008 5:44 AM
Hi Priya,
you can use IMPORT EXPORT to pass values from one program to another or SET PARAMETER and GET PARAMETERS
For further info please go through the KEY word documentaion.
Please note If you are using screen the screen field name and Program variable name should be same then the data transfer takes place automatically.
Regards
Ramchander Rao.K
11-25-2008 5:45 AM
Hi,
USe submit statement Refer below code
SUBMIT zk_ra_enhancement "TO SAP-SPOOL
"IMMEDIATELY 'X'
"WITHOUT SPOOL DYNPRO
USING SELECTION-SCREEN 1000
WITH cn_pspnr IN r_wbs
WITH r_budat BETWEEN '00000000' AND l_cdate
AND RETURN.
Regards,
Prashant
11-25-2008 5:54 AM
HI.
Create SET PF-STATUS 'STATUS'.like as follows.
1 .double click on 'STATUS1' create pushbutton by appilcation tool bar.
2 .In fuction attributs ,In fuction code give your t-code.
3.In Fucntion type give T.
Eg:
module STATUS_1001 output.
SET PF-STATUS 'STATUS1'.
SET TITLEBAR 'TITLE1'.
endmodule. " STATUS_1001 OUTPU
It will helpfull u.
Regards.
Jay
11-25-2008 5:55 AM
HI.
Create SET PF-STATUS 'STATUS'.like as follows.
1 .double click on 'STATUS1' create pushbutton by appilcation tool bar.
2 .In fuction attributs ,In fuction code give your t-code.
3.In Fucntion type give T.
Eg:
module STATUS_1001 output.
SET PF-STATUS 'STATUS1'.
SET TITLEBAR 'TITLE1'.
endmodule. " STATUS_1001 OUTPU
It will helpfull u.
Regards.
Jay