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: 

Parameters with no display

Former Member
0 Kudos

Hi,

I have designed a report for all contracts..

Now the client wants to schedule this report.

When we schedule this report it should send mail to the person who created the contract when its going to expire.

So i want a field in the screen which should not be displayed on screen but i can pass value to the variant when i create it.

So can i have a parameter field with no display and in the variant pass a value to this paramater.

And will schedule this report with this variant.

11 REPLIES 11

varma_narayana
Active Contributor
0 Kudos

Hi Swathi..

We can have it .

PARAMETERS: P_MATNR LIKE MARA-MATNR NO-DISPLAY.

This will work for u

reward if Helpful

0 Kudos

Hi,

You can use

<b>

PARAMETERS: par type string NO-DISPLAY.</b>

Regards,

Sesh

paruchuri_nagesh
Active Contributor
0 Kudos

hi

use no-display addition with parameters

parameters:p_matnr like mara-matnr

reward if u fin useful

regards

Nagesh.Paruchuri

Former Member
0 Kudos

Hi,

Declare the parameter (with display enable) and when u execute,

Enter the values that shud be passed to the paramter thru variant

Go to Menu - GOTO->Variants -> Save as Variants

U will find a list of screen fields

For the field to be hidden

Check on the check box for hidden fields..

and save with a variant name.

Message was edited by:

Geetha Sravanthi

Former Member
0 Kudos

Hi Swathi,

Use below code.

parameters: p_num type i default 123 no-display.

parameters: p_num1 type i.

start-of-selection.

p_num = p_num1.

write:/ 'PNUM is', p_num.

Former Member
0 Kudos

Hi,

I have created a parameter p_job type string no-display.

and executed the program.

Now i want to pass a value to it in the variant .

Is this possible?If so how.

0 Kudos

start-of-selection.

case sy-slset.

when 'VAR1'.

p_job = 'value1'.

when 'VAR2'.

p_job = 'value2'.

when others.

p_job = 'value3'.

endcase.

Depending on variant u can pass value to the field.

This is because u cannot see this parameter on selection screen as u r using no-display and therefore cannot save the value in variant using selection screen. so write code this way.

Regards

Vasu

former_member194152
Contributor

hi swathi,

try this code for selection screen designing and in event at selection-screen output pass the value of user name to which you want to display those parameter and for other user these field will not display......

tables : mara,aufm,somlreci1.

SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS: p_bukrs LIKE aufk-bukrs OBLIGATORY.

SELECT-OPTIONS: s_matkl FOR mara-matkl. "Mat Group

SELECT-OPTIONS : s_werks FOR aufm-werks OBLIGATORY NO INTERVALS.

PARAMETERS: p_werks LIKE aufm-werks MODIF ID ab,

p_budat LIKE aufm-budat.

SELECTION-SCREEN: END OF BLOCK b1.

SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.

SELECT-OPTIONS : s_email FOR somlreci1-receiver MODIF ID ee.

SELECTION-SCREEN: END OF BLOCK b2.

AT SELECTION-SCREEN OUTPUT.

IF sy-uname NE '<username>'.

LOOP AT SCREEN.

IF screen-group1 = 'EE' OR screen-group1 = 'AB'.

screen-active = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

Regards

Gagan

Former Member
0 Kudos

hi,

use NO-DISPLAY keyword with parameter as

PARAMETERS: p_ebeln like ekpo-ebeln NO-DISPLAY.

if useful reward some points.

with regards,

Suresh Aluri.

Former Member
0 Kudos

Hi

Please check in the se16 and se 11

Former Member
0 Kudos

This message was moderated.