Automatic Trigger of Idoc Sending to PI on Material Master Create/Change

Hi All,
I would like to ask how to automatically trigger sending of idoc on material master create/change without using a standard transaction like BD10. I already tried using MASTER_IDOC_DISTRIBUTE in the material master change user exit. It does send the idoc but my problem is when an inbound idoc creates a material, it will then pass through the userexit and use MASTER_IDOC_DISTRIBUTE again.
Any suggestions? Or do you have a better solution for this? My requirement is when uer goes throgh MM01/MM02 an idoc will automatically be sent to PI.
Thanks.

First of all a quick comment to your present solution. If it works and your only problem is that you'd like to suppress triggering the IDoc creation when a material is created/updated via inbound IDoc then you might want to just fix that. There's many possible ways to approach this, it all depends how much you want to change and what your processes are (I sorted the listed ones in order of personal preference, though the list is not complete for sure):
<ul style="list-style:circle;">
<li>Export some flag to memory when processing an IDoc that you can import in your exit and thus recognize that you don't want to send an IDoc. Depending on how you are processing your inbound IDoc BAdI BADI_MATMAS_ALE_IN might work; you might find others if this is not applicable or sufficient. If you're working on ECC 6.0 you could also consider coding the export of the flag in an implicit enhancement spot in your function modules used for IDoc processing.</li>
<li>Evaluate in your existing coding the transaction code SY-TCODE; most likely you should see a clear difference between your IDoc processing and the other updates where you want to trigger the IDoc.</li>
<li>Most likely the IDoc processing triggers function module MATERIAL_MAINTAIN_DARK (e.g. MATERIAL_INPUT_MATMAS01 does); this function module uses a global variable FLAG_BAPI_CALL to indicate the non-dialog processing. So if you feel adventurous you could evaluate this flag in your coding.</li>
</ul>
Change pointer won't really do you any good if your functionality is already working without them apart from the trigger. Even if you write change pointers, you still have to implement the trigger functionality, so essentially back to square one...
In general another good option is often to use workflow events that are already triggered. I.e. in your case business object BUS1001006 almost does the trick. It has events for <em>ViewCreated</em> and <em>Created</em>, but unfortunately lacks events for material updates (and I didn't see any other appropriate object that has it and a quick trace while updating a material didn't fire any appropriate event).
Cheers, harald

Similar Messages

  • Automatic creation of  Warehouse No. data in the material master

    Hi all,
    I want the automatic creation of  Warehouse No. data in the material master record at the time of the first goods receipt is allowed.
    Similar to the way where we can do the same for Storage Location by clicking on Create SLoc. automatically in the plant parameters settings.
    can it be done..plz guide.
    Regards,
    Sandeep

    Hi Deepak ,
    Such facility is not available for Warehouse .
    Regards
    Ramesh Ch

  • IDOC Type for Tcode CC01 and CC02 (Create / Change Change Numbers)

    We are trying to integrate Change Master from a 3rd party system to SAP R/3 4.72.What is the IDOC Type for Tcode CC01 and CC02 (Create / Change Change Numbers)

    Thanks...
    We have looked at this IDOC Type. However we are not very sure how the components (Material/BOM etc.) will be mapped into E1AEEFM segment in the IDOC.

  • Trigger automatic e-mail for Material Master field change

    Hi All,
            Please guide me, Is that possible can we able to trigger automatic e-mail to the when ever SAFETY STOCK field get changed.
    If the above is possible, Please advice me a step by step procedure will be thankful.
    Thanks in Advance.

    dear friend
    you probably might look at SAP Business Workflow features

  • Automatic batch determination without maintain the class in material master

    Hi,
           Is it possible that we can do automatic batch determination with-out maintaining the class in material master.
           My requirement is i want to do batch splitting at PGI level & user dont want to maintain class in material master only they will maintain VCH1.
           if i will maintain class then batch splitting happening at PGI but if i will remove the batch from material master as well as strategy group then splitting not happening.
    Regards
    Puneet

    Hi,
              if any one have solution then pls update
    Regards
    Puneet
    Edited by: puneet rhythm sharma on Dec 7, 2011 6:14 AM

  • Automatically Trigger a Idoc when a sale order Document is changed

    Hi Experts,
    Currently Idoc is pushed manually through sale order change transaction " VA02 " menu path
    " extras - > output - > header - > edit "
    I have done the nace settings for output types & condition records . Now that the Idoc gets triggered automatically
    when a document is created in VA01 transaction. Is there any other settings required such that the IDoc can be sent automatically once the document is changed and saved through VA02 transaction also.
    Or do I need to process the IDoc through user exit of VA02. Kindly advice how to proceed with it.
    sathish
    Moderator message: duplicate post locked.
    Edited by: Thomas Zloch on Mar 17, 2011 12:48 PM

    In Partner profile(WE20), you can make one mor entry similar to  existing record with check box enable, under Message control tab.means maintain the below details, Application, message type, process code and enable the change check box.
    After making entry in WE20, you can change sales order and save the application.It may work.

  • Trigger custom idoc through ALV when sales order is created in VA01 & VA02

    Dear Experts,
    I am new to the concept of ALV_idoc. Please give me the procedure in detail.
    How to send custom fields to non SAP system when sales order is created or modified in VA01 &VA02?
    Can i use existing Logical Systems and Ports and partner profiles?
    Thanks & Regards
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Jan 17, 2012

    hi,
    the first option is the right one. the FM invoked makes a direct input, so all the functionalities in S.O. are the standard one in the same way as if you are making it manually.
    Also you can have some exits in the Idoc FM, so you can manipulate data there before loading the sales order.
    pls. reward if helpful
    regards
    Roberto

  • Creating Material Master IDoc when creating a Material

    Hi Guys,
        My requirement is to trigger an IDOC at the time when I am creating a material using MM01 transaction. The Changepointer is active and when i am tring to send materials using BD10 it's showing that the IDOC is created which certifies that the config is OK. but when I am creating a material and saving it ..the same process is not triggering an Idoc.
    Can anyone help me out ...where I am missing out.
    Thanks
    Debasis Roy Chowdhury

    Hi Debasis,
    Activating pointers for the message type do not  trigger Idoc, we need to manually or scheduled the program to create the idoc against  pointers.You need to run BD21 transaction or  schedule RBDMIDOC .
    Go through this [Idoc Triggers|Automatic Trigger of Idoc Sending to PI on Material Master Create/Change;.There is a good discussions.
    Regards,
    Madhu.
    Edited by: madhurao123 on Feb 2, 2012 9:40 PM
    Edited by: madhurao123 on Feb 2, 2012 9:43 PM

  • How can we trigger an IDOC based on Orders creation.

    Hiii...experts,
                            After searching alot in SDN i am taking this very commonly asked to experts in the hope of a better understanding.
    If i create a sales order means.. i want to trigger a IDOC based on certain Condition on ORDER data .. how can we do this..
    when ever i'm creating a sales order it should be automatically trigger a IDOC , Because when ever sales ordre was created in R/3 system it should be transferred to some destination...
    And pls tell me about the reports that does the job of collecting required data from the sales order and converts it into a IDOC.
    so, how can we trigger an IDOC based on Orders creation..
    pls help.
    Ram.

    Use IDOC_OUTPUT_ORDERS for creating IDOC
    you need to maintain condition records & output type
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 10, 2008 4:18 PM

  • Unable to convert partner to IDoc sender partner

    In XI 2.0,we are facing a problem while trying to send idoc out of XI to SAP R3 system.We created Business Systems without specifying ALE logical system name,but later we corrected this.
    Even then we are getting this error:
    <SAP:Code p1="I::000" p2="SRMSUS_BUSS_SYS" p3="" p4="">IDOC_ADAPTER.SENDER_BSI_INCORRECT</SAP:Code>
      <SAP:Text language="EN">Unable to convert partner to IDoc sender partner</SAP:Text>
    We have created port in IDX1 in XI for R3 system.
    Suggest us ?
    regards
    Vishal

    Vishal,
    Add your agency and schema values in both party and receiver idoc channel (tab identifiers),
    it should be something like
    BS_ (your R/3 system system), Schema ALE#KU# (KU if its customer)
    Thanks,
    Pavan

  • ALE IDOC - Material Master

    Hi,
    I have triggered Idocs for material master changes.
    For some materials, the material description is blank in idocs,however; we have the material description data in SAP.
    I have checked the changes in material master, the changes made for material description also on the respective date.
    Plesae let me know the cause of sending the material changed record with the description as blank.
    Please consider it as a priority basis and help me.
    Regards,
    Usha.
    Edited by: Usha Rani Achana on Apr 22, 2010 10:18 AM

    >
    Usha Rani Achana wrote:
    > Hi,
    >
    > I have triggered Idocs for material master changes.
    > For some materials, the material description is blank in idocs,however; we have the material description data in SAP.
    >
    > I have checked the changes in material master, the changes made for material description also on the respective date.
    >
    > Plesae let me know the cause of sending the material changed record with the description as blank.
    >
    > Please consider it as a priority basis and help me.
    >
    >
    > Regards,
    > Usha.
    >
    > Edited by: Usha Rani Achana on Apr 22, 2010 10:18 AM
    I have loaded hundredthousands of materials via ALE method and never experienced a loss of material description.
    If that would be the case, and you really just using the SAP standard, then you should open a message at SAP.
    MAybe you implemented OSS Note 1364357 - Defined language for material master transfer
    and then restricted the transfer to a certain language only.

  • Inbound Idoc Create/Change Purchase Order

    Hi All,
    I have to do a inbound Idoc scenario for create as well as change Purchase Order.
    Which is the IDoc type for Create/Change purchase order.
    I went through this form found that ORDERS05 can be used but I am not sure this can be used for both create as well change Purchase Order.
    If ORDERS05 can be used then which is Process code,Function Module and Message type for both create and change Purchase order.
    I also found that IDoc type PORDCR102 can be used for  create Purchase order and PORDCH02 can be used for change Purchase order,but i don't want to use two Idoc types.
    Please suggest.
    Thanks in advance.
    Regards,
    John

    Hi John,
    For creating a IDoc for PO, whenever a PO is created/Changed, it has to be configured in Parter Profile(WE20) for a particular Partner in Outbound Paramtrs tab.
    Give ORDERS05 in Message Type and select the line & go to Display.
    In the screen which appears , choose tab Message Control and give the Process code
    ME10 - Creation of PO
    ME11 - Changes to PO & check the Change Message.
    Give respective Output Message Type & Application(VF) for PO.
    Create Output types for a vendor in T.Code MN04, else take help from MM Consultant.
    Create a PO & save. Then make some changes in Po & again save.
    Now IDoc will be created while saving the Po & IDocs will be created whenver you make changes to PO and saving it.
    Hope It helps.
    Regards,
    Anbalagan

  • LSMW IDOC MATMAS05 Material Master

    Hi Experts,
    Actually ,Iam using IDOC method in LSMW for Material Master Upload.
    For that Iam using the IDOC type MATMAS05 .
    So in the input file when Iam not the giving the Material Number IDOC is getting failed
    with status 51 and giving the errors that "NO MATERIAL NUMBER
    TRANSFERED".
    And
    if Iam giving a material number in the test file it is again getting failed
    giving the error " The material does not exist ".
    I am not able to understand what iam missing here.
    Other than this Iam passing all the mandatory fields required .
    Also in the each segment iam passing the MSGFN = '009'. i.e. to create.
    Pls help.
    Thanks in Advance.
    Regards,
    Mithun

    Hi Chuin,
    This forum doesn't provide specific info on LSMW. You may check https://service.sap.com/lsmw for more info.
    Regards,
    Markus

  • We have three discussions forums with same subject. whenever a post gets new reply in one forum, it should automatically trigger workflow functionality to check conditions and send the same reply to other synchronized forums.

    we have three discussions forums with same subject. whenever a post gets new reply in one forum, it should automatically trigger workflow functionality to check conditions and send the same reply to other synchronized forums.
    Rajiv Kumar

    Hi,
    More details about your discussions forum will make others easier to find a corresponding solution on your requirement.
    If you mean there are three Discussion Board list waiting for synchronizing, I would suggest you create an Event Receiver for the three Discussion Board list.
    Here is a link with code demo about how to copy items from one Discussion Board to another including Replies:
    http://spcodes.blogspot.com/2013/03/programmatically-copy-items-from-one.html
    Here is a step by step sample on creating a simple Item added event receiver for Custom List in SharePoint 2010:
    http://msdn.microsoft.com/en-us/library/ff398052.aspx
    More information on Event Receiver for your reference:
    http://msdn.microsoft.com/en-us/library/gg749858(v=office.14).aspx
    http://msdn.microsoft.com/en-us/library/ff408183(v=office.14).aspx
    Feel free to reply if there are still any questions. 
    Best regards
    Patrick Liang
    TechNet Community Support

  • Idoc serialization and change pointers automatic trigger

    Hello Experts
    How to trigger an Idoc automatically once the application has been saved ?
    Scenario 1:  Here serialization of message types are used, all the idocs in the serialization group must trigger & sent to the receiving system as per the sequence even if any field in the complete serialization group of message type changes (Note No Manual processing using reports Like RBDSER01, RBDSER02 etc..or Batch Jobs)
    Scenario 2:  Again Idoc has to trigger and sent to the receiving system as per the change pointer configuration once the application has been saved (Note: No manual processing like BD10, BD11 etc.. and no user exits has to invoke while saving the application).
    Please let me know is this two cases can be implemented. Thank you in Advance.
    Regards
    Imran.

    Hi Fernando,
    I'm trying to accomplish the same thing that you were...   trying to get a change pointer to be created based off the status change of a technical object (functional location or equipment).
    Can you give me any detail on what you did?
    Thanks,
    John

Maybe you are looking for

  • Canon 5D mark II raw file conversion size blowout

    I am suffering from an issue where my CR2 files from a 5D decrease in size when converted to DNG  from for example 14.4MB to 11.8MB while the 5D mark II files increase from 8.7MB to a much larger 23.6MB after conversion. Both conversions are being do

  • Copy a compiled DBXML from one Linux machine to another Linux machine?

    Hello I am currently preparing two Linux machines for a DBXML application. One machine is for testing and the other for production. They are almost identical: Test machine: > [email protected]:~# uname -a Linux jumasiri 2.6.29.6 #2 Mon Aug 17 01:31:42 CD

  • Problem with CATW screen

    Hi, we are facing a particluar problem in Time sheet when a person is filling time for more than 5 operation lines for service orders (more than 5 line entries).  We are finding that the lines are sorted in random order when the check entries button

  • WS Adapter

    Hi, Running SAP PI 7.10 SP7. I have the following scenario. File to Web service. This setup works. The setup is: File Adapter > Integration Server 1 > SOAP Adapter > SOAP Adapter > Integraion Server 2 > SAP Proxy. Now I have change this to: File Adap

  • Animation failure/not autoplaying

    I have made two animations (created in Edge). One linking to the other. One should close and the other open.  They are also suppose to auto play an animation from the start every time I am clicking a button. The only thing that happens is that the la