Workflow-step type condition

hai all.....
  I have got a problem while working with the step type 'condition' in workflow,i.e i want to check the values in internal table in my step type for example,whether the internal table is initial....please someone help me ..its very urgent...

Hi Kasi,
I can provide u a simple workaround for this...
U can create another table within the workflow container of the same table type.
name it as empty_<table>.
Than within the condition step, u can simply compare the original table with the dummy empty_<table>.
This should solve your issue
Regards,
Mahesh.

Similar Messages

  • Step type 'condition' in workflow

    hai all.....
    I have got a problem while working with the step type 'condition' in workflow,i.e i want to check the values in internal table in my step type for example,whether the internal table is initial....please someone help me ..its very urgent...

    Hi Kiran,
    For the Operator 'NX' u need not enter any comparison value. U click on the condition in the condition step type . A window appears and u click on the internal table in expression 1 and the operator as 'NX' . It doesnt need a comparison value.
    Now u check this with the test data in the same window . U will have an icon in the bottom of window to enter test data and another icon to evalutate it . U check it with data and without data. It will work .
    In ur reply to Kasi , Ur answer is not at all related with what kasi asked for .U can check the initial property while the data is in workflow container itself . Instead u r passing the data from workflow container to task container and then to method container and then the processing has to take place in BO and again the reverse should take place .Which is Unnecessary .
    Regards,
    Scobby.
             Be Free To Award Points

  • Re: Workflow-step type: Mail - to add smartform output as a . PDF attachmnt

    Hi All,
    I have a requirement of attaching the output of a smart form as .PDF attachment. This has to be done as part of the Mail Step-Type in the work flow.
    Could anyone please confirm whether we can send an attachment as part of the Mail Step of a work flow. If this can be done, please provide some inputs on how to proceed on this.
    Thanks & Regards,
    Goutham.

    Hi,
    Thanks for your early replies. Points are definitely awarded.
    So the main point here is we cannot attach an attachment to the Mail Step Type of the work flow. The only thing we can do is to create a method in the business object to do the same and use it in the Activity step type of the work flow.
    Please confirm if my understanding is correct.
    Thanks & Regards,
    Goutham.

  • Step Type : Condition

    Hi,
    I use SAP_WAPI_WRITE_CONTAINER to write data into container variable "ApprovalStatus". It is of type MARC-KZKRI. It can accept 'X' or Space for that variable. I pass the value for container variable ApprovalStatus. To complete the step i use SAP_WAPI_WORKITEM_COMPLETE.
    In the next step I have a Condition Step. The condition step is not able to read the container variable ApprovalStatus. Hence it is not branching in the correct manner...
    Plz help...
    Thanks,
    Bharath Kaushik Krishnan

    Hi Raja,
    The issue is solved... I had created a container element in Task Container and in binding passed into workflow container and then the condition type is able to identify the variable and act accrdongly...
    Previously i had created only variable in workflow container and i thought SAP_WAPI_WRITE_CONTAINER will write data into it...
    But now i realize that it writes into the workitem container !!
    Plz correct if i a wrong !!
    Cheers !!
    Bharath

  • Workflow Step type for Container Operation

    Hi,
    A STEP in a given Workflow has to have an Agent? Can't I create a Step to get data from the DB into the container and that's it?
    I have created a container variable called "Grade" and I need to fetch the Grade of a User (WF Inititator) from a DB table and populate the "Grade" variable from the container that will be used in further steps.
    The Workflow gets kicked off but when it reaches the STEP, it stays there waiting for something (Action from a user?).
    Thanks & Regards,
    Ernesto

    Ok, now this is getting weird. Will try to explain what I am doing for one single step:
    1) I have my workflow. On PFTC I Have a workflow Template. Under the Container Tab I created a Parameter called "Grade" with the Import/Export check-boxes set and a "CreatedBy" parameter with the import/export check-boxes set as well.
    2) Then on the Workflow Builder I created a Step called Get Grade. This step calls a Custom Task and processes in the background so there is no agent determination.
        2.1) Here I have two bindings: a) Binding Between Workflow Container and Task and between Task and BO Method       
               Get_grade.  The Method Get_grade has 2 parameters (CreatedBy, that is an attribute of the Object and is an import
               parameteter and Grade that it is an import/export parameter).
        2.2) The Binding between the WF Container and the Task is like this:
                  &PROCCONFIRMATION.CREATEDBY& --> &CREATEDBY&
                  &GRADE& <-- &GRADE&
        2.3) Binding Between Task and Method is:
                 &_WI_OBJECT_ID.CREATEDBY& --> &CREATEDBY&
                 &GRADE& <-- &GRADE&   
        2.4) The Code for my method is:
    begin_method get_grade changing container.
    DATA:
          lv_grade TYPE zmm_app_req_info-grade,
          lv_userid TYPE zmm_app_req_info-requestor
    swc_get_property self 'CreatedBy' lv_userid.
    SELECT SINGLE grade FROM zmm_app_req_info
    INTO lv_grade
    WHERE requestor = lv_userid.
    IF sy-subrc IS INITIAL.
      swc_set_element container 'Grade' lv_grade.
    ENDIF.
    end_method.
    The only thing I need is to get the Grade parameter of the WF Container populated. This parameter will be used later on.
    Thanks & Regards,
    Ernesto.

  • Condition in condition step type always fails

    Hello all !
            I've a condition step type in workflow.
            The condition is as follows :
                           &ZBUS2011.REQ_TYPE& = 0001 AND &PLANT& = X
            The containers in  workflow log is populated with required values. However, the above condition fails for no reason.
            More over, on clicking "Evaluation condition with test data" button in condition display window,  a pop-up message " The evaluation of the condition gives the result 'False' "appears.
            Whether this could be the cause ? How to make the result 'True' ?
            Any suggestion most welcome.
    Regards,
    S.Suresh.    

    Hi Suresh,
    Is your attribute ZBUS2011.REQ_TYPE a vitrual attribute ? If so please check if the attribute is getting re-calculated during runtime. You can check this by instantiating the BOR and check initial value and then click on refresh button and see if the value has changed.
    Thanks,
    Ajay Bose

  • Activity Step type in workflow

    Hello Experts,
    I need some detail clarification regarding Program exits and Properties tab in activity step type
    i have read the content in help.sap.com but it was not clear how to use these steps
    Also if anybody knows please explain all four tabs for dead line monitoring
    Thanks in advance!

    Hi Akshay,
    Please check the following links:
    Re: Workflow terminologies
    Re: Reg: Program Exits
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fd/15fe3b0f13ca4ae10000000a11402f/frameset.htm
    Hope this helps!
    Regards,
    Saumya

  • Workflow Builder step type 'Loop (While)' missing

    The step type 'Loop (While)' is missing in the workflow builder in both the SWDD and PFTC transactions.  This is happening is a WebAS 640 Support Pack 14 system and a WebAS 700 Support Pack 8 system.
    I have searched in SDN and OSS notes but could not find anything related.
    Are we missing some configuration setting or is this step no longer supported?  Thanks in advance for anyone who can provide some hint.

    How do you create the step?
    Did you try, cliking the cursor on the place you want the step to be, then click on the create button and then select the loop while (maybe your resolution is too small, so that you don't see it appearing)
    Kind regards, Rob Dielemans

  • Answered - Workflow editor, left pane, container elements & step type hidden

    Hello,
    How do I restore the workflow container & step types to the left pane of the workflow editor?  Looking at the attached screen print, you can see that they are missing.  Obviously, if can't see step types, I can't drag a step type into the editor pane.
    We are on Basis version 702, patch 11.
    Thanks
    Bruce
    ANSWER:
    Clicking on the thin yellow line at the bottom of the "Navigation area" displayed a drop down list, from which the different options can be selected.

    Thanks for the detailed feedback. There's a lot of stuff here. I'm watching the video and we'll try and see if I can reproduce any obvious bugs. For the other things I'll log and review against other customer feedback to see what changed make the most sense. The more people that give us feedback the easier it is to know what to work on next. Currently working on improving the elements panel and will try to get some general bug fixes in on the way. Thanks again for the feedback and thanks for using Reflow!
    Chris

  • Step type section is not visible in workflow builder.

    Hello Friends,
                        Step type section is not visible in workflow builder even though I am in change mode. How to make it visible.
    Cheers,
    Senthil

    Hi,
         I in workflow builder ucan see three dropdown box in the left side of your screen. In that the third listbox you click to get the Step Types..
    thank You.

  • Url link in User Decision workflow step

    Hi Experts,
    I had created a workflow for "Employee transfer" process using SWDD tcode.
    I had a created a workflow step with type as "User Decision".I had included "Approve" & "Reject" decision options.
    Now i want to include URL link along with "Approve" & "Reject" in the user decision workflow step (i.e) The manager needs to see the URL link along with "Approve" & "Reject" in his SAP workflow inbox.
    Can anyone guide me...
    Regards,
    Krishna Balaji T

    Hi Krishna,
    I understand your issue. I have faced a similar issue in my project.
    Here is the solution!
    To add link of a URL you need to have the binding with the BO of the transaction your are refering to. To do this, you need to bind your BO event (triggering event) to the workflow container and then the workflow container to task container. This BO value should flow from event-> workflow -> task container to get the link in the User Decision.
    To do the binding you need to follow the following steps:
    1. Go to t-code SWDD and open your workflow template.
    2. Go to Basic Data (cap sign button at the top of the screen) or click Ctrl + F8
    3. Go to Start Events tab.
    4. In the Object type enter your BO name (BO for the transaction you need to add as link), in Event of object enter the BO event. This would serve as the triggering event for your workflow.
    5. Click on 'B' i.e. Binding Defined, click on generate automatic binding. It would automatically generate the appropriate binding for the workflow. You can also alter the binding as per requirement. This binding would ensure that the URL comes under 'objects and attachments' section.
    6. Click on 'C' i.e. Start Condition. A dialog would open, select the appropriate start condition for the workflow. Check the condition before saving (recommended).
    6. Click on 'A' to Activate the binding and start condition. All 'A', 'B' and 'C' would get green.
    7. Save the changes made and activate your workflow.
    8. Do the binding between the workflow and the user decision step. Select automatic binding (recommended).
    You can also refer to the similar thread that I had provided solution to. This would help you resolve the issue!
    Re: URL of site has to be attached along with the mail
    Hope this helps!
    Regards,
    Saumya

  • In While step type

    how can i specify the condition in 'While' step value...?
    say i maintain a counter variable in workflow container and i increment each time in 'container operation' step type.....
    how shud i specify the value in comparison basis and comparison values in 'While' step type...?!?!
    i got it in 'loop until ' step type with same case....

    Hi Divya,
    If i understood your question correctly, you are interested to know how to define your condition for 'While' / 'Loop Until' Step.
    When we create a 'Loop Until' step, when you double click on 'Condition' creation area, you will go to 'Conditon Editor' where you can write your condition.
    In the condition editor, you will be able to access all workflow container elements. Your conditon can be in the following format
    &var1& &relational operator& &var2&
    you can also mention some constant value for var2. In general var1, var2 can be anything from workflow container elements.
    So, when your condition is met, loop will end and flow will follow to the next step after 'Loop Until' block. If your condition is not met, you will loop again.
    In general, may be you can have 'Total_No_of_Iterations' container element to store the value how many times the loop should run and 'Iterator' to refer to loop count. When your 'Iterator' value equals to 'Total_No_of_Iterations', may be you can come out.
    Hope this helps you to go ahead with Loop Until step in your workflow !!
    Thanks and Regards
    Krishna Mohan Dubbak
    PS: your terms 'Comparison Basis' 'Comparison Values' are more relevant to 'Mutliple Condition' type. Please note that using Loop Until you can have only 2 possibilities either loop end or loop continue, you can not have any other option.
    Reward points if this helps to solve your problem !!

  • How to suppress email notifications from auto-contribute workflow step

    Hi all,
    does anybody know how to suppress the notification email that is sent from the contribution step (auto-contribute) of a criteria workflow. Now the user doing the checkin gets an email about the start of a workflow.
    regards,
    Harold

    Harold,
    few comments:
    - what is the step type of your 3rd step? Is it Review or Review/Edit-New Revision?
    If just Review, what happens if you change it to Review/Edit Revision or Review/New Revision?
    - calling just the UPDATE_DOCINFO service does not explain neither sending the email, nor changing the current step. What might be an explanation is calling a CHECKIN service in a Review step (the engine might be confused and 'restart' the workflow as it would not know whether a new, or current revision should be updated)
    Well, actually there could be one reason: updating the security group
    From whatever reason, criteria workflows are designed in such a way that security group is the mandatory parameter. This means that changing the security group might actually mean that the content item is in a wrong workflow (I was just about to ask "why on earth do you call UPDATE_DOCINFO in a Java?' and this came to my mind - custom metadata might be updated directly in iDocScript via wfUpdateMetaData http://docs.oracle.com/cd/E23943_01/doc.1111/e10726/c06_core_ref.htm#i1067045 ). If that's the case, you might have to re-design the whole stuff.
    Can you share details what is updated?

  • Assignment of Step type and CR step for MDG_S

    Hi
    This is in continuaton for thread MDG_S workflow.
    I original issue which is for MDGS when I assigned WS543000005 to CR type and sumitted CR goes no where,
    As as per SWEL it  shows No Reciver Found enen though GET_AGENT table is maintained.
    In another system I found that WS531000044 is assigned ti CR Type Then I tested it and found that CR creates Work Items also upto final processing.
    as per below
    Before CR Submission : CR status is 02: Changes to be executed
    After CR Submission : CR status is 01:To be considered and Approved
    After CR Reviewer approves : CR status is 09: Dependant Data to be processed /Approved
    After Purchase reviewer Finalize processing :CR status is 09: Dependant Data to be processed /Approved
    After Finainace reviewer Finalixe processing :CR status is 09: Dependant Data to be processed /Approved
    Now I can not see CR any where even though CR step 04 and 04 assigned to my user ID
    I have some questions as Description in Define Change Request Steps is not Mataching with description in GET_AGENT desesion table.
    Also it is observed that step 80 is not assigned to WS531000044 in IMG node Define Change Request Steps but it can be seen in GET_AGENT decesion table and step no 06 and 07 does not appears in GET_AGENT decesion table ( In edit mode).
    Can you explain from where assignment of  CR steps to CR type in desion table are taken ino accout ?
    Why description is not matched for steps under IMG and in decesion table?
    Can you explain me releationship between CR step and step type,CR Status and where they \maintained in IMG and how proceeses modelling is diffenent t for determination of Next CR step in case of WS531000044 ?

    Please keep in mind that "hard-wired" workflow templates are just that: hard-wired. This means that a specific workflow template (for example WS53100044) will always have the same number of steps, each step will always have the same type and number, agents will always be assigned in the same way, and those can't be altered by configurations. To understand each workflow template's behavior, you can either open that template in transaction PFTC or SWDD, or alternatively, read the exact behavior in SAP Help documentation. You basically need to google the workflow template number and you should be able to find the description of each template's behavior (by the way, the number you type has an extra zero so if you can't find a match on Google, you will know why ).
    Now, the assignment of CR steps to CR type is done in the workflow template itself and NOT in the decision table. See the first screenshot:
    The step number above "should" correspond to what is in the configuration table (for readability and consistency of documentation purposes). However, if for some reason, it does not, the hard-coded value is the value that will actually be considered. So, in technical terms, the assignment of step numbers in MDGIMG has no influence on how the workflow template will behave. Again, the main purpose is for the corresponding description in the step number configuration table to show on the CR window.
    The other thing is the step type. A step type purpose is mainly to indicate what set of buttons will show at the top of the CR window. The fact that step types are represented by numbers confuse a lot of people with step numbers. I would have personally preferred if step types were a 2-char field so that a clear distinction can be made between step types and step numbers. In any case, buttons on the CR correspond to actions and you can see in MDGIMG that you can assign step types to actions. SAP delivers a pre-defined set of step types and associated actions. Those must NOT be altered because they could break the standard workflow templates. However, you can create your own custom step types and link them with as many actions (standard or custom actions) as you like. But again, you can't assign those custom step types to hard-wired workflow templates. You can only use them in your custom workflow templates or in the rule-based workflow.
    Now, the question is how does the hard-wired workflow know what step type to use. The answer is easy: you can either find that in the SAP Help documentation or in the workflow template definition in transaction SWDD. For the above screenshot, the step type is 2. You can find that if you double-click the task ID TS75707980 (or display it using transaction PFTC) and look in the "Cntainer" tab. In this case, this task will ALWAYS have type 2. Other tasks are assigned different step types or are more dynamic in the sense that they expect the step type to be passed from the main workflow template calling them. For example TS53200002 will always have type 7, TS60808005 will always have type 5, and TS60807954 accepts the step type dynamically. This last one is the one used in the rule-based workflow (hence it has to read the step type configured in the decision table).
    I hope this answers you question. You definitely need some level of workflow design/build knowledge in order to be able to completely understand all of this. Hopefully, this gives you a good starting point.

  • Workflow step not executed...

    Hi,
    In my workflow requirement (for VA01), I want to record the status in a custom table as follows;
    Approver id     date   time    status
    ABC                                     Submitted for approval
    ABC                                     Approved (or) Rejected
    So I have created a step called 'update custom status' after the step that sends email to the approver agent whose details stored in another custom table. Then I associated a task with this step which is bound to a custom class / method which has the logic to write the status to the custom table.
    The issue is I do not see this step excuted. I checked in the log.
    What can be wrong ?
    Workflow steps are as follows;
    1. Read the document's net value and store in a variable.
    2. Read the custom table for agents list to whom the doc has to be sent for approval.
    3. Send email for approval.
    4. update custom status.
    In the graphical view, I can see the update custom status step being called (Green link from previous step to this step) but after that no progress.
    Am I missing passing some values ? Or is this step not giving any results ? Whats happening ?
    Details on this update custom status step are as follows;
    A custom task with terminating event set as _WORKITEM defined. (not synchronous)
    A step of type activity defined and bound to the above task with binding done.. (what values should I pass to record the above needed details.)
    In other words, how can I record the status in my custom table ?
    thnks

    Hi
    I think its a background step. If yes, then make it foreground and debug and see what is the problem. Also check for short dumps and turn on the event trace and see the terminating event is getting triggered.
    Vinoth

Maybe you are looking for