‎2007 May 14 10:43 AM
In the subscreen i have add one field estimated cost(QMEL-ZZECOST).For that one i have created one append structrure in QMEL and add ZZCOST field.
Now iam creating subscreen in QQMA0008 in the screen exit SAPLXQQM 0100.
I have created in the subscreen in this exit and placed the field QMEL-ZZCOST.
This ZZCOST field is CURR field.What my problem how to check the validations.
1) when i enter the input non numeric values should issue a error message to input only numericals in the field.
2)input numerical value should not issue an error message.
please suggest logic and where i have write the logic?Help me .it is very urgent.
Thanks,
sairam
‎2007 May 14 10:55 AM
Hi,
Create a PROCESS AFTER INPUT module inflow logic of the screen to check the QMEL-ZZCOST FIELD as below
FIELD QMEL-ZZCOST module_check_ZZCOST.
AND IN THE MODULE VALIDATE THE FIELD.
USE STRING OPERATION TO VALIDATE.
IF QMEL-ZZCOST CONTAINS ONLY NUMERIC VALUES.
DON'T DO ANY THING
ELSE.
MESSAGE 'INPUT ONLY NUMERIC VALUES' TYPE 'W'.
ENDIF.
thanks and Regards,
Pavan
‎2007 May 14 10:51 AM
Hi,
Try this logic in PAI of subscreen.
if fld_name co '0123456789.'.
"process commands... no error
else.
message e001. "E-error
endif.Jogdand M B
‎2007 May 14 11:37 AM
‎2007 May 14 10:55 AM
Hi,
Create a PROCESS AFTER INPUT module inflow logic of the screen to check the QMEL-ZZCOST FIELD as below
FIELD QMEL-ZZCOST module_check_ZZCOST.
AND IN THE MODULE VALIDATE THE FIELD.
USE STRING OPERATION TO VALIDATE.
IF QMEL-ZZCOST CONTAINS ONLY NUMERIC VALUES.
DON'T DO ANY THING
ELSE.
MESSAGE 'INPUT ONLY NUMERIC VALUES' TYPE 'W'.
ENDIF.
thanks and Regards,
Pavan
‎2007 May 14 11:15 AM
Hi,
Follow the steps to validate.
1. After entering the input values each character check numeric or not in any one character non numeric then issue a error message.
2. In input parameter type as I define. then it will accepts only numerics
after that you can convert as you want using with convertion eits.
Regards
Ganesh