10-11-2007 4:53 AM
Hi ,
I'm calling a standard SAP program RM06ENP0 by using the following statement.
SUBMIT RM06ENP0 AND RETURN
WITH i_ebeln IN s_ebeln
WITH i_ekorg IN s_ekorg
WITH i_ekgrp IN s_ekgrp
WITH WQ_SIMUL EQ SPACE.
The std program RM06ENP0 also has a check box named 'Test Run' as a selection screen parameter which is checked by default because of which submit fails to work.
So how do we uncheck this check box within the submit statement.
I need to check whether the checkbox is checked. if it is checked i need to uncheck it.
Thanks.
10-11-2007 5:13 AM
If the name of the check box parameter is p_testrun pass the parameter in this way
SUBMIT RM06ENP0 AND RETURN
WITH i_ebeln IN s_ebeln
WITH i_ekorg IN s_ekorg
WITH i_ekgrp IN s_ekgrp
WITH WQ_SIMUL EQ SPACE.
WITH p_testrun = ' '. " give in here
Please do not open multiple threads
Regards
Gopi
10-11-2007 5:45 AM
Dear Gopi,
Let me show you the code snippet for slection screen in the standard program RM06ENP0.
+SELECT-OPTIONS: I_EBELN FOR EKKO-EBELN,
I_EKORG FOR EKKO-EKORG,
I_EKGRP FOR EKKO-EKGRP,
I_BSART FOR EKKO-BSART.
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(79) TEXT-030.
SELECTION-SCREEN END OF LINE.
parameters: updall type UPDATE_ALL as checkbox.
PARAMETERS: WQ_SIMUL LIKE RM06W-SIMUL.
DATA: NEWMET LIKE RM06W-SIMUL VALUE 'X'
. "später Parameter+I tried giving NEWMET = space in the submit stmt of my program, but it didn'twork out. pls tell me how we can do that.
10-11-2007 6:07 AM
Hi Abhishek, I saw the standard report.
WQ_SIMUL is the parameter for Test Run.
So what you wrote shoudl be correct. But you can not give NEWMET to the submit program as it is neither a select options nor a parameters of the selection screen.
If you want to change its value copy the whole reprot into a Zreport and give its default value as ' ' SPACE.
SUBMIT RM06ENP0 AND RETURN
WITH i_ebeln IN s_ebeln
WITH i_ekorg IN s_ekorg
WITH i_ekgrp IN s_ekgrp
WITH WQ_SIMUL EQ SPACE.
Regards
Gopi