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

Screen Input Format

Former Member
0 Likes
453

Hi,

Can anyone please tell me about this scenario how to do it.

Suppose my structure have 10 Character(char) field on the screen ok and i want the user to put data in specific format on the screen like

first five digits and last five as char

e.g : 12345-abcde

and - should be shown in between it.

Thanks,

Regards,

Usman Malik

2 REPLIES 2
Read only

Former Member
0 Likes
424

Anyone????

Read only

Former Member
0 Likes
424

Hi,,

in the flow logic write like this where as w_disp is the box where u enter with length 11

PROCESS AFTER INPUT.

CHAIN.

FIELD:

w_box "displaybox

MODULE user_command_0200.

ENDCHAIN.

in the module write.

MODULE user_command_0200.

data:

w_no(5) type c,

w_char(5) type c.

w_no = w_box+0(5).

w_char = w_box+5(5).

if w_no ca sy-abcde.

message e001.

endif.

if w_char ca '0123456789'.

message e002.

endif.

concatenate w_no, '-', w_char into w_box.

endmodule.

plzz reward if it is useful...

plzz dont forget to reward...