Triggering Workflow from Custom Module pool

Advertisement

Hi,
I am trying to trigger my workflow from my custom module pool using the function module "SAP_WAPI_START_WORKFLOW". I am passing the following parameters for the above function module
TASK, LANGUAGE, DO_COMMIT, USER and INPUT_CONTAINER
but, it is returning the following message
"You are not one of the possible agents of task 'WS90100020'"
Please suggest a solution for this problem?
Regards
Sujith P. Soman

Advertisement

Hi,
A better way would be to trigger your WF using an event and calling SAP_WAPI_CREATE_EVENT. But if you want to start it directly then if you are calling this FM in dialog you need to be a possible agent. The easiest is if you jsut make it a general task so anyone can start it.
In PFTC, open your WF goto Additional Data -> Agent assignment -> Maintain. Click on 'Attribnutes' and select 'General Task'.
Also run SWU_OBUF afterwards to synch all buffers before testing your FM again.
Cheers,
Mike

October 11, 2015

Triggering Workflow from Custom Module pool

Hi, I am trying to trigger my workflow from my custom module pool using the function module "SAP_WAPI_START_WORKFLOW". I am passing the following parameters for the above function module TASK, LANGUAGE, DO_COMMIT, USER and INPUT_CONTAINER but, i

Triggers workflow from badi

In crm 2007 two installed bases are there. one is customer ibase  and the other is company ibase   when the customer wants to transfer the component from company ibase to customer ibase(he simply drags  the component from company ibase to his ibase)

How to call a text editor from a module pool program

Hi All, I want to call the text editor from my modulepool program. Enter my text in it and save it.This text needs to be saved in a Z-program with 2 fields as primary keys. The next time while I call this same record from this z table, I need to fetc

Reusing Standard Classes for Module pool Programming using Abap Objects

Hi.,     I debugged the ME21n transaction and found a number of classes such as          CL_BASIC_MODEL_VIEW_MM          CL_GENERIC_MODEL_VIEW_MM          CL_GENERIC_VALUE_MODEL_MM          CL_MODEL_CONTAINER_MM          CL_MODEL_CONTROL_VIEW_MM     

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 t

How to create select-options on module pool screen

Hi all I want get a range of values from the user from the module pool screen. Is there any element available on module pool screen like select options on the selection screen of reports. reply me ASAS. Thanks.hi krishna actually I want to display th

How to create transaction or screen variant for custom tcode in module pool

Hi,           I have one module pool program with custome tcode ,i want to create transaction or screen variant for this tcode.Next time when we run this tcode we need a variant for this tcode. I tried by using of SHD0 but it is working only for stan

How to delete a column from the table control in module pool?

Hi,   can any one please tell How to delete a column from the table control in module pool? thanks in advance warm regards HareeshKumar Nhi hareesh, I think it is better to hide it. How to hide: You can check this link Dynamic Hide column in table co

Triggering workflow of an object from the workflow actions of another

Hi, We have associated contacts to custom object 5 . For reporting purposes, the value of contact's account is being copied to the custom object's account through workflows whenever custom object record is created or edited. In case a custom object r

How to pass the field value from module pool program to smartform using submit?

// AT pai of module pool pgm i entered the following: here gv_orderid is my value to be available at smart form(driver pgm) & zmusic_store_smf is the driver program of my smartform. gv_orderid= wa-itemid./ SUBMIT ZMUSIC_STORE_SMF VIA SELECTION-SCREEN

I want to go back from mandatory field in module pool program

Hi i am doing tab strip control in module pool program.i want to go back from the selection field, which is a mandatory, to the main program by pressing f3.but i am nt able to get the output.can anybody pls help me. AmayikaHi 1. For your BACK or CANC

Invoking Custom BPEL Workflow from ContentDB DocumentReviewWorkflow

Hi, I am trying to invoke Custom BPEL Workflow from Contentdb. I can see TaskActionHandler and DocumentReviewWorkflow instance created in BPEL using BPELConsole. This workflow is waiting for approval. When I am login to worklist application I can not

Generating a spool from module pool

hi all,   i have a requirement to directly send output to a spool. the program type is module pool. is it possible to write the output in spool from module pool. please explain how to do that. Thanks in advance. Regards, Lakshmi.What it the output of

Urgent : Smartforms: Direct printing from module pool/dialog screen

Hi all, i have a module pool screen where in from a screen i have some inputs from the user and after saving user wud click on a button called print which shud print a slip containing the screen data.now for this purpose i have made a smartform which

How to get the cursor position from screen in module pool program

Hi, I am doing the module pool program, I have one table control in one screen. I have to give functionality to the user that when the user enters first record in the table control and after filling the last field when he presses enter the cursor wil

How to call module pool  from Bussiness event.

Hi SDN, I have a reqd where ....through a business transaction event..I need to call a module pool screen. I will also need to pass few internal tables present in the business event to the module pool screen. Please tell me the steps or a code segmen

Start Workflow from transaction

Hi , Please let me know, where can i subscribe my custom workflow to trigger the workflow if we want to start the workflow manually from transaction FV60. Thanks in advance SarathHi I am not very much sure about how the txn FV60 look and feel would b

Module Pool Programming - Calling SAP Standard Text Screen

Hi Gurus I am working on Module Pool Programming...In the one of the screen there is a column named "Description"  where I need to keep a Button to call a SAP standard text editing screen and what ever information I enter in the field should be

How to update field values in a database table using module pool prg?

hi how to update field values in a database table using module pool prg? we created a customized table, and we put 2 push buttons in screen painter update and display. but update is not working? data is enter into screen fields and to internal table,

How to call a "Z"module pool program in a "z"report

Hi Guys, I have two reports . 1. Report : uploads a tab delimited " .Txt1" file and update the "z1" table     ".TXT1" : File contains 4 fields 2. Module pool. :Uploads a a tab delimited " .Txt2" file and update anot