Application Development and Automation 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: 
Read only

subscreen

Former Member
0 Likes
549

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
510

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

4 REPLIES 4
Read only

Former Member
0 Likes
510

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

Read only

0 Likes
510

Thanku.I assigned bonus points.

Thanks,

sairam

Read only

Former Member
0 Likes
511

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

Read only

Former Member
0 Likes
510

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