Application Development and Automation 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: 
Read only

make a parameter invisible

Former Member
0 Likes
9,850

how to make a parameter invisible on a selection screen?

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
4,242

Some ways to process

- Use the [NO-DISPLAY|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=no-display&adv=false&sortby=cm_rnd_rankvalue] option of the PARAMETERS statement (deactivate)

- In the PBO ([AT SELECTION-SCREEN OUTPUT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=atSELECTION-SCREENOUTPUTLOOPATSCREEN&adv=false&sortby=cm_rnd_rankvalue]) hide (SCREEN-INVISIBLE = 1.) or deactivate the parameter (SCREEN-ACTIVE = 0.) in a [LOOP AT SCREEN|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=atSELECTION-SCREENOUTPUTLOOPATSCREEN&adv=false&sortby=cm_rnd_rankvalue] block.

- Create a [variant|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=reportvarianttransaction&adv=false&sortby=cm_rnd_rankvalue] which hides or protects the parameter and assign it to the transaction.

Deactivate parameter may only be filled by a calling program, invisible and input field will look like a password field.

Also make a [little search on sdn @sap.com|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=invisibleparameterselection-screen&adv=false&sortby=cm_rnd_rankvalue]

Regards

10 REPLIES 10
Read only

Former Member
0 Likes
4,242

hi

at-selection screen.

loop at screen.

if screen-name = <name of parameter>

screen-display = ' 0'.

modify screen.

endif.

endloop.

Aditya

Read only

Former Member
0 Likes
4,242

hi sia anjali

Use the Option NO-DISPLAY

eg parameters : var(10) type c NO-DISPLAY .

Regards

Deva

Read only

former_member386202
Active Contributor
0 Likes
4,242

Hi,

do like this

PARAMETERS: p1 TYPE c LENGTH 10 no-display.

Regards,

Prashant

Read only

Former Member
0 Likes
4,242

you can use NO-DISPLAY.

Read only

Former Member
0 Likes
4,242

Hi,

u write in the following way:

PARAMETERS name(20) TYPE c NO-DISPLAY .

Thanks & Regards

Ashu Singh.

Read only

bpawanchand
Active Contributor
0 Likes
4,242

Hi

PARAMETERS :
  p_temp1(20) TYPE c NO-DISPLAY,
  p_temp2(20) TYPE c .

Regards

Pavan

Read only

Former Member
0 Likes
4,242

Hi Anjali

If it is module pool program use

at-selection screen.

loop at screen.

if screen-name = 'parameter'

screen-display = ' 0'.

modify screen.

endif.

endloop.

if it is excutable program use

parameters : 'var' type 'data type' no-display

Thanks,

Krish

Read only

Former Member
0 Likes
4,242

As also said by others just make the addition NO-DISPLAY,

like:

PARAMETERS:
  char1 ,
  char2 no-display.

SELECT-OPTIONS:
  CARRID for SBOOK-CARRID,
  CONNID for SBOOK-CONNID NO-DISPLAY.

and if you want to do it on the SELECTION-SCREEN itself,

then for the PAI event AT SELECTION-SCREEN OUTPUT,

here write the logic like loop at screen, make screen group invisible and modify screen.

With luck,

Pritam.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
4,243

Some ways to process

- Use the [NO-DISPLAY|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=no-display&adv=false&sortby=cm_rnd_rankvalue] option of the PARAMETERS statement (deactivate)

- In the PBO ([AT SELECTION-SCREEN OUTPUT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=atSELECTION-SCREENOUTPUTLOOPATSCREEN&adv=false&sortby=cm_rnd_rankvalue]) hide (SCREEN-INVISIBLE = 1.) or deactivate the parameter (SCREEN-ACTIVE = 0.) in a [LOOP AT SCREEN|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=atSELECTION-SCREENOUTPUTLOOPATSCREEN&adv=false&sortby=cm_rnd_rankvalue] block.

- Create a [variant|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=reportvarianttransaction&adv=false&sortby=cm_rnd_rankvalue] which hides or protects the parameter and assign it to the transaction.

Deactivate parameter may only be filled by a calling program, invisible and input field will look like a password field.

Also make a [little search on sdn @sap.com|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=invisibleparameterselection-screen&adv=false&sortby=cm_rnd_rankvalue]

Regards

Read only

0 Likes
4,242

If you want to hide parameter from selection screen, use AT SELECTION-SCREEN OUTPUT event.

Code:

LOOP AT SCREEN.
IF screen-name = 'PARAMETER NAME'.
screen-invisible = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.

Regards

Viktor