Application Development 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: 

Reg: Outbound Error Populating in Custom Program

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

we need to push data into EDIDS strucutre with appropriate meesage type ;E; and message number..IDOC will be displayed in error..

regards

0 Kudos

how can we puch the data in EDIDS....

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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!