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, 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

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

Similar Messages

  • Save a variant in a custom module-pool.

    Hi all,
    i hope there is someone that can help me.
    My problem is: i've to save a variant in a module-pool custom SAPMZ...ecc.
    Is there a function module or a routine or some specific ABAP istruction to save a variant?
    I ask this because in my custom module-pool i've insert input field in main dynpro.
    Thanks a lot,
    regards,
    Alex.

    Please use below code it works for me:
    What I did was copy the function group SVAR.  When it asked what function module to copy just select
    'RS_VARIANT_SAVE_FROM_SELSCREEN' and renamed it to 'ZS_VARIANT_SAVE_FROM_SELSCR'.
    DATA: lv_screen LIKE sy-dynnr.
      CLEAR: t_rkey, t_screen.
      REFRESH: t_rkey,  t_screen.
      t_rkey-report = sy-repid.
      APPEND t_rkey.
      t_screen-program   = sy-repid.
      t_screen-dynnr     = '0101'.
      t_screen-type      = 4.
      APPEND t_screen.
      lv_screen = '0101'.
      EXPORT lv_screen TO MEMORY ID 'MZ_COMISSION_REPORT_F02_SCREEN'.
      CALL FUNCTION 'ZS_VARIANT_SAVE_FROM_SELSCR'
        EXPORTING
          curr_report          = sy-repid
          vari_report          = sy-repid
        IMPORTING
          variant              = w_variant
        TABLES
           p_screens           = t_screen
         p_sscr               = t_selctab
         p_vari               = t_vari
        EXCEPTIONS
          illegal_variant_name = 1
          not_authorized       = 2
          no_report            = 3
          report_not_existent  = 4
          report_not_supplied  = 5
          OTHERS               = 6.
      t_rkey-variant = w_variant.
      MODIFY t_rkey INDEX 1.
      CALL FUNCTION 'RS_RWSET_SAVE_VARIANT'
        EXPORTING
          rkey    = t_rkey
        TABLES
          selctab = t_selctab.
    Then in program LZSVARF07 function save_as_variant find where it's transfering the screen.
      READ TABLE variscreens WITH KEY dynnr = sy-dynnr.
      IF sy-subrc NE 0.
        IMPORT lv_screen FROM MEMORY ID 'MZ_COMISSION_REPORT_F02_SCREEN'.
        IF lv_screen IS INITIAL.
          variscreens-dynnr = sy-dynnr.
        ENDIF.
      ENDIF.
      PERFORM fill_varidyn TABLES p_dynsfields
                           USING  $rkey space. "Kein import von DYNSFIELDS
    Good luck!
    Edited by: Alex Nguyen on May 2, 2009 1:36 AM
    Edited by: Alex Nguyen on May 5, 2009 5:26 PM

  • Custom Module Pool...

    Hello SDN ABAP Community,
    I researched this question on the web and in SDN before posting this because I would like an up-to-date understanding of best way to do this.
    I have a need to write a custom module pool.  It has been a while since I have been to class.  I need to get figured out how my naming conventions will work for all the pieces of the module pool (SE51, SE41, pieces of the SE38 module pool).
    I seem to remember the teacher saying that the way that SAP allows for customer created module pools was to set the 5th character of the name to 'Z'.  eg- sap would use SAPMPetc.  customer would use SAPMZetc.
    From my searching of web I found following naming standards...
    Module pool                             - SAPDY* SAPDZ*
    Module pool for dialog               - DY* DZ*
    INCLUDES                              - SAPMY* SAPMZ*
    Module pool for screens            - MY* MZ*
    INCLUDES                              - MP9*
    Module pool for info types         - MP9*
    INCLUDES                              - SAPFY* SAPFZ*
    Module pool for subroutines      - FY* FZ*
    INCLUDES                              - SAPUY* SAPUZ*
    Module pool for update program - UY* UZ*
    INCLUDES
    From searching SDN I found following link for ABAP objects, but I am needing for module pool.
    http://help.sap.com/saphelp_nw04/helpdata/en/92/c2b084bc1d11d2958700a0c94260a5/frameset.htm 
    So my question... is there any SAP resource that I can look at to see SAP naming conventions for customer created module pool with SE41, SE51 and SE38?
    Thank you,
    Dean Atteberry.

    Hi Dean, here you can take a look at SAP´s official customer name ranges for all objects, including Module Pool: http://help.sap.com/saphelp_nw04/helpdata/EN/2a/6b0b1f547a11d189600000e829fbbd/frameset.htm
    Best regards,
    Federico Alvarez

  • How to cal WSDL from Custom Module?

    Hi Experts,
          How to WSDL from Custom Module.Is it possible to cal WSDL through http call?
    Regards,
    Rajesh.D
    Edited by: Rajesh Kumar on Sep 17, 2008 8:17 AM

    >>How to WSDL from Custom Module
    Plz rephrase your query
    >>Is it possible to cal WSDL through http call?
    why you need to call WSDL using HTTP?  Did you mean to consume webservice using http call?
    Thanks
    Farooq

  • Custom module pool + Amount field decimals display same as standard screen display

    Hi All,
    Requirement: A custom module program screen field has to be designed which displays decimal values of amount fields same as amount fields in standard screen.
    Standard screen behavior: If the standard screen fields are observed, they refer to data elements WRBTR or AZSOL_F05A (transactions FB50/FB03/FB01). However, number of decimal places that are visible on screen are dependent on the currency that is provided.
    Both the data elements have 2 decimal places.
    For currency USD two decimal places are displayed - in TCURX - decimal places are two.
    For currency JPY or CLP - zero decimal places are displayed  - in TCURX - decimal places are zero.
    i.e., even though the screen field refers to data element or domain that has the characteristic to show 2 decimal places, based on currency, decimal places are adjusted.
    I would like to know how this is happening on standard screen fields.
    Solution Required for: How to make the custom screen amounts to display same number of decimal places as standard screen amount fields.
    P.S: Before posting the query here, research has been done in SDN and other places. It has been identified that quantity fields adjustments are discussed. However for amount field even though discussed earlier, did not reach a conclusion.
    I would like to get a solution for this one.
    Thanks in advance.
    Goutham.

    Thank you all for taking time to take a look at this query.
    This issue has been resolved.
    Resolution: If the standard transactions (FI transactions in specific) are observed, whenever there is a field that displays amount value, there will be a corresponding field (may not be beside the amount field, somewhere on the screen or in the same sequence of screens) where the currency key value would be entered.
    For instance, if you look at FB50 - there is field on top for the user to input currency key value (like USD or CLP or INR).
    When any amount field is declared - this currency key field is provided as the reference field in the screen attributes of the amount field.
    In short, in the custom module pool program, provide a field that holds currency key value and use this field as reference field for the amount fields.
    Do repond to this thread if the resolution is not clear.
    Thank you all once again.
    Goutham.

  • Call LSMW from a Module pool screen

    Hi SAP gurus,
    In order to call an LSMW from a module pool screen, there is a Function module which I have used earlier, but unable to recollect it. Can someone please tell me the FM which we need to use ?

    Sudhakar,
    Create an LSMW and assign it to a tcode and then call this tcode from the module pool program so that it  will skip all the screens just by allowing the user to input the files and run the lswm.
    Regarding the FM I have no idea.
    K.Kiran.

  • 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) that needs to go for approval process. no event is triggering at this point. after he press save button 3 badis are triggering, i found one badi which suits me  the problem is i will trigger workflow from badi if  that approver approves that component should be saved in companys ibase if approver rejects that should not save   anyone please guide me how to handle  this ....

    Hi Sunil,
    To achieve this functionality, in t-code SE18 create a BADI implementation and add a function module call to SAP_WAPI_CREATE_EVENT. Trigger any BO event and associate the same event as the triggering event  of your workflow.
    Please note that direct workflow call is not an optimum approach so use BO events.
    Create a workflow using t-code SWDD. Add a 'User Decision' step to send workflow task to the approver.
    Add two branches in it one for 'Approve' other for 'Reject'. In the approve branch add the logic for saving the component in company ibase.
    Hope this helps!
    Regards,
    Saumya

  • Get data from a module pool

    Hello ABAP Experts,
    I am BW person, and looking to extract the data from the table display from one of the trasactions in R/3.
    tcode: fmderive
    i checked the the program it is : SAPMABADR (module pool)
    fields of hte table belong to: structure FMDERIVE
    If i can get the data into a internal table. That would be great, i can do the rest of the processing before i extract this data to BW.
    Any suggestions appreciated.
    Thanks,
    BWer

    Hi,
    It is possible to extract data in internal table. The internal table should be of a particular STRUCTURE which is created in SE11. Populate the internal table in program.
    I do not remember the exact command, but it is somewhat as below. With this it is possible to extract data in BW.
    *<QUERY HEAD> "Always comment this statement
    loop at it_data into wa_data.
    append wa_data to it_fmderive.
    endloop.
    *<QUERY BODY> "Always comment this statement
    The internal table it_fmderive can be used to extract data in BW. This is the only way to extract data.
    Also refer following link :
    http://www.thespot4sap.com/articles/SAP_ABAP_Queries_DataRetrievalUsingProgram.asp
    Best regards,
    Prashant
    Message was edited by: Prashant Patil

  • Where  to Store the value from custom Module?

    Hi Experts,
                   I am having Custom Module for altering the payload .From that payload I need to store a particular value.where can i store that that vlaue ?.Custome module is inOutBound.
    Regards,
    Rajesh.D
    Edited by: Rajesh Kumar on Sep 18, 2008 1:13 PM

    Hi Bhavesh,
                My scenario is Idoc to WebService.In custom module i had called webservice through http call it had returned connection id.Payload is passed with connectionID to Web Service for calling other methods.Next i have to close the connection with Same Conncetion ID in another Custome module.so i have to store some where and reterive in my module.pls help
    Regards,
    Rajesh.D

  • Regarding exit from the module pool screen

    h experts,
    i have developed a module pool report in which in the selection screen i have four fields which are mandatory ,when i execute the program without entering in the selection screen it do not allow to come out of the module pool screen ...what i want that without entering any input in the selection screen if i press exit button push button it will allow to come out of the screen for this what sud i do plz help me....

    Hi
    keep a button called <b>EXIT</b> on the screen
    Make the function type of that field as <b>E</b>
    in Flow logic write
    PROCESS AFTER INPUT.
    Forced Exit from the transaction from screen
      MODULE exit AT EXIT-COMMAND.
    double click on exit module and
    then in PAI write
    *&      Module  exit  INPUT
    Exit from the Transaction
    MODULE exit INPUT.
      CASE okcode.
        WHEN 'EXIT' OR 'CANCEL'.
          CLEAR okcode.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " exit  INPUT
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Custome module pool creation

    Hi All,
    I have a requirement to create a module pool for maintaining data for some custom tables I created in SAP.
    I'd like to ask what the quickest way to create a module pool for the above is. I have been able to create maintenance screens using the extended table maintenance tool but there is a requirement for a more user friendly holistic approach.
    Any helpful suggestions will be greatly appreciated.
    Regards,
    Andy.
    Moderator message - This is not the place to learn module pool programing. Please try to ask a specific question.
    Edited by: Rob Burbank on Apr 16, 2009 9:14 AM

    Do like below
    if ok_code  = 'MODI' .  " for your modify button
    call transaction ' you transaction name '.
    now
    if  sy-ucomm = 'SAVE' or 'EXIT' or 'BACK' or 'CANC' .
    call screen 'your basic screen no.'.
    endif.
    endif.
    reward if helpful

  • Save triggered data from 2 modules

    I am using SignalExpress (3.0) with USB cDAQ-9172, a NI9203 current and NI9201 voltage module.  After Acquiring data (continuously), I am using a software trigger on the 9203 current signal to analyze and save the triggered data (collected from all 8 channels on 9203).  However, I am not able to save the data from 9201 voltage module?  It looks like the software trigger only accepts a single module input (I think).  As shown in the attachment "trigger Input.jpg" I can only select 1 module as the input for the software trigger (either the current module or the voltage module)
    Is there any way to trigger on a single channel and then save data from both modules?
    Thanks!
    Ryan
    Solved!
    Go to Solution.
    Attachments:
    trigger Input.JPG ‏32 KB
    Step setup.JPG ‏51 KB

    Hey Ryan!
    You can actually do all of this in one DAQmx Acquire step.  There is a tab in the Acquire step where you can specify your triggering.  Then there is a recording options tab up at the top where you can choose to save your data when the logging starts to a TDMS file that can be read in excel.
    Doug Farrell
    Product Manager - Condition Monitoring
    National Instruments
    National Instruments Condition Monitoring
    Attachments:
    sigex.png ‏21 KB

  • Triggering workflow from Web Dynpro

    Hi,
    What is the best way to trigger a workflow from a web dynpro application?
    Is there a standard 'Netweaver' workflow component or only the classic workflow is available?
    I want to trigger some workflow activity after the user has made a new entry using the dynpro application.
    Also is there a way to view the users 'Inbox' in a web browser or the only way is to use iView in a Portal?
    Thanks for any feedback.
    Regards, Hari

    Thanks for the information Tomas & Anil.
    What part of the component is GP? Is it part of CAF?
    Anil you have mentioned I need to install it on the J2EE.
    We have currently Java stack for Web AS 6.4, what other components do I need to make this happen.
    Thanks, Hari

  • Triggering Workflow from Adobe Form in ERP

    Hello,
    With SAP ERP 2005 version, Adobe Interactive forms can be created within SAP environment. Is there a way to link the SAP Adobe forms to a SAP Workflow instead of using the Adobe Workflow Designer?
    Can we trigger the approval process using SAP WOrkflow from Interactive Adobe form?
    Thanks.

    Hi Anjali,
      Interactive Forms is integrated in other environments that use workflow and make it easier to set it up:
    Guided Procedures (in NetWeaver 2004s): Fully Java-based, GP is the process component of the Composite Application Framework (CAF), and thus largely model- and not development-based. You can use an interactive PDF form in a GP for offline steps.
    Refer the link for more info on  CAF
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/devguide2004s -> Fundamentals -> Creating Composite Applications">CAF</a>
    The general integration into Web Dynpro, which allows you to build a workflow from scratch (requiring full workflow knowledge) and integrate the forms as steps in the workflow. Using this method, you could also integrate PDF forms into lower-release backends.
    Hope this helps
    Regards,
    Sharadha

  • 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 fetch the existing text and display it.
    The user now can put in additional text and can again save it. This process thus goes on..
    If anyone has worked in this type of scenario, then please help me in doing this.
    Useful answers will surely be rewarded.
    Thanks,
    Susanth.

    Hi Sushanth,
    We save the text not as fields in a ztable directly but as a text.Please check the format below since it is based on a working code....
    first you need to create a text in s010 transaction...
    there should be some key based on which you plan to save the text..imagine it is Purchase order then..PO+item numner is always unique.eg:0090010(900PO/item10).so in the code you can append these two and they will be unique..so you can always retrieve them,overwrite,save them anytime you need
    **************data declarations
    TYPES: BEGIN OF TY_EDITOR,
    EDIT(254) TYPE C,
    END OF TY_EDITOR.
    data: int_line type table of tline with header line.
    data: gw_thead like thead.
    data: int_table type standard table of ty_editor.
    ****************fill header..from SO10 t-code..when you save you need the unique key..youfill it here and pass it in save_text function module
    GW_THEAD-TDNAME = loc_nam. " unique key for the text -> our unique key to identify the text
    GW_THEAD-TDID = 'ST'. " Text ID from SO10
    GW_THEAD-TDSPRAS = SY-LANGU. "current language
    GW_THEAD-TDOBJECT = 'ZXXX'. "name of the text object created in SO10
    *To Read from Container and get data to int_table
    CALL METHOD EDITOR ->GET_TEXT_AS_R3TABLE
    IMPORTING
    TABLE = int_table
    EXCEPTIONS
    ERROR_DP = 1
    ERROR_CNTL_CALL_METHOD = 2
    ERROR_DP_CREATE = 3
    POTENTIAL_DATA_LOSS = 4
    others = 5.
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    loop data from int_table and save to int_line-tdline appending it.
    *save the text
    CALL FUNCTION 'SAVE_TEXT'
    EXPORTING
    HEADER = GW_THEAD
    TABLES
    LINES = InT_LINE
    EXCEPTIONS
    ID = 1
    LANGUAGE = 2
    NAME = 3
    OBJECT = 4
    OTHERS = 5.
    IF SY-SUBRC 0.
    ENDIF.
    *To pass to Container
    CALL METHOD EDITOR ->SET_TEXT
    hope that the above sample with helps you solve the problem
    Please check and revert,
    Reward if helpful
    Regards
    Byju

Maybe you are looking for

  • How to save all records in the Tabular form page temoprarily

    Hi All, I am very new for HTML DB. I created 5 tabular form using HTML DB Wizard. I want that whenever I open any tabular form page and click the add row button in that page then I should add as many record as we need but it should not save in the da

  • Access to Oracle Database by a specific user from a client system.

    Hi All, I need to restrict a particular client system to access the database only by a specific user credentials. I mean system A(hostname) can only connect the database PQR only and only by user U123. Any help is sincerely appreciated. Regards Swapa

  • Error when deploying application

    Hello! We are trying to migrate our application from Tomcat 5.5 to WebLogic Server and we are getting some problems. When we deploy the application we are getting the following error: ####<Sep 11, 2008 11:51:22 AM WEST> <Error> <HTTP> <VMWEBLOGIC> <A

  • Web form {tag_webformresults} appearance is there a better way?

    OK so the default action of BC to display webform results in an email and redirect page is a shocker to say the least. I say this in respect to when you start to include Extended CRM Database fields as part of the webform and start creating an extens

  • Safari 4.0.3 update has problems, AVOID it

    I was browsing Lotus Talk (www.LotusTalk.com) specifically this thread of mine: http://www.lotustalk.com/forums/f100/hod-infineon-7-4-09-ouch-75545/index2.html When I used my Logitech scroll wheel I got the spinning beach ball after every scroll -- o