Workflow from idoc

hi experts,
My scenario is , whenever any idoc arrived to my system it should start a workflow where it have to check the message type of the incoming idoc. Based upon the types say orders or invoice it have to send a workitem which displays the idoc to the corresponding sales or purchase organization.  I what to capture the idoc number and display it whenever a new inbound idoc is created. Kindly tell me whether i have to use change document method or any other way also the BO.
With regards
Arjun
Message was edited by:
Arjun
        Arjun Sekar

Hi Arjun,
This can be easily configured in EDI. WE42 - Inbound processing. You can create your own process code based on processing by task. Link it to a task based on your idoc-related object's display method (e.g. IDOCORDERS.DISPLAY) or create your own task if necessary. Oh, and please ALWAYS mention your version when asking questions.
Hope that helps,
Mike
PS: Reward useful answers and <a href="/people/baris.buyuktanir2/blog/2007/04/04/point-for-points-reward-yourself one point</a> yourself!

Similar Messages

  • What triggers workflows execution from IDocs

    I have set up a process that triggrs workflows from IDocs by setting the Process code to 'Process by task'.
    In some cases, when the workflow falls over, it would be easier to create a new workflow rather than fix the old (the workflow has checks in so that it will not create duplicate documents at any point).
    I would like to write a restart report that allows an IDoc to be reprocessed using a new workflow, but I don't see how it is triggered; it is not via an event because the workflow does not have a triggereing event.
    Can somebody tell me what the function module is that triggers the workflow, or if it is a report program?
    Kind regards,
    Tony.

    Found it: it is IDOC_START_INBOUND.
    Bit of a giveaway really.
    - Tony.

  • Transfer of Results from IDOC to Inspection Lot

    Hello experts,
    Following scenario:
    Inbound IDOC (QCERT) from vendor with inspection results is supposed to populate the inspection lot, which is being created at GR for PO.
    QM in procurement is active and QM control key and ceritificate type populated in material master record. We also activated workflow, which is supposed to execute the transfer from IDOC to the inspection lot automatically as soon as inspection lot gets status CROK.
    This works only under certain circumstances in the following order:
    1. Inbound IDOC received
    2. Q-certificate created automatically from IDOC with intial status "2 - Certificate received"
    2. GR posting for PO
    3. Manual setting of status "5 - Certificate filed and inspected"
    4. Inspection lots receives status CROK and the results are being transferred to the inspection lot
    This is okay as a start, but not ideal. We would like to have the following behaviour:
    1. Automatic setting of status "CROK" for inspection lot in order to transfer the results as soon as certificate and inspection lot are available.
    2. If the IDOC is being received after GR for PO, there is no connection in the Q-certificate to the inspection lot, i.e. the transfer of results will never take place, but it should.
    Can anybody help and knows, if this is feasible in SAP standard?
    Many thanks!
    Martin

    With IDOC Type Quality01 there is no reference to inspection lot, but in IDOC type Quality02 there is
    a inspection lot reference in segment E1EDLIN-E1CCI01, you will have to find out the logic to auto
    populate the lot # , please consult developer if its possible
    Thanks
    DD

  • Field Value not passed from IDOC (orders01) to File Generated

    Hi All,
    I have added a custom field to a PO at item level (ekpo-Ztest)and Passing it to OUTBOUND IDOC.
    In process of passing to IDOC(ORDERS01) i mapped the field to segment E2EDP19001-MFRPN and i see the value in the IDOC when i view it in WE02.
    The problem is when i generate a file i don't see the value of E2EDP19001-MFRPN
    We are already using QUALF,IDTNR,KTEXT of E2EDP19001 and i see all the values of these fields being passed from IDOC to file generated .
    Let me know as i'm missing anything in here
    I quick note ,
    I see 3 version for E2EDP19 Segment for orders01
    Vesrion
    002     E2EDP19002                             8     242     02/14/2005
    001     E2EDP19001     40A                    5     160     08/19/1997
    000     E2EDP19             30A                     3     108     04/03/1995
    1)The version 000 and 001 are released but not 002 Version
    2)May be i 'm using version 000 and its out put length is only 108 and these fields(QUALF,IDTNR,KTEXT) together occupy 108 and there is no room for my new field but My IDOC dispalys E2EDP19001 and E2EDP19002 and also it displays my new field but its the output file generated that doesn't show the value
    Thanks

    Resolved Myself
    Thanks

  • Issue Transporting Business workflow from one System to Another

    Hi All,
    As there are many limitations in Import/Export of Workflow I'm going for a Transport of Workflow from one sytem to another.
    There are some query's reagrding transporting of the Business Workflow through Transport Request.
    1)   How can get the Transport Request no. of the Workflow to be transported? (As there are no direct versions displayed from  menu).
    2)   If there are any dependent objects first how to find the dependent objects lof workflow like if  any data element, Domain, Table, Structure (if these objects are used in your WF definition or may be BOR method), Function module, function group BOR, Rule, WF template, task and Task assignment  ?
    3) How to get Transport Request no. of such dependent objects specifically The Task,Rule , WF template etc.?
    4) I have object Type ZBUS2081 related to it how can i get its TR ?
    Please describe as I'm new to workflow.
    Please identify if there can be some issues after transporting workflow .
    Regards,
    Ujjwal

    Hi Ujjwal,
    Please find the below hint's.
    1. Regarding the objects included in the Transport request check the Tables - E070*.
    2. For dependent objects, you should check the workflow template. You have to check all the Task's and in the task go to
       utilities ---> Object directory entry --> Lock overview . Here you can see the request. It will show you the current request for    the Task.
    3. To get the TR for Business object, Go to basic data ---> Transport data --> Here you can see the Request ID for the business object.
    Thanks,
    Viji.

  • Automatic PIR Creation from Idoc

    Hi Gurus,
    I have a requirement in my current project that i need to create PIR taking data from idoc by executing one transaction. Can you please tell me is there any standard idoc for PIR and any functional module attached with this? I am also not able to find any table field for planning horizon in MD61 "from date" and " to date". please help.
    Regards
    Rajib

    ok

  • From which table we can find the stuck process in workflow from background

    Hi There,
    from which table we can find the stuck process
    in workflow from background.
    i mean the table which store information about going on process.
    It's Urgent
    Thank's
    Bachan
    Message was edited by:
    Bachan

    You can also run "bde_wf_item.sql" script.
    Note: 187071.1 - bde_wf_item.sql - Runtime Data of a Single Workflow Item
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=187071.1
    "Oracle Workflow Cartridge (WF): Workflow Item Details Data Collection Test" should be also helpful.
    Note: 369576.1 - Oracle Workflow Cartridge Workflow Item Details Data Collection Test
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=369576.1

  • Starting Workflow from Generic Object Services

    Hi All.
    We are on ECC6. In transaction MM02 when I excute 'Start Workflow' from Generic Object Services, no workflows are found. Can anyone help me with the following issues;
    1. What is the underlying object in transaction MM02 (I believe it is BUS1001006)
    2. How can i ensure that the proper workflows in this transcation are started through some  
        customisation, enhencement or user-exit.
    Regards.

    I think you have to maintain the Workflow Template as General Task and then only it will appear in the GOS.
    Thanks
    Arghadip

  • Call workflow from ABAP program

    created a zbusiness object (ZPRODH)with
    one key field product hierarchy,
    one attribute level number and
    one method display.
    I tested that zobject and using this object created workflow to display product hierarchy ,it is displaying it. now I have to call it from one abap program.
    In the abap program I am calling the funcion module, I
    CALL FUNCTION 'SWW_WI_START_SIMPLE'
    EXPORTING
    TASK = TASK
    IMPORTING
    WI_ID = WI_ID
    TABLES
    AGENTS = AGENTS
    WI_CONTAINER = WI_CONTAINER.
    It is calling the workflow and subrc is 0, but not passing the value to the workflow. Because of that the method is not working, any idea?
    Thanks in advance

    ttpa,
    Please check this thread:
    Re: Workflow from abap program
    Also check that your Fm do requires any explicit commit or not?
    Hope it will help u
    Cheers
    Jai

  • Advanced mapping from IDOC to SOAP with reversed 3 level context change

    Hi everyone.
    I am having a though time mapping the HRMD_A01 IDOC into a SOAP message. The reason is that the reciever expects an xml structure where the root node is cost center instead of employee which is the case in the IDOC.
    Mapping from:
    IDOC (1..1)
       E1PLOGI (1..unb)
         SEGMENT (String)
         OBJID (String)
         E1PITYP (1..unb)
           E1P0001 (1..unb)
             SEGMENT (String)
             KOSTL (String)
    To this structure:
    List (1..1)
      CostCenters (1..unb)
        KOSTL (String)   ----> Mapped against KOSTL above
        Employees (1..unb)
          OBJID (String)   ----> Mapped against OBJID above  
    I expect several occurances of E1PLOGI which states multiple employees sent in the IDOC. I also expect several occurences of E1P0001 containing cost centers.
    My conclusion is that I need an advanced mapping and I have created one which collects all KOSTL for the IDOC context, deletes duplicates, and creates the CostCenters segment. This is now working. But my problem is that I can't create the employees segment in the right place. They are only created once under the first CostCenters node.
    Here's the java-code for mapping between KOSTL and CostCenters/KOSTL:
    public void costCenters(String[] var1, ResultList result, Container container) throws StreamTransformationException{
      Set set = new HashSet(Arrays.asList(var1));
      String[] array2 = (String[])(set.toArray(new String[set.size()]));
      Arrays.sort(array2);
      for (int i = 0; i < array2.length; i++) {
        result.addValue(array2<i>);
    Any ideas on how to proceed?
    Best Regards

    Hi,
      Do the mapping like below.
      UDF should be select as context.
    List (1..1)
      CostCenters (1..unb)
        KOSTL (String)   ----> Mapped against KOSTL above
        Employees (1..unb)
          OBJID (String)   ----> Mapped against OBJID above
    Mapping:
    KOSTL(RightSelectChange the context to E1PITYP)--UDF--Removecontext--CostCenters
    KOSTL(RightSelectChange the context to E1PITYP)--UDF--SplitbyValue(Each Value)--KOSTL
    constant---Employees
    OBJID----------------------------------------------Use One As Many---SplitByValue (EachValue)----------OBJID
    KOSTL(RightSelectChange the context to E1PITYP)--UDF---
    KOSTL(RightSelectChange the context to E1PITYP)--UDF---
    Regards,
    Prakasu.M
    Edited by: prakasu on May 20, 2009 3:28 PM

  • While Mapping from Idoc to Oracle Structure

    Hi Guys,
    while we  From IDOC to Oracle..
    when we follow the  store procedure method to update the data  in oracle.
    statement
      tablename
    action
       table
          access
      Field1
      Field2
      Key
      Field1
      field2
    Here where should we need to map the from soucre Structure to Target structure..
    what i mean should i need to map in the fields under access or Key..
    can some help me in these
    Regard's
    raj

    OK, you are using Stored Procedures right ? Then your action will be inside the stored procedure.. Not in the xml data/message type..
    It is like calling a function from the program. When you call a function from a program, you just pass the values right ? and logic to insert/update/delete is written inside the function right ? similarly here you need to do the same. In this case, XI is calling stored Procedures with all the input values from the idoc ( i.e mapping) and the attribute value is "EXECUTE" not INSERT/UPDATE etc..
    That's the reason , I told, ignore current structure and just go thru the blog once, without considering current structure.. Then you can find the exact answer..
    Regards,
    Moorthy

  • XML Files from Idoc

    Hi All,
    pls can you help me
    i need how will i get xml file from idoc
    can you give me the steps to get it
    thanks
    mars

    report zexternalfile .
    tables : zzpublisher,
    sscrfields.
    data: it_publisher like standard table of zzpublisher,
    wa_publisher like zzpublisher.
    select * from zzpublisher into table it_publisher.
    call function 'GUI_DOWNLOAD'
    exporting
    BIN_FILESIZE =
    filename = 'C:externalfileskamal.XLS'
    FILETYPE = 'ASC'
    APPEND = ' '
    write_field_separator = 'X'
    HEADER = '00'
    TRUNC_TRAILING_BLANKS = ' '
    WRITE_LF = 'X'
    COL_SELECT = ' '
    COL_SELECT_MASK = ' '
    DAT_MODE = ' '
    IMPORTING
    FILELENGTH =
    tables
    data_tab = it_publisher
    EXCEPTIONS
    FILE_WRITE_ERROR = 1
    NO_BATCH = 2
    GUI_REFUSE_FILETRANSFER = 3
    INVALID_TYPE = 4
    NO_AUTHORITY = 5
    UNKNOWN_ERROR = 6
    HEADER_NOT_ALLOWED = 7
    SEPARATOR_NOT_ALLOWED = 8
    FILESIZE_NOT_ALLOWED = 9
    HEADER_TOO_LONG = 10
    DP_ERROR_CREATE = 11
    DP_ERROR_SEND = 12
    DP_ERROR_WRITE = 13
    UNKNOWN_DP_ERROR = 14
    ACCESS_DENIED = 15
    DP_OUT_OF_MEMORY = 16
    DISK_FULL = 17
    DP_TIMEOUT = 18
    FILE_NOT_FOUND = 19
    DATAPROVIDER_EXCEPTION = 20
    CONTROL_FLUSH_ERROR = 21
    OTHERS = 22
    if sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Pls go thru the following websites :
    A Step-by-Step Guide on IDoc-to-File Using Business Service in the XI Integration Directory
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e07dcaa0-a92b-2a10-3a96-b3d942bd1539
    How to convert an IDoc-XML structure to a flat file and vice-versa in XI 3.0
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
    Introduction to IDoc-XI-File scenario and complete walk through for starters.
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    Reward points if found helpful....

  • Setting Workflow status not working in imported workflow from SPD to Visual Studio

    Hi all,
    I have created SPD workflow and imported in visual studio. When I deploy imported Workflow using visual studio feature I found that Setting Workflow Status action is not working. Do I need to change Set Workflow status activity in Visual studio to make it
    work.
    Rohit Pasrija

    Hi,
    According to your post, my understanding is that Setting Workflow status did not work in imported workflow from SharePoint Designer to Visual Studio.
    I try to reproduce the issue and the result is the same as yours.
    After I import the workflow, choose the .xoml file, the view is as below:
    To troubleshooting the issue, I add a new item to the project and select “Sequential Workflow” in the template.
    After I click the Tool, I find that there don’t have the “SetCustomWorkflowStatus1” activity.
    To set the status of the state, we need to use the “Set State” Activity in the “SharePoint Workflow” toolbar.
    That is the reason why the “SetCustomWorkflowStatus1” activity does no work.
    More information:
    Apply Custom Values to Visual Studio Workflow Statuses
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Help to Create a Generic Material from Idoc

    Hi everyone, We have a problem to create a variant from Idoc, our problem is which segments to fill and how to do this?, For create an individual material is ok, we create a material from Idoc Artmas3 without any problem, but when we want to create a variant we had the following error
    Message MH197
    "No value assignment transferred for the variant-creating characteristic..."
    Someone of you had created generic materrials? How do you fill the segments? Which Idoc do you use?,please help us
    Regards

    Hi,
    Initially create a view or identify the table to create generic extractions, remaining process is same in all data bases such as CRM........
    GENERIC EXTARCTIONS:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/bi/generic%2bextraction
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d3219af2-0c01-0010-71ac-dbb4356cf4bf
    Generic Delta:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    Assign points if these are useful.
    Rgs,
    I.R.K

  • HOW TO TRIGGER AN WORKFLOW FROM A PROGRAM ?

    HELLO THERE ,
    CAN ANYBODY PLZ TELL ME HOW TO TRIGGER AN WORKFLOW FROM AN PROGRAM AND TO PAS THE VALUE TO THE CONTAINER ?

    Hello Neon,
    If you want to trigger the workflow directly, use the FM, SWU_START_WORKFLOW
    CALL FUNCTION 'SWU_START_WORKFLOW'
      EXPORTING
        task                  =
    *   LANGUAGE              = SY-LANGU
        user                  =
    *   SENDER_ID             =
    * IMPORTING
    *   RETURN_CODE           =
    *   WORKITEM_ID           =
      tables
    *   CONTAINER             =
    *   MESSAGE_LINES         =
        attachment_list       =
    A workflow can also be triggered by and event which is in turn triggered by a program.
    By the FM, SWE_CREATE_EVENT
    Example:
    w_key = 'Connie'.
      w_creator-otype = 'US'.
      w_creator-objid = 'SAPDEV02'.
      CALL FUNCTION 'SWE_EVENT_CREATE'
        EXPORTING
          objtype                       = 'YH_BUDDIES'
          objkey                        = w_key
          event                         = 'event'
         creator                        = w_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.
    Hope it helps you.
    Regards
    Indu.

Maybe you are looking for

  • Where can I find documentation on MSS 50.1.3?

    Hi All, I am looking for documentation on Manager Self Service 50.1 (The ITS version of MSS). Can anyone tell me where I can find information or documentation for this? Thanks Raj Balakrishnan

  • How to minimize the components

    Hi,       when ever I minimizing the window,the components in that windows are not displaying properly.       I am using jdev 11.1.2.3      How to  properly render the components?      Can any one please give me the answer?

  • Ctrl Alt and delete?

    Hi there, I've no idea what the equivalent on a mac is for windows "ctrL" "alt" and "delete" when trying to access programs which have frozen. I'm trying to find "end now" ..hope you guys can help as I don't want to resort to rebooting..but the wee w

  • Lookup Query

    In Form Designer in OID grp form in properties tab In Lookup query I have tried giving option a,option b a)Select act_key from usr where usr_login='$Requester Information.User Login$' b)Select ACT_KEY from USR where USR.USR_LOGIN = '$Requester Inform

  • HT1918 How do I return a book I purchased by accident

    I Accidentally purchased the GAME OF THRONES series. I don't know how to return it. HELP... How do I return a book that was accidenta purchased?