Workflow doubt.

Hi,
I have created a Business Object with one method which has a result parameter. And I wrote the necessary Business logic in that method populating that Result Variable. This is working fine when I test the BO in BOR.
But when I attached it to a task I am unable to get Result Parameter value to the workflow? Why is it so?
I have done the necessary BINDING's. Infact I am confident with Bindings.(I mapped the WIRESULT from Task Container to my Workflow Container Variable also).
Is there any thing that I miss for Result Parameters?
Regards,
Raja Sekhar.

Hi,
Check The following:
Synchronous and Result parameter attributes for the method are checked.
Result type is defined. For instance I used Reference table = SYST, Reference field = SUBRC. The WF container element to receive the result is defined with the same reference.
The code in method is something like below:   
BEGIN_METHOD UPDATE2 CHANGING CONTAINER.
DATA:
      UPDATE2 TYPE SYST-SUBRC.
Your logic.
  update2 = 16.
  SWC_SET_ELEMENT CONTAINER RESULT UPDATE2.
END_METHOD.
AND Lastly the Binding in WF is from Task to WF.
Cheers,
Ramki Maley.

Similar Messages

  • Workflow - Header vs. Item level

    Hello,
    I am looking for some documentation / list of pros and cons of implementing header level workflow vs. item level. I understand that item level is more difficult to implement, but what are the benefits.
    We are looking at two types of approval, financial approval and commodity based approval and I would like to understand more before making a decision.
    Many thanks,
    AR

    Hi,
    For your  requirement,you can go for N step HEader level SC  Approval Workflow.I have worked on a similar reqt and the agent determintation can be made flexible based on runtime values thorugh the BADi BBP_WFL_APPROV_BADI.
    Advantages of header level WF is that its very flexible.Disadvantage is that some techincal problems require application of OSS notes e.g graphical Preview inconsistent.
    I have not worked on Item level WF so cant comment on that.For more info  ,pls refer the foll links:
    http://help.sap.com/saphelp_srm50/helpdata/en/17/40a86c773d6c41801d78af1a34b90f/content.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/a3/a6a34098022a54e10000000a1550b0/content.htm
    Useful Workflow  links ->
    SRM Business Workflow
    http://help.sap.com/saphelp_srm50/helpdata/en/8b/4fa9585db211d2b404006094b92d37/frameset.htm
    Setting Up SAP Business Workflow
    http://help.sap.com/saphelp_srm50/helpdata/en/ee/277e3c281f1817e10000000a114084/frameset.htm
    Related links:
    Re: SRM workflow doubts....
    Triggering SRM workflow from a  web-based form (HTML)
    Workflow debugging
    Re: Triggering an alert
    BR,
    Disha.
    <b>Pls reward points for useful answers.</b>

  • How are agents assigned from approval_table to workflow?

    Hi,
    For N-step approval badi,the approvers are populated in the table approval_table.Can any one help me in understanding how the approvers are taken from this table and assigned to the workflows?
    Thanks in advance,
    Navin

    Hi Naveen,
    Chekc if this links give you some pointers:
    Re: SRM workflow doubts....
    Regards,
    Saumya

  • Regarding Approver agent determination

    Hi,
            I am new to SRM and i have a requirement to change the Workflow which is trigerred whenever a shopping cart is created and mail is sent to the approver for approval of the same.
           Here on creation of shopping cart i need to do some changes while determining the approver and i dont know exactly in where is this approver determined. Business object BUS2121 has been customised.
           Can any one please let me know the place exactly where this Approver Agent is determined, i need the method and the business object.
    Regards,
    Ravi G

    Hi,
    Whcih Workflow are you using for the Shopping cart approval?Based on the workflow used,teh agent determination varies e.g. for the Std 1step  ,2 step approval workflow,agent assignement is done at the task level but for N step approval workflow the agent determination is done thorugh the BADI "BBP_WFL_APPROV_BADI".
    See teh foll link for more details:
    SRM Business Workflow
    http://help.sap.com/saphelp_srm50/helpdata/en/8b/4fa9585db211d2b404006094b92d37/frameset.htm
    Setting Up SAP Business Workflow
    http://help.sap.com/saphelp_srm50/helpdata/en/ee/277e3c281f1817e10000000a114084/frameset.htm
    Related links ->
    Re: SRM workflow doubts....
    Triggering SRM workflow from a  web-based form (HTML)
    Workflow debugging
    Re: Triggering an alert
    Depending on the Approval Workflow, you are using, there are Binding Events under the Triggering Events tab of the Workflow inside the Workflow Builder (Transactions - SWDM / PFTC ).
    There the event can be defined, depending on the Business Object Type methods avaiable in SWO1 Transaction for BUS2121 in our case. (SAVED => Reqt cov. request Shop. cart created )
    Refer to this link for more details.
    http://help.sap.com/saphelp_srm50/helpdata/en/2c/e68d406b305537e10000000a1550b0/frameset.htm
    BR,
    Disha.
    <b>Pls reward points for useful answers.</b>

  • Some doubts in Workflow

    HI Gurus ,
    I have some  doubt in workflow basically I know how to use them but i don't know what is functionality ,
    could you plz explain me , else suggest me
    1. why we have to do delegation , what happens at run time if we don't do delegation
    2. What is the diff between task and workitem
    Thanks
    Prasad

    Hello,
    I would suggest searching for "sap workflow" on the internet, buying a SAP workflow book and/or taking a SAP workflow course.
    regards
    Rick Bakker
    Hanabi Technology

  • One doubt on CRM Workflow.

    Hi All,
    I have a clarification to be made.
    Below are some requirements from a CRM project. Now we are planning to train some one to handle this part and essentialy his role is on Workflow. Now my doubt is whether this person should take CRM training or workflow training? One thing to note here is that the person does not have any CRM background also. So my question is whether this person needs to take Workflow training or CRM training( I am not sure whether CRM training has workflow in it) or something else(meaning first CRM and then Workflow, since the project is on CRM)?
    The requirements are in bold.
    <b>1. Ability to define a Customer Program, including, but not limited to:
    will adhere to role based security
    informational program characteristics
    program eligibility rules
    technical prerequisites (e.g. equipment)
    program specific options (e.g. bill protection)
    enrollment related work flow steps and prerequisites
    funding accounts
    <i>Comments : Standard SAP functionality. May need workflow</i>
    2.Ability to automatically enable or disable program functions.
    <i>Comments : Workflow or Actions can be used.</i>
    3.Ability to generate automated notifications/ticklers when program steps need to be taken.
    <i>Comments : Workflow or Actions can be defined to trigger Notification on certain events.</i>
    4. Notify appropriate Program Manager if measure factors or incentive rates are changed.
    <i>Comments : Need workflow or Actions to trigger this.</i>
    5. Associate the completed audits to actual programs and when applicable tie to a programs workflow requirements.
    <i>Comments : Link is Standard SAP Functionality and needs to define workflow.</i>
    6. Ability to generate customer communications based on triggers such as; dates, changes to customer information, work flow steps, etc.
    <i>Comments : Needs to develop workflow or actions to trigger Notifications on pre-defined rules.</i>
    7. Based on program, allow for multiple incentives or timed incentives based on workflow process completion steps.
    <i>Comments : Need to be configured in Rebate Processing</i>
    </b>
    Thank you,
    Regards,
    Manesh

    Hi,
    The steps which u have done al are correct
    Find the information below for BWA1,BWA5 and BWA7
    BWA1:
    1.BW adapter which will give you meta data information and if you want to chnage any settings relatede to mapping or if you want add any BDOC mapping you can  do by using this Tcode
    2. We c an copy  BW adapter data source and we can create custom BW adapter data  data source by using copy function
    3. We can change the selection conditions for the data source
    4. we can  bdoc mapping information under mapping tab,if you want to add any new field to map with new bdoc segment ,we have to map here;for ex  if you want to extract  Extractnal reference number from  0CRM_SRV_PROCESS_H  data source
    we have to follow below steps
    1.enhance Extract structure
    2.Add bdoc mapping in BWA1 with perticular BDOC segment for example Sales bdoc segment mapped with Extractnal reference number
    3.Add code in Mapping module of data sourc eto fetch data or write code in Badi CRM_BWA_MFLOW to fetch data for newly added fields
    BWA5:it will show all activated BW adapter data source information under ACTIVE  tab
    BWA7: it will have all BW adapter  delta enabled data source information,if your data source is not available under BWA7 ,that means you didnt enable delta for the same (not intialized )
    Table information:
    SMOXAFLD: Field List: Key Attributes for BWA Master Data Delta Queue
      for example :  DISTR_CHAN, PRODUCT_GUID,  SALES_ORG are key fields for data source 0CRM_PRODSL_ATTR        
    SMOXRELP:BWA: Use of Segments and Fields in DataSources
    BDOC segment mapping information fro the data source (which u have used in BWA1 under mapping tab)
    SMOXRELP_S: Shadow Table for Table smoxrelp
      which will give information  about BW selection whether we can use this field for BW selection for data loading iof its marked for selection u can see in rsa3 selections.

  • Very urgent: Doubts regarding CRM WORKFLOW OF BUSINESS PARTNER CREATION

    HI ,
    I HAVE DOUBTS REGARDING CRM WORKFLOW OF BUSINESS PARTNER CREATION, WHILE I AM CREATING BUSINESS PARTNER THROUGH R/3 , IT REFLECT IT INTO MYSAP CRM ALSO, AT THAT TIME IT SENDING THE MAIL TWICE TO THE RECEIPIENT. IS THERE ANY WAY THROUGH  WHICH I CAN RESTRICT IT TO SEND THE MAIL ONLY ONCE,
    PLZ SEND ME THE REPLY AS SOON AS POSSIBLE,
    THANKS  ADVANCED,

    HI
    WORKFLOW SEETING. SAP MAIL
    MULTIPLE MAILS AND
    ONLY ONCE CHOOSE
    ONLY ONCE OPTION ON WHICH VERSION U R WORKING?
    REWARD IF HELPFUL
    VENKAT

  • Doubt in Workflows using Programming Exits on OO ABAP

    I have a doubt on workflows:-
    Let me brief you about my requirement:
    I am trying to update some Master data using ABAP Methods through Programming Exits in a Workflow.
    I managed to find an OO method that can fetch the workflow container values directly into the structure.
    While testing the workflow:-
    The OO ABAP method executes and successfully updates the master tables.
    However, a calling method (that triggers this method indirectly), raises an exception called SWF_RUN_WIM_EXEC_INTERRUPTED.  
    The exception is caught within the caller method and the workflow errors saying that “the method ABC… cannot be executed.”
    The caller method is:-
    CL_SWF_RUN_WORKFLOW_START
    The exception is raised on execution of the following statement:-
    CALL METHOD me->start_workitem( lh_wi_handle ).
    One reason for this is that the workflow is still not completed and still in “READY” state.
    Alternative method
    Once the Master data is updated successfully,
    I tried to use the FM SAP_WAPI_WORKITEM_COMPLETE to end the work item or tried another FM to suspend the workflow.
    Now it gives an error saying that these FMs are restricted from use during run-time execution.
    Query
    Do you have an idea why the exception is raised and how to track/prevent the same?
    Can you suggest any other alternative?  Your valuable advice is urgently needed.
    Thanks a million in advance,
    Best Regards,
    Vinod

    Check the code
          CLASS zcl_event_handler IMPLEMENTATION
    CLASS zcl_event_handler IMPLEMENTATION.
    Top-of-page event
      METHOD top_of_page.
        PERFORM event_top_of_page
                USING z_dyndoc_id.
      ENDMETHOD.   "METHOD top_of_page
    Change Status Button
      METHOD handle_toolbar.
        IF NOT pa_prodr IS INITIAL.
          DATA: lz_toolbar  TYPE stb_button.
          CLEAR lz_toolbar.
          MOVE    'CHANGE_STATUS'  TO lz_toolbar-function.
          MOVE    text-001         TO lz_toolbar-text.
          APPEND  lz_toolbar       TO e_object->mt_toolbar.
        ENDIF.          "IF NOT pa_prodr IS INITIAL
      ENDMETHOD.   "METHOD handle_toolbar
    Handle User Command
      METHOD handle_user_command.
        CASE e_ucomm.
          WHEN 'CHANGE_STATUS'.
            LOOP AT    it_output
                 INTO  wa_output.
              IF wa_output-chk_box EQ kc_x.
                z_flag = 1.
                EXIT.
              ENDIF.          "IF wa_output-chk_box EQ kc_x
            ENDLOOP.      "LOOP AT it_output INTO  wa_output
            IF z_flag EQ 1.
              PERFORM display_selected_data.
            ELSE.
              MESSAGE i001(zzrefn01)
                      WITH text-023.
            ENDIF.       "IF z_flag EQ 1
        ENDCASE.      "CASE e_ucomm
      ENDMETHOD.   "METHOD handle_user_command
    ENDCLASS.   "zcl_event_handler IMPLEMENTATION

  • Doubts in workflow steps

    Hai,
    I want to use a local workflow in exsisting scenario with minor modification.
    My doubt is In one step(change basic material data field in basic data2 in material master material) i send it one user(user1) with previous step results and he should change the data in specified field and it has deadline monitor.
    if the work item has reached deadline i again send it to new user(user2), at the same time i should get who missed deadline detail and should deativate the unexecuted workitem(user1's inbox)
    and send mail to the new user(user2) with details of previous step results.
    workflow like this:
                   previous step
                   send mail to responsible agent
                   send change material work item
                   the change is not finished again
                    start with sendmail to responisble user
                    step and execution continue        
    how to do this.
    please suggest me.
    thanks,
    Elamaran.

    Hi,
    For your scenario the workflow design should look something like this,
    Note:
    In the workflow container create a variable with length 1.
    Make sure that you pass this variable to all the activities in the workflow. That is from Workflow -->Task.
    Step 1: send mail to responsible agent
    Step 2: send change material work item
    Step 3: The change is not finished again and if changes are successfully done set the variable created in the workflow container as "X" otherwise "SPACE".
    Step 4: Here create a loop until operation step, this activity should check the value of variable created in the container. If it is X come out or send the mail again.
    Design:
    ======
    ACTIVITY LOOP OPERATION
       Step/Activity 1
       Step/Activity 2
       Step/Activity 3
    CHECK the variabl value set in step 3.
    Depending up on the variable teh control is transferred to Step/Activity 1.
    Mail me if you are not clear. Because some parts of Workflow cannot be explained without the screen shots.
    You give your mail ID will send a document on Workflow.
    Regs,
    Venkat Ramanan N

  • Doubt in Solution Manager Workflow

    Hi all
    I have created one workflow for support disk. I used BUS2000116 business object. Before that i created Z business object for BUS2000116. Bcos i need to include events and methods (Customization). So i created  ZB2000116. After that i selected delegate.
    My doubt is when i creating workflow (in Task) in SWDD, which business object i can use  <b>ZB2000116 or BUS2000116.</b>.
    Can i use BUS2000116 ?

    Hi,
    I always use the standard object. So if SAP changes any method or attribute I will have the latest version, and I don't have to do these changes myself.
    Because you delegated the subtype you can use the standard object.
    Regards,
    Martin

  • Doubt in PR, PO release authorizations and in workflow

    hi all,
           I have a doubt in release authorizations in PR, PO. I have designed the workflow and it is working fine for PR, PO release. The corresponding persons getting work item in their inbox.
    But in the standard transaction code ME29n, the other users also getting the PR for release and it is getting released. How to avoid that?.
    I have a scenario such that the corresponding persons in a particular department, only have to release their PR and POs, not the others.
    Thanks in advance!!!

    Hi- This can be solved by giving authorisations to the correponding approvers. SAP delivered standard authorisation objects for this purpose ( i dont have system now to give details). You need to talk to basis and they will solve this
    Vinoth

  • Doubt on Workflow in ESS/MSS

    Hi
    How to achieve Workflow in MSS/ESS for Portal. Like Leave approval / Reject etc. Can I use GP in EP or Do I need to configure SAP Workflow. I am totally confused. Do any one has documentation where like how these things are related.
    Regards
    Sowmya

    Hi Sowmya,
    Please go through the below blog hope this helps to have an understanding.
    And other blogs of the author they are pretty informative.
    Workflow in SAP NetWeaver
    Creating your first SAP Business Workflow
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/45/a7863f445f4617e10000000a114084/frameset.htm
    Re: UWL
    Important Transaction Codes in Workflows:
    PFAC - Maintain/Display Standard Rule
    PFTC - Task Maintain/Display
    SWDD - Workflow Builder
    PPOSW - Display Orgainsational Plan
    SWIA
    ALL THE BEST.
    Cheers-
    Pramod

  • Material Master workflow. Doubt?

    Hi friends,
    I am having a Existing Material Master workflow.
    In that there is 1 tcode JI1D.Its working fing before i am modifying below activity.
    Now i am modifying this workflow ie i am including 1 CONDITION TYPE in this tcode.
    If plant is INDIA then call this JIID.Else skip this tcode.Only if ...else thats all.
    Then i moved to PRODUCTION.
    Its not triggering for both plant.
    Pls suggest
    Moosa

    Hello,
    Did it work in Development?
    Did it work in Test?
    Did the transport succeed without errors?
    Have you done a SWU_OBUF?
    How is it not working?
    regards
    Rick Bakker
    Hanabi Technology

  • Doubt in std workflow WS20000104

    Hi Experts,
    I have the scenario like when ever the staus change in document, the mail should go to SAP Inbox. Business object is DRAW - Changed.
    Actually its a support project and I checked in workflow template. But there is no step type or code to send a mail to iniatior. But it sends mails for some departments and didn't send mail for some departments.
    I checked in workflow log. Some successfull workitems called the std WS20000104 and failured work items didnt called this standard workflow.
    I dont know the use of this workflow. I checked in SAP help but it wont help. This workflow used BO BUS1082. I just want to know about the workflow. Is it used for sending mails to distribution list?
    If anybody worked on this means, please help me.
    Thanks in Advance,
    Helps will be Appreciated.

    Hi,
    These are some features of WS2000014:
    - Distribution order being initiated or restarted.
    - Distribution order Id determined when order is initiated.
    - Subsequent check possible to determine whether you really want distribution
      to take place.
    - Partial orders are grouped together in a package that
      is created for each recipient and communication type.
    - A sub-workflow is started for each package that the SAP mail
      to be sent is generated in and the physical distribution
      is started in.
    - After all packages have been successfully sent, the main
      Workflow is terminated.
    Regards,

  • One Doubt in Workflow regarding Business Object?

    hi,
        i have One business Object. can i know how many workflows or which are all the workflows , Using that Business Object?
    For Example,
                        BO bus 2032- how many WorkFlows and Which are all WorkFlows Using this Bus2032 BO?
    Thanks For Advance,
    Regards,
    Karthikeyan Karumalaisamy

    Martin Nooteboom wrote:>
    > Did you try the where used option?
    ... which you find in the initial screen of transaction SWO1. Don't ask us in the forum why it is not displayed in the main screen.

Maybe you are looking for

  • Jabber 9.2.6 - No Phone Tab

    When clicking on the message icon in jabber we get an error message stating the user is not signed in, to resolve goto the phone accounts tab under the options window, we have no such tab showing, anyone help?

  • NVIDIA nForce4 system driver

    When installing the system drivers from mainbord cd, is it best not to install the NVIDIA IDE SW component as I am told it will cause problems.In fact what components should be installed and which left out? Is it possible to leave any out?  Ihave MSI

  • EYE TV to iPOD

    I've gotten recorded EYE TV programs onto my iPod. My question is: "what is the most efficient way to do it?" EYE TV can record is multiple formats. It can export to QT Pro which export to iPOD. That's two steps. Is there a way to do it with one step

  • Showing indesign document in iOS app.

    Hi, I want to create iOS app which will display magazines but other then magazine pages i want to create login and some other pages. How can i show indesign document in app? DPS don't allows us to code and I haven't found any satisfactory answer for

  • Mac Book Pro Shuts Off While trying to Boot.  Also will not boot in Safemode.  any advise?

    When computer is booting. The blue screen starts to appear before going to my desktop... then it just shuts down. has anyone ever run into a problem like this. i took it to the apple store and they suggested TOP TIER repair which wouldbe almost the s