Ansicht
Dokumentation

SIMG_LMBP004 - Define Flow Logic

SIMG_LMBP004 - Define Flow Logic

ABAP Short Reference   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

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

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

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 Actfield.

  • Determine whether the activity is a movement or operation.

  1. 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)

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.

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.

  1. Choose Activate.
  2. 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 codeNext

  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






PERFORM Short Reference   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 13898 Date: 20240523 Time: 213039     sap01-206 ( 102 ms )