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

Inbound IDOC Error handling

Former Member
0 Likes
606

Hi,

I am using message type PORDCR1 to create a purchase order. This is calling a BAPI_PO_CREATE1 to create the PO inside. Now I have coded some validation in user exit that is available in Pre processing. So when there is any any error i populate the table bapi_return.

Now what is happeing after executtion of user exit it continues the function module and find out if there are any more errors. After execution it shows all the errors.

My requirement is when ever i get an error in user - exit it should stop further processing and write that error in log.

Can anybody please suggest me how can we do this.

Thanks,

Neha.

Hi,

I am using message type PORDCR1 to create a purchase order. This is calling a BAPI_PO_CREATE1 to create the PO inside. Now I have coded some validation in user exit that is available in Pre processing. So when there is any any error i populate the table bapi_return.

Now what is happeing after executtion of user exit it continues the function module and find out if there are any more errors. After execution it shows all the errors.

My requirement is when ever i get an error in user - exit it should stop further processing and write that error in log.

Can anybody please suggest me how can we do this.

Thanks,

Neha.

2 REPLIES 2
Read only

Former Member
0 Likes
523

Think this as your last option:


1) create and attach ZBAPI_PO_CREATE1 in ALE Config
2) COPY your User Exit code at the start and it it gets through then only submit BAPI_PO_CREATE1

Read only

0 Likes
523

Ya this is the only last option. any other thought.