‎2011 Sep 14 6:57 AM
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
‎2011 Sep 14 7:42 AM
Hi,
Why not u add two segments with the first one containing mandatory fields and the later with non mandatory fields..?
Regards,
Archna
‎2011 Sep 14 8:08 AM
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.