When you create a field in ABAP whether it’s using SELECT-OPTIONS or PARAMETERS and want to make the field to be mandatory, then you can use the keywords WITH OBLIGATORY. Here’s the ABAP sample code to implement this keyword. Z_REPORT_MANDATORY_FIELD. tables: data: SELECT-OPTIONS: START-OF-SELECTION. select * into table t_kna1 from kna1 where LOOP AT t_kna1. WRITE :/ t_kna1-name1, t_kna1-land1. ENDLOOP. When you run the program and execute it without selecting the KUNNR field then it will prompt you the message to “Fill in all required entry fields”
kna1.
t_kna1 type TABLE OF kna1 WITH HEADER LINE.
p_kunnr for kna1-kunnr OBLIGATORY.
kunnr in p_kunnr.
Confused? Feel free to ask
Your feedback is always appreciated.I will try to reply Ur queries as soon as time allows.
Regards,
SAPhelpdesk
0 comments:
Post a Comment