‎2008 Jan 23 10:32 AM
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
‎2008 Jan 23 10:42 AM
‎2008 Jan 23 10:42 AM
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...