‎2006 Dec 26 4:00 AM
Hi
i need to display default values with zeros.
o_kunnr FOR vbak-kunnr OBLIGATORY NO INTERVALS DEFAULT '000095'.
with the above statement i am able to get only 95. i want like 000095 in selection screen.
how to do that
‎2006 Dec 26 4:04 AM
Hi,
Eventhough it is displayed as 95..Internally it will be stored as 000095..
Thanks,
Naren
‎2006 Dec 26 4:13 AM
Hi Vahi,
In the selection scrren the conversion exit is executed by default , so even if it is 95 , it will serve your purpose.
I tried to modify the value at at selection screen output , but even though the value is 000095 , it is displayed as 95.
Regards
Arun
‎2006 Dec 26 4:14 AM
Before displaying the field to the screen use the Function Module CONVERSION_EXIT_ALPHA_INPUT in the program to make this conversion.
Give the Input and output as the same screen field variable .
Hope this helps.
Anish Thomas
‎2006 Dec 26 4:15 AM
Hi,
If you want to still display the instead of VBAK-KUNNR use another data type..
Check this example..
DATA: v_char(10).
SELECT-OPTIONS: so_kunnr FOR v_char NO INTERVALS.
INITIALIZATION.
so_kunnr-sign = 'I'.
so_kunnr-option = 'EQ'.
so_kunnr-low = '000095'.
APPEND so_kunnr.
Thanks
Naren
‎2006 Dec 26 4:18 AM
Hi vahi,
Use below FM in at selection-screen output event.
CONVERSION_EXIT_ALPHA_INPUT.
Pls. reward points for useful
‎2006 Dec 27 5:40 AM
HI
FOLLOW THIS TWO EXAMPLE.....
1)
TABLES:VBAK.
DATA: SCHAR(10).
DATA: V_KUNNR TYPE VBAK-KUNNR.
SELECT-OPTIONS:O_KUNNR FOR SCHAR OBLIGATORY NO INTERVALS DEFAULT '000095'.
V_KUNNR = O_KUNNR.
WRITE:/ V_KUNNR.
2)
DATA: v_char(10).
SELECT-OPTIONS: so_kunnr FOR v_char NO INTERVALS.
INITIALIZATION.
so_kunnr-sign = 'I'.
so_kunnr-option = 'EQ'.
so_kunnr-low = '000095'.
APPEND so_kunnr.
I THINK THIS THE HELFULL ANSWER .
THANKS
REGARD
DEEPAK