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: User Exit in IDOC_INPUT_ORDERS

Former Member
0 Kudos

Hi,

For Inbound Idocs for "orders05" I need one segment 'E1EDKA1 ZW' to be removed.I am using exit "EXIT_SAPLVEDA_001" and added the following code but still that segment gets populated..

IF segment-segnam EQ 'E1EDKA1'.

MOVE p_segment-sdata TO ls_e1edka1.

IF ls_e1edka1-parvw = 'ZW'.

DELETE p_dxvbadr WHERE parvw = 'ZW'.

ENDIF.

ENDIF.

Also I tried in exit "EXIT_SAPLVEDA_011" to delete the EDIDD entries but I know its too late to do it there..Still I am getting thissegment...

Can anyone please let me know what needs to be done or in which place the code needs to be in place..Am I using the wrong user exit??

How to delete this segment and where to place the code...

1 REPLY 1

ferry_lianto
Active Contributor
0 Kudos

Hi Prabu,

Please try this in EXIT_SAPLVEDA_001.


...

IF segment-segnam EQ 'E1EDKA1'.
  MOVE segment-sdata TO ls_e1edka1.

  IF ls_e1edka1-parvw = 'ZW'.
    DELETE dxvbadr WHERE parvw = 'ZW'.
  ENDIF.

ENDIF.

...

Regards,

Ferry Lianto