SAP ABAP IMG Activity SIMG_LMBP004 (Define Flow Logic)
Hierarchy
EA-APPL (Software Component) SAP Enterprise Extension PLM, SCM, Financials
   LE-TRM (Application Component) Task & Resource Management
     LMBP (Package) Mobile Presentation
IMG Activity
ID SIMG_LMBP004 Define Flow Logic  
Transaction Code S_DTR_07000026   IMG Activity: SIMG_LMBP004 
Created on 20010211    
Customizing Attributes SIMG_LMBP004   Define Flow Logic 
Customizing Activity SIMG_LMBP004   Define Flow Logic 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name SIMG_LMBP004    

Use

In this IMG activity, you have the option of changing the standard step flow by:

  • Define new logical transactions or change the properties of existing ones
  • Personalizing the step flow

Requirements

Standard settings

Logical transactions and step flow are provided with the standard system.

Recommendation

Activities

Defining a New Logical Transaction

  1. Choose Transaction Catalog.
  2. Enter the site number.
  3. In the Logical Transaction field, enter a name for the transaction.
  4. In the Initial Step field, choose the transaction step that constitutes the starting point of the logical transaction.
  5. If the transaction involves system-guided selection, select System-Guided.
  6. In the Bundling field, choose an option to determine whether transaction involves task bundles, individual tasks or both bundles and tasks.
  7. If the transaction involves the selection of several handling units handled by the system as clustered tasks, select Cluster.
  8. If you want the source step of the transaction to be processed in the background, select Skip Source.
  9. If the transaction relates to a specific activity:
    • Enter the activity identifier in the Act field.
    • Determine whether the activity is a movement or operation.
  10. Enter text to describe the logical transaction.

Personalizing the Step Flow

  1. Choose Define Step Flow.
  2. Enter the following:
    • Predecessor and successor transaction steps in the flow
    • Function code selected and the corresponding function module executed
    • Processing mode
    • Function code set in background mode (if applicable)

Further notes

If you support operations (such as labeling and shrink wrapping) in your site, you must define a specific logical transaction for activities previously defined in IMG activity General Settings for TRM.

Example

You want to add a user-defined step between the source and destination steps, which displays the relationship between the numbers of started and accepted tasks when there are some accepted tasks that have not been started.

In this example, you use a user-defined function code to simulate the function code Next to limit this change to your personalization.

Create a screen for displaying relationship between the numbers of started and accepted tasks

  1. Choose a field in structure RLMBP (presentation parameters) for displaying your information. You can use the already defined field BCA01 or add your own field.
  2. Choose transaction SE80.
  3. Copy function group LMOP to ZBF1 (your function group of sub-screens).
  4. Copy all function modules of LMOP, changing their prefix LMOP to ZBF1 (always follow this function module naming convention while creating your sub-screens).
  5. Open the Screens folder of function group ZBF1.
  6. Rename any of the existing screens to 9000.
  7. Delete other screens by using multiple selection.
  8. Right-click screen 9000 (SAPLZBF1) and choose Change.
  9. Choose Layout.
  10. Delete all elements of the screen.
  11. Create your own elements:
    • Text field for title (any name of element name, such as X, and text Started tasks)
    • Input/output field RLMBP-BCA01. Define it as not scrollable, define a visible length of 12 and ensure that the Input checkbox is not selected.
  12. Choose Activate.
  13. Activate all other objects (functions, function group, etc.) connected with the changes made in steps 2 to 10.

Create a function module that will execute the same actions as standard function module LMBP_STEP_EXECUTION_VALIDATE, and add to it the calculation of information about started tasks

  1. Choose transaction SE80.
  2. Copy function group LMBP_SERVICES_D to your function group ZBF2.
  3. Copy function module LMBP_STEP_EXECUTION_VALIDATE, changing its prefix LMBP to ZBF2.
  4. Choose transaction SE37.
  5. Enter function module name ZBF2_STEP_EXECUTION_VALIDATE and choose Change.
  6. After line 92 (after call of function module LMBP_STEP_UPDATE, enter the following code:

    DATA lv_started TYPE i.

    DATA lv_tasks TYPE i.

    DATA lv_info TYPE numc3.

    LOOP AT ct_actual INTO wa_actual WHERE tktyp = gc_tktyp_move.

    ADD 1 TO lv_tasks.

    IF wa_actual-statu = gc_status_started.

    ADD 1 TO lv_started.

    ENDIF.

    ENDLOOP.

    cs_rlmbp-bca01 = lv_tasks.

    SHIFT cs_rlmbp-bca01 LEFT DELETING LEADING space.

    lv_info = lv_started.

    SHIFT lv_info LEFT DELETING LEADING space.

    CONCATENATE lv_info '/' cs_rlmbp-bca01 INTO cs_rlmbp-bca01.

    Before the end of the function, enter the code:

IF lv_started <> lv_tasks.

cs_trprp-step = '9000000001'.

cs_trprp-sttyp = gc_foreground.

ENDIF.

Activate the new function module together with all objects created while copying the function group.

Define a new function code to simulate function code Next

  1. In IMG activity Control Screen Layout, choose Define Function Code Profile.
  2. Enter the following records for your site. Each record should also have:
    • Int. proc: Any process
    • Process: Any process

Step        Pers    Function Code        Pushbutton        Func. key        Dis Fcode

User-defined step 1        **    Go back        Pushbutton 3        Function key 3       

User-defined step 1        **    Next        Pushbutton 4        Function key 4       

User-defined step 1        **    Break        Pushbutton 8        Function key 8       

Source        02    Next        Pushbutton 4        Function key 4        x   

Source        02    User-defined function code 1        Pushbutton 4        Function key 4   

  1. In IMG activity Control Screen Layout, choose Define Pushbutton Text.
  2. Add the following record for your site:

Lang.    Function Code        PB Size        PB Text

EN    User-defined function code 1        6        Next   

Add to the business flow navigation to the new information step and destination   

  1. In this IMG activity, choose Define Step Flow.
  2. Add the following records for your site:

Pred.step        Function code        PAI FM        Proc. Mode        Backgr. FCode   

Source        User-defined function code 1        ZBF2_STEP_EXECUTION_VALIDATE                Not active

User-defined step 1        Next                Foreground

Add the new screen to your display profile

  1. In IMG activity Define Display Profiles and Physical Screens, choose Physical Screen.
  2. Add the following record for your site:

Step        D. prof.    Seq. screen no.    Progr. name    Screen number

User-defined step 1        **    1    SAPLZBF1    9000

Business Attributes
ASAP Roadmap ID 203   Establish Master Data 
Mandatory / Optional 1   Mandatory activity 
Critical / Non-Critical 1   Critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG SIMG_LMBP004 0 AL00000041 Task & Resource Management 
Maintenance Objects
Maintenance object type C   Customizing Object 
Assigned objects
Customizing Object Object Type Transaction Code Sub-object Do not Summarize Skip Subset Dialog Box Description for multiple selections
V_LTRCT V - View SM30 Transaction Catalog 
V_LSTLN V - View SM30 Define Step Flow 
History
Last changed by/on SAP  20020125 
SAP Release Created in 46C