cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete parameter but can process in work area

jandrivay
Participant
0 Kudos
158

Helo,
Im a beginner on SAP , i wanna ask how to delete this parameter and keep process data.

should me to create a new variabel or other ??

SELECTION-SCREEN BEGIN OF BLOCK rpt WITH FRAME TITLE TEXT-005. "
PARAMETERS: dsum AS CHECKBOX DEFAULT 'X',
ddetail AS CHECKBOX.

PARAMETERS: dvaltype RADIOBUTTON GROUP rpt DEFAULT 'X' USER-COMMAND ucomm.
PARAMETERS: dplant RADIOBUTTON GROUP rpt.

SELECTION-SCREEN BEGIN OF BLOCK plt WITH FRAME TITLE TEXT-006.
SELECT-OPTIONS gwerks FOR zac_cst_move-werks MODIF ID plt.
SELECTION-SCREEN END OF BLOCK plt.
PARAMETERS: dplval RADIOBUTTON GROUP rpt.

SELECTION-SCREEN BEGIN OF BLOCK vlt WITH FRAME TITLE TEXT-007.
SELECT-OPTIONS vwerks FOR zac_cst_move-werks MODIF ID plv.
SELECT-OPTIONS vbwtar FOR zac_cst_move-bwtar MODIF ID plv.
SELECTION-SCREEN END OF BLOCK vlt.

ArthurParisius
Contributor
0 Kudos

It would be nice if you indicated which actual parameter you wanted to delete and also if you gave a clearer picture of what you actually want to achieve.

jandrivay
Participant
0 Kudos

Hi aparisius

Thanks for comment.

I mean, at parameter dvaltype , dplant, and dpval have a process data like this :

IF dvaltype = 'X'.
READ TABLE tcprice WITH KEY matnr = tmaster-matnr
budat = xbudat bwtar = tloc-werks.
ELSEIF dplant = 'X'.
READ TABLE tcprice WITH KEY matnr = tmaster-matnr
budat = xbudat werks = tloc-werks.
ELSEIF dplval = 'X'.
READ TABLE tcprice WITH KEY matnr = tmaster-matnr
budat = xbudat werks = tloc-werks bwtar = tloc-bwtar.

i need to remove this parameter but still can process that data, so what should i do ?
im a beginner

ArthurParisius
Contributor
0 Kudos

If your not using the values for them anywhere else and since you're doing the same thing in all 3 cases, you could just remove them completely.

former_member1716
Active Contributor
0 Kudos

Hello Hotman Jandri Vay Sianturi,

What i understand from your question is as below, Correct me if am wrong:

You don't want the parameters Options to be displayed in Selection screen at all? But still you want to use them in the code.

My question for you is if you dont want to display them how will you know which parameter is selected by the customer.

Also i see your Read statements are similar, in that case why do you need parameters at all?

Also help us understand on what condition your Read statement would differ and why do you need to delete the parameter?

In case you don't need the parameter just delete them out of declaration.

For hiding the selection screen parameter you need to use "NO DISPLAY" Keyword.

Be clear with your requirement to help you better!

Cheers!

Accepted Solutions (0)

Answers (0)