Skip to Content
0
Former Member
Jun 18, 2010 at 11:09 AM

Trigger Idoc when Batch is created or changed

505 Views

Hello,

We have to transfer Batch ID,Status and Batch Characteristics through IDoc to PI when Batch is created or updated. This can be possible by 3 scenarios.

When Batch is created or updated manually through Tcode MSC1N.

When Batch is created or updated at the time of Goods Receipt.( Tcode MIGO)

When Batch is created or updated at process order creation.(After Release of Process order) Tcode COR1.

For first 2 scenarios we have found user exit 'EXIT_SAPLCLFM_002' from where we can fill the required Idoc data and trigger IDoc to PI system.

Also for third scenario we have found user exit 'EXIT_SAPLCOBT_001' where we can get Batch Data but not the characteristics data that is created or updated.

In both the above cases User Exit is fired before Commit to database statement. Therefore my query is whether we can trigger IDoc through Z function modules in these user exits in update mode?

Can you provide any input on this situation or can you suggest any alternative method or exits to achieve this functionality?