09-18-2007 9:20 AM
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.
09-18-2007 9:23 AM
Hi Swathi..
We can have it .
PARAMETERS: P_MATNR LIKE MARA-MATNR NO-DISPLAY.
This will work for u
reward if Helpful
09-18-2007 9:23 AM
Hi,
You can use
<b>
PARAMETERS: par type string NO-DISPLAY.</b>
Regards,
Sesh
09-18-2007 9:38 AM
hi
use no-display addition with parameters
parameters:p_matnr like mara-matnr
reward if u fin useful
regards
Nagesh.Paruchuri
09-18-2007 9:43 AM
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
09-18-2007 9:47 AM
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.
09-18-2007 10:04 AM
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.
09-18-2007 10:16 AM
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
09-18-2007 11:01 AM
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
09-18-2007 11:07 AM
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.
09-20-2007 8:33 AM
01-02-2016 9:55 AM