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: 

Delete a segment E1WPU02 from WPUUMS incoming idoc or skip a line item

former_member125661
Contributor
0 Kudos

Hi,

We have an inbound WPUUMS (message type) interface with hundreds of lines . But very frequently due to a bad business process, we get dummy materials on the E1WPU02-ARTNR (Material), which are identified in our system easily because they do not exit in our system. (We can do a quick lookup into MARA to check if the Article/Material exists). Now, instead of making the entire idoc fail, can we just skip this entry/article and still post ?

Ideally, we would like to delete the E1WPU02 segment from the incoming WPUUMS idocs in some user exit. What user exit is recommended for this ?

And how do we avoid failing this entire 800 line idoc and somebody scan the entire idoc to fix it everytime this happens..

I know internally somewhere they transfter the idoc contents to I_MSEG and this is sent to the goods movement BAPI which does the 251 or 252 movement type. We are somehow looking to avoid failure of this idoc to status 51 inspite of a bad material in a line.

Thanks,

S

2 REPLIES 2

former_member248300
Participant
0 Kudos

Hi Shareen,

You can create a wrapper inbound function module and validate the material and keep only valid material segments (E1WPU02) in IDOC_DATA and delete dummy material segments. Then IDoc will never fail because of dummy materials.

Thanks,

Shreekant

Former Member
0 Kudos

Hi,

As you mentioned its an inbound IDOC, you can play around with the data in the function module associated with the process code. Check in the function module associated with the process code to see if any enhancements exit. If not, you can copy the function module to a custom function module and change the association in the partner profile settings. last option you can do an implicit enhancement in the standard function module.