Workflow in conc program

completion options enables you to deliver notification to others using oracle workflow.what does it mean
=====
after the completion of execution of request and generating the report the completed report generation message will be passed to users through the oracle workflow
i have understood this.i dont know whether this is correct.does it men this.please say me

Is this a standard or custom concurrent program?
Was this working before? If yes, what changes have been done recently?
You may review the following note, it could be relevant to the issue.
Note: 293532.1 - REP-1320: Program unit 'afterreport' references column with invalid ID: 21
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=293532.1

Similar Messages

  • Error while generating a report in conc program

    ERR REP-1320: Program unit 'beforereport' references column with invalid ID: 7.
    I got this error while running conc program.
    please any one help me

    Is this a standard or custom concurrent program?
    Was this working before? If yes, what changes have been done recently?
    You may review the following note, it could be relevant to the issue.
    Note: 293532.1 - REP-1320: Program unit 'afterreport' references column with invalid ID: 21
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=293532.1

  • 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

  • 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.

  • Problem when register parameter for conc program through backend

    Hi all,
    i register the executable and corresponding conc program through backend.
    But when i tried to register the parameter from backend using fnd_program.paramter procedure i got many error.
    So can any of u guys help me out to find my ways ,how to successfully register parameter thoregh backend.
    below mentioned the code i taken
    begin
    fnd_program.parameter(     program_short_name=>'BACK_END_TEST1_CONC_PRO',
         application=>'SQLXXXUSER2',
         sequence=>1,
         parameter=>'DEPTNO',
         value_set=>'V11',
         required=>'Y',
         display_size=>2,
         description_size=>50,
         concatenated_description_size=>25,
         prompt=>'DEPTNO',
         token=>'DEPTNO'
    END;
    please help guys
    Thanks,
    Tune_to_urs

    The fnd_program.parameter call that you have is passing values for all of the necessary procedure parameters. To me, that means that the errors you are getting are related to the data that you are passing into the call.
    Possible errors with the values you are passing (I cannot tell because I don't know what data you have in your environment) are:
    - invalid program short name
    - invalid application name (needs to be the full application name rather than the short name)
    - parameter with same sequence already exists
    - value set does not exist
    - you can only specify tokens for certain types of concurrent programs (ie Oracle Reports)
    Just running the anonymous PL/SQL block like you have shown, the errors that are preventing it being saved should be displayed.

  • How to trigger GP workflow through ABAP Program.

    Hi All.
    i have one scnerio , i want to create BOM through Custom Ztransaction that will be developed in ABAP Modulepool.
    User will create BOM  from this ztransaction through  Transactional Iview in PORTAL,Once the user save transaction , i want to trigger a GP(Guided Procedure ) workflow,from ABAP Program.
    is it possible to trigger GP workflow?
    if yes how  to  do it , please suggest the way out.
    Regards,
    Shyam.

    Hi lingana,
    As u see in my requriment that, Workflow is not designed within SAP , But the Workflow will be designing
    in SAP Netweaver, its a GP Workflow. And Ztransaction(Developed by ABAP) will  be seen by user through portal  and
    he save transaction on PORTAL, In backend  ABAP program will run , and after meeting certain condition, it should create
    or(Initiate) GP workflow(process).
    So my question is , how ABAP Program will call GP workflow, How the connection will be made in between ABAP Code and GP workflow framework.
    If any doubt regarding requriment let me know,
    Regards,
    Shyam.

  • Getting trace file names for a conc program

    Hi All,
    We are using Oracle EBS 11i with Oracle 9i database.
    The Apps version is 11.5.9 and database version is Release 9.2.0.6.0.
    I am trying to trace a custom program which runs the pl/sql procedure.
    I have enabled the tracing in the custom program definition.
    This procedure has several blocks inside and also has many commits.
    Due to this the SID for the session changes frequently.
    Now my question is how can I get all the SIDs for this conc program and get the trace files for each SID.
    My goal is to get all the trace file generated for this conc program and use them for analysis.
    Any help is appreciated !
    Thanks,
    DR.

    Sending again with formatting.
    SELECT c.*, b.accounting_date,
              a.segment1
           || '.'
           || a.segment2
           || '.'
           || a.segment3
           || '.'
           || a.segment4
           || '.'
           || a.segment5 accrual_account
      FROM gl_code_combinations a,
           ARCHIVE.ap_ae_headers b,
           ARCHIVE.ap_ae_lines c,
           ARCHIVE.po_distributions d,
           ARCHIVE.ap_invoice_distributions e
    WHERE e.po_distribution_id IS NOT NULL
       AND d.po_distribution_id = e.po_distribution_id
       AND c.source_table = 'AP_INVOICE_DISTRIBUTIONS'
       AND c.source_id = e.invoice_distribution_id
       AND b.ae_header_id = c.ae_header_id
       AND b.accounting_date <= :b1
       AND a.code_combination_id = d.accrual_account_id
       AND a.segment3 = '3010'
    UNION ALL
    SELECT c.*, b.accounting_date,
              a.segment1
           || '.'
           || a.segment2
           || '.'
           || a.segment3
           || '.'
           || a.segment4
           || '.'
           || a.segment5 accrual_account
      FROM gl_code_combinations a,
           apps.ap_ae_headers b,
           apps.ap_ae_lines c,
           apps.po_distributions d,
           apps.ap_invoice_distributions e
    WHERE e.po_distribution_id IS NOT NULL
       AND d.po_distribution_id = e.po_distribution_id
       AND c.source_table = 'AP_INVOICE_DISTRIBUTIONS'
       AND c.source_id = e.invoice_distribution_id
       AND b.ae_header_id = c.ae_header_id
       AND b.accounting_date <= :b1
       AND a.code_combination_id = d.accrual_account_id
       AND a.segment3 = '3010'
    SQL>select * from table(dbms_xplan.display);
    | Id  | Operation                        |  Name                         | Rows  | Bytes | Cost  | Inst   |IN-OUT|
    |   0 | SELECT STATEMENT                 |                               |    20 |  7545 |  7708 |        |      |
    |   1 |  UNION-ALL                       |                               |       |       |       |        |      |
    |   2 |   NESTED LOOPS                   |                               |    19 |  7201 |   825 |        |      |
    |   3 |    NESTED LOOPS                  |                               |    19 |  6612 |   787 |        |      |
    |   4 |     NESTED LOOPS                 |                               |    93 | 28737 |   694 |        |      |
    |   5 |      NESTED LOOPS                |                               |   119 | 32130 |   456 |        |      |
    |*  6 |       FILTER                     |                               |       |       |       |        |      |
    |   7 |        REMOTE                    |                               |       |       |       | AJINNI | R->S |
    |*  8 |       FILTER                     |                               |       |       |       |        |      |
    |   9 |        REMOTE                    |                               |       |       |       | AJINNI | R->S |
    |* 10 |      FILTER                      |                               |       |       |       |        |      |
    |  11 |       REMOTE                     |                               |       |       |       | AJINNI | R->S |
    |* 12 |     FILTER                       |                               |       |       |       |        |      |
    |  13 |      REMOTE                      |                               |       |       |       | AJINNI | R->S |
    |* 14 |    TABLE ACCESS BY INDEX ROWID   | GL_CODE_COMBINATIONS          |     1 |    31 |     2 |        |      |
    |* 15 |     INDEX UNIQUE SCAN            | GL_CODE_COMBINATIONS_U1       |     1 |       |     1 |        |      |
    |  16 |   NESTED LOOPS                   |                               |     1 |   344 |  6883 |        |      |
    |  17 |    NESTED LOOPS                  |                               |     6 |  1878 |  6871 |        |      |
    |  18 |     NESTED LOOPS                 |                               |   572 |   156K|  5727 |        |      |
    |  19 |      NESTED LOOPS                |                               |   988 |   248K|  3751 |        |      |
    |* 20 |       TABLE ACCESS BY INDEX ROWID| AP_AE_HEADERS_ALL             |   978 | 17604 |   817 |        |      |
    |* 21 |        INDEX RANGE SCAN          | AP_AE_HEADERS_N3              | 17595 |       |    82 |        |      |
    |* 22 |       TABLE ACCESS BY INDEX ROWID| AP_AE_LINES_ALL               |     1 |   240 |     3 |        |      |
    |* 23 |        INDEX RANGE SCAN          | AP_AE_LINES_U2                |     8 |       |     2 |        |      |
    |* 24 |      TABLE ACCESS BY INDEX ROWID | AP_INVOICE_DISTRIBUTIONS_ALL  |     1 |    23 |     2 |      
    |* 25 |       INDEX UNIQUE SCAN          | AP_INVOICE_DISTRIBUTIONS_U2   |     1 |       |     1 |        |      |
    |* 26 |     TABLE ACCESS BY INDEX ROWID  | PO_DISTRIBUTIONS_ALL          |     1 |    32 |     2 |        |      |
    |* 27 |      INDEX UNIQUE SCAN           | PO_DISTRIBUTIONS_U1           |     1 |       |     1 |        |      |
    |* 28 |    TABLE ACCESS BY INDEX ROWID   | GL_CODE_COMBINATIONS          |     1 |    31 |     2 |        |      |
    |* 29 |     INDEX UNIQUE SCAN            | GL_CODE_COMBINATIONS_U1       |     1 |       |     1 |        |      |
    Predicate Information (identified by operation id):
       6 - filter(NVL("AP_AE_HEADERS_ALL_H"."ORG_ID",NVL(TO_NUMBER(DECODE(SUBSTRB(:B1,1,1),'
                  ',NULL,SUBSTRB(:B2,1,10))),(-99)))=NVL(TO_NUMBER(DECODE(SUBSTRB(:B3,1,1),' ',NULL,SUBSTRB(:B4
       8 - filter(NVL("AP_AE_LINES_ALL_H"."ORG_ID",NVL(TO_NUMBER(DECODE(SUBSTRB(:B1,1,1),'
                  ',NULL,SUBSTRB(:B2,1,10))),(-99)))=NVL(TO_NUMBER(DECODE(SUBSTRB(:B3,1,1),' ',NULL,SUBSTRB(:B4
      10 - filter(NVL("AP_INVOICE_DISTRIBUTIONS_ALL_H"."ORG_ID",NVL(TO_NUMBER(DECODE(SUBSTRB(:B1,1,1),'
                  ',NULL,SUBSTRB(:B2,1,10))),(-99)))=NVL(TO_NUMBER(DECODE(SUBSTRB(:B3,1,1),' ',NULL,SUBSTRB(:B4
      12 - filter(NVL("PO_DISTRIBUTIONS_ALL_H"."ORG_ID",NVL(TO_NUMBER(DECODE(SUBSTRB(:B1,1,1),'
                  ',NULL,SUBSTRB(:B2,1,10))),(-99)))=NVL(TO_NUMBER(DECODE(SUBSTRB(:B3,1,1),' ',NULL,SUBSTRB(:B4
      14 - filter("A"."SEGMENT3"='3010')
      15 - access("A"."CODE_COMBINATION_ID"="PO_DISTRIBUTIONS_ALL_H"."ACCRUAL_ACCOUNT_ID")
      20 - filter(NVL("AP_AE_HEADERS_ALL"."ORG_ID",NVL(TO_NUMBER(DECODE(SUBSTRB(:B1,1,1),'
                  ',NULL,SUBSTRB(:B2,1,10))),(-99)))=NVL(TO_NUMBER(DECODE(SUBSTRB(:B3,1,1),' ',NULL,SUBSTRB(:B4
      21 - access("AP_AE_HEADERS_ALL"."ACCOUNTING_DATE"<=:Z)
      22 - filter("AP_AE_LINES_ALL"."SOURCE_TABLE"='AP_INVOICE_DISTRIBUTIONS' AND
                  NVL("AP_AE_LINES_ALL"."ORG_ID",NVL(TO_NUMBER(DECODE(SUBSTRB(:B1,1,1),'
                  ',NULL,SUBSTRB(:B2,1,10))),(-99)))=NVL(TO_NUMBER(DECODE(SUBSTRB(:B3,1,1),' ',NULL,SUBSTRB(:B4
      23 - access("AP_AE_HEADERS_ALL"."AE_HEADER_ID"="AP_AE_LINES_ALL"."AE_HEADER_ID")
      24 - filter("AP_INVOICE_DISTRIBUTIONS_ALL"."PO_DISTRIBUTION_ID" IS NOT NULL AND
                  NVL("AP_INVOICE_DISTRIBUTIONS_ALL"."ORG_ID",NVL(TO_NUMBER(DECODE(SUBSTRB(:B1,1,1),'
                  ',NULL,SUBSTRB(:B2,1,10))),(-99)))=NVL(TO_NUMBER(DECODE(SUBSTRB(:B3,1,1),' ',NULL,SUBSTRB(:B4
      25 - access("AP_AE_LINES_ALL"."SOURCE_ID"="AP_INVOICE_DISTRIBUTIONS_ALL"."INVOICE_DISTRIBUTION_ID"
      26 - filter(NVL("PO_DISTRIBUTIONS_ALL"."ORG_ID",NVL(TO_NUMBER(DECODE(SUBSTRB(:B1,1,1),'
                  ',NULL,SUBSTRB(:B2,1,10))),(-99)))=NVL(TO_NUMBER(DECODE(SUBSTRB(:B3,1,1),' ',NULL,SUBSTRB(:B4
      27 - access("PO_DISTRIBUTIONS_ALL"."PO_DISTRIBUTION_ID"="AP_INVOICE_DISTRIBUTIONS_ALL"."PO_DISTRIB
      28 - filter("A"."SEGMENT3"='3010')
      29 - access("A"."CODE_COMBINATION_ID"="PO_DISTRIBUTIONS_ALL"."ACCRUAL_ACCOUNT_ID")
    Note: cpu costing is off
    67 rows selected.
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Conc program

    Hi,
    I know that the concurrent request can be a sql ldr program,pl sql,unix script or it may contain any other code.
    can any one say me what is the exact way to get the details about a conccurrent program.
    when i naviagate through conc program--->define i can find the type of the conc program whether it is a unix shell script or some other program but here i need the exact and all details of the concurrent program like what kind of object_type is involed in it, what is the package it will call and execute, what is the purpose of that request etc.
    please say me how can i get all these details.
    Thanks

    Hi;
    Please check:
    SYSADMIN >> Concurrent:Program>>Define
    SYSADMIN >> Concurrent:Program>>Executable
    Also see below thread for steps so follow steps and check details of conc. program
    Re: creating new custom concurrent manager
    Regard
    Helios

  • Not Waiting after invoking Oracle Conc Program

    Hi,
    My Scenario is for PO Interface iinto oracle is,
    Inside BPEL Process,
    Activity 1 is Invoking DB Adapter to Insert the records into Temporary Table.
    Activity 2 is invoking DB Adapter to call an Custom API to which picks the records from Temp table, validate and Insert the records into Interface Tables.
    Activity 3 is Invoking DB Adapter to Submit concurrent program , but that concurrent program is taking 1 minute.
    BPEL is not waiting for 1 minute for the program to complete.
    So I am putting WAIT activity so that Conc program finishes completely and creates the PO numbers in Oracle base tables.
    Activity 4 is Invoking DB Adapter Package.Procedure, which picks the PO number from oracle base tables and update them in Temporary tables send the PO creation/failure status , and email id of buyer through out variables.
    Activity 5 sends the email to the respective buyer with PO Status.
    We are seeing that Wait activity is not waiting for the conc program to finish completely and BPEL is executing till ACTIVITY 3 above, after wait activity its coming out.
    When I remove wait it executes all the steps in sequence without waiting for ACTIVITY 3 to complete successfully.
    Can some body validate my sceanrio and suggest the desired solution.
    Regards
    Manish

    Manish,
    I'm also currently in a similar project. To invoke a conc.prgm I did the following
    - wrote a pl/sql api where in I call the conc.pgm using fnd_request.submit_request and then I used FND_CONCURRENT.WAIT_FOR_REQUEST to wait for until the conc.pgm finishes.
    To get the status's back also, I did this part inside the same api. This way I achieved the desired result.
    Let me know if you need additional info.
    Thanks,
    Sen

  • Schedule conc program

    hi,
    i was asked to schedule a specific concurrent program under a particular responsibility and the conc program should run every sunday.
    please provide me the navigation path which would be very much helpful to me
    Aram

    Login to the Responsibility, then View > Requests > Submit a New Request > Click on OK > Type the concurrent program name > Click on Schedule button and see the date/time, then click OK.
    Thanks,
    Hussein

  • Call purchase requisition approval workflow in abap program

    Hello,
    I copied the standard workflow for the approvaI of a purchase requisition WS00000038 and i tested it. I create a purchase requisition in me51n. This is triggering the event releasestepcreated which starts my workflow. Everything goes ok.
    Now, i want to call this workflow in ABAP. I do not know exactly how to do it. Here is the code I tried.
    data: ls_objkey type SWR_STRUCT-OBJECT_KEY,
    lt_mesage type table of SWR_MESSAG,
    gt_container type table of swr_cont,
    gs_container type swr_cont.
    gs_container-element = 'ReleaseCode'.
    gs_container-value = '01'.
    append gs_container to gt_container.
    gs_container-element = 'requisition'.
    gs_container-value = '0010000362'.
    append gs_container to gt_container.
    gs_container-element = 'RequisitionHeader '.
    gs_container-value = '0010000362'.
    append gs_container to gt_container.
    ls_objkey = '0010000362'.
    CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
    EXPORTING
    object_type = 'BUS2009'
    object_key = ls_objkey
    event = 'RELEASESTEPCREATED'
    TABLES
    input_container = gt_container
    MESSAGE_LINES = lt_mesage.
    As you can see i filled he RequisitionHeader, requisition and release code. I saw in the workflow that i copied, that these are import parameters. Requisition and release code are mandatory. 0010000362 is a purchase requisition that i created.
    After i run the program i receive a work item in SBWP but it has the status error.
    Can you help me?Perhaps anyone has done this. I think that i am not filling the correct data or something like that. Maybe you can look in the standard workflow WS00000038 and tell me what I should pass and how.
    Thank you,
    Efren

    Hi Efren,
    The Problem is, for the purchase requisition there is two key fields.
    So when you pass the keyfiled to workflow it should be the concatenation of Purchanse requisition number and the item number.
    You have to pass the object key as below.
    ls_objkey = '00100003620010'.
    Then only your business object will getting insatanciated.
    Thanks,
    Viji.

  • How to trigger a workflow in webdynpro programs

    Hi Experts,
    I am new to SRM Workflow, and I need to trigger a workflow in my webdynpro programs.
    But I don't know how to achieve it.
    I am using SAP SRM 7.0, so I want to use Process Controlled workflow.
    Any suggestions would be greatly appreciated.
    Thanks and Regards
    Wei

    Hi, thank you for the attention, and my requirement is as below.
    1. Creating a web dynpro program
    2. User can execute the program and input data on it. Such as Expense application, Leave application...
    3. When the user click the "Apply" button on the form, the application should be sent to the boss for approval.
    *** I want to trigger a workflow when the user click the "apply" button.***
    I have achieved the similar functions in SAP ERP systems, by generating Events in my custom programs.
    But I don't konw how to do it in SRM 7.0.
    Or it is impossible to achieve it, under Process Controlled workflow architecture.
    Thanks and Regards
    Wei

  • How to trigger MDM Workflow  from ABAP Program.

    HI
    I have requriment  to trigger MDM Workflow(Design in MDM) from My Module pool program. Suggest how to do it?
    Thanks in Advance.
    Regards,
    Shyam Babu Sah.

    Hi,
    This question is for forum SAP Netweaver --> Workflow. There are functions and programmes that SAP delivers for this.
    [Example here|Re: How can I trigger workflow from my report]

  • How to trigger workflow from abap program

    Hi Experts,
    i have a user developed screen in which there is an option to approve (not a std tcode)
    for which there is no event created.
    i am very new to workflow ,
    now how to create an event and also how to trigger the workflow

    Hi,
    You can run a ABAP report or call a transaction from the BOR's Method directly.
    Check this link for more info.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/80/9a3cb3971c11d194c60000e82dec10/frameset.htm.
    In order to trigger an event programmatically, we would use the function module SWE_EVENT_CREATE.
    BUS1001006 ( Standard Material )
    here is the sample code.
    DATA: key LIKE sweinstcou-objkey.
    key = '68." 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.
    In order to test whether the event is getting triggered or not, we can make use of Event Trace. Switch on the event trace using the transaction SWELS.
    Press ‘Switch On”.
    Now execute the program developed earlier. Now switch-off the event trace using the same transaction SWELS.
    Now go to transaction SWEL. Here you can list out the events triggered in the particular period of time. Here is the event-trace list:
    Regards

  • Workflow vs Abap Program

    Hello Frienz,
    There is a typical business scenario with one of our client, I would like to get inputs from all of u..........
    Could u guys tells me is it possible to Call a Abap Program through a Workflow mail which has come to the supervisor's Lotus Notes Inbox for his/her action????????????????????
    Which means When supervisor opens the mail in LN is it possible to run a abap program when a radio button or any weblink is incorporated he or she clicks in the mail???????
    Requesting all of u to provide their valuable inputs.
    Regards
    Pavani G

    Hello Frienz,
    Thanks for all your valuable inputs................
    Sheeta / Manikya Raju: We had already tried the insertion of HTTP link but when we click on the link we r not able to run the program.......
    SAP HCM:
    1. S email received by supervisor is trigerred through Workflow only...........
    2. Unfortunately our LN Guy has not got any idea abt this..........
    Will very much appreciate for your quick response
    Regards
    Pavani G
    Edited by: G Pavani on Jul 28, 2009 2:04 PM

Maybe you are looking for