Application Development and Automation 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: 
Read only

Trigger Idoc when Batch is created or changed

0 Likes
2,240

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?

1 REPLY 1
Read only

Former Member
0 Likes
1,082

BATMAS / BATMAS03 - for Tcode MSC1N.

And I have only information that there is a SAP note is available on this.

865778 MIGO to post a goods receipt for a purchase order

Thanks.