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

Regarding mandatory fields in idoc segment

Former Member
0 Likes
763

Hi All,

I have extended a standard idoc and add one new segment with 20 fields.I need to make 10 fields mandattory out of 20 fields.If these 10 fields doesn't fill then i need to fill status message (error message ) in idoc.I found from several post in sdn that we can make hole segment mandatory but i need to make only some of fields mandatory in my segment.

Please let me know that how to achieve that.

Regards,

Mohit

2 REPLIES 2
Read only

Former Member
0 Likes
545

Hi,

Why not u add two segments with the first one containing mandatory fields and the later with non mandatory fields..?

Regards,

Archna

Read only

Former Member
0 Likes
545

well, you can make a segment mandatory but not a specific field as mandatory.

Alternatively, you can do the same check inside the code (If it is inbound do it in the FM, if it is outbound do it in the program). Else check for exists if any and while filling the data to the fields, you can check the condition and throw message accordingly.