06-15-2009 4:35 PM
Hi All
My problem is on OUTBOND SIDE.....
i am creating custom outbound idoc with Z* Program...
During creating of idoc i use to pick data from different table...
i would like to falied the idoc in error with error message if data is initial in a field in segment...
ex
Segment : ztest_h
field : soldto
field: add
field :....
field:.....
segment : ztest_i
field : po_num
field: qty
field :....
field:.....
.....
for example...
if no data in soldto & po_num ....fields... i would like to add a status record in outbound with status
07 with error message
Missing data in soldto field in segment... ztest_h
Missing data in po_num field in segment...ztest_i
Question is...
how to pass the status records while creating in O/B Idoc.....
Thanks
RR
06-15-2009 11:11 PM
we need to push data into EDIDS strucutre with appropriate meesage type ;E; and message number..IDOC will be displayed in error..
regards
06-17-2009 4:11 PM
06-17-2009 4:16 PM
hi ,
it is not possible the status messages are predefined ..
for syntax error status-26 for success 53 and for all types error messages are created by SAP.
and you can create own messages type after 71-99..
by going to t-code wedi and check the messages configuration tab and created own messages..
Prabhudas
06-17-2009 8:14 PM
i got you point ... i am aware of that...
My question IS......how can we pass status records error Message during outbond interface..
say for example
i created a custome error message say status 81 ..which is error...
how can i pass status records... while creating outbound idoc...
RR
06-18-2009 3:14 PM
I resolved my issue ...
answer to my question is ... it is possible.... i written code to populate error idoc status in outbound side..if any data missing is segments fields...
RR
08-12-2009 3:05 PM
Hi Ramesh,
Would you mind sharing your solution with us, as we have similar requirement? Further question is this: can we assume that the IDOC will not be sent to PI in this case, giving time to amend the missing data before sending out?
thx!