cancel
Showing results for 
Search instead for 
Did you mean: 

Change IDoc control parameters dynamically based on certain conditions

riyaj309
Discoverer
0 Kudos
163

Hello Team,

Need help in one scenario can we have two inbound parameters at partner type level at WE20 T-Code for same message type. Of one partner profile.

For one - for single record

Message type - MATAMAS

MESSAGE Variant- MA1

IDOC - Send Immideatly

For Multiple- For Multiple record

Message Type - MATMAS

MESSAGE Varient - MA2

IDOC -. Collect IDOC

Then my question is how we can control the IDOC Control parameters dynamically based on certain conditions.

Regards,

Riyaj

moshenaveh
Community Manager
Community Manager

Welcome to the SAP Community! Thank you for visiting us to get answers to your questions.

Since you're asking a question here for the first time, I'd like to offer some friendly advice on how to get the most out of your community membership and experience.

First, please see https://community.sap.com/resources/questions-and-answers, as this resource page provides tips for preparing questions that draw responses from our members. Secondly, feel free to take our Q&A tutorial at https://developers.sap.com/tutorials/community-qa.html as well, as that will help you when submitting questions to the community.

Finally, I recommend that you include a profile picture. By personalizing your profile, you encourage readers to respond: https://developers.sap.com/tutorials/community-profile.html.

I hope you find this advice useful, and we're happy to have you as part of SAP Community!

Sandra_Rossi
Active Contributor

Did you try to do it in WE20? You'd see that it's possible and you wouldn't need to ask.

For the second question, it depends on your exact scenario which is generating the IDoc. Although I think it's best to code it in a dedicated user exit where you can use the specific context of the concerned business object, for your information there's a very general user exit to adjust the control record of any type of IDoc: EXIT_SAPLEDI1_001 (you may look for information about it in the Web)

Accepted Solutions (1)

Accepted Solutions (1)

DominikTylczyn
Active Contributor

Hello riyaj309

You can use the BADI_MATMAS_ALE_CR enhancement to update both MATMAS IDoc control record and data segments. The BAdI is called when an IDoc is fully built, just before distribution.

Best regards

Dominik Tylczynski

Answers (0)