Application Development 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 statemnt-check

Former Member
0 Kudos

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.

3 REPLIES 3

gopi_narendra
Active Contributor
0 Kudos

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

0 Kudos

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+
The value of NEWMET has a value 'X' which should be changed to space.

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.

0 Kudos

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