Material Creation Workflow

Hi Friends ,
                     When a material is created (MM01) , using user exit i want to create an event which triggers the workflow.
                     I'm confused of  function module to be used for creating event.
SWE_EVENT_CREATE or   SWE_EVENT_CREATE_IN_UPD_TASK or
SWE_EVENT_CREATE_FOR_UPD_TASK
Can any one let me know which function is very opt for creating the event.
Regards,
Vijay

Hi Vijay,
I <b>seriously</b> suggest you rethink your design here. Either a workflow is the wrong tool for the job or you're going about this the wrong way. The whole POINT of an event is that the transaction is complete. Even receivers are called asynchronously and rely on this. What will happen in your scenario is that you trigger a workflow before the material is saved. It cannot instantiate the object and falls over to die a horrible death.
Or in case of a change, your WF will read the old data. Or what if something goes wrong and there is an error after the userexit? Your event is triggered and you have no way of knowing in the WF that there was no save.
Use the standard event and start conditions.
Hope that helps, 
Mike

Similar Messages

  • Regarding Material creation workflow

    hi freinds,
    i have requirement to develop workflow on materila change........maens....
    first manger will enter basic data of particular material.......then it needs to sends sales persons and they need to enter sales data...
    i am not able find where we need to trigger events,,,,,,,,,,,
    advance thanks,
    Regards,
    bhaskar

    Hi Bhaskar
    u can use change documents to trigger your workflow.
    t-code  SWEC .
    or u acn manually trigger it by writting  the following codes in se38
    DATA: KEY LIKE SWEINSTCOU-OBJKEY.
    KEY = '1163'.
    Material Number (hard-coded)
    CALL FUNCTION 'SWE_EVENT_CREATE'
    EXPORTING
    objtype = 'BUS1001006'
    objkey = KEY
    event = 'CREATED'
    CREATOR = ' '
    TAKE_WORKITEM_REQUESTER = ' '
    START_WITH_DELAY = ' '
    START_RECFB_SYNCHRON = ' '
    NO_COMMIT_FOR_QUEUE = ' '
    DEBUG_FLAG = ' '
    NO_LOGGING = ' '
    IDENT =
    IMPORTING
    EVENT_ID =
    TABLES
    EVENT_CONTAINER =
    EXCEPTIONS
    OBJTYPE_NOT_FOUND = 1
    OTHERS = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ELSE.
    WRITE 'Event Triggered'.
    ENDIF.
    COMMIT WORK.
    Regards
    rose

  • What is Material master workflow

    Hi gurus ,
    Can anybody explain what is Material master workflow & Function Module ?what is its use?
    Dev
    Edited by: dev .. on Oct 15, 2008 8:21 AM

    Dear,
    You can find much info about workflows at: http://www.erpgenie.com/workflow/index.htm
    http://help.sap.com/saphelp_46c/helpdata/EN/04/926f8546f311d189470000e829fbbd/frameset.htm
    Workflow is a tool for automating the business process so that the process itself flows smoothly, without bottlenecks and without dead ends. Critical parts of the process can be streamlined with deadline monitoring and contingency options. Participants are informed of milestones in the process. The process definition itself is powerful enough to allow business re-engineering with re-training and to eliminate the impact of workforce changes on the basic business process.
    SAP Business Workflow is the R/3 tool for handling the process automation within R/3 or between R/3 systems and other systems involved in the business process. It is flexible enough to handle ad hoc processes such as the circulation of an electronic document. It is robust enough to handle mission critical process in the production system such as the creation of a material master.
    The different R/3 applications supply standard workflows for the commonly occurring processes. Once these workflow templates are activated, they are ready for immediate use. A complete set of workflow tools, including the workflow editor and workflow generation wizard, are provided to enhance these standard workflows or create new workflows. These tools are complemented with transactions for monitoring, tracking and the statistical analysis of the processes.
    Because the business process often does not step at the R/3 boundary, various interfaces and third party tools are available for extending the process across systems.
    Function module
    Function modules are procedures that are defined in special ABAP programs only, so-called function groups, but can be called from all ABAP programs. Function groups act as containers for function modules that logically belong together. You create function groups and function modules in the ABAP Workbench using the Function Builder.
    Function modules allow you to encapsulate and reuse global functions in the SAP System. They are managed in a central function library. The SAP System contains several predefined functions modules that can be called from any ABAP program. Function modules also play an important role during updating  and in interaction between different SAP systems, or between SAP systems and remote systems through remote communications.
    Unlike subroutines, you do not define function modules in the source code of your program. Instead, you use the Function Builder. The actual ABAP interface definition remains hidden from the programmer. You can define the input parameters of a function module as optional. You can also assign default values to them. Function modules also support exception handling. This allows you to catch certain errors while the function module is running. You can test function modules without having to include them in a program using the Function Builder.
    The Function Builder  also has a release process for function modules. This ensures that incompatible changes cannot be made to any function modules that have already been released. This applies particularly to the interface. Programs that use a released function module will not cease to work if the function module is changed.
    http://help.sap.com/saphelp_nw70/helpdata/EN/9f/db988735c111d1829f0000e829fbfe/content.htm
    Regards,
    Syed Hussain.

  • Need basic knowledge and material on WORKFLOWS

    Hi all,
    Need some material on workflows and their creation(step by step)..
    I do not have any knowledge of workflows in SAP ABAP....
    Shiva

    Hi,
    please check the Developer's Guide in general:
    http://www.sdn.sap.com/sdn/developersguide.sdn
    the concrete information on workflow you can find here:
    Business Process Management
    http://help.sap.com/saphelp_nw70/helpdata/en/9c/8d8442dcaad665e10000000a155106/frameset.htm
    Embedded processes (workflow)
    http://help.sap.com/saphelp_nw70/helpdata/en/fd/517b42303e0e53e10000000a155106/frameset.htm
    Please follow the links,
    http://help.sap.com/saphelp_nw04s/helpdata/en/04/926f8546f311d189470000e829fbbd/content.htm
    http://help.sap.com/saphelp_46c/helpdata/en/c5/e4a930453d11d189430000e829fbbd/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/a1/172437130e0d09e10000009b38f839/frameset.htm
    A good tutorial
    http://www.thespot4sap.com/articles/Invoice_Verification_Automation_Using_SAP_Workflow.asp
    http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
    http://www.sap-img.com/workflow/sap-workflow.htm
    /people/alan.rickayzen/blog
    /people/jocelyn.dart/blog/2006/06/19/why-use-abap-oo-with-workflow
    a good book
    http://www.sap-press.com/product.cfm?account=&product=H950
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://web.mit.edu/sapr3/dev/newdevstand.html
    Check the following PDF
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSTART/BCBMTWFMSTART.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMDEMO/BCBMTWFMDEMO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMPM/BCBMTWFMPM.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    Thanks,
    Reward If Helpful.

  • Key performance indicators (KPI) for material creation

    Dear all,
    I need to define some Key Performance Indicators (KPI’s) to measure the data quality during the material creation (MM01) process. The objective is to get concrete statistics about data quality/accuracy for fields related to material from all views created with MM01 (basic data, classification, unit of measure...).
    I would like to get your expertise on how to measure these KPI’s : which transactions, table (...) to use ?
    I have already few ideas :
    -Table CDHDR
    -Transaction MM04
    -Create “checkpoints“ into the workflow for material creation (ZWF01)
    Do you have any other idea in mind?
    I am open for all advices: transaction, table, process, approach…
    Thanks in advance for your help !

    I have a few ideas, but the accuracy of the master data is based on your system config.
    Some things that are helpful in most of the cases:
    - If material type is HAWA (trading goods) your procurement indicator should always be External procurement (check those for other material types if you have it uniformed). You can also check purchasing group based on material type if you have it distinct by material type.
    - Check if sales views are opened in all org.levels
    - Check if storage loc.views are opened for all SLoc
    All in all, you need to have a link of two or more data in material master to be able to check it in some way automatically, otherwise you won't be able to determine if the data is correct or not.
    E.g. How would you every know if lot size of 120.000 PCS is OK or not for a specific material or if you need to assign a specific purchasing group to your material.
    You know the logic behind your material master data best so you can create the best rules to check for your KPI.
    Regards.

  • Material creation process in SRM-MDM

    Dear All,
    I am new to SRM. Please correct me about material creation procedure in SRM if I am wrong:
    Normally in classic/extended classic scenario, material first created in MM and then it replicated to SRM. Base on configuration setting for number range, system either create the product ID same as material number number in SRM when it replicated into SRM. In final steps, the product information will upload into MDM either XI integration or manually via excel upload.
    My question:
    + Is it possible to automatic create product without XI via T.Code - MDMGX in MDM.
    + If the replicated product ID of SRM is different then MM material number, which number we should consider for creating product
       MDM.
    Thanks in advance.
    BR
    Jennifer

    Hi Jennifer,
    Answer1) You can only replicate Product Groups, Currencies and Unit of Measures through t-code MDMGX. XI/PI is required for Contract and Product Catalogs.
    Answer 2) If the replicated product ID of SRM is different then MM material number, you should enter MM material number and in External Web Service Configuration for that internal catalog, uncheck  "Do not check Product" indicator so that SRM will not check the Product ID and when item goes to backend system, it will have correct MM material number.
    Thanks,
    Anshuk Saxena

  • Material Creation Using BDCs.

    Hi all,
    I have developed a program for Material Creation using BDC.
    Material is Being created and that is working well and good.Here i have a Requirement to update the Newly creted material in Ztable.So when i use call transaction mathod,i have written code for updation under the line CALL TRANSACTION.where in iam getting newly creatde material from MARA table,and so it is working perfectly fine..
    But our requirement should be sessions method,so when i use sessions method and exeute the program..we face the problem of updation.
    the piece of code for updation is updating previously created material.
    Literally speaking only the sessions are created ,when the program is executed,material is not created when program is run.Material is only created when the sessions are processed using SM35,
    So how should i do here,where should be the updation code written and where will we get the newly created material in sessions method..
    Pls Help me in solving this problem

    hai priyanaka it might be due to configuration problem
    bcos manulay also ur gettign this , so just consult ur MM consultant for soem setting
    regards
    afzal

  • Material Creation Date and Time

    Hi,
    Is there any place which stores the material creation date and time. We have checked table MARA, but that only has the creation date of the material, but does not give the material creation time. We have checked table CDHDR, but that only seems to have the material change date and time.
    From where can we retrieve the material creation date and time.
    Thanks and Regards,
    John

    Actually, CDHDR and CDPOS will have the value.  The CDHDR record will be marked as a 'U" record but look at the corresponding CDPOS record for MARA and it will be marked as an 'I' record.

  • Error in pipeline material creation

    hi,
    we want to create one pipeline material as per our new requirement for showing gas consumption.during material creation with mat type PIPE, it's showing an error:The field Profit Center is defined as a required field; it does not contain
    an entry.
    Procedure
        If the field is the material group or unit of weight, and the field is not ready for input, check whether the material is locked. If it is locked, you cannot extend the Purchasing view or the Sales view. If either of these views needs to be extended, the material must first be unlocked. This can be done only by a user with special authorization.
    thanx,
    sheetal

    Hi
    In your client if Profit center accounting(PCA) is activated ,then you need to maintain the Profit center for the material.
    Option 1: goto OMS2, got details of pipleine material & select the Costing View of the material.
    Now goto MM01 in creation of pipeline material & maintain the profit center in Cotsing 1 View.
    Deactivating the field from mandatory to optional will not serve your purpose as PCA will get affected.
    Thanks & Regards
    Kishore

  • How to Create material master workflow

    Hi All,
    Can anybody tell me how to create material master workflow?
    i need to customize the workitem  for creating data in different views in MM01 transaction with restriction to particular user.
    Regards,
    Priti

    Hi,
    This link is to  display a material.My requirement is to create a workflow which will allow a responsible person to enter data for specific department data e.g Purchase,Accounting etc.Initially anyone can create data using basic data1 and basic data2 views.After this my workflow will be triggered and it will go to next person who is responsible to enter Purchase data and then Accounting data.
    Plz help me to create different views with respect to person.
    Thanks in advance.

  • Material creation date for perticular plant

    Hello Experts,
    I have four plant have a same material,so i want to see the material creation date by plantwise.Please suggest me where can i see the material creation date by plantwise? Bcz. I want to develop report for this.
    Thanks & Regards,
    Vinay

    Hi,
    Go to T.Code: MM60,Then enter your required plant and execute.
    Now you can see the material with created date or last change date  and who created.
    If helpful then reward.
    Regards,
    Biju K
    Message was edited by:
            Bijay Kumar Barik

  • What is 'Material Aging Workflow'?

    When I am going through the 'Release Content Document' of R12 Inventory, I came across a functionality called 'Material Aging Workflow'.
    I searched for this in R12 Inventory User Guide and metalink. But I am not able to find any details about this.
    Can anybody explain me about this?
    Regards
    Merlin Rajesh
    Message was edited by:
    Merlin Rajesh

    When I am going through the 'Release Content Document' of R12 Inventory, I came across a functionality called 'Material Aging Workflow'.
    I searched for this in R12 Inventory User Guide and metalink. But I am not able to find any details about this.
    Can anybody explain me about this?
    Regards
    Merlin Rajesh
    Message was edited by:
    Merlin Rajesh

  • Regarding Material creation

    Hi friends........
    I have requirement to create Material through workflow.......
    menas we need to pass different views to different person..in his business workplace....
    Thanks in Advance.......
    Regards,
    Charan

    Hi twinkle..........
    I did same requiment object.......i will brief u....
    1) first create Delagate business object of BUS1001006 with method MATERIAL_MAINTAIN_DAILOGUE function........Using this function module u should create Method for that object.........
    Create parameters As T.CODe and status view.....
    2)Create Ztable with fields which are need to mandetary for diaplaying particular screen........
    3)now u configure u r workflow with this delagate business object and method which was create by your self.......
    4)While binding you should pass T.code and status value which view you need.......
    IF u doubts , please feel free to send mail........
    If useful plz Rewards.......
    Thanks In advance,
    Regards,
    Bhaksar Rao Javvaji

  • Process flow of material creation

    hi sap gurus,myself rekha
    i want to know the process flow  of material creation-FERT

    Check below link .You have to use transaction MM01 to create material.
    https://www.google.com.au/search?q=process+flow+for+material+creation&oq=process+flow+for+material+creation&aqs=chrome..69i57.9710j0j8&sourceid=chrome&espv=210&es_sm=122&ie=UTF-8#q=process+flow+for+material+creation%2Bsap

  • EDI FOR MATERIAL CREATION AND CHANGE

    Hello all,
    I have a requirement that when a material is created it whole detial about that material is saved at a given location as idoc.
    ie EDI configration.
    How know to configure EDI process order. How can we do for material creation.

    Since we are not using any message control, we don't need to setup the process code in WE41.  
    The function module has already been assigned to the message type in WE57.          
    Step1: Create a logical system - BD54.
    Step2: Create a distribution model - BD64.
                     Create a model view and add the Sender (SAP ECC)  and Receiver (Logical System you created).
                     Then add the message type MATMAS.
    Step3: Create a RFC Destination - SM59
    Step4: Create a port and assign it to the RFC Destination created above. - WE21.
    Step5: Create Partner profiles - WE20
                       Partner type - LS
                      Message type - MATMAS
                      Basic type - MATMAS05
    Step6: Trigger the material material through BD10.
    Hope it helps.

Maybe you are looking for