Skip to Content
0
Former Member
Feb 18, 2009 at 05:37 AM

Delete Outbound Idoc Segment based on target system

262 Views

Hello Folks,

Problem:

I have extended the sub structure of an idoc for IT0002 with custom field,

E1P0002

Q1P0002

Z1P0002

Where Z1P0002 has custom fields.

When the destination system is 'ABCD' - system should allow the idoc

else

When destination is other than 'ABCD' - Z1P0002 segment should be deleted and idoc should be sent.

How can this be achieved, any sample code.