How to set a segment field mandatory for outbound Idoc?

Question: Hi Idoc gurus,
Does anyone know ow to set a specific field of a segment as mandatory for outbound Idoc?
I know the segment itself can be flagged as mandatory. But even so some of its fields can be left empty.
So what i need to do is generate an outbound Idoc that will receive an error status if one specific field of a mandatory segment is left empty.
Thanks if u can help.
SG5.

Answer:
Hello,

why don't you put in transaction that field is mandatory?

If you are doing it only on IDOC level, how you will ensure filling particular field with data?

Gordan

Answer:
Hi
Thanks for replying.
Because the field I need to populate doesn't come from screen data, and also I don't want the transaction to be blocked or aborted if the data is missing, but I just want the idoc to end with an error status so that I can reprocess it later.
Thanks if can help further

sg5.

Answer:
Use an user-exit, if you find an interesting one ...

- Search the associated MF using WE41/WE42 : MF IDOC_OUTPUT_IDOC (?) / then SE37/SE38)
- Search on OSS ?

Best Regards.
JLG

Answer:
Hello,

that I would create new mandatory segment with only that field.
If filed is empty IDOC will end in error.

Copy existing segment to new, delete unnecessary fields, and fill required field in customer exit.

HTH

Gordan
Copyright ?2007 - 2008 www.jt77.com