WORK FLOW - Prefix Number

Hi
Any one can u explain me about Prefix number used in work flow and where do we maintain that one in Customizing setup?
its very urgent
Thanks & Regards,
senmani.

Thanks

Similar Messages

  • Work flow for invoice verification

    I would like to know how to find out/display the workflow related to MIRO transaction code, miro is invoice verification, how to find the z table created for this workflow.
    given a work flow template number, how to view this template
    thanks

    Hello,
    For MIRO the associated :
    1) BOR : BUS2081
    2) Workflow : WS20001004
    Can you elaborate your requirement on z table?
    If i have correctly understood your requirement :
    To display the workflow template, run Tcode SWDD or
    PFTC, select WS Workflow Template and give the workflow number without the prefix 'WS'
    To make sure the Workflow is triggered, make sure the entry SWETYPV.
    Run SWELS, and switch on Trace.
    Run TCode : MIRO and check in SWEL, to make sure the Workflow has triggered without errors.
    To start with, i hope this helps...
    Cheers,
    Remi

  • Configure the work flow-maintain prefix number

    Dear friends
    I am trying to configure the work flow using SWU3, to maintain prefix number, systems asking for the prefix number, which number I have to give, what is the criterion for defining this number
    For development the prefix number is 999
    For production which number I have to maintain,
    Thank you

    The Prefix number doesn't get transported to production.
    What i meant is when you create a workflow in Dev the 1st 3 digits would be 999XXXXX.
    So when you transport the workflow from Dev to Prod, the workflow which you created moves into Prod.
    As far as i understand, prefix number is required to maintain in Dev to create custom workflow templates. But in Prod, no one is going to create workflow from scratch and hence Prefix maintanence in Prod is not required.
    Try out this in Quality or any other test system apart from you Dev if you can.
    1) Transport the workflow from Dev to Quality.
    2) Dont maintain the prefix in quality system.
    3) check if the workflow is working or not in quality.
    Regards,
    PR.

  • How to see work flow log from Work flow number & work item?

    Hi SDN,
    How to see work flow log from Work flow number & work item?
    Please let me know if there is any transaction for this?
    Or there is any table which gives the details of Work items & work flow numbers?
    Regards,
    Rahul
    Edited by: Rahul Wagh on Nov 12, 2008 5:56 PM

    Hi Rahul
    Go to the Transaction SWI1,
    Enter the workitem no and press F8.
    Select the required entry and Press Shift+F8 (Log Button)
    to view the workflow log.
    Best Regards,
    Deepa Kulkarni

  • Same number of work flow entries under "Approval" link for each user

    Hi All,
    We are implementing SRM 5.0 .
    The problem we are facing is that when we test the service BBPSTART , the number of work flow entries in the inbox for all users is same .
    We created a new user on SRM and tested BBPSTART with this user...it shows the same number of work flow entries in the inbox..
    What is the problem?
    Thanks & Regards,
    Anubhav

    Hi Masa,
    SPRO->SAP Reference IMG->Supplier Relationship Management->SRM Server->Cross-Application Basic Settings->SAP Business Workflow->Activate Standard Taks
    Activate Standard Tasks
    In this activity, you start a background report that defines certain tasks within the workflows of Enterprise Buyer as standard tasks. Any user can perform standard tasks, such as "Approve User Master Record". You use the workflow definition to narrow down who can actually perform the task. For example, in the case of approval of user master records, this depends on the organizational unit to which the new user master record belongs.
    You must perform this activity during the initialization of the Enterprise Buyer system, otherwise the SAP Business Workflow cannot determine who the approver should be.
    Is it somehow related to my problem?
    Regards,
    Anubhav

  • How to solve this "Prefix number: entry missing for system EC5 client 800"

    Hi,
       I am workflow learner, I am having theoretical knowledge on it.
    Now, I started to practice practically in my IDES server.
    I am getting an error message while I am trying to save my standard task with my object type and method and event (which were already created in SWO1).
      My error message details.....
    Prefix number: entry missing for system EC5 client 800
    Message no. 5W023
    Diagnosis
    Tasks, rules, and workflow definitions require an ID that is unique throughout all systems and clients. In this way, you can ensure that you can transport these objects from one system into another at any time (without restrictions). From a technical point of view, the uniqueness of the ID is ensured by what is known as a "prefix number". You can define a separate prefix number for every system and every client in table T78NR.
    System response
    If a prefix number is not defined in the client in which you are currently working, it is not possible to maintain (maintenance terminates).
    Even I tried to create on entry in the table T78NR, but as that is standard table, I am unable to make an entry.
    Hope we have to configure the workflow, I am not having any Basis consultant with me. Can anyone help to cross this problem.
    Thanks and Regards,
    Surender Batlanki.
    Edited by: Surender Batlanki on Oct 15, 2008 2:20 PM

    HI Surender and  Other SAP Work flow gurus
    Surender, u said, that you got the solution.
    As honestly speaking i am new to SAP Workflow. Can u please please guide me the instruction and document if any. I am practising in Test Server machine. I will be really happy that if u all GEMS helps me to get out of it.
    in Prefix number OOW4, system is asking me to enter, the Prefix number, Interval start, Interval End, and Check Sum.
    I entere the same 980 in prefix number, and i dont know what to enter the Interval start and interval end and check sum.
    Also there is some msg coming when i tried to manage some values, " NO Intervals can be reserved for this prefix number" - MSg No: 5W179.
    Please gurus help me.
    Regard
    Guru

  • Regarding work flows

    hi can any one tell me what is workflow? where is it used ? how a workflow is created in SAP XI

    Work Flow
    Unit 1: Organizational Structure
    Use
    In order for the workflow system to establish the relationship between the requester and their superior, you must create an organizational plan in the system.
    For this tutorial, of course, this organizational plan does not have to be complete and valid across the enterprise. To keep the test as simple as possible initially, define an organizational plan that only contains one administrator and one head of department.
    Assign both items to yourself. As a result, all work items will appear in your own Business Workplace. Later you will modify the organizational plan such that you will have to work through the scenario with two users.
    Procedure
    The organizational plan required for this tutorial consists, when complete, of one organizational unit (= "department"), which contains two positions: a head of department and an administrator.
    Each position is described by one job and each position is assigned one user as holder. The head of department position is also designated as chief position of the organizational unit.
    Of course, a "real" organizational plan is created by arranging several organizational units with their positions in a hierarchy. Usually several positions are described by one job.
    For further information, refer to the documentation  Organizational Plan.
    The procedure in this unit is divided into four parts:
    1.     You create an organizational unit.
    2.     Enter necessary jobs as required.
    3.     You create a position for the head of department in the new organizational unit.
    You define a position in three steps:
    i.     You create a position that is assigned your organizational unit.
    ii.     You assign a holder to the position.
    iii.     You assign a job to the position.
    3.     You create a position for the administrator in the organizational unit.
    Creating an organizational unit
    1.     Choose Tools  SAP Business Workflow  Development Definition tools  Organizational Management  Organizational plan  Create (T.Code: PPOCW).
    2.     Confirm the validity period proposed in the dialog box Creating a Root Organizational Unit.
    This takes you to the Create Organization and Staffing (Workflow) screen. This user interface is divided into four screen areas:
    3.     On the Basic Data tab in the details area, enter an abbreviation and a name in the Organizational unit input fields.
    Abbreviation: <ini_sales>
    Name: <OrgUnit: Sales (ini)>
    4.     Choose  .
    You can now create the position for a head of department and one administrator.
    Create jobs
    When enhancing an organizational unit, the necessary jobs are usually already available. For this tutorial however, you create the necessary jobs for head of department and administrator yourself.
    1.     Choose Edit &#61614; Create jobs.
    You go to the dialog box Create jobs. The lower area contains a list of existing jobs and the upper area contains an input table in which you can create new jobs by entering abbreviations and names.
    2.     In the input table, enter an abbreviation and a name for each of the new jobs.
    Job - head of department:
    Object abbreviation: < ini_dhead_C >
    Name: < job: head of department (ini) >
    Job administrator:
    Object abbreviation: < ini_admi_C >
    Name: < job: administrator (ini) >
    3.     Choose  .
    Creating Position for Head of Department
    1.     Change to the overview area in the staff assignments of the organizational unit, in order to assign positions, jobs and holders. Choose the arrow  on the right next to the  and then the staff assignments (list).
    2.     Choose  .
    A new position is then created in the staff assignments and is displayed in a new line in the table. The position is vacant and no job is assigned to it.
    3.     Open the details view for the new position in the details area by double-clicking on the entry in the table.
    4.     On the Basic Data tab, enter a code and a description in the Position input fields. Overwrite the previous contents.
    Abbreviation: < ini_dhead_S >
    Description: < position: head of department ( ini ) >
    Assigning a holder to the position
    You now assign R/3 users to the positions. The staff assignments for your organizational unit are displayed and you see the vacant position in the table.
    5.     Select User in the search area and enter the search criteria in order to find your user names.
    All of the user names that match your search criterion are listed in the selection screen.
    6.     Select your user name in the selection area and drag it to the Person/User column of the position in the overview area.
    Confirm the message that the relationship period of the validity has been changed.
    7.     Set the Head of own organizational unit indicator in the details area.
    Assigning a job to the position
    Assign the job of the head of department you created earlier to the position.
    8.     Select Job in the search area and enter the search criteria in order to find the job of the head of department.
    All jobs that match your search criterion are listed in the selection screen.
    9.     Select job: head of department ( ini) in the selection area and drag it to the Job column of the position in the overview area.
    10.     Choose  .
    The job is assigned the position. Check this by switching to the staff assignments of the organizational unit. Select the organizational unit in the overview area, choose the arrow  on the right next to the  and then the staff assignments (list). The newly created job is displayed in the job column.
    Create position for administrator and assign holder and job
    You are now in the staff assignments of the organizational unit.
    1.     Choose  .
    A new position is then created in the staff assignments and is displayed in a new line in the table. The position is vacant and no job is assigned to it.
    2.     On the Basic Data tab in the details area, enter an abbreviation and a name in the Position input fields. Overwrite the previous contents.
    ID: <ini admiS >
    Description: < position: administrator ( ini ) >
    3.     Choose  .
    4.     Select User in the search area and enter the search criteria in order to find your user names.
    5.     Select your user name in the selection area and drag it to the Person/User column of the position in the overview area.
    Confirm the message that the relationship period of the validity has been changed.
    6.     Select Job in the search area and enter the search criteria in order to find the job of the administrator.
    7.     Select job: administrator ( ini) in the selection area and drag it to the Job column of the position in the overview area.
    8.     Choose  .
    Result
    Display your entire staffing schedule again and make sure that all the information listed is correct.
    You can display a detailed view of jobs, users, and positions. Choose the relevant cell in the table by double-clicking it.
    In the details view of a position or job, all of the assigned tasks are displayed on the Tasks tab.
    You have now completed the first unit (defining the organizational plan). You can now start on the next unit. To exit processing of the organizational structure, choose Back.
    Unit 2: Creating a Workflow
    Use
    To define the flow of the approval process in the system, you first create a multistep task workflow template.
    For further information, refer to Definition of Multistep Tasks in the SAP Business Workflow documentation.
    Procedure: Creating a workflow template
    1.     Choose Tools &#61614; Business Workflow &#61614; Development &#61614;&#61472;Definition Tools &#61614; Tasks/Task Groups &#61614; Create (T.Code PFTC_INS)
    This takes you to the Task: Maintain screen.
    2.     In the Task type field, choose the Workflow template entry.
    3.     Choose  .
    The Workflow Template: Add screen is then displayed.
    Entering the basic data for the workflow template
    1.     Enter an abbreviation (of your choice) and a name (of your choice) for the workflow template to be created.
    Abbreviation: < ini _ws>
    Name: <Workflow: notification of absence ( ini )>
    2.     Choose  .
    3.     In the Create Object Directory Entry dialog box, choose Local object.
    The system has now allocated an 8-digit number for your workflow template. This number is made up of the 3-digit prefix number (Customizing setting) and a 5-digit number taken from a number range. This number together with the letters WS forms the workflow ID. Make a note of the ID so that you can later call the workflow more quickly.
    Entering a workflow description
    4.     Go to the Description tab.
    5.     Choose the text type Task description and then  .
    The SAPscript text editor is then launched.
    6.     Enter a text that describes the task. You can use the following proposal:
    <You can use this workflow to create a notification of absence. This will then be sent to your superior for review. You will be notified of the result of this review.
    If your request is rejected, you can revise it and resubmit it for review or withdraw it completely.>
    7.     Choose  to return to the workflow template and then save the workflow template.
    Determining agents
    To enable the workflow template to be started in dialog, the workflow template must be assigned to its possible agents.
    8.     Select Additional data &#61614;&#61472;Agent assignment &#61614; Maintain
    The workflow template: agent assignment screen is displayed.
    9.     Position the cursor on the name of your workflow template.
    10.     Choose Properties…
    The dialog box Task: <Workflow: Notification of absence (ini)> is displayed.
    11.     Set the General task flag.
    12.     Choose  Copy and then  .
    Designating your workflow template as a general task means that every user in the system is authorized to start this workflow template in dialog.
    Result
    You have now created a workflow template as a "framework" for a workflow definition.
    To create a workflow definition, you need tasks that are used as steps in the workflow definition.
    Additional information: Tasks
    A task can either be a single-step task or a multistep task. In our example of the notification of absence, making the application and checking the application are single-step tasks. The entire procedure involved in processing a leave request consists of these (and other) single steps, and is therefore a multistep task.
    In this tutorial, a single step task is generally described as a task. The difference between the task types is only explicitly explained if there is a risk of confusion over multistep tasks. The term workflow is used as the umbrella term for the workflow template (and thus the multistep task) and the workflow definition. More precise differentiation only takes place if there is a risk of confusion.
    On a technical level, the main difference between single-step tasks and multistep tasks is that:
    •     Every single-step task refers to an object method
    •     Every multistep task refers to a workflow definition
    A workflow definition is made up of a sequence of different steps (for example, all steps required to process a leave request).
    Standard tasks and workflow templates are client-independent. Customer and workflow tasks are client-dependent. Customer and workflow tasks are no longer supported and are therefore no longer used in this tutorial.
    An Activity is a possible step type in a workflow definition. An activity refers to a task. It references a task, which can be a single-step or multistep task (subworkflow).
    For further information, refer to Tasks and Task Groups in the SAP Business Workflow documentation.
    Unit 4: Defining and Inserting Task "Create Notification of Absence"
    Use
    The notification of absence is created in the first step of the workflow. You will also need a task that executes this function. You can create the task separately from the workflow definition or directly from the Workflow Builder. This unit describes how you create the task from the Workflow Builder.
    For further information on creating an individual task, refer to Definition of Single-Step Tasks in the SAP Business Workflow documentation.
    Prerequisites
    This task is a single-step task and it references one object method. The object type used (FORMABSENC (notification of absence)) and the required method (Create) are already defined and implemented in the Business Object Repository.
    You are in the Workflow Builder and the initial workflow definition is displayed.
    Procedure
    Creating an Activity as a Step in the Workflow Definition
    Add a first step of the type Activity to the workflow definition.
    1.     Choose  under step type. The cursor changes shape.
    2.     Position the cursor on the Undefined step and click.
    By doing so, you add an activity to your workflow definition. The step definition is shown in the right-hand part of the screen. You are on the tab page Control.
    Defining a Task "Create Notification of Absence"
    You now create a new task, with which a notification of absence can be created.
    1.     Choose the arrow  on the right next to the  and then Create task.
    The Basic data tab in the Standard task: Create screen is then displayed.
    Entering the basic data
    2.     Enter an abbreviation (of your choice) and a name (of your choice) for the standard task to be created.
    Abbreviation: < ini _creat>
    Name :<Create notification of absence (ini)>
    Work item text
    The work item text appears as an information text in the Business Workplace as soon as there is a work item for the step with this task.
    3.     Enter Create notification of absence in the Work item text field.
    Object type and method
    4.     Enter an object type and a method:
    Object type: FORMABSENC
    Method: CREATE
    You can also use the F4 input help to select the method. Additional indicators associated with this method are set automatically.
    You can view the definition of the object type entered by double-clicking on it. Information about its components is provided.
    5.     Save your task as a local object.
    The system has now allocated an 8-digit number for your task. This number is made up of the 3-digit prefix number (Customizing setting) and a 5-digit number taken from a number range. The identification of this task consists of TS and the eight digit number.
    Determining agents
    Selecting the possible agents for this task determines who is to be authorized to make leave requests. For this task, this should be all employees in your enterprise. Define the task as a general task.
    1.     Select Additional data &#61614;&#61472;Agent assignment &#61614; Maintain
    This takes you to the Standard task: Maintain Agent Assignment screen.
    2.     Position the cursor on the name of your task.
    3.     Choose Properties…
    The dialog box Task: <Notification of absence (ini)> is displayed.
    4.     Set the General task indicator.
    5.     Choose  Copy and then  .
    6.     Exit the task definition with  .
    Interim result
    You have now defined your first task in full. This task is used in the activity that you created in the Workflow Builder.
    Completing Activity
    The Define Container Elements and Binding dialog box is then displayed in which the system proposes a change to the workflow container and a binding definition.
    •     Upper part of the dialog box: Proposal for new container elements in the workflow container.
    The system proposes that you create a local container element in the workflow container, which can store the reference to the notification of absence created in this step. The element has the technical name AbsenceForm .
    •     Lower part of dialog box: Proposed binding definition
    The system proposes that you define a binding from the task container to the workflow container. This binding transports the reference to the generated object (i.e. the created notification of absence) from the task (from the WIObject_ID element in the task container) to the workflow (to the AbsenceForm element in the workflow container).
    Further information on automatic binding definition proposals is available under Binding Definitions from the Workflow Container and Binding Definitions from the Task Container in the documentation on SAP Business Workflow.
    1.     Confirm the proposal with  .
    The new AbsenceForm container element is displayed in the workflow container. Local container elements are marked  . The remaining elements in the workflow container are workflow system elements. For further information, please refer to Workflow System Elements in the Workflow Container.
    2.     Enter a text to describe the step.
    You can, of course, leave the description of the task that is proposed by the system.
    (The current step in your workflow definition appears here.)
    3.     Go to the Outcomes tab.
    All of the outcomes for this step are displayed here.
    4.     Enter a text for the description.
    The description (proposal: < Application filled out> ) in the Task executed synchronously line.
    Each step has at least one subsequent event (in this case: Task executed synchronously). The description is the text with which the outcome is labeled in the workflow definition.
    The Form does not exist and Form could not be generated outcomes are the possible exceptions that could occur in the method execution. You "run the risk" of not intercepting these exceptions and not modeling any exception handling in your workflow definition. If one of the exceptions actually occurs at runtime, the workflow will assume the error status.
    Checking the binding definition (optional)
    1.     Go to the Control tab.
    2.     Choose  Binding (present).
    The WF Builder: Binding for Step ‘<Create notification of absence>’ dialog box is then displayed.
    o     In the upper part of the screen, the binding defined from the workflow container to the task container is displayed. The system executes this binding before providing the task for execution.
    This binding direction is not relevant for this step since no information is to be transported from the workflow to the task.
    o     In the lower part of the screen, the binding defined from the task container to the workflow container is displayed. This system executes this binding after the user has processed the task.
    Here, the binding is WIObjectId.  &ABSENCEFORM& has been automatically defined here by the system. This binding ensures that the reference to the notification of absence created is not only known in the single-step task, but also in the workflow.
    You can view the contents of both containers by choosing Workflow container or Task container.
    (The element of the task container WIObject_ID is called Notif. of absence .)
    3.     Choose  .
    You then return to the step definition.
    Entering the agents responsible
    On the tab page Control, choose the entry Workflow initiator (expression) in the area agent as the agent responsible.
    The system enters the expression &_WF_INITIATOR& in the Expression field and in the input field beside the checkbox.
    You start your executable workflow later manually. At this point in time, the system fills the workflow container element WFInitiator automatically with your user name.
    The above assignment informs the workflow system that the first work item for creating the notification of absence should be addressed as the "starter" as the workflow.
    You return to the screen Workflow definition: Create step: Activity
    Concluding step definition
    1.     Choose  to check the step definition.
    2.     Choose  to exit the step definition.
    3.     Choose  to view the entire workflow definition in the workflow area on the screen.
    You will notice that your workflow definition now contains a new step (the activity just created). The undefined step is also still there.
    4.     Choose  .
    The workflow definition is checked, saved, and, provided it does not contain any errors, activated. The system displays a message if problems are encountered during the test.
    5.     Exit the Workflow Builder.
    Result
    You have now completed this unit and can start the next unit.
         Unit 3: Starting the Workflow Builder
    Use
    A workflow definition is created with the help of the Workflow Builder.
    Prerequisites
    You have now created a workflow template ( Unit 2: Creating a Workflow).
    Procedure
    Calling the Workflow Builder
    1.     Choose Tools &#61614; Business Workflow &#61614; Development &#61614; Definition Tools &#61614; Workflow Builder.
    The Workflow Builder is then launched with the workflow definition that was processed last. If the Workflow Builder has not yet been called, then an initial workflow definition is displayed.
    The Workflow Builder screen is divided into the following areas.
    The workflow definition is displayed in the Workflow area on the screen. If the workflow is shown in display mode, the step type area is not displayed. For further information, refer to Workflow Builder in the SAP Business Workflow documentation.
    2.     Choose  and enter the abbreviation of your workflow template (< WSeight digit number >) .
    You can use the F4 input help. Enter the start of the abbreviation for your workflow (for example: < ini*> ) and choose  All of the workflows that match are displayed. Select your workflow and choose  .
    Result
    The workflow definition is displayed and if necessary can be processed. If the Workflow Builder is called for the first processing of a newly created initial workflow definition, the following graphic is displayed:
    If the graphic displayed differs from that above, check the graphic settings in the Workflow Builder. Choose Extras &#61614; Options, and click the Graphic tab. Choose the Without event-driven process chains view.
    •     The start of the workflow definition is indicated by  Start Workflow. If the new workflow definition has been called from the definition of a multistep task for which triggering events are defined, these are represented by the symbol  and their description.
    •     The end of the workflow definition is indicated by  Workflow terminated.
    •     The area in which the new workflow definition can be added is indicated by an undefined step with an outcome. Steps are displayed in the form of symbols. The description of an outcome is illustrated in the standard view with an arrow.
    This unit is now complete. In the following unit you create the first step in your workflow and define a task for this purpose at the same time.
    Creating an Activity as a Step in the Workflow Definition
    Add a first step of the type Activity to the workflow definition.
    1.     Choose  under step type. The cursor changes shape.
    2.     Position the cursor on the Undefined step and click.
    By doing so, you add an activity to your workflow definition. The step definition is shown in the right-hand part of the screen. You are on the tab page Control.
    Entering basic data for control
    3.     Enter the abbreviation ( TS<8-digit number> ) of the standard task Create Notification of Absence in the Task field and choose  .
    If you no longer know the full abbreviation, you can use different methods to search for it:
    o     Use the F4 input help to search via the object type and method of the single-step task.
    This brings you to the Search and Find: Tasks dialog box.
    On the tab page Obj. type and method, enter the object type FORMABSENC and the method CREATE .
    Then double-click your single-step task in the list. You should recognize your single-step task from your initials in the abbreviation. Choose  .
    o     Enter a character string in the abbreviation or description and choose  .
    A list of tasks is then displayed in which you can double-click the desired task.
    Every activity, as a step in a workflow definition, refers to a task.
    At this point, the unique reference to this task is entered. The identification is made up of an abbreviation (T, TS, WF, or WS) followed by an 8-digit number.
    If you select a workflow task (WF) or workflow template (WS) as your task, your activity is a subworkflow. If you select a customer task (T) or standard task (TS), your activity is a single step.
    The Define Container Elements and Binding dialog box is then displayed in which the system proposes a change to the workflow container and a binding definition.
    o     Upper part of the dialog box: Proposal for new container elements in the workflow container.
    The system proposes that you create a local container element in the workflow container, which can store the reference to the notification of absence created in this step. The element has the technical name AbsenceForm .
    o     Lower part of dialog box: Proposed binding definition
    The system proposes that you define a binding from the task container to the workflow container. This binding transports the reference to the generated object (i.e. the created notification of absence) from the task (from the WIObject_ID element in the task container) to the workflow (to the AbsenceForm element in the workflow container).
    Further information on automatic binding definition proposals is available under Binding Definitions from the Workflow Container and Binding Definitions from the Task Container in the documentation on SAP Business Workflow.
    4.     Confirm the proposal with  .
    The new AbsenceForm container element is displayed in the object area of the workflow container folder. Local container elements are marked  . The remaining elements in the workflow container are workflow system variables. For further information, please refer to Workflow System Variables in the Workflow Container.
    5.     Enter a text to describe the step.
    You can, of course, leave the description of the single-step task that is proposed by the system.
    (The current step in your workflow definition appears here.)
    6.     Go to the Events tab.
    All of the outcomes for this step are displayed here.
    7.     Enter a text for the description.
    The description (proposal: < Application filled out> ) in the Task executed synchronously line.
    Each step has at least one subsequent event (in this case: Task executed synchronously). The description is the text with which the outcome is labeled in the workflow definition.
    The Form does not exist and Form could not be generated outcomes are the possible exceptions that could occur in the method execution. You "run the risk" of not intercepting these exceptions and not modeling any exception handling in your workflow definition. If one of the exceptions actually occurs at runtime, the workflow will assume the error status.
    Checking the binding definition (optional)
    1.     Go to the Control tab.
    2.     Choose  Binding (present).
    The WF Builder: Binding for Step ‘<Create notification of absence>’ dialog box is then displayed.
    o     In the upper part of the screen, the binding defined from the workflow container to the task container is displayed. The system executes this binding before providing the task for execution.
    This binding direction is not relevant for this step since no information is to be transported from the workflow to the task.
    o     In the lower part of the screen, the binding defined from the task container to the workflow container is displayed. This system executes this binding after the user has processed the task.
    Here, the binding is WIObjectId.  &ABSENCEFORM& has been automatically defined here by the system. This binding ensures that the reference to the notification of absence created is not only known in the single-step task, but also in the workflow.
    You can view the contents of both containers by choosing Workflow container or Task container.
    (The element of the task container WIObject_ID is called Notif. of absence .)
    3.     Choose  .
    You then return to the step definition.
    Entering the agents responsible
    Choose Workflow initiator (expression) under Agents.
    The system enters the expression &_WF_INITIATOR& in the Expression field and in the input field beside the checkbox.
    By doing so, you choose the agent responsible.
    You start your executable workflow later manually. At this point in time, the system fills the workflow container element WFInitiator automatically with your user name.
    The above assignment informs the workflow system that the first work item for creating the notification of absence should be addressed as the "starter" as the workflow.
    You return to the screen Workflow definition: Create step: Activity
    Concluding step definition
    1.     Choose  to check the step definition.
    2.     Choose  to exit the step definition.
    3.     Choose  to view the entire workflow definition in the workflow area on the screen.
    You will notice that your workflow definition now contains a new step (the activity just created). The undefined step is also still there.
    4.     Choose  .
    The workflow definition is checked, saved, and, provided it does not contain any errors, activated. The system displays a message if problems are encountered during the test.
    5.     Exit the Workflow Builder.
    Result
    You have now completed this unit and can start the next unit.
    Unit 5: First Test
    Use
    You are now going to start a workflow in dialog for the first time, which will run according to your workflow definition. This workflow definition only contains a step for creating a notification of absence so far.
    For further information on starting workflows, refer to Starting Workflows (Test Environment) in the SAP Business Workflow documentation.
    Prerequisites
    The creation of a notification of absence, which you carry out within your workflow, is reported on a system-wide basis by an event. Other workflows entered as event receivers for this event may therefore be started. The notification of absence created by you (and published by the event) is then also processed with these workflows.
    This event is not used in connection with this tutorial.
    To ensure that only you work exclusively with the notification of absence, you can deactivate any existing linkages between the event and its receivers. Proceed as follows:
    If you carry out the following steps, you prevent other workflows being started unintentionally by your notification of absence.
    However, you may interrupt other workflow demonstrations. Therefore, be careful and speak to the colleagues involved if necessary.
    1.     Choose Tools &#61614; Business Workflow &#61614; Development &#61614; Utilities &#61614; Events &#61614; Simulate Event.
    2.     Enter FORMABSENC in the Object type field.
    3.     Enter created in the Event field.
    4.     Choose  .
    The system simulates the event FORMABSENC.Created and establishes which workflows would be started.
    5.     If you find one or more entries in the list under the branch Tasks without syntax errors to be started, position the cursor on an entry and choose  Event linkage.
    The dialog box Event linkage: Triggering events is displayed.
    6.     Position the cursor on the entry with the red background for the event and choose  .
    The linkage between workflow and event is deactivated.
    7.     Choose  .
    8.     Repeat steps 5 to 7 or repeat the whole simulation as applicable.
    Procedure
    Starting the workflow and filling out the form
    1.     If you are still in the Workflow Builder, choose  .
    The Start Workflow (Test Environment) screen is then displayed. The number of your workflow template is entered.
    If you are no longer in the Workflow Builder, choose Tools &#61614; Business Workflow &#61614; Development &#61614; Runtime Tools &#61614; Start Workflow (Test Environment). Enter the identification of your workflow or use the F4 input help.
    2.     Choose  .
    To handle work processes more quickly, SAP Business Workflow supports Advancing with Immediate Dialog. When a workflow is started in dialog, this means that the first work item of the workflow is made available for processing immediately provided that the user who starts the workflow is also one of the recipients of this first work item. This is the case here because you entered the container element WFInitiator as the agent in the step definition.
    The Create notification of absence screen, therefore, is displayed immediately where you can see the notification of absence form. It is the method Create that is executed with the first work item.
    3.     Fill out the form with entries of your choice.
    4.     Choose  .
    The Start Workflow (Test Environment) screen is then displayed again.
    5.     Choose  and exit the Workflow Builder if necessary.
    Starting a workflow / Business Workplace
    Before you extend your workflow definition, carry out the following test. It will familiarize you with the Business Workplace.
    1.     Start your workflow in dialog again. Choose Tools &#61614; Business Workflow &#61614; Development &#61614; Runtime Tools &#61614; Start Workflow. (T.Code SWUI)
    You go to the screen Start task.
    2.     Choose your workflow in the table on the left.
    3.     Choose Start on the right-hand side of the screen.
    The notification of absence form is displayed.
    4.     Do not make any entries and do not save. Instead, choose  .
    You have now started the workflow but canceled the processing of its first step. But the processing of the work item is not yet completed. You have only broken the processing chain of advancing with immediate dialog.
    5.     Choose  .
    6.     Choose Tools &#61614; Business Workflow &#61614; Development &#61614; Runtime Tools &#61614; Business Workplace.
    7.     Open the Inbox node and choose the Workflow folder.
    Your workflow inbox now contains (at least) one work item for processing. This is the work item for creating a notification of absence, the processing of which you canceled previously.
    8.     Select the work item, if necessary, and choose  .
    You return to the Create notification of absence screen where the notification of absence form is displayed.
    9.     Fill out the form and choose  .
    The work item disappears from your workflow inbox.
    Result
    You have now completed this unit and can start the next unit.
         Reporting and analysis
           In this first test, you will take a look at the work item analysis function.
    1.     Choose Tools &#61614; Business Workflow &#61614; Development &#61614; Reporting &#61614; Work Item Analysis &#61614; Work Items Per Task
    The Work Items Per Task screen is then displayed.
    2.     Select the monitoring period Today.
    3.     Select the work item type (Sub-)Workflow only.
    4.     Choose  .
    The system then determines all of the workflows that were started today. These are then listed on the Work Items Per Task from <Date> to <Date> screen. The number of work items in each workflow is also shown here.
    Make sure that you only ever analyze the work items for your workflow and your absence notification.
    5.     Display the list of associated work items by double-clicking the workflow ID.
    Both the workflows you just started for this workflow identification are displayed with status Completed.
    6.     Display the workflow log by double-clicking a work item ID.
    The Workflow Log screen is then displayed.
    For information on the workflow log, see Workflow Log in the SAP Business Workflow documentation.
    7.     Exit the work item analysis function.
         Unit 6: Creating a Task "Check Notification of Absence"
    Use
    You define the task Check notification of absence. This task is incorporated into your workflow definition as the second step.
    As this is not the first task you have defined, many steps will doubtless be familiar to you. (Refer to Unit 4: Defining and Inserting Task "Create Notification of Absence.)
    Prerequisites
    The object type used (here: FORMABSENC (notification of absence)) and the required method (here: Approve) are already defined and implemented in the Business Object Repository.
    Procedure
    1.     Choose Tools &#61614; Business Workflow &#61614; Development &#61614;&#61472;Definition Tools &#61614; Tasks/Task Groups &#61614; Create.
    The screen Task: Maintain is displayed.
    2.     In the Task type field, choose the Standard task entry.
    3.     Choose  .
    The Basic data tab in the Standard task: Create screen is then displayed.
    Entering the basic data
    1.     Enter an abbreviation (of your choice) and a name (of your choice) for the task to be created.
    Abbreviation: < ini _check>
    Name: <Check notification of absence (ini)>
    Object type and method
    2.     Enter an object type and a method:
    Object type: FORMABSENC
    Method: APPROVE
    You can also use the F4 input help to select the method.
    Work item text
    3.     In the Work item text field, enter the text Check notification of absence from .
    4.     Choose  . Save your standard task as a local object.
    5.     You can include variables in your work item text to be filled with values from the task container at runtime..
    The name of the creator of the notification of absence is to be included into the work item text. As soon as the work item appears in the superior’s Business Workplace, the name of the creator appears in the work item information text.
    Position the cursor in the work item text after the word of .
    6.     Choose  .
    The Please choose an expression dialog box is then displayed.
    7.     Choose the expression Notif. of absence by double-clicking the Container node. &#61614; Issuer object ref. &#61614; Name.
    If WIObject_ID is displayed instead of Notif. of absence, choose  . The system then displays the description of the expressions instead of their technical names.
    The variable &_WI_Object_ID.Creator.Name& has been added to the work item text automatically. The variable name displayed here is the technical name of the expression.
    You can integrate all of the elements in the task container in your work item text. This enables you to include information into the work item text, which is not available until runtime.
    Entering the description text
    1.     Go to the Description tab.
    2.     Choose Task description in the Test type field.
    The current task description is then displayed. This text is intended to inform future recipients of a work item in which this task is referenced and help them in their work.
    The text will often be similar to the work item text or may supplement it.
    3.     Choose  .
    4.     Enter the following text:
    Please check notification of absence no. &_WI_OBJECT_ID.NUMBER& from &_WI_OBJECT_ID.CREATEDATE& of employee &_WI_OBJECT_ID.CREATOR.NAME& .
    Decide whether to approve the request.
    If you want to insert an expression from the task container as a text variable, choose Include &#61614; Expression. Then choose the relevant expression in the Please choose an expression dialog box by double-clicking the Container node.
    5.     Choose  .
    6.     Choose  .
    Determining possible agents
    1.     Select Additional data &#61614;&#61472;Agent assignment &#61614; Maintain
    This takes you to the Standard task: Maintain Agent Assignment screen.
    2.     Position the cursor on the name of your task.
    3.     Choose  .
    You go to the dialog box Choose agent type.
    4.     Double-click Job.
    The dialog box Choose Job is displayed.
    5.     Enter either part of or the full abbreviation of the job that you created for the head of department in Unit 1: Organizational Plan.
    You return to the screen Standard task: Maintain agent assignment.
    6.     Choose  .
    You have linked the task to the job of a head of department. In the organizational plan, you use this job to describe a position. The holder of the position is also displayed.
    7.     Choose  .
    8.     Choose  .
    Result
    The task for checking the notification of absence is defined in full. You can now exit the screen for defining a task.
    In the next unit, you will incorporate this task into the workflow definition.
    Display your organizational plan again.
    a.     Choose Tools &#61614; Business Workflow &#61614; Development &#61614; Definition Tools &#61614; Organizational Management &#61614; Organizational Plan &#61614; Display.
    b.     Choose your organizational unit in the search area. Display it by double-clicking the entry in the table.
    c.     In the overview screen, choose the arrow  on the right next to the  and then Staff assignments (list).
    d.     Display a detailed view of the position of the head of department by double-clicking the entry in the list.
    Here, you can see that this position is assigned to the job and, on the Tasks tab, that it is also assigned to the task Check notification of absence.
         Unit 7: Including "Check Notification of Absence" in the Workflow Definition
    Use
    The task with which an employee can check a notification of absence is ready to be included into your workflow definition as the next step.
    Prerequisites
    You have defined a workflow with a step ( Unit 4: Task Defining and Inserting "Create Notification of Absence") and created the task Check Notification of Absence ( Unit 6: Create Task "Notification of Absence").
    Procedure
    Calling the Workflow Builder
    1.     Choose Tools &#61614; SAP Business Workflow &#61614; Development &#61614; Definition Tools &#61614; Workflow Builder.
    The Workflow Builder is then launched in display mode with the workflow that was processed last.
    2.     Work through the following steps to display your workflow for this tutorial in change mode.
    i.     If the workflow you created for this tutorial is already displayed, choose  . Go to step 3.
    ii.     If a different workflow is displayed, check whether the workflow you created is listed in the My available tasks area. Double-click it and choose  . Go to step 3.
    iii.     Choose  . Enter the complete abbreviation in the Task field on the Open other workflow definition dialog box and press RETURN. You can now also enter the workflow abbreviation. Enter either the full abbreviation or just the first characters (for example: < i*> ). Press F4 . The search result is then displayed. Choose your workflow by double-clicking it. When you enter the abbreviation in the Task field on the Open other workflow definition dialog box, all of the available versions are displayed. Since you have not created any versions, select version 0000 and choose  . The workflow is then loaded in display mode. To switch to change mode, choose  .
    1.     Choose  to display the entire workflow in the workflow area on the screen.
    Creating a container element in the workflow container
    You need an additional container element in the workflow container to store the name of the user who will execute this step. This user name is to be used later in the notification text that is sent to the requester.
    1.     Choose the entry <Double-click to create> by double-clicking in the Workflow Container.
    The dialog box for entering a container element is displayed.
    2.     Make the following entries:
    Element: Approver
    Name: Approver
    Description: Approver of the absence request
    Reference table: WFSYST
    Reference field: AGENT
    3.     Choose  .
    You have now added a local container element to the workflow container, which is ready to take an agent name, based on its data type reference. However, you have not yet determined a value for this container element.
    Creating an Activity as a Step in the Workflow Definition
    1.     Choose  under step type. The cursor changes shape.
    2.     Position the cursor on the Undefined step that follows the outcome Request completed and click.
    By doing so, you add an activity to your workflow definition. The step definition is shown in the right-hand part of the screen. You are on the tab page Control.
    Entering basic data for control
    3.     In the Task field, enter the abbreviation ( TS<8-digit number> ) of the task Check Notification of Absence that you defined in the previous unit. Choose  .
    If you no longer know the full abbreviation, you can use different methods to search for it:
    o     Use the F4 input help to search via the object type and method of the task.
    This brings you to the Search and Find: Tasks dialog box.
    On the tab page Obj. type and method, enter the object type FORMABSENC and the method CREATE .
    Then double-click your task in the list. You should recognize your task from your initials in the abbreviation. Choose  .
    o     Enter a character string in the abbreviation or description and choose  .
    A list of tasks is then displayed in which you can double-click the desired task.
    Every activity, as a step in a workflow definition, refers to a task.
    At this point, the unique reference to this task is entered. The identification is made up of an abbreviation (T, TS, WF, or WS) followed by an 8-digit number.
    If you select a workflow (WS or WS) as your task, your activity is a subworkflow. If you select a task (TS or T), your activity is a single step.
    You go to a dialog box in which the system proposes binding from the workflow container to the task container.
    Here, the object reference to the notification of absence is transported from the workflow container (container element AbsenceForm ) to the task container (to the container element WIObject_ID ).
    1.     Choose  to confirm the proposal.
    Extending the binding definition
    Now define another binding via which the current agent of the work item (the superior) is stored in a container element of the workflow container.
    2.     Choose  Binding (present).
    The Binding for Step 'Check notification of absence' dialog box is then displayed. If the first column is entitled Element, choose  to display the element description.
    The system has created the following binding definition from the workflow container to the task container:
    Notif. of absence  &AbsenceForm&
    This binding ensures that the correct notification of absence is checked in the task.
    3.     Choose  .
    All of the container elements in the task container are now displayed on the left-hand side. You can define a binding from these container elements to the workflow container.
    4.     Position the cursor in the lower half of the screen, in the empty input field beside the container element Actual agent and call the F4 input help.
    5.     Double-click Approver.
    In addition to the bindings already existing, the following binding is now defined:
    Actual Agent  &Approver&
    6.     Choose  .
    Determining outcomes
    The method APPROVE of the object type FORMABSENC, to which you refer in the standard task definition, is defined with a result. The three possible values of this result are offered on the tab page Outcomes as outcomes of this step:
    •     Approved
    •     rejected
    •     New
    The  indicates that these outcomes have already been transferred to the workflow definition. The outcome New is not really appropriate at this point. At this stage of processing, the notification of absence cannot be "new" any more. It should therefore not be incorporated in the definition.
    1.     Click on the symbol  in front of the outcome New.
    The symbol changes to  .
    The outcome Processing obsolete is processed if the relevant work item is set to obsolete via a process control step. This functionality is not used in this tutorial.
    The outcome Form not available results from the exception defined for the method APPROVE. You could include this outcome into the workflow definition and would then have to model appropriate subsequent steps. However, you do not model anything for the purposes of this tutorial and accept that your workflow will have an error at runtime if this exception is raised.
    2.     Choose  .
    Two branches are now inserted in your workflow definition for the two marked outcomes Approved and Rejected.
    Inputs for the agent
    If you are working through this tutorial alone, do not specify anything for responsibility at this point. If it is processed when the workflow is executed, therefore, this step will be "offered" for processing to all employees declared as possible agents of the single-step task Check notification of absence. This means all user whose positions are described with the job head of department.
    In your organizational plan, there is only one users who is a possible agent -> you.
    •     You have maintained the organizational plan with jobs, positions, and user assignments in Unit 1: Organizational Plan.
    •     You have defined the single-step task "Check notification of absence" and have assigned the possible agents in Unit 6: Definition of the Standard Task "Check Notification of Absence".
    Concluding step definition
    Choose  .
    The workflow definition is checked, saved, and, provided it does not contain any errors, activated. The system displays a message if problems are encountered during the test.
    Result
    You can subject your workflow definition to a second test.
      Unit 8: Second Test 
    Use
    You start your workflow in dialog and two steps are executed. The notification of absence is created in the first step and then checked in the second.
    Procedure
    Starting the workflow and filling out the form
    1.     If you are still in the Workflow Builder, choose  .
    The Start Workflow (Test Environment) screen is then displayed. The number of your workflow is entered.
    If you are no longer in the Workflow Builder, choose Tools &#61614; Business Workflow &#61614; Development &#61614; Runtime Tools &#61614; Start Workflow (Test Environment). Enter the number of your workflow or use the F4 input help.
    2.     Choose  .
    You go to the screen Create Notification of Absence.
    From the requester’s perspective
    When the workflow is started, the work item for creating the notification of absence is provided to you directly for processing. This is because of advancing with immediate dialog. You were introduced to this in the first test.
    3.     Fill out the form and choose  .
    From the head of department's perspective
    You created the step for checking the notification of absence in your workflow definition without specifying the agents responsible. This means that all of the possible agents of the single-step task are recipients of the work item. Since you occupy the position of both requester and head of department, you are automatically and immediately presented with the work item for approving the application. This is again because of advancing with immediate dialog.
    As the superior, you have several options:
    •     Approve the request
    •     Reject the request
    •     Cancel processing of the request.
    4.     Choose  to cancel processing.
    The Start Workflow (Test Environment) screen is then displayed again.
    Exit this dialog and, if necessary, the Workflow Builder.
    Reporting and analysis: Workflow outbox
    In the first test of your workflow, you were introduced at this point to work item analysis. Now, you will be introduced to the workflow outbox.
    Amongst other things, the work items which you started in dialog along with date, time and current status are displayed in the workflow outbox.
    1.     Choose Tools &#61614; Business Workflow &#61614; Development &#61614; Runtime Tools &#61614; Business Workplace.
    2.     In the tree displayed, choose Outbox &#61614; Started workflows.
    3.     Choose the arrow  on the right next to the  and then Today only.
    The work items for all the workflows you started today are then displayed. Note the statuses of the work items displayed in the Status column of the Business Workplace. Read the F1 help for the Status column.
    4.     Position the cursor on the work item for the workflow just started. This work item has the status in process.
    From the current workflow data, you can see that the step Create notification of absence has been completed successfully, when that was, and who processed it. The work item has the status completed.
    You can also see that the work item representing the task for checking the request still has status ready and can therefore still be seen in the superior’s Business Workplace.
    Business Workplace - check notification of absence
    You now once again occupy the position of the superior who canceled processing earlier when the application was to be checked.
    5.     In the tree, choose Inbox &#61614; Workflow.
    The work items for you to process are displayed with their work item texts and certain other attributes.
    A preview of the selected work item is displayed below the list and contains the description of the work item.
    6.     Select the work item for checking the notification of absence and choose  .
    You go to the work item display. There you find amongst other things the description text, also with replaced text variables.
    7.     Choose  to return to the Business Workplace.
    8.     Choose  or start execution by double-clicking the entry.
    9.     Either reject or approve the request. You should start the workflow twice and test each variant.
    To check whether the workflow was completed correctly, go to your workflow outbox. The procedure is described above.
    Result
    Your workflow definition has now been tested and you can continue with the next unit.
      Unit 9: Adding a User Decision 
    Use
    In the previous units, you created a workflow whose definition contains two activities. These activities are based on two standard tasks that you created.
    In this unit, you will add a user decision to your workflow definition.
    With the user decision, the requester can decide to revise and resubmit the notification of absence if the head of department rejects it.
    For further information, refer to Maintaining a User Decision in the SAP Business Workflow documentation.
    Procedure
    You start the Workflow Builder and open your workflow definition in Change mode. Proceed as described in Unit 7: Including "Check Notification of Absence" in the Workflow Definition.
    Creating a user decision as a step in the workflow definition
    1.     Choose  under step type. The cursor changes shape.
    2.     Position the cursor on the Undefined step that follows the outcome Rejected and click.
    By doing so, you add a user decision to your workflow definition. The step definition is shown in the right-hand part of the screen. The Decision tab is displayed.
    Entering basic data for user decision
    3.     Enter Your request was rejected by &. Revise? in the Title field.
    This text is used as the title for the alternative decisions when the workflow is executed. The variable & is a placeholder for a parameter that is filled from the task container at runtime.
    4.     Choose the F4 input help in the Parameter 1 field.
    The Expression for first parameter of user decision dialog box is then displayed.
    5.     Choose the Approver container element by double-clicking it.
    Entering alternative decisions
    6.     Define the alternative decisions. Enter the following texts:
    Decision texts     Name
    Decision: Revise request?     Revise
    Decision: Withdraw request?     Withdraw
    7.     The decision texts you enter here appear as decision options on the screen that can be processed by the requester after their leave request has been rejected.
    8.     The descriptions are the terms used to describe the outcomes in the workflow definition.
    9.     Entering the agents responsible
    10.     Choose Workflow initiator (expression) under Agents.
    The system enters the expression &_WF_INITIATOR& in the Expression field and in the input field beside the checkbox.
    Concluding step definition
    1.     Choose  to check the step definition.
    2.     Choose  to exit the step definition.
    3.     Choose  to view the entire workflow definition in the workflow area on the screen.
    You can see that your workflow definition contains a user decision in the rejected branch. This has two outcomes whose branches converge again in the rejected branch. Each new branch contains an undefined step.
    4.     Choose  .
    The workflow definition is checked, saved, and, provided it does not contain any errors, activated. The system displays a message if problems are encountered during the test.
    Result
    You can now subject your workflow definition to another test.
      Unit 10: 3rd Test 
    Use
    You start your workflow in dialog and three steps are executed: Two activities, for creating and checking a notification of absence, and one user decision.
    Procedure
    Starting the workflow and filling out the form, checking the notification of absence, user decision
    1.     If you are still in the Workflow Builder, choose  .
    The Start Workflow (Test Environment) screen is then displayed. The number of your workflow is entered.
    If you are no longer in the Workflow Builder, choose Tools &#61614; SAP Business Workflow &#61614; Development &#61614; Runtime tools &#61614; Start workflow (test environment). Enter the number of your workflow or use the F4 input help.
    2.     Choose  .
    You go to the screen Create Notification of Absence.
    From the requester’s perspective
    3.     Fill out the form and choose  .
    When you save the form, you (as superior) can immediately approve or reject the application (reason: advancing with immediate dialog).
    From the superior’s perspective
    4.     Do not approve the application.
    5.     Choose  .
    If the request is not approved, the next step in the workflow definition is the user decision. The requester was entered as the agent for the step. The decision is therefore offered to you again as the requester (reason: advancing with immediate dialog).
    From the requester’s perspective
    You are given three options:
    •     Revise request?
    •     Withdraw request?
    •     Cancel
    It is irrelevant which option you choose since you have not defined any follow-up steps. You should start the workflow several times and try out the different options. The complete process flow can be checked each time in the work item analysis or workflow outbox.
      Unit 11: Define and Include "Revise Notification of Absence" in the Workflow Definition 
    Use
    You will now add the activity Revise notification of absence to your workflow definition. You will create the necessary task within the

  • Problem in Work Flow

    Hi Gurus,
    i am learning Work Flow.
    now i am doing work flow which given <b>****************</b> the first one
    Building a simple Workflow application using the steps "User Decision" and "Mail".
    After entering Abbr as DEMOWF and
                         Name as Demo_WorkFlow  in Give your New a Name Task Pop-up box i am getting error
    <b>Prefix number: entry missing for system ICS client 800</b>.
    can anyone gives me any idea, if anyone clears this doubt full points will be given
    Thanks and Regards,
    Vijaya

    Hi,
    Check out for the agent assignment and the user authorization.
    Is your manager getting the message to his/her in-box for approval/reject. What is the error message he/she is getting.....
    Check out for any new roles moved to PRD system and are generated/active....
    Regards,
    Prabhu Rajesh
    Message was edited by:
            PrabhuRajesh Janardanan

  • UCCX change work flow group based on CSQ

    Does it possible to assign a work flow group to a CSQ, or change the work flow group from script ?
    Rg,
    Gerald.

    gerald.chong wrote:Thanks for the explanations. I understand the layout can be change via the script, but that I am require to do is to have different wrapup code based on different queue. Will it be possible ?
    Sadly, I don't think this is possible. I just looked into this a couple weeks ago for a customer that asked us for the very same thing. The only built-in alternative I was able to offer them is to load up the entire wrap-up code list carefully sorted and prefixed, like "HR: Tax Changes" and "HR: Benefits Changes" and "OtherTopic: Reason 1" and "OtherTopic: Reason 2". I believe there's no built-in limit to number of wrap-up codes.
    As another alternative, my company (and several others) have external wrap-up code applications that are much more flexible, and can offer different wrap-up codes on a per-CSQ basis. It was written to fill wrap-up code needs back before UCCX gained built-in wrap-up codes, so we don't really sell it too much these days, but it does fill a need here and there for certain customers.

  • Purchase order work flow

    Hi all,
        According my client requirement i created release procedure for purchase orders.But according to requirement po has to send to approval authority mail box. I heard that work flow has to configure for this purpose .pls guide me how configure the work flow for the approval procdure.it will be great ful any link provided relating this scenario.
    thanks & regards
    Venkat

    Hello Venkat,
    If you are using the standard workflow, with a 1 against teh Release codes, then you do not have to worry abt role resolution, else you might have to
    You will need to activate workflow first to begin with,
    SWU3 is the first tcode, you'd visit.. Make sure you maintain the Prefix number ranges, if there ain't any and check the number ranges..under Maintain Definition Environment
    Go to SWETYPV and activate the linkages for BUS2012- PO for release step created.
    Go to SWDD, and choose Workflow template ws20000075, unless you want to make any custome chnages to the template.
    hot CTRL+F8, under start events activate BUS2012, RELEASESTEPCREATED. that would set the start event.
    This would send a workitem email to users when it is their turn to approve
    If this has been configured,
    You need to activate security roles and assign users to each role for M_EINK_FRG for a combination of Release code and Release Group..
    That should take you through ME29N
    Edited by: Pavan Kumar on Nov 17, 2008 9:42 AM

  • CUP MSMP Work flow in GRC 10.0

    Hi GRC Experts,
    I am working on a MSMP Work flow requirement in GRC 10.0 and would appreciate any guidance/inputs on this.
    As per my requirement we would have to design a CUP Work flow in GRC 10.0 to decommission a user in 24-hours if the user has not activated his/her new user account. After a user account is provisioned, system should wait for 24 hours to have user login/activate the account, otherwise decommission/disable the account. I have never heard of this functionality in GRC 5.3, so was not sure if this is something that can be designed and configured in 10.0. Would really appreciate if you can please guide us with requirement and advise if this can be implemented in GRC 10.0.
    I know outside GRC , this requirement can be designed using a background job, which can monitor the provisioning and activation for a user account , however i am wondering if this can be designed and implemented with MSMP Work flow in GRC 10.0
    Thanks every one for your valuable and precious time.
    Cheers .. Vikas

    Hi Vikas,
    You doesn't require customized ABAP programs to achive this and neither GRC 10 and can be achived with the below login parameters:
    login/password_max_idle_initial
    login/password_max_new_valid
    login/password_max_reset_valid
    The login/password_max_idle_initial will make the initial password invalid if the user is not logged in, which means you are making the system secure if the user doesn't login to the system in specific number of days.
    However, this will not decomission the user IDs. You may need to look at custom options to identify the users from USR02 table and lock them using standard BAPIs.
    I am not sure on why Multi Stage/Multi Path is required for this??
    Regards,
    Raghu

  • Data/Work Flow in SAP

    Hi All,
    Plz. explain the Data/Work Flow in SAP
    Is there any difference between this if so explain,
    and kindly tell me the process.
    thank you,
    Narender

    Hii..
    Work Flow- SAP Business Workflow
    Purpose
    SAP Business Workflow can be used to define business processes that are not yet mapped in the R/3 System. These may be simple release or approval procedures, or more complex business processes such as creating a material master and the associated coordination of the departments involved. SAP Business Workflow is particularly suitable for situations in which work processes have to be run through repeatedly, or situations in which the business process requires the involvement of a large number of agents in a specific sequence.
    You can also use SAP Business Workflow to respond to errors and exceptions in other, existing business processes. You can start a workflow when predefined events occur, for example an event can be triggered if particular errors are found during an automatic check.
    SAP provides several workflows that map predefined business processes. These workflows do not require much implementation. For an overview of these SAP workflows, refer to Workflow Scenarios in Applications.
    Integration
    SAP Business Workflow uses the existing transactions and functions of the R/3 System and does not change the functions. You can combine the existing functions of the R/3 System to form new business processes with SAP Business Workflow. The workflow system takes over control of the business processes. If you are already using SAP Organizational Management, you can use the organizational structure created there to have the relevant agents carry out the individual activities. It is possible to have an activity carried out by a position. This ensures that the respective occupiers of the position can carry out the individual activities during execution of the workflow. This means that personnel changes in your organization are taken into account immediately in the execution of a workflow.
    Features
    SAP Business Workflow provides a number of tools for defining and analyzing workflows as well as for monitoring operation.
    The Workflow Builder is for displaying and making changes to workflows. You can make small extensions directly to the original workflows supplied by SAP, such as carrying out your own agent assignments or changing deadline monitoring.
    There are several Workflow Wizards to support you in the definition of workflows, with which you can create specific parts of a workflow. The Workflow Wizard Explorer gives you an overview of the existing Workflow Wizards.
    In order to make the functions of the R/3 Systems available to a workflow, you use business objects, which you can define and analyze in the Business Object Builder. These business objects are made available to the workflow in reusable tasks. The Business Wizard Explorer gives you an overview of all existing tasks.
    The end user receives information about the activities they are to carry out in their Business Workplace. This provides them with a central overview of all the activities that they are authorized to carry out. They can commence the activities from here.
    Several tools are available to the workflow system administrator, with which they can control and analyze the current workflows. The workflow system administrator is notified of problems automatically by the system.
    DATAFLOW-Data flow means flow of data from one module to another within a sap system.
    Regards,
    Aakash

  • Standard Work Flow in PP and QM

    Hi Gurus,
    What are the standard Work Flow in PP & QM ?
    Thanks in advance,
    Shree

    Hi
    Follow the Path to find it your self.
    <i><b>SPRO>Quality Management>Envrionment>Central Functions>Activate Workflow</b></i>
    You get a pop-up screen, Click on "<b>Activate SAP Business Workf</b>low"
    you get a screen "Task Customizing Overview"
    For each module you have a workflows
    click on <b>Assign Agents</b>  you will find the number of Tasks for each activities or functions
    Like Under Production Orders you will have "inform MRP Controller about trigger pt"
    etc like wise you have to use these Tasks provided by SAP to your build or combine as per customers requiremnts with proper agent assignments
    Regards
    Rehman
    <b>Reward Your Points If Useful</b>

  • How can we use TABLE CONTROL in BDC and WORK FLOW of ABAP.

    how can we use TABLE CONTROL in BDC and WORK FLOW of ABAP.?
    please explain the important questions.

    How to deal with table control / step loop in BDC
    Steploop and table contol is inevitable in certain transactions. When we run BDC for such transactions, we will face the situation: how many visible lines of steploop/tablecontrol are on the screen? Although we can always find certain method to deal with it, such as function code 'NP', 'POPO', considering some extreme situation: there is only one line visible one the screen, our BDC program should display an error message. (See transaction 'ME21', we you resize your screen to let only one row visible, you can not enter mutiple lines on this screen even you use 'NP')
    Now with the help of Poonam on sapfans.com developement forum, I find a method with which we can determine the number of visible lines on Transaction Screen from our Calling BDC program. Maybe it is useless to you, but I think it will give your some idea.
    Demo ABAP code has two purposes:
    1. how to determine number of visible lines and how to calculte page number;
    (the 'calpage' routine has been modify to meet general purpose usage)
    2. using field symbol in BDC program, please pay special attention to the difference in Static ASSIGN and Dynamic ASSIGN.
    Now I begin to describe the step to implement my method:
    (I use transaction 'ME21', screen 121 for sample,
    the method using is Call Transation Using..)
    Step1: go to screen painter to display the screen 121, then we can count the fixed line on this screen, there is 7 lines above the steploop and 2 lines below the steploop, so there are total 9 fixed lines on this screen. This means except these 9 lines, all the other line is for step loop. Then have a look at steploop itselp, one entry of it will occupy two lines.
    (Be careful, for table control, the head and the bottom scroll bar will possess another two fixed lines, and there is a maximum number for table line)
    Now we have : FixedLine = 9
                  LoopLine  = 2(for table control, LoopLine is always equal to 1)
    Step2: go to transaction itself(ME21) to see how it roll page, in ME21, the first line of new page is always occupied by the last line of last page, so it begin with index '02', but in some other case, fisrt line is empty and ready for input.
    Now we have: FirstLine = 0
              or FirstLine = 1 ( in our case, FirstLine is 1 because the first line of new page is fulfilled)
    Step3: write a subroutine calcalculating number of pages
    (here, the name of actual parameter is the same as formal parameter)
    global data:    FixedLine type i, " number of fixed line on a certain screen
                    LoopLine  type i, " the number of lines occupied by one steploop item
                    FirstLine type i, " possbile value 0 or 1, 0 stand for the first line of new                                                               " scrolling screen is empty, otherwise is 1
                    Dataline  type i, " number of items you will use in BDC, using DESCRIBE to get
                    pageno    type i, " you need to scroll screen how many times.
                    line      type i, " number of lines appears on the screen.
                    index(2)  type N, " the screen index for certain item
                    begin     type i, " from parameter of loop
                    end       type i. " to parameter of loop
    *in code sample, the DataTable-linindex stands for the table index number of this line
    form calpage using FixedLine type i (see step 1)
                       LoopLine  type i (see step 1)
                       FirstLine type i (see step 2)
                       DataLine  type i ( this is the item number you will enter in transaction)
              changing pageno    type i (return the number of page, depends on run-time visible                                                                             line in table control/ Step Loop)
              changing line      type i.(visible lines one the screen)
    data: midd type i,
          vline type i, "visible lines
    if DataLine eq 0.
       Message eXXX.
    endif.
    vline = ( sy-srows - FixedLine ) div LoopLine.
    *for table control, you should compare vline with maximum line of
    *table control, then take the small one that is min(vline, maximum)
    *here only illustrate step loop
    if FirstLine eq 0.
            pageno = DataLine div vline.
            if pageno eq 0.
               pageno = pageno + 1.
            endif.
    elseif FirstLine eq 1.
            pageno = ( DataLine - 1 ) div ( vline - 1 ) + 1.
            midd = ( DataLine - 1 ) mod ( vline - 1).
            if midd = 0 and DataLine gt 1.
                    pageno = pageno - 1.
            endif.
    endif.
    line = vline.
    endform.
    Step4 write a subroutine to calculate the line index for each item.
    form calindex using Line type i (visible lines on the screen)
                        FirstLine type i(see step 2)
                        LineIndex type i(item index)
              changing  Index type n.    (index on the screen)
      if  FirstLine = 0.
            index = LineIndex mod Line.
            if index = '00'.
                    index = Line.
            endif.
      elseif FirstLine = 1.
            index = LineIndex mod ( Line - 1 ).
            if ( index between 1 and 0 ) and LineIndex gt 1.
                    index = index + Line - 1.
            endif.
            if Line = 2.
                    index = index + Line - 1.
            endif.
    endif.
    endform.
    Step5 write a subroutine to calculate the loop range.
    form calrange using Line type i ( visible lines on the screen)
                        DataLine type i
                        FirstLine type i
                        loopindex like sy-index
            changing    begin type i
                        end type i.
    If FirstLine = 0.
       if loopindex = 1.
            begin = 1.
            if DataLine <= Line.
                    end = DataLine.
            else.
                    end = Line.
            endif.
       elseif loopindex gt 1.
            begin = Line * ( loopindex - 1 ) + 1.
            end   = Line * loopindex.
            if end gt DataLine.
               end = DataLine.
            endif.
       endif.
    elseif FirstLine = 1.
      if loopindex = 1.
            begin = 1.
            if DataLine <= Line.
                    end = DataLine.
            else.
                    end = Line.
            endif.
      elseif loop index gt 1.
            begin = ( Line - 1 ) * ( loopindex - 1 ) + 2.
            end =   ( Line - 1 ) * ( loopindex - 1 ) + Line.
            if end gt DataLine.
                    end = DataLine.
            endif.
      endif.
    endif.
    endform.
    Step6 using field sysbol in your BDC, for example: in ME21, but you should calculate each item will correponding to which index in steploop/Table Control
    form creat_bdc.
    field-symbols: <material>, <quan>, <indicator>.
    data: name1(14) value 'EKPO-EMATN(XX)',
          name2(14) value 'EKPO-MENGE(XX)',
          name3(15) value 'RM06E-SELKZ(XX)'.
    assign:         name1 to <material>,
                    name2 to <quan>,
                    name3 to <indicator>.
    do pageno times.
    if sy-index gt 1
    *insert scroll page ok_code"
    endif.
            perform calrange using Line DataLine FirstLine sy-index
                             changing begin end.
    loop at DataTable from begin to end.
            perform calindex using Line FirstLine DataTable-LineIndex changing Index.
            name1+11(2) = Index.
            name2+11(2) = Index.
            name3+12(2) = Index.
            perform bdcfield using <material> DataTable-matnr.
            perform bdcfield using <quan>     DataTable-menge.
            perform bdcfield using <indicator> DataTable-indicator.
    endloop.
    enddo.
    An example abap program of handling Table Control during bdc programming.
    REPORT zmm_bdcp_purchaseorderkb02
           NO STANDARD PAGE HEADING LINE-SIZE 255.
                    Declaring internal tables                            *
    *-----Declaring line structure
    DATA : BEGIN OF it_dummy OCCURS 0,
             dummy(255) TYPE c,
           END OF it_dummy.
    *-----Internal table for line items
    DATA :  BEGIN OF it_idata OCCURS 0,
              ematn(18),      "Material Number.
              menge(13),      "Qyantity.
              netpr(11),      "Net Price.
              werks(4),       "Plant.
              ebelp(5),       "Item Number.
            END OF it_idata.
    *-----Deep structure for header data and line items
    DATA  :  BEGIN OF it_me21 OCCURS 0,
               lifnr(10),      "Vendor A/c No.
               bsart(4),       "A/c Type.
               bedat(8),       "Date of creation of PO.
               ekorg(4),       "Purchasing Organisation.
               ekgrp(3),       "Purchasing Group.
               x_data LIKE TABLE OF it_idata,
             END OF it_me21.
    DATA  :  x_idata LIKE LINE OF it_idata.
    DATA  :  v_delimit VALUE ','.
    DATA  :  v_indx(3) TYPE n.
    DATA  :  v_fnam(30) TYPE c.
    DATA  :  v_count TYPE n.
    DATA  :  v_ne TYPE i.
    DATA  :  v_ns TYPE i.
    *include bdcrecx1.
    INCLUDE zmm_incl_purchaseorderkb01.
                    Search help for file                                 *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
        IMPORTING
          file_name     = p_file.
    START-OF-SELECTION.
           To upload the data into line structure                        *
      CALL FUNCTION 'WS_UPLOAD'
        EXPORTING
          filename = p_file
          filetype = 'DAT'
        TABLES
          data_tab = it_dummy.
        Processing the data from line structure to internal tables       *
      REFRESH:it_me21.
      CLEAR  :it_me21.
      LOOP AT it_dummy.
        IF it_dummy-dummy+0(01) = 'H'.
          v_indx = v_indx + 1.
          CLEAR   it_idata.
          REFRESH it_idata.
          CLEAR   it_me21-x_data.
          REFRESH it_me21-x_data.
          SHIFT it_dummy.
          SPLIT it_dummy AT v_delimit INTO it_me21-lifnr
                                           it_me21-bsart
                                           it_me21-bedat
                                           it_me21-ekorg
                                           it_me21-ekgrp.
          APPEND it_me21.
        ELSEIF it_dummy-dummy+0(01) = 'L'.
          SHIFT it_dummy.
          SPLIT it_dummy AT v_delimit INTO it_idata-ematn
                                           it_idata-menge
                                           it_idata-netpr
                                           it_idata-werks
                                           it_idata-ebelp.
          APPEND it_idata TO it_me21-x_data.
          MODIFY it_me21 INDEX v_indx.
        ENDIF.
      ENDLOOP.
                    To open the group                                    *
      PERFORM open_group.
            To populate the bdcdata table for header data                *
      LOOP AT it_me21.
        v_count = v_count + 1.
        REFRESH it_bdcdata.
        PERFORM subr_bdc_table USING:   'X' 'SAPMM06E'    '0100',
                                        ' ' 'BDC_CURSOR'  'EKKO-LIFNR',
                                        ' ' 'BDC_OKCODE'  '/00',
                                        ' ' 'EKKO-LIFNR'  it_me21-lifnr,
                                        ' ' 'RM06E-BSART' it_me21-bsart,
                                        ' ' 'RM06E-BEDAT' it_me21-bedat,
                                        ' ' 'EKKO-EKORG'  it_me21-ekorg,
                                        ' ' 'EKKO-EKGRP'  it_me21-ekgrp,
                                        ' ' 'RM06E-LPEIN' 'T'.
        PERFORM subr_bdc_table USING:   'X' 'SAPMM06E'    '0120',
                                        ' ' 'BDC_CURSOR'  'RM06E-EBELP',
                                        ' ' 'BDC_OKCODE'  '/00'.
        MOVE 1 TO v_indx.
    *-----To populate the bdcdata table for line item data
        LOOP AT it_me21-x_data INTO x_idata.
          CONCATENATE 'EKPO-EMATN(' v_indx ')'  INTO v_fnam.
          PERFORM  subr_bdc_table USING ' ' v_fnam x_idata-ematn.
          CONCATENATE 'EKPO-MENGE(' v_indx ')'  INTO v_fnam.
          PERFORM  subr_bdc_table USING ' ' v_fnam x_idata-menge.
          CONCATENATE 'EKPO-NETPR(' v_indx ')'  INTO v_fnam.
          PERFORM  subr_bdc_table USING ' ' v_fnam x_idata-netpr.
          CONCATENATE 'EKPO-WERKS(' v_indx ')'  INTO v_fnam.
          PERFORM  subr_bdc_table USING ' ' v_fnam x_idata-werks.
          v_indx = v_indx + 1.
          PERFORM subr_bdc_table USING:  'X' 'SAPMM06E'    '0120',
                                         ' ' 'BDC_CURSOR'  'RM06E-EBELP',
                                         ' ' 'BDC_OKCODE'  '/00'.
        ENDLOOP.
        PERFORM subr_bdc_table USING:    'X' 'SAPMM06E'    '0120',
                                         ' ' 'BDC_CURSOR'  'RM06E-EBELP',
                                         ' ' 'BDC_OKCODE'  '=BU'.
        PERFORM bdc_transaction USING 'ME21'.
      ENDLOOP.
      PERFORM close_group.
                      End of selection event                             *
    END-OF-SELECTION.
      IF session NE 'X'.
    *-----To display the successful records
        WRITE :/10  text-001.          "Sucess records
        WRITE :/10  SY-ULINE(20).
        SKIP.
        IF it_sucess IS INITIAL.
          WRITE :/  text-002.
        ELSE.
          WRITE :/   text-008,          "Total number of Succesful records
                  35 v_ns.
          SKIP.
          WRITE:/   text-003,          "Vendor Number
                 17 text-004,          "Record number
                 30 text-005.          "Message
        ENDIF.
        LOOP AT it_sucess.
          WRITE:/4  it_sucess-lifnr,
                 17 it_sucess-tabix CENTERED,
                 30 it_sucess-sucess_rec.
        ENDLOOP.
        SKIP.
    *-----To display the erroneous records
        WRITE:/10   text-006.          "Error Records
        WRITE:/10   SY-ULINE(17).
        SKIP.
        IF it_error IS INITIAL.
          WRITE:/   text-007.          "No error records
        ELSE.
          WRITE:/   text-009,          "Total number of erroneous records
                 35 v_ne.
          SKIP.
          WRITE:/   text-003,          "Vendor Number
                 17 text-004,          "Record number
                 30 text-005.          "Message
        ENDIF.
        LOOP AT it_error.
          WRITE:/4  it_error-lifnr,
                 17 it_error-tabix CENTERED,
                 30 it_error-error_rec.
        ENDLOOP.
        REFRESH it_sucess.
        REFRESH it_error.
      ENDIF.
    CODE IN INCLUDE.
    Include           ZMM_INCL_PURCHASEORDERKB01
    DATA:   it_BDCDATA LIKE BDCDATA    OCCURS 0 WITH HEADER LINE.
    DATA:   it_MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    DATA:   E_GROUP_OPENED.
    *-----Internal table to store sucess records
    DATA:BEGIN OF it_sucess OCCURS 0,
           msgtyp(1)   TYPE c,
           lifnr  LIKE  ekko-lifnr,
           tabix  LIKE  sy-tabix,
           sucess_rec(125),
         END OF it_sucess.
    DATA: g_mess(125) type c.
    *-----Internal table to store error records
    DATA:BEGIN OF it_error OCCURS 0,
           msgtyp(1)   TYPE c,
           lifnr  LIKE  ekko-lifnr,
           tabix  LIKE  sy-tabix,
           error_rec(125),
         END OF it_error.
           Selection screen
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS session RADIOBUTTON GROUP ctu.  "create session
    SELECTION-SCREEN COMMENT 3(20) text-s07 FOR FIELD session.
    SELECTION-SCREEN POSITION 45.
    PARAMETERS ctu RADIOBUTTON GROUP ctu.     "call transaction
    SELECTION-SCREEN COMMENT 48(20) text-s08 FOR FIELD ctu.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 3(20) text-s01 FOR FIELD group.
    SELECTION-SCREEN POSITION 25.
    PARAMETERS group(12).                      "group name of session
    SELECTION-SCREEN COMMENT 48(20) text-s05 FOR FIELD ctumode.
    SELECTION-SCREEN POSITION 70.
    PARAMETERS ctumode LIKE ctu_params-dismode DEFAULT 'N'.
    "A: show all dynpros
    "E: show dynpro on error only
    "N: do not display dynpro
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 48(20) text-s06 FOR FIELD cupdate.
    SELECTION-SCREEN POSITION 70.
    PARAMETERS cupdate LIKE ctu_params-updmode DEFAULT 'L'.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 3(20) text-s03 FOR FIELD keep.
    SELECTION-SCREEN POSITION 25.
    PARAMETERS: keep AS CHECKBOX.       "' ' = delete session if finished
    "'X' = keep   session if finished
    SELECTION-SCREEN COMMENT 48(20) text-s09 FOR FIELD e_group.
    SELECTION-SCREEN POSITION 70.
    PARAMETERS e_group(12).             "group name of error-session
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 51(17) text-s03 FOR FIELD e_keep.
    SELECTION-SCREEN POSITION 70.
    PARAMETERS: e_keep AS CHECKBOX.     "' ' = delete session if finished
    "'X' = keep   session if finished
    SELECTION-SCREEN END OF LINE.
    PARAMETERS:p_file LIKE rlgrap-filename.
      at selection screen                                                *
    AT SELECTION-SCREEN.
    group and user must be filled for create session
      IF SESSION = 'X' AND
         GROUP = SPACE. "OR USER = SPACE.
        MESSAGE E613(MS).
      ENDIF.
      create batchinput session                                          *
    FORM OPEN_GROUP.
      IF SESSION = 'X'.
        SKIP.
        WRITE: /(20) 'Create group'(I01), GROUP.
        SKIP.
    *----open batchinput group
        CALL FUNCTION 'BDC_OPEN_GROUP'
          EXPORTING
            CLIENT = SY-MANDT
            GROUP  = GROUP
            USER   = sy-uname.
        WRITE:/(30) 'BDC_OPEN_GROUP'(I02),
                (12) 'returncode:'(I05),
                     SY-SUBRC.
      ENDIF.
    ENDFORM.                    "OPEN_GROUP
      end batchinput session                                             *
    FORM CLOSE_GROUP.
      IF SESSION = 'X'.
    *------close batchinput group
        CALL FUNCTION 'BDC_CLOSE_GROUP'.
        WRITE: /(30) 'BDC_CLOSE_GROUP'(I04),
                (12) 'returncode:'(I05),
                     SY-SUBRC.
      ELSE.
        IF E_GROUP_OPENED = 'X'.
          CALL FUNCTION 'BDC_CLOSE_GROUP'.
          WRITE: /.
          WRITE: /(30) 'Fehlermappe wurde erzeugt'(I06).
        ENDIF.
      ENDIF.
    ENDFORM.                    "CLOSE_GROUP
           Start new transaction according to parameters                 *
    FORM BDC_TRANSACTION USING TCODE TYPE ANY.
      DATA: L_SUBRC LIKE SY-SUBRC.
    *------batch input session
      IF SESSION = 'X'.
        CALL FUNCTION 'BDC_INSERT'
          EXPORTING
            TCODE     = TCODE
          TABLES
            DYNPROTAB = it_BDCDATA.
        WRITE: / 'BDC_INSERT'(I03),
                 TCODE,
                 'returncode:'(I05),
                 SY-SUBRC,
                 'RECORD:',
                 SY-INDEX.
      ELSE.
        REFRESH it_MESSTAB.
        CALL TRANSACTION TCODE USING it_BDCDATA
                         MODE   CTUMODE
                         UPDATE CUPDATE
                         MESSAGES INTO it_MESSTAB.
        L_SUBRC = SY-SUBRC.
        WRITE: / 'CALL_TRANSACTION',
                 TCODE,
                 'returncode:'(I05),
                 L_SUBRC,
                 'RECORD:',
                 SY-INDEX.
      ENDIF.
      Message handling for Call Transaction                              *
      perform subr_mess_hand using g_mess.
    *-----Erzeugen fehlermappe
      IF L_SUBRC <> 0 AND E_GROUP <> SPACE.
        IF E_GROUP_OPENED = ' '.
          CALL FUNCTION 'BDC_OPEN_GROUP'
            EXPORTING
              CLIENT = SY-MANDT
              GROUP  = E_GROUP
              USER   = sy-uname
              KEEP   = E_KEEP.
          E_GROUP_OPENED = 'X'.
        ENDIF.
        CALL FUNCTION 'BDC_INSERT'
          EXPORTING
            TCODE     = TCODE
          TABLES
            DYNPROTAB = it_BDCDATA.
      ENDIF.
      REFRESH it_BDCDATA.
    ENDFORM.                    "BDC_TRANSACTION
         Form  subr_bdc_table                                            *
          text
         -->P_0220   text                                                *
         -->P_0221   text                                                *
         -->P_0222   text                                                *
    FORM subr_bdc_table  USING      VALUE(P_0220) TYPE ANY
                                    VALUE(P_0221) TYPE ANY
                                    VALUE(P_0222) TYPE ANY.
      CLEAR it_bdcdata.
      IF P_0220 = ' '.
        CLEAR it_bdcdata.
        it_bdcdata-fnam     = P_0221.
        it_bdcdata-fval     = P_0222.
        APPEND it_bdcdata.
      ELSE.
        it_bdcdata-dynbegin = P_0220.
        it_bdcdata-program  = P_0221.
        it_bdcdata-dynpro   = P_0222.
        APPEND it_bdcdata.
      ENDIF.
    ENDFORM.                    " subr_bdc_table
         Form  subr_mess_hand                                            *
          text                                                           *
         -->P_G_MESS  text                                               *
    FORM subr_mess_hand USING  P_G_MESS TYPE ANY.
      LOOP AT IT_MESSTAB.
        CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            ID     = it_messtab-msgid
            LANG   = it_messtab-msgspra
            NO     = it_messtab-msgnr
            v1     = it_messtab-msgv1
            v2     = it_messtab-msgv2
          IMPORTING
            MSG    = P_G_MESS
          EXCEPTIONS
            OTHERS = 0.
        CASE it_messtab-msgtyp.
          when 'E'.
            it_error-error_rec   =  P_G_MESS.
            it_error-lifnr       =  it_me21-lifnr.
            it_error-tabix       =  v_count.
            APPEND IT_ERROR.
          when 'S'.
            it_sucess-sucess_rec =  P_G_MESS.
            it_sucess-lifnr      =  it_me21-lifnr.
            it_sucess-tabix      =  v_count.
            APPEND IT_SUCESS.
        endcase.
      ENDLOOP.
      Describe table it_sucess lines v_ns.
      Describe table it_error  lines v_ne.
    ENDFORM.                    " subr_mess_hand
    Also refer
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bdc-table-control-668404
    and
    http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
    Regards,
    srinivas
    <b>*reward for useful answers*</b>

  • Work Flow Attachments Problem

    Hi all,
    i have to create a work flow to send notifications along with attachments. I am successful in sending when there is one attachment. But i couldn't make out how to send more than 1 attachment. The attachment number may vary from 0-10. How to keep the wf in aloop? can any one help me?
    Regards
    --Raj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi please check the link below.
    https://app.primecontract.com/ua/webhelp/webwfp/wf_attachments_bg.html
    http://www.uiowa.edu/hr/imfo/workflow/attachment.pdf
    Murthy.

Maybe you are looking for

  • What's the right way to run a consolidation in HFM from FDM?

    New to FDM. Things are working ok, but wondering what's the best way to run a consolidation in HFM after loading.

  • XDK - PL/SQL PARSER LIMITATION

    The package creates XML document (splitted document of size bigger than 3MB) using pl/sql xml sql utility and failing while trying to inserts the same into the table with the Aurora error or java.lang.outofmemeory. Please kindly post ,if anybody know

  • How do I get my wirelss back?  It's greyed out

    I am trying to get my wireless servcie back after upgradeing to 6.0.  I have upgraded to 6.1.1 and still hasnt fixed this.  I have tried resetting netowrk settings on phone, router etc.  Nothing works. Wireless remains greyed out?

  • Solaris volume manager -- where?

    Where is the solaris volume manger for solaris 10 located? On what disk? Can I download it?

  • Problem with Diagram Scale

    Hello, first I have to say I tried my best, but I couldn't find any solution for this problem. I created a table with two components: variable x and y. Then i turned it into a vertical grouped bar chart and I got this result http://img217.imageshack.