Work Flow Variable Scope

What is the scope of the variable defined in the workflow.
Is WF variable accessible in the form which is being referenced from a form which is present in a subprocess which is called from the workflow activity.
c c c
WF --- Subprocess --- Form ---- Form1 ( I want to access the WF level variable in form1)
c stands for Calls.
Can any one explain variable scoping concept in XPRESS.

Hi,
A workflow variable has its scope in all subprocesses forms, rules, and email templates that are being referenced or invoked from this main process.
Say u have task definition named wotkflow1, and a variable a.
and Form form1. this form1 is displayed in an activity from workflow1. Variable 'a' can be referenced in the form. one more subprocess named subprocess1 is invoked from workflow if will also has variable a in scope to access.
Thanks

Similar Messages

  • Using web services in Approval Work flow in OIM 11g

    Hi All,
    I am a new bie to OIM 11g. I have created an approval work flow and it is working fine.
    Now my requirement is to use a web service in the approval work flow instead of directly embeding the java code in Java Embeding Activity. Can some body share me a document or url for the process of doing it.
    Thanks in advance for the help.
    Thanks,
    Preeti

    If you are using OIM 11gR2 please refer the below document. All steps are very clear with the screenshots.
    http://docs.oracle.com/cd/E27559_01/dev.1112/e27150/request.htm#autoId27
    See section 21.3.5.7 Configuring the Human Task and BPEL Mappings
    Also see this OBE tutorial for getting idea on Java embedding activity and assigning and retrieving data from global variables in SOA
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/oim/oim_11g/Request_Workflow_for_Self_Registration/request_workflow_for_self_registration.htm

  • OM:Cost of Goods sold work flow customization to take it from concerned off

    OM:Cost of Goods sold work flow customization to take it from concerned office in the place of inventory org

    Yes FOX can be difficult to achieve things that are simpler than simple
    The way you described, it will only search fo a standard price on the same currency.
    Try to set the currency as changeable characteristic and then search prices for each possible currency.
    standard price value  = {standard price, currency1} +                 {standard price, currency2} etc..
    The possible currencies could also be filled in a variable which is read at runtime.
    Don't know an easier way!
    Regards,
    Beat

  • Approval work flow in 11g

    Hi All,
    I am a new bie to OIM 11g. I have created aapproval work flow and it is working fine.
    Now the requirement is to check for a certain flag and based on the falg value we need to route the request to approvers.
    If the flag value is "true" we need to route to the first level Approval. If it is "false" we need to skip the approval and the request should be rejected.The provisioning process also should be terminated.
    As far as I have tested if we skip all the approval tasks the status of the request will be updated to "Approve" by default. But according to our requirement we need to set the status to "Reject".
    Please suggest any way of implementing it or if any body has already implemented it.
    Thanks in advance.
    Thanks,
    PT

    If you are using OIM 11gR2 please refer the below document. All steps are very clear with the screenshots.
    http://docs.oracle.com/cd/E27559_01/dev.1112/e27150/request.htm#autoId27
    See section 21.3.5.7 Configuring the Human Task and BPEL Mappings
    Also see this OBE tutorial for getting idea on Java embedding activity and assigning and retrieving data from global variables in SOA
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/oim/oim_11g/Request_Workflow_for_Self_Registration/request_workflow_for_self_registration.htm

  • What needs to be done to include the leave request type in the work flow

    what needs to be done to include the leave request type in the work flow?
    the present request for work flow includes the notificationto be sent to the approver
    which doesnt include  leave request type inthe description
    to include this we need to maintain a container variable but what should be the method or abap dic object which has to be used for maintaining this leave request type container

    Hi,
    You can create and take where you pass leave type and get description of it and create an field in WF containr and fill it than you can use add that field when you are sending notification,.
    Atul

  • APP-PAY-07068 - An Invalid work flow was specified, no navigation available

    Dear All,
    I am getting error while navigating people->enter and maintain
    APP-PAY-07068 - An Invalid work flow was specified, no navigation available.
    FRM-40815 - variable GLOBAL.G_WORKFLOW_ID deosnot exist.
    EBiz version R12.1.1
    Platform: Linux
    Please advise.
    Thanks,
    Prashanth.

    Hi Hussein,
    In VIS instance I instaled all the localization products, but in CRP I only installed Global Localization & afterwards applied the UAE localization seperately & ran hrglobal.dev patch but now the forms for UAE hrms are diff for both CRP & VIS. Alternate name & additional information tab are missing from uae localization forms in crp instance.
    AE HRMS> People>enter & maintain>find person> new.
    Aso in CRP there is responsibilty with the name "UAE HRMS manager" & in VIS its with the name "AE HRMS manager". Really getting confused.
    Thanks.

  • Work flows in E-sourcing

    Hi,
    I need a sample exercise to work on E-Sourcing work flows.
    Please share the links or material which will help me to work on work flows.
    Regards,
    Naresh

    Dear vaibhav,
    Thanks for your reply. I sincerely appreciate you in analyzing and giving the detailed reply.
    Please let me know pre script and post script are defined after uploading the xpdl file into esourcing or need to be defined in XPDL file itself.
    Please clarify on the following points.
    Point 1:You have to add a attribute in that task called Pre-Script
    and in that value you have to write logic for retrieveing MA_02_01 from ES
    My understanding :-
    I need to define a a workflow variable for MA_02_01.But where is pre script available in the XPDL definition.
    We need to create an activity (no Implementation )called preScript and we need to pass this variable to this activity.
    Point No.2 :-
    Also in the task test_contract1_wp1_act1 you have to add a attribute Pre-Script
    and write logic to retrieve the extended filed in the document and add it as a approver.
    No idea what needs to be done for accomplishing the above.
    Also what is the use of post script. as per my knowledge once approved it should go to executed phase or rejected it should go to draft phase can be defined here.Please let me know how to define this.
    grateful if you could send one sample xpdl file which contains definitions of prescript and post script.
    Thanks in advance and happy diwali
    venkat.

  • Error in work flow wait for change event

    Error in work flow wait for change event of business object bus1014, Actually this business object is triggering for two transaction one is me21n and another is c201 . am trying to create fork with two branches one is create and another if change occurs wait will trigger, bt when i trigger work flow controll is not after fork, it will stop in fork only. and am not getting my workflow container variable getting instantiate, am getting error in wait. please any one get out of me in this

    Hi Sangeetha
    What is LV_MATERIAL? is it a BO container element? or a class element or a just a simple variable?
    Error message is clear, you are trying to evaluate LV_MATERIAL but it does not contain a value.
    This is a custom workflow as it begins with WS9xxxxxxx... what is LV_MATERIAL used for? what are we expecting it to hold? maybe, from event to workflow binding we can pass the value to it.
    Please share the following:
    1) Definition screen shot of LV_MATERIAL
    2) Screen shot of The step where it is first used - from SWDD
    3) Screenshot of Event to Workflow Binding
    4) name of your base Business Object (seen in the triggering events tab of the WF template in PFTC)
    5) What is the corresponding variable for that BO in your workflow container
    6) Screen shot of WF definition from SWDD - please identify the step going in error in that screen shot
    Regards,
    Modak

  • Work Flow - Suggestions, tutorials, or Books

    Hello All,
    I've been teaching myself AE, as well as Ps, Ai, and Pre Pro. (Creative Suite 4) 
    I'm somewhat comfortable with a couple of the applications but by no  means a master of any.  However, I think that its takes me too long to  do some things, and I believe that I have encounter some problems  because of my work flow and probably could have avoided them if I had  formal training.
    It could also be that I don't have a  frame of reference and don't know how long things actually take, and to  me, I just feel like I'm moving slow.  I have been surprised to find  out that a particular music video or special effect that I saw took a  TEAM of people, a MONTH(s) to create.
    For those  of you who have gone to school and learned AE (or the other programs)  with an instructor and a planned course, do you think you would have  grasped the program(s) and how to make your creative ideas come to life  on screen as easily if you had not gone to school and learned on your  own?
    Now that I am learning a 3D program (Blender) and will  be trying to incorporate AE, Premiere Pro, Photoshop, Illustrator and  Blender all together, when needed, and I was wondering if there is any  book that deals with the proper workflow. Or is just doing the tutorials  and building up knowledge/skills the way.  Practice makes perfect but  does practice make efficient?  And  I haven't even gotten into the  scripts or expressions YET.
    In buying the Creative Suite I had visions of making  MOVIES/videos with all the special effects, flashing lights,  disappearing acts, etc...   and since all these applications came  together in the Creative Suite- its ment for and possible for a person  to do ALL things, by him or herself,  --maybe my thinking is wrong and  one should specialize and get with a team.
    Is it that  when one is trying to create a certain effect or look, knowing each  application and its abilities would sort of guide you to the correct  work flow??  But until you know these applications -- Very Well--, its a  lot like stumbling in the dark and trying out different blending modes.
    Is there a book that lays out the proper or most efficient workflow.  I  have been reading several booking on AE and also some on Pr Ps and Ai  and doing tutorials on line, and learning Blender on line at  CreativeCow.net  but the books don't teach workflow.
    Thanks in Advance

    One unfortunate side-effect of the Production Premium package is that it's one serial# that is designed to be for one user and therefore some have made the leap to the conclusion that one person can be an expert in all those applications...I think it's 11 apps (depending on where you draw the line on what's an app and what's a utility, etc.)  I've actually seen a couple job descriptions in corporate environments written around the contents of the Production Premium software compilation. 
    ...'workflow' is a pretty deep topic that is hard to learn in abstract.  It's also so wildly variable and evolving so fast that codifying it is pointless.  I started an HD post production book for Focal Press some years ago, but abandoned it as a lack of cooperation and transparency from manufacturers and the sheer velocity of development on all fronts...computers, codecs, displays, cameras...just prevented anything from being complete and timely.
    Unfortunately the internet has spawned the idea that if enough of us with 20, 30, or 40 years experience just keep brain-dumping into cyber-space, eventually anybody will be able to somehow 'proxy' all that experience through 3 days of intense Googling.  It just doesn't work that way.
    Like most of us, you'll need some time in the chair to be able to really get a handle on what you need to plan for and prioritize as workflow is really specific to everyone's specific circumstances. 
    You'll have to start with specific questions, and get specific answers, start to accumulate the answers until they start to connect...then the Googling helps to fill in some gaps...practical experience refines your ideas on what really works and what doesn't, you add that to what you know about your tools...suddenly you're an expert. 
    ...and usually, the decades it takes to get there fly by pretty quickly.  I have no idea what happened to the last 25 years.

  • Work flow container Business OBject resetting ?

    Hi Folks,
    Work flow is triggered with the business object BUS2054001, In initial checking stage value are appearing for the instance of variables and after one step work flow container custom variables are set through the custom task.  The problem is the new values are set and all the old values are getting cleared. Cross checked twice that no old values are passed back.
    Refered to note : 847122 / Workflow container loses values. All the changes are already updated by sap since the sytem we are working on is SAP ECC 6.0 with BASIS 700 // level17 .
    Any solution or similar error faced  kindly reply ASAP.
    Thanks in advance for the help.
    Krishna Mukthineni

    Hi,
    after one step work flow container custom variables are set through the custom task
    See that Task step and check right variable are assigned in binding.
    Regards,
    Surjith

  • Hi all ,i need a good documentation for a beginner in WORK FLOW ?

    hi all ,
    i need a good documentation for a beginner in WORK FLOW ?
    please,try to send the attached documents as much as u can apart from giving the weblinks ?
    hope you will send it soon ....
    thanks & regards
    vishnuvardhan k.v.

    Hi
    Developing a simple application using steps "User Decision" and "Mail"
    Basic terminology used in the workflow:
    The workflow definition is the set of rules that determine the path that the process takes. For example, how a purchase requisition is processed, from the initial request to the creation of the purchase order
    A Workflow Instance, which is often simply referred to as the workflow, is a single workflow run. For example, the processing of a single purchase requisition for computers.
    The Tasks are the steps in the process, which have to be performed either by people or automatically by the software. For example, to check for the availability of the spare computers in the company.
    A Work item is the task instance that is performed as a single workflow step. For example, check that there are no spare computers available in the company.
    Agents are the people who process the tasks (via the work items). For example, requisitioner and a member of the purchasing department.
    Container is the place where all the data used in the workflow is collected.
    Binding is the set of rules that define which data is passed to which part of the process.
    Building a simple workflow application
    The central tool for creating, displaying and processing a workflow is the workflow builder (Transaction SWDD). Within the workflow builder you can create all components of a workflow, including all the containers you need for getting the data from one step to another.
    Generally, most of the workflows are started by an event (for example, when a material is created or when a new purchase requisition arrives). You define which data from this event needs to be passed to the workflow via binding.
    However you can also start any workflow directly. Let us create a simple workflow and start the workflow directly, using the testing tools.
    Call transaction SWDD. When the workflow builder is called for the first time, a newly created initial workflow definition appears or else last created workflow appears. In such cases you can opt to create a new workflow by pressing “Create New Workflow”(ctrl + shft + F5). The following screen appears.
    The initial workflow screen has the following parts:
    a. The start of the workflow definition, indicated by .
    b. The end of the workflow definition, indicated by .
    c. The area in which you insert the new workflow definition is indicated by .
    Now select the undefined step and select Create step or double click the undefined step. Now among the different steps chose the User Decision by double clicking on it.
    Developing a simple application using steps "User Decision" and "Mail"
    Previous
    Now enter the title for the user decision “ Please make a decision”. Also enter the decision texts as Approve and Reject. On pressing enter, the outcome values default to the Decision texts but you can specify your own names, if desired. Now we need to select the agent. Agent is the person to whom the work item needs to be sent.. Since this is just a beginning, we would hardcode the user name. Select the User from the drop down list and enter the user name to whom the work item needs to be sent. In general, this type of agent assignment is not done. Agents are generally assigned using the expression, agent assignment rule or organization object (job, position etc.).
    Now select Transfer and to graphic button. Following screen appears:
    Now we need to include a mail step to be sent to the requestor. Now select the line “Approve” and do a right click. Different options on shown on the context menu. Select Create.
    Now select the step “Send Mail” from the list.
    Developing a simple application using steps "User Decision" and "Mail"
    ...Previous
    Now enter the subject and the body of the message for the mail to be sent.
    Do not change the recipients. Our mail is intended for the persons who triggered this workflow. &_WF_INITIATOR& contains the value who executed the workflow. Since this is a test object, we are using &_WF_INITIATOR&. But we wouldn’t be using this variable in real time scenarios. We would discuss about this in the coming documents.
    Now select Transfer and to graphic button.
    A popup appears requesting for the abbreviation and the name for this task. Enter the same and press enter.
    Now enter the package as local object and press enter.
    Follow the steps 5 through 9 for the step “Reject”. The following screen appears:
    Press SAVE to save the workflow application. You need to enter an abbreviation and name for your workflow as shown below. You can change any of these at any later point. After saving, a number is assigned to your workflow starting with WS, as shown below.
    Developing a simple application using steps "User Decision" and "Mail"
    ...Previous
    To execute the workflow, activate it by choosing the activate button.
    Test the workflow by choosing Test. The following screen appears.
    Now choose Execute to start the workflow.
    Now the recipient would receive a work item in his SAP® inbox (Transaction SBWP).
    Now execute the work item by pressing “Execute”. The following screen appears:
    Choose one among Approve or Reject as part of the user decision. He can select the third option to retain the work item in his inbox and make the decision later. Now suppose that the recipient has chosen one of the first options. Now a mail would be sent to the requestor with the status of his request.
    Creating a Container element
    This document details about creation of a container element in workflow and using it in the step "Mail".
    Pre-requisites:
    It is assumed that the reader of this Tutorial is aware of creating a workflow definition with the step “Mail”. If not, please go through the document on creating the same available, by clicking here.
    Steps:
    1. Create a workflow definition using the transaction SWDD.
    2. Let’s create a container element for Carrier id. Click on the “Workflow Container” on the left side of the screen (as shown in the screenshot below):
    3. Now double-click on “Double-Click to Create”
    4. Enter the details pertaining to CARRID here.
    5. Click on tab “Properties” and select “Import”.
    6. Click on “Confirm (Enter)”.
    7. Now the element created could be seen on the left side, below the “Workflow Container”.
    Creating a Container element
    Previous
    1. Create a “Mail” step by double-clicking on “Undefined” step in the workflow.
    2. Enter the recipient details in the “Recipients” box.
    3. In the subject line, enter “Carrid value entered is:” and click on “Insert Expression”.
    4. Select the element “Carrid” from the list.
    5. Similarly enter the content in the “Body” area.
    6. Save and activate the application.
    Testing the Workflow application:
    7. Test the workflow by clicking F8.
    8. Enter the value of the Carrid as shown above and press execute.
    9. A mail would be sent to the recipient mentioned earlier with the carrid value entered.
    Condition Step
    Agenda:
    This document details about the steps “Condition”.
    Pre-requisites: It is assumed that the reader of this document has a preliminary understanding of workflow and has worked with the container elements earlier. If not, please go through the first two Tutorials of workflow available in this site. (More details)
    Procedure:
    1. Create a new workflow definition.
    2. Create a container element, CARRID (as demonstrated in tutorial 2).
    3. Now click on undefined step and create the step “Condition”.
    4. Enter the step name of your choice.
    5. We would have the following condition here:
    If carrid = ‘AA’.
    Do this.
    Else.
    Do this.
    Click on “Click here to create a new condition”. Following screen appears.
    Double click on “Carrid”. Next click on “=” and enter the value “AA” in the constant field and press ENTER.
    Enter the outcome names of your choice as shown above.
    Click on “Transfer and go to graphic”.
    As shown above, there are two branches here. One navigates to true, if CARRID = ‘AA’ else the control takes the branch “False”.
    Test the above scenario by inserting mail steps in the above 2 branches and by passing different CARRID values.
    Condition Step
    Agenda:
    This document details about the steps “Multiple Condition”.
    Pre-requisites: It is assumed that the reader of this document has a preliminary understanding of workflow and has worked with the container elements earlier. If not, please go through the first two Tutorials of workflow available in this site. (More details)
    Procedure:
    1. Create a new workflow definition.
    2. Create a container element, CARRID (as demonstrated in tutorial 2).
    3. Now click on undefined step and create the step “Multiple Condition”.
    4. Enter the step name of your choice.
    5. We would have the following condition here:
    If carrid = ‘AA’.
    Do this.
    Elseif carrid = ‘AH’
    DO this.
    Elseif carrid = ‘SQ’
    Do this.
    Else.
    Do this.
    Select the “CARRID” using the F4 help for the comparison basis field.
    Enter the values of the carrid under the Comparison values with the corresponding outcome name (of your choice)
    Double click on “Carrid”. Next click on “=” and enter the value “AA” in the constant field and press ENTER.
    Click on “Transfer and go to graphic”.
    As observed above, there are different branches for each value of CARRID mentioned above.
    Test the above scenario by inserting mail steps in all the branches and by passing different CARRID values.
    Using "Container Operation" step
    Agenda: Usage of step “Container Operation”.
    Pre-requisites: It is assumed that the reader of this tutorial has worked in the concepts that are dealt in earlier tutorials. (click here for more details)
    Scenario: In this tutorial, we would deal about how to work with the step “Container Operation” with an example of calculating the available seats by subtracting occupied seats from the maximum seats at the workflow level.
    Procedure:
    1. Create a new workflow definition using the transaction SWDD.
    2. Create two container elements MaxSeats, Occ_Seats with the “import” property set. You can use the reference fields sflight-seatsmax, sflight-seatsocc for this.
    3. Create another container element AvailableSeats without setting either import or export property as this is calculated within the workflow and used within the workflow. You might use any of the above reference fields as data types.
    4. Define a new step “Container Operation” in the workflow definition by double-clicking on the “Undefined step”.
    5. In this step, we would calculate the available seats from the max seats and seats occupied.
    I would recommend entering all the container elements from the F4 help instead of typing them manually.
    6. Return to the main screen.
    7. Create a mail step after this to send the available seats information.
    8. Test the above functionality by passing some values to the maximum and the seats occupied.
    9. Result would be as follows:
    Triggering Events Programmatically
    Purpose: This document details the procedure in triggering the business object events programmatically.
    Pre-requisites: It is assumed that the reader of this document is aware of the business object concepts and good in ABAP.
    Procedure:
    In this document, we would take an example of the business object BUS1001006 (Material) and the event CREATED. In general, this event is triggered whenever a material is created using a standard procedure like MM01 or any others. Now we would trigger this event from our own programs.
    Following are the screenshots of the business object BUS1001006 and the event CREATED. Go to transaction SWO1 for more information of the business object.
    Double-clicking on the key field parameter gives you technical information of the field.
    In order to trigger an event programmatically, we would use the function module SWE_EVENT_CREATE.
    Following is the sample code to trigger the events programmatically:
    REPORT ZDEMO_TRIGGER_EVENT.
    DATA: KEY LIKE SWEINSTCOU-OBJKEY.
    KEY = '1163'. “ 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:
    Deadline Monitoring in SAP Workflow
    A major advantage of workflow is the ability to monitor the workflow steps according to a predefined schedule. Following are different deadlines that can be monitored against each workflow step:
    • Requested Start
    • Latest Start
    • Requested End
    • Latest End
    In this example, we will define a deadline to the User Decision example created earlier (click here). Following is the screenshot of the application developed using the User Decision example:
    We would extend this example to the deadline monitoring.
    In the User Decision step, click on the “latest end” tab.
    By default, No deadline monitoring is active (as seen in the above screenshot).
    Choose the “Work Item Creation” from the list box.
    After selecting “Work Item Creation”, chose an offset of 5 minutes. This means that the work item must be executed within 5 minutes of the creation, if not this would trigger.
    Deadline Monitoring in SAP Workflow
    Enter recipient details to whom the message to be escalated, if the work item is not executed with in 5 minutes after work item creation.
    Save and activate the workflow definition.
    Testing the workflow application:
    • Execute your workflow.
    • Check for the work item in the SAP Inbox. This time do NOT execute the work item.
    • Wait for the deadline to be triggered. After that, a deadline message is delivered to the recipient mentioned in the “Latest End” tab. See the screenshot below.
    Don’t worry if the deadline message doesn’t appear immediately after 5 minutes. This depends on various factors including how the deadline monitoring program is scheduled and also on the availability of the background processors.
    Use SWWA to check how the deadline monitoring program is scheduled in program.
    For example, assume that our work item has been created at 09:10 hrs and the deadline message is expected to trigger at 09:15 hrs. From the above screenshot, it is understood that the background program is scheduled to execute for every 3 minutes. Assume that the last run of the program is at 09:14hrs and the next run is expected at 09:17hrs. So even our deadline expires at 09:15, the deadline message would appear only at 09:17hrs after execution of the background program.
    Some more points
    In our above example, we have used the deadline on the “Work Item” creation time. i.e., 5 minutes after creation time, the deadline message would be sent. Now we would check the other option “Expression”. Here we can mention the date and time, when the deadline message should appear irrespective of the work item creation date/time.
    As seen in the above screenshot, we can provide the target date and time by which the task should be finished. Container elements could be used in this case. Please refer to our example on creation of container elements (click here).
    Personal Substitute in Workflow
    Requirement: Need to have at least one substitute who can act upon work items in your absence.
    Important: The appointed substitute would be able to see all your work items. A substitute cannot be assigned for only particular area of organization or any other item. So need to ensure that the substitute have the necessary authorizations to act upon the work items.
    Procedure:
    1. Go to SAP Business Work Place (TCode: SBWP)
    2. Now from the menu bar, select Settings à Workflow settings à Maintain Substitute
    3. Highlight/Select the name on the window, in this case SAPDEV02 and click on “Create Substitute”.
    4. List of users available in the system are displayed.
    5. Select the required substitute user name. Following screen appears.
    Validity field describes about the period in which the setting would be active. Note that the dates on the screen would range from the current date to 31st Dec 9999.
    Regarding the checkbox “Substitution active”, it is advised to leave this checkbox unchecked for system performance reasons. A check in this box indicates that the substitution is “permanent” and if left unchecked it is treated as “as-needed”. A permanent substitute will automatically receive the primary users work items in their own box. In the case of “as-needed”, substitute must manually adopt the work items from the primary user’s inbox.
    6. Save the entries
    7. Click Enter to leave the screen.
    Adopting a Substitute in Workflow
    If you have been designated as an “as-needed” substitute, you must manually adopt the substitution. If you are designated as a “permanent” substitute, the work items would automatically appear in the inbox.
    Before adopting a substitution, there are 19 work items in the inbox. See the screenshot below:
    To adopt a substitution, select Settings à Workflow settings à adopt substitution.
    Select the corresponding User-id (if you have been assigned as a substitute for multiple people, then this option would allow you to select the user name of whom you would to check the work items)
    The corresponding user’s work items would appear in our inbox now.
    You can end the substitution, by selecting settings à Workflow settings à End substitution.
    Note: Substitutes can only adopt work items that are directly routed to the person for whom they are a substitute. If you are a substitute for a user (SAPDEV02) who has been made a substitute for another user (SAPDEV01), you will only see work items for user SAPDEV02 and not of the user SAPDEV01.
    Notification of Work Items via e-Mail
    SAP provides us with a facility of notifying the user via the email address of your choice when there are any pending work items in the SAP Inbox..
    1. Go to Transaction SO13.
    2. Click on Automatic Forwarding tab.
    3. Click on Create icon .
    4. Enter the details in the above screen.
    5. Click ENTER to complete the entries.
    6. Now the notification would be received at the provided email address if there are any pending work items in the inbox.
    Filtering the Work Items in the SAP Inbox using BADI
    This document details about the procedure in filtering some of the work items from the SAP inbox using a BADi.
    Following is the screenshot of the SAP inbox, before implementing BADi:
    The BADi that is used in filtering the work items is WF_BWP_SELECT_FILTER. To implement the BADi, go to transaction SE18. From the menu, select Implementation à Create. (See the screenshot below)
    Enter the implementation name and press ENTER
    Enter any meaningful short text for the implementation and click on the tab “Interface”
    The implementing class, ZCL_IM_BWP_SELECT_FILTER, is automatically proposed. Double click on the implementing class name.
    You are now navigated to the class builder. Now double-click on the method name shown on the screen (see the snapshot below)
    Now let us filter out the work items belonging to the task TS2000066. See the code below:
    Activate the method and also the implementation. In the state of active, you wouldn’t be able to make any changes. To make any changes, we need to deactivate it and then make the changes.
    Now check the inbox and would notice that the work items related to that task are no more appearing.
    To notice the differences, try activating and deactivating the BADi implementation.
    Workflow tutorials with step-by-step and with screenshots are available at http://www.****************/Tutorials/Workflow/Workflow.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/42/c14a9b55103116e10000000a1553f7/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/e4a930453d11d189430000e829fbbd/frameset.htm
    http://www.sapgenie.com/workflow/
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://web.mit.edu/sapr3/dev/newdevstand.html
    http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
    https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2857887
    https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2855919
    https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2735228
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSTART/BCBMTWFMSTART.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMDEMO/BCBMTWFMDEMO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMPM/BCBMTWFMPM.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    debug a workflow.
    This has a step by step procedure :
    http://fuller.mit.edu/workflow/debugging.pdf
    www.erpgenie.com/sap/workflow/debugging.htm
    http://www.erpgenie.com/workflow/debugging.htm?2b5de440

  • UCCE 7.2.7/CAD 7.2 SR1 Work Flow Action issue

    Greetings,
    This is on UCCE 7.2.7 with CAD 7.2 SR1.
    Today, I created Agent Management Work Flow Action in CAD (via Desktop Admin). I want all of my agents within a specific Work Flow Group to be logged out at 9pm on workdays.
    I choose the event "Time of day", create a rule and an action. The action is "Agent State Control" with value "AgentLogout". I choose to use automated reason codes. After configuration I hit "apply" and, just to be sure, I also sync the Directory Services.
    The action is triggered, but the agent still has to choose the reason code to logout. Does this sound familiar to any of you or am I missing someting?
    Regards

    Assign it in the script.
    Let's say you have created the ECC variable "userCADLayout" and you have been into CAD Admin and set this as the field index 252.
    And you have created a number of layouts (e.g. Sales, Service) with different enterprise variables, ANI, DNIS etc.
    Let's say agent Fred is in both the Sales SG and the Service SG.
    Simply set the ECC variable in the script once you have decided its a Sales call or a Service call to the matching string "Sales" or "Service".
    So a "Sales" call arrives at Fred's desktop and the arrangement (layout) is appropriate; ditto Service.
    Once you have done this one time, you will realize how easy it is. Of ocurse, DON'T MAKE ANY SPELLING MISTAKES. ;-)
    Regards,
    Geoff

  • CAD Enterprise Data Association to new work flow

    On cad 7.5 ver wanted to know how to associate an new Enterprise Data created to a Work Flow which is not the default.I presenlty have to edit the default Ent Data from Desktop Admin Console to have it reflected on the Agent Desktop.The agent desktop looks like the one attached.Is there a way also to change the names of the ICM Call Variable1 displayed on the agent desktop giving some appropriate name but using ICM Call Variables backend.

    I don't know of a way - everyone does it as follows:
    Create the ECC variable as (for example) userMyCADVariable and MyCADVariable will be available in Enterprise Data. On the ICM side, copy the contents of the PV into the ECC variable.
    Why would this not be OK for you?
    On the layouts - the normal way is to define an ECC variable for the layout - say userCADLayout and delete Ent Var 252. Then add CADLayout as 252. In ICM, as you go through the script you can set userCADLayout to (say) "Foo" and create a layout Foo in CAD.
    This is all documented - now that you know what to look for, you will be able to understand the CAD Guide.
    Regards,
    Geoff

  • Javascript discussion: Variable scopes and functions

    Hi,
    I'm wondering how people proceed regarding variable scope, and calling
    functions and things. For instance, it's finally sunk in that almost
    always a variable should be declared with var to keep it local.
    But along similar lines, how should one deal with functions? That is,
    should every function be completely self contained -- i.e. must any
    variables outside the scope of the function be passed to the function,
    and the function may not alter any variables but those that are local to
    it? Or is that not necessary to be so strict?
    Functions also seem to be limited in that they can only return a single
    variable. But what if I want to create a function that alters a bunch of
    variables?
    So I guess that's two questions:
    (1) Should all functions be self-contained?
    (2) What if the function needs to return a whole bunch of variables?
    Thanks,
    Ariel

    Ariel:
    (Incidentally, I couldn't find any way of  marking answers correct when I visited the web forums a few days ago, so I gave up.)
    It's there...as long as you're logged in at least, and are the poster of the thread.
    What I want is to write code that I can easily come back to a few months later
    and make changes/add features -- so it's only me that sees the code, but
    after long intervals it can almost be as though someone else has written
    it! So I was wondering if I would be doing myself a favour by being more
    strict about make functions independent etc. Also, I was noticing that
    in the sample scripts that accompany InDesign (written by Olav Kvern?)
    the functions seem always to require all variables to be passed to it.
    Where it is not impractical to do so, you should make functions independent and reusable. But there are plenty of cases where it is impractical, or at least very annoying to do so.
    The sample scripts for InDesign are written to be in parallel between three different languages, and have a certain lowest-common-denominator effect. They also make use of some practices I would consider Not Very Good. I would not recommend them as an example for how to learn to write a large Javascript project.
    I'm not 100% sure what you mean by persistent session. Most of my
    scripts are run once and then quit. However, some do create a modeless
    dialog (ie where you can interface with the UI while running it), which
    is the only time I need to use #targetengine.
    Any script that specifies a #targetengine other than "main" is in a persistent session. It means that variables (and functions) will persist from script invokation to invokation. If you have two scripts that run in #targetengine session, for instance, because of their user interfaces, they can have conficting global variables. (Some people will suggest you should give each script its own #targetengine. I am not convinced this is a good idea, but my reasons against it are mostly speculation about performance and memory issues, which are things I will later tell you to not worry about.)
    But I think you've answered one of my questions when you say that the
    thing to avoid is the "v1" scope. Although I don't really see what the
    problem is in the context of InDesign scripting (unless someone else is
    going to using your script as function in one of theirs). Probably in
    Web design it's more of an issue, because a web page could be running
    several scripts at the same time?
    It's more of an issue in web browsers, certainly (which I have ~no experience writing complex Javascript for, by the way), but it matters in ID, too. See above. It also complicates code reuse across projects.
    Regarding functions altering variables: for example, I have a catalog
    script. myMasterPage is a variable that keeps track of which masterpage
    is being used. A function addPage() will add a page, but will need to
    update myMasterPage because many other functions in the script refer to
    that. However, addPage() also needs to update the total page count
    variable, the database-line-number-index-variable and several others,
    which are all used in most other functions. It seems laborious and
    unnecessary to pass them all to each function, then have the function
    alter them and return an array that would then need to be deciphered and
    applied back to the main variables. So in such a case I let the function
    alter these "global" (though not v1) variables. You're saying that's okay.
    Yes, that is OK. It's not a good idea to call that scope "global," though, since you'll promote confusion. You could call it...outer function scope, maybe? Not sure; that assumes addPage() is nested within some other function whose scope is containing myMasterPage.
    It is definitely true that you should not individually pass them to the function and return them as an array and reassign them to the outer function's variables.
    I think it is OK for addPage() to change them, yes.
    Another approach would be something like:
    (function() {
      var MPstate = {
        totalPages: 0,
        dbline: -1
      function addPage(state) {
        state.totalPages++;
        state.dbline=0;
        return state;
      MPstate = addPage(MPstate);
    I don't think this is a particularly good approach, though. It is clunky and also doesn't permit an easy way for addPage() to return success or failure.
    Of course it could instead do something like:
        return { success: true, state: state };
      var returnVal = addPage(MPstate);
      if (returnVal.success) { MPstate = returnVal.state; }
    but that's not very comforting either. Letting addPage() access it's parent functions variables works much much better, as you surmised.
    However, the down-side is that intuitively I feel this makes the script
    more "messy" -- less legible and professional. (On the other hand, I
    recall reading that passing a lot of variables to functions comes with a
    performance penalty.)
    I think that as long as you sufficiently clearly comment your code it is fine.
    Remember this sort of thing is part-and-parcel for a language that has classes and method functions inside those classes (e.g. Java, Python, ActionScript3, C++, etc.). It's totally reasonable for a class to define a bunch of variables that are scoped to that class and then implement a bunch of methods to modify those class variables. You should not sweat it.
    Passing lots of variables to functions does not incur any meaningful performance penalty at the level you should be worrying about. Premature optimization is almost always a bad idea. On the other hand, you should avoid doing so for a different reason -- it is hard to read and confusing to remember when the number of arguments to something is more than three or so. For instance, compare:
    addPage("iv", 3, "The rain in spain", 4, loremIpsumText);
    addPage({ name: "iv", insertAfter: 3, headingText: "The rain in spain",
      numberColumns: 4, bodyText: loremIpsumText});
    The latter is more verbose, but immensely more readable. And the order of parameters no longer matters.
    You should, in general, use Objects in this way when the number of parameters exceeds about three.
    I knew a function could return an array. I'll have to read up on it
    returing an object. (I mean, I guess I intuitively knew that too -- I'm
    sure I've had functions return textFrames or what-have-you),
    Remember that in Javascript, when we say Object we mean something like an associative array or dictionary in other languages. An arbitrary set of name/value pairs. This is confusing because it also means other kinds of objects, like DOM objects (textFrames, etc.), which are technically Javascript Objects too, because everything inherits from Object.prototype. But...that's not what I mean.
    So yes, read up on Objects. They are incredibly handy.

  • Urgent : Work flow  in ABAP

    Hi friends,
                  kinkly send me about Work flow. Also send me step by step procedure on how to do work flow. Thanks in advance.

    Hi,
    check the below links
    REfer this link:
    There is a good book from SAP Press that I would
    recommend as a starting point.It's called Practical Workflow for SAP and it is by Alan Rickayzen.
    http://www.sap-press.com/product.cfm?account=&product=H950
    Workflow
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    For examples on WorkFlow...check the below link..
    http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://web.mit.edu/sapr3/dev/newdevstand.html
    Go through the following links on FORK :
    http://help.sap.com/saphelp_nw04/helpdata/en/24/e2283f2bbad036e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/8d/25f1e7454311d189430000e829fbbd/frameset.htm
    http://help.sap.com/saphelp_46c/helpdata/en/c5/e4a930453d11d189430000e829fbbd/content.htm
    http://www.insightcp.com/res_23.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSTART/BCBMTWFMSTART.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMDEMO/BCBMTWFMDEMO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMPM/BCBMTWFMPM.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    Work Flow
    1) Goto Tcode PFTC : Standard Task > Create Button>Workflow Templete
    For Create Container
    Element : ZBUS1001006
    Name : ANy Name
    Description
    Data Type & Properties
    Data Type:
    select Object Type : BOR Object Type for BUS1001006
    Properties:
    Parameter Settingd : check all Import, Export & Mandatory Checkboxes
    Basic Data :
    Abbr : Create_View
    Name : Some Name
    Work Item Text : Create View Material & -
    Click on DELE Button & Select Material From The List
    Object Catagory : BOR Object Type
    Object Type : BUS1001006
    Method : View
    Triggering Events
    Obj Catagory Object Type Event
    BOR Object BUS1001006 View
    activate it
    Enter on BUS1001006 Object Type you will get Quadratel<> Button after that
    double click on Quadratel<> button you get green button
    after that the system will generate the task No.
    check in the Event linkage Tcode : SWETYPV
    if you find an entry with your Workflow and linkage active
    goto Tcode : SWEC click on New Entries
    Change Doc Obje Obj Cat Obj Type Event on create
    Material BOJ Obje BUS1001006 View Option Button(Checked)
    save this
    goto Tcode : SWEC
    Change Doc Object : Material
    Obj Catagoty : BOR Type
    Obj Type : BUS1001006
    Event : View
    Check with On Create Button
    Goto SWETYPV
    Obj Catagoty : BOR Type
    Obj Type : BUS1001006
    Event : View
    Receiver Type : Some Work Flow No: WS80000431 like this
    Click on Work flow Builder
    ~~Guduri

Maybe you are looking for

  • How to track a status of release w.r.t PR and rel. group and rrel.code?

    Hi guys, We have configured release strategy( Over all release stragey) for a particular PR type.. We have two issues.. 1. We want to track the dates of different release status..Like when first level release and when second release happened and so o

  • XSLT support in OSB10gR3

    Hi, I am using OSB10.3 and would like to know the support of XSLT Version 2.0 on it. Does it support XSLT 2.0 or not and which XSLT engine it uses? Thanks in advance Ananya Edited by: Ananya Bhushan on Apr 27, 2010 9:35 PM

  • Unsupported image format following update to Aperture 3.4.1

    Following the update to Aperture 3.4.1 I can not use the JPEG file as the orignal in a RAW + JPEG file import. When I right click on an RAW + JPEG paired image and ask to use the JPEG as the original from either my Canon 5D Mark II or Canon 7D images

  • Getting an error message saying I can't open iMovie.....

    Getting an error message saying I can't open iMovie because it may be damaged or incomplete. Any ideas?

  • Can't create Sharepoint Document Library Subscription

    I can't create Document Library Subscription in sharepoint as I get below error message: A delivery error has occurred. ---> Microsoft.ReportingServices.Diagnostics.Utilities.DeliveryErrorException: A delivery error has occurred. ---> Microsoft.Repor