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.