‎2007 May 28 10:24 AM
Hi All,
I've a report selection screen which has 3 fields from the report category: PNPPERNR, PNPSTAT1, PNPBTRTL. My logical database is PNPCE.
How can I set the default value to the field PNPSTAT1? Means when I first display the selection screen, the value for this field will automatically display '3' in it.
Hope someone can help me on this.
Thanks.
‎2007 May 28 10:43 AM
Hi All,
Thanks for reply. But I think I should declare my question clearer.
Actually it's not a parameter.
My problem is when using the logical database, if you define a TABLES: PERNR, then you can see the SAP standard report selection screen. So my selection screen has 3 standard fields which are PNPPERNR, PNPSTAT1, and PNPBTRTL.
I need to set the default value '3' to field PNPSTAT1.
Thanks.
‎2007 May 28 10:25 AM
in the initialization event
(or)
in the parameters statement u can have an Extension for default, it is 'VALUE'.
Hope this will solve ur problem..
<b><u>Dont forget to reward all the useful replies</u></b>
Sudheer
‎2007 May 28 10:27 AM
hi Sam,
Check out the below example
Parameter : P_param like mara-matnr default '00000000010'.Regards,
Santosh
‎2007 May 28 10:27 AM
Hi,
We can set the default values in the initialization event.
Reward points if it is helpful
regards,
Sangeetha.a
‎2007 May 28 10:28 AM
‎2007 May 28 10:43 AM
Hi All,
Thanks for reply. But I think I should declare my question clearer.
Actually it's not a parameter.
My problem is when using the logical database, if you define a TABLES: PERNR, then you can see the SAP standard report selection screen. So my selection screen has 3 standard fields which are PNPPERNR, PNPSTAT1, and PNPBTRTL.
I need to set the default value '3' to field PNPSTAT1.
Thanks.
‎2007 May 28 10:46 AM
‎2007 May 28 10:48 AM
You can use the intialisation event.
before start-of-selection and after selection screen declaration.
write
Initialization.
PNPSTAT1 = '3'.Regards
Gopi
‎2007 May 28 10:54 AM
Hi
Just as a guy said you, u can use the INITIALIZATION event:
PNPSTAT1(3) = 'IEQ'.
PNPSTAT1-LOW = '3'.
APPEND PNPSTAT1.
Max
‎2007 May 28 10:56 AM
Yes, I've tried to define in INITIALIZATION event.
INITIALIZATION.
PNPSTAT1 = '3'.
and
INITIALIZATION.
PNPSTAT1-LOW = '3'.
Both methods also not work.
‎2007 May 28 10:57 AM
Hi Gopi,
Did you mean I've to declare twice? One before START-OF-SELECTION and one after selection screen declaration.
‎2007 May 28 11:00 AM
No i dint mean it.
Just declare it after ur selection screen declaration.
Sorry for confusing
Regards
Gopi
‎2007 May 28 11:05 AM
Hi
Excuse me I forgot a piece of code, this the right code and it works fine for me:
PNPSTAT1(3) = 'IEQ'.
PNPSTAT1-LOW = '3'.
APPEND PNPSTAT1.
Max
‎2007 May 28 1:11 PM
‎2007 May 28 11:28 AM
You can use 'default' clause but u can also use Variants. As once u have created the variant u need not to enter those values again and again. Selecting a particular saved variant will input the same vales as u want.
Cheers, Harsha
‎2007 May 28 11:33 AM
hi irene,
if PNPSTAT1 is a parameter then writewhile declaring as
parameters: PNPSTAT1 like xxxx-yyyy default 3.
if helpful reward some points.
with regards,
suresh babu aluri.