sap ewm rf cookbook

48
Version: 2.2 Release: 1.0 Author: SAP Development RF Cookbook - Part I Description History Version Status Date 1.0 02.10.2003 1.1 17.11.2003 1.2 27.01.2004 2.0 After workshop 07.05.2004 2.1 Revised 26.10.2006 2.2 Revised 14.03.2008

Upload: greige

Post on 16-Apr-2015

3.620 views

Category:

Documents


164 download

DESCRIPTION

EWM RF Cookbook Part 1 framework and more

TRANSCRIPT

Page 1: SAP EWM RF Cookbook

Version: 2.2

Release: 1.0

Author: SAP Development

RF Cookbook - Part IDescription

History

Version Status Date1.0 02.10.20031.1 17.11.20031.2 27.01.2004

2.0 After workshop 07.05.2004

2.1 Revised 26.10.2006

2.2 Revised 14.03.2008

Page 2: SAP EWM RF Cookbook

Contents

1 Objective ...............................................................................................51.1 Architecture Description of the RF-Framework ................................................51.2 RF Runtime – Framework Interaction Model....................................................61.3 RF Framework customizing overview ..............................................................8

2 RF Framework ....................................................................................102.1 Structure........................................................................................................102.2 Important tables / structures ..........................................................................102.3 Important classes ..........................................................................................102.4 Debugging.....................................................................................................102.4.1 Breakpoints ....................................................................................................................... 102.4.1.1 Method /SCWM/CL_RF_BLL_SRVC=>CALL_FLOW_PROCESS............................... 102.4.1.2 Method /SCWM/CL_RF_BLL_SRVC=>GET_STEP_FLOW......................................... 102.4.1.3 Method /SCWM/CL_RF_BLL_SRVC=>RUN ................................................................. 102.4.1.4 Method /SCWM/CL_RF_BLL_SRVC=>DISPLAY_STEP.............................................. 112.4.1.5 Method /SCWM/CL_RF_BLL_SRVC=>CHECK_VERIF_PRF...................................... 112.4.2 Breakpoint IDs................................................................................................................... 11

3 RF-Cookbook......................................................................................123.1 Application definition......................................................................................123.2 Presentation profile definition.........................................................................123.3 Display profile definition.................................................................................123.3.1 Template screens ............................................................................................................. 123.3.1.1 Template screen title ........................................................................................................ 133.3.2 Message handling............................................................................................................. 133.4 Personalization profile definition ....................................................................133.5 Define logical transaction...............................................................................143.6 Assign text to logical transaction and to other objects....................................153.7 Create menu item..........................................................................................153.8 Assign text to menu item ...............................................................................153.9 Create menu hierarchy incl. submenus & transactions ..................................153.10 Define logical transaction steps .....................................................................153.11 Define initial step for the logical transaction. ..................................................163.12 Define application data containers .................................................................163.12.1 Using tables in the RF framework ................................................................................... 173.13 Create template screen .................................................................................173.13.1 Use your own template dynpro........................................................................................ 173.14 Create sub screens........................................................................................173.14.1 Predefined screen groups................................................................................................ 183.14.1.1 Group 1.............................................................................................................................. 193.14.1.2 Group 3.............................................................................................................................. 193.14.2 Automatic Page Up / Page Down implementation ......................................................... 19

Page 3: SAP EWM RF Cookbook

3.14.3 Field to field navigation..................................................................................................... 203.14.3.1 Navigation between verification fields............................................................................. 203.14.3.2 Navigation between input fields (no verification fields) .................................................. 203.14.3.3 Navigation on a screen with input fields and verification fields ..................................... 203.14.4 Leaving a screen without saving data in internal structures.......................................... 203.14.5 Leaving a screen with saving data in internal structures ............................................... 203.14.6 Leaving a screen with calling of the content provider .................................................... 213.15 Define function code catalog..........................................................................213.15.1 Predefined function codes in the RF framework ............................................................ 213.16 Assign text to function code...........................................................................223.17 Create services to support business logic......................................................223.18 Define state catalogue...................................................................................223.19 Map logical transaction step to sub screen ....................................................233.20 Define function code profile ...........................................................................233.20.1 GUI status is defined for the template............................................................................. 243.20.2 How to connect screen function codes and RF framework function codes.................. 253.20.3 Handle more function codes than available pushbuttons on a screen / step ............... 253.21 Define step flow.............................................................................................263.21.1 PBO of initial screen after menu selection...................................................................... 273.21.2 PAI of screen and direct display of next screen ............................................................. 273.21.3 PAI of screen and PBO of next screen ........................................................................... 273.21.4 Call of common screen from several screens during transaction ................................. 283.21.5 Customizable ENTER / Set the next step dynamically using the CP ........................... 283.21.6 Additional information....................................................................................................... 293.22 Set default navigation at transaction end .......................................................293.23 Set verification profile ....................................................................................303.23.1 Verification......................................................................................................................... 303.24 Presentation device catalogue.......................................................................32

4 Layout .................................................................................................334.1 Screen...........................................................................................................334.2 Fields.............................................................................................................334.2.1 Field length........................................................................................................................ 34

5 Programming information .................................................................355.1 Posting ..........................................................................................................355.2 Exception handling / Shortcut using...............................................................355.2.1 Navigation ......................................................................................................................... 355.2.2 Exceptions......................................................................................................................... 365.3 Differences ....................................................................................................365.4 Support LIST functionality..............................................................................365.5 Display of text (from delivery or hazard. material) ..........................................365.6 Methods usable by the content provider ........................................................365.6.1 Methods into the framework............................................................................................. 37

Page 4: SAP EWM RF Cookbook

5.6.2 Methods out of the framework ......................................................................................... 385.7 Global variables.............................................................................................385.8 Display technical data on RFUI’s GUI Title ....................................................39

6 Usage of provided tools ....................................................................416.1 Menu manager ..............................................................................................416.2 Screen manager............................................................................................426.2.1 Create, Copy and Delete Display Profiles....................................................................... 426.2.1.2 Copying a Display Profile ................................................................................................. 436.2.1.3 Deleting a Display Profile ................................................................................................. 436.2.2 Edit Screens of a Display Profile ..................................................................................... 436.2.2.1 Screens Maintenance....................................................................................................... 446.3 Wizards .........................................................................................................446.3.1 Split screen........................................................................................................................ 456.3.2 Modify screen.................................................................................................................... 456.3.3 Error message handling in RF Wizard ............................................................................ 45

Page 5: SAP EWM RF Cookbook

1 Objective

The new RF concept is developed by SAP.The RF-Cookbook will help developers to start their work in the RF-Framework. It willprovide answers to common questions and will help to avoid common errors.The RF-Cookbook will also give some hints concerning the common layout and screenstructure which should be used in the standard transactions.In the first instance, the RF framework will be used for development in the EWM project.Nevertheless, the RF framework is application-independent and could/should also beused in other projects or applications.

1.1 Architecture Description of the RF-Framework

The transaction /SCWM/RFUI is the entry point (start transaction) for all logical RFtransactions in EWM. They are logical transactions because they cannot be starteddirectly from the SAP Easy Access and there is no equivalent in SE93.Integrated into the RF framework is EEWB for customer enhancements. The user runs anRF process using this and when they reach the screen for modifications, they trigger theEnhancement Tool (EEWB = Easy Enhancement Workbench). They choose the type ofenhancement that they want to carry out. The corresponding enhancement wizard is thenstarted and guides the user through the enhancement process. In the case of a screenfields enhancement, , the screen painter is invoked on completion of the enhancement sothat further manual adjustments can be made to the screen. This is part of post processing

Page 6: SAP EWM RF Cookbook

1.2 RF Runtime – Framework Interaction ModelThe RF Framework architecture consists of three distinct layers:

1. Dynpro Layer

2. Business Logic Layer

3. Content Provider

The dynpro layer is concerned with all screen related data, viz. display profiles,presentation devices, sub screens and templates etc.

During runtime, the business logic layer gets transactional parameters like next step,screen, function code profile etc., from the underlying customizing.

Content Provider is responsible for storing and supplying the relevant data for processingfrom time to time.

The following sequence diagram depicts this interaction.

Page 7: SAP EWM RF Cookbook

Dynpro LayerObject1

User

Business Logic Layer Content Provider

Invoke Transaction()

Execute Step()

Determine the following step()

Execute FM()

Set presentation parameters & current logical transaction()

Build Function Code Profile()

Build Verification Profile()

Verify fields status and profiles prior to display()

{Next step in background}Execute next step()

Set initial step & function code()

Execute Step()

Execute FM()

Pass presentation data to template and sub-screen()

Execute based on input and function code()

Text A

A

Execute transaction()

Determine next step()

Check verification values()

Check verification values()

Update Stack()

Update Stack()

Page 8: SAP EWM RF Cookbook

1.3 RF Framework customizing overviewThe RF Framework customizing basically consists of the following blocks:

1. User / Resource Settings

2. Interface Parameters/Communication Structures

3. Basic Building Bricks

4. Configurations/Scenario Assignments

Start customizing IMG (transaction SPRO). The main RF Customizing points are underExtended Warehouse Management - Mobile Data Entry

The menu point “Define Steps in Logical Transaction” has the following submenus

Page 9: SAP EWM RF Cookbook

User / Resource Settings support the definition of new presentation and personalization profiles,that are required to define a variant behavior from the standard configuration. These profiles arelinked to resource logins, making it possible to define a different behavior (e.g. displaying a userdefined screen instead of the standard) for a particular user/user group.

Interface Parameters/Communication Structures can be defined for data communicationbetween different screens (dynpros). Menu point “Define Application Parameters.”

Basic Building Bricks include the definitions of logical transactions, Steps and Function Codes.

Configurations include the assignment of steps to logical transactions and their flow, screendetermination, function code assignments and validation assignments. These are discussed indetail in the subsequent sections.

Some customizing menus can be called directly with transactions

/SCWM/RFMENU - RF Menu Manager/SCWM/RFSCR - RF Screen Manager

Presentation device maintenance can be called with transaction

/SCWM/PRDVC - Presentation Device Maintenance

Page 10: SAP EWM RF Cookbook

2 RF Framework

2.1 StructureThe RF framework is developed in the package /SCWM/RF_FRAMEWORK.

2.2 Important tables / structures/SCWM/TAPPL_CAT Application e.g. WME/SCWM/TDPRF_CAT Display profile/SCWM/TFCOD_CAT Function code catalog/SCWM/TFCOD_PRF Function code profile/SCWM/TMENU_CAT Menu catalog/SCWM/TMENU_HIER Menu hierarchy/SCWM/TOBJ_TXT Object text/SCWM/TPARAM_CAT Data container/SCWM/TPRDV_CAT Presentation device/SCWM/TPRES_CAT Presentation profile/SCWM/TPRSN_PRF Personalization profile/SCWM/TSTAT_CAT State catalog/SCWM/TSTEP_CAT Steps/SCWM/TSTEP_FLOW Step flow/SCWM/TSTEP_SCR Mapping of foreground steps to sub screen/SCWM/TTRNS_CAT Logical transactions/SCWM/TTRNS_NAV Navigation at end of logical transaction/SCWM/TVALID_PRF Verification and validation profile/SCWM/TVLID_CAT Verification and validation objects

2.3 Important classes/SCWM/CL_RF_BLL_DB Presentation data access/SCWM/CL_RF_BLL_SRVC RF Business Logic Layer

2.4 Debugging

2.4.1 Breakpoints

2.4.1.1 Method /SCWM/CL_RF_BLL_SRVC=>CALL_FLOW_PROCESSIn this method, the function modules defined in /SCWM/TSTEP_FLOW were called.

2.4.1.2 Method /SCWM/CL_RF_BLL_SRVC=>GET_STEP_FLOWIn this method, table /SCWM/TSTEP_FLOW is read with the actual step data todetermine the next step.

2.4.1.3 Method /SCWM/CL_RF_BLL_SRVC=>RUNMethod called using transaction ‘/SCWM/RFUI’. This method contains the loop wherethe steps and the screens are called / processed.

Page 11: SAP EWM RF Cookbook

2.4.1.4 Method /SCWM/CL_RF_BLL_SRVC=>DISPLAY_STEPIn this method, the screens are called after the call of the verification field check is called.

2.4.1.5 Method /SCWM/CL_RF_BLL_SRVC=>CHECK_VERIF_PRFCheck of the filled verification fields against the corresponding data fields. If a barcodefunction module is set in the verification profile (/SCWM/TVALID_PRF fieldFMODUL_TRNSL) this function module is called. If a verification function module isset in the verification profile (/SCWM/TVALID_PRF field FMODUL_VERIF) thisfunction module is called. See point (Verification) for more information about theverification process.

2.4.2 Breakpoint IDsIn the RF-Framework, we have implemented the following breakpoint IDs:/SCWM/RF_FRAMEWORK/SCWM/RF_FRAME_STEP/SCWM/RF_FRAME_VERIF

The breakpoint IDs can be activated with transaction SAAB.

Page 12: SAP EWM RF Cookbook

3 RF-Cookbook

3.1 Application definitionApplication is the highest organizational level in the RF framework. At application level,you define the start transaction. In the standard system, the start transaction is/SCWM/RFUI.Application for WME is 01.In addition, a function module can be defined which is used to control the verificationfields from an application-relevant point of view. This means that in general, allverification fields in an RF transaction are open for input. With the function module, it ispossible to switch off verification fields in a process-specific manner. The functionmodule used for EWM is /SCWM/RF_WME_SET_VERIFICATION.The maintenance of application data is possible with transaction SM30 through view/SCWM/V_TAPPL_CAT (see note #938314). The data is stored in table/SCWM/TAPPL_CAT.

3.2 Presentation profile definitionThe presentation profile (together with the personalization profile) is used to supportdifferent menu structures for different users. The presentation profile is assigned to theapplication.The presentation profile for the standard transaction is ‘****’.The presentation profile can be maintained in the IMG with the menu “DefinePresentation Profile”. The records are stored in table /SCWM/TPRES_CAT.

3.3 Display profile definitionThe display profile is used to support different devices and their different screencharacteristics. SAP will provide one display profile.The display profile for standard transaction is ‘**’.For the display profile, you define height and width of your total screen (8X40) and thetemplate program (/SCWM/SAPLRF_TMPL) and screens (0001 and 0002 for messages).The length of the pushbuttons (8), the number of pushbuttons (4), the length of the menuitems (20), the display of error messages (0 = display on a separate screen) and where theerror messages are displayed is also defined at profile level. You can use the 3 parametersBEEP_INFO, BEEP_WARN and BEEP_ERR to maintain the number of beeps processedby the device when a message is displayed. Of course, this only works if the devicesupports this beep function.A display profile record can be created in transaction /SCWM/RFSCR (or in IMG). Thedata is stored in table /SCWM/TDPRF_CAT.

3.3.1 Template screensIn the standard system, two templates are delivered. Both have the size of 8X40 and 7lines for the sub screen.Dynpro 0001 with 1 line (last line) for 4 pushbuttons and an input field for keylessnavigation and exceptions.

Page 13: SAP EWM RF Cookbook

Dynpro 0002 with only the message field on the last line (only used for messageprocessing). The appropriate function group is /SCWM/RF_TMPL.

3.3.1.1 Template screen titleFor SCM 5.0 and SCM 5.1 there is no GUI title shipped. On the RF screens the title‘SAP’ appears. After SCM 5.1 it is possible to set an own GUI title for the templatescreens. From the RF screen manager it is possible to set a function group and the GUItitle if you create a new display profile or copy an existing one. For existing displayprofiles you can maintain the view /SCWM/V_DPRF_C directly with transaction SM30.

3.3.2 Message handlingIbn the table /SCWM/TDPRF_CAT, the field MSG_VIEW is used to control how themessages are processed.Entry 0 means that the message is displayed on a separate screen. The screen is 0002 infunction group /SCWM/RF_SSCR.Entry 1 means that the message is displayed on the last line of the same screen or on thelast line of the next screen. The template screen and the template program where themessage is processed must be maintained in /SCWM/TDRPF_CAT. In the standardsystem, the template screen is 0002 in template program /SCWM/SAPLRF_TMPL(function group /SCWM/RF_TMPL).If you want to use your own template dynpro, the message line field must refer to thefield /SCWM/S_RF_SCRELM-MSGTX.The messages themselves were defined at package level and assigned at function grouplevel. This means that we have two message classes. The standard message class inpackage /SCWM/CORE_RF_EN is /SCWM/RF_EN and in package/SCWM/CORE_RF_DE it is /SCWM/RF_DE.If you display the messages on the bottom line there is an easy way to display themessage on the separate screen using function code ‘FULLMS’. Just define a functionkey (with or without a corresponding pushbutton) and assign the function code‘FULLMS’ to it. If this function code is triggered, the actual message is displayed on themessage screen ‘0002’. The function code ‘FULLMS’ should always be implemented butdoes not have to be shown in the pushbutton line. For information about the functioncode and function code definitions see point 'Define function code catalog.'The framework automatically retrieves all error messages of type ‘E’ from the contentprovider's function modules. Nevertheless, it will sometimes be necessary to displaymessages whilst continuing with the coding in the function module and the step flow. Inthis case, you would normally send a message with message type ‘S’ or ‘I,’ but this kindof message cannot be retrieved due to the technical restrictions of the framework. In thiscase, you must use the method ‘/SCWM/CL_RF_BLL_SRVC=>MESSAGE’. Thismethod registers the message in the framework and the message is displayed at the nextscreen change. Please bear in mind that only one message can be displayed. If you sendmore messages, only the last one will be displayed

3.4 Personalization profile definition

Page 14: SAP EWM RF Cookbook

The personalization profile is used to enable the customer to make changes to the SAPstandard. With the personalization profile you can support different user groups workingin different menus and, therefore, different processes.The personalization profile for standard transaction is ‘**’.You define the main menu entry for the personalization profile.Personalization profile maintenance can be done the in IMG in menu “DefinePersonalization Profile.” The data is stored in table /SCWM/TPRSN_PRF.

3.5 Define logical transactionThe logical transaction is the bracket of the processed action from beginning to end. Thelogical transaction could imply screen changes and several postings including COMMITWORK.Logical transactions have no corresponding entries in SE93. The logical transaction canonly be called from the RF menu or the RF logon step. A logical transaction can also becalled using method /SCWM/CL_RF_BLL_SRVC=>START_LTRANS (e.g. fromanother logical transaction).In method /scwm/cl_rf_bll_srvc=>start_ltrans ,the authority check on object‘/SCWM/RFLT’ is also done.For the logical transaction, you define an initial step (see below) or an SAP transaction.You can also define a step that is processed during recovery.The following naming convention for the first 2 characters should be considered:

Initials ProcessAH Adhoc movements

IN Inquiries

IV Physical Inventory

PA Packing

PI Picking

PT Putaway

QM Quality Management

RF RF-Framework

RS Resource Management

SH Shipping / Loading

SP Spreading

UL Unloading

WK Work process independent e.g. system-guided

The reserved logical transaction is ‘RFMAIN’. This is the default logical transaction thatis called if the RF framework is started with transaction /SCWM/RFUI. The initial step of‘RFMAIN’ is ‘MENU’.

Page 15: SAP EWM RF Cookbook

Logical transactions are stored in table /SCWM/TTRNS_CAT.

3.6 Assign text to logical transaction and to other objectsFor several objects you can add text for translation purpose. The texts are stored“implicitly” by using different customizing menus of the RF-Framework.You must keep in mind that for function codes, the function key e.g. F2 is addedautomatically if you assign a function key in field ‘FNKEY’ in table‘/SCWM/TFCOD_PRF’ to the function code. Because of this, the remaining space forthe text is smaller than defined in /SCWM/TDPRF_CAT.The length of the fields is defined in the display profile.

3.7 Create menu itemWith transaction /SCWM/RFMENU you can define your own menus.First you create your menu items for the main menu and the sub menus.The menu items are stored in table /SCWM/TMENU_CAT.

3.8 Assign text to menu itemDone in /SCWM/RFMENU. For menu items, the appropriate number is added andadding the sequence number is not necessary. Stored in table /SCWM/TOBJ_TXT. Seeabove. The length of the menu items is defined in the display profile.

3.9 Create menu hierarchy incl. submenus & transactionsThis is also done with transaction /SCWM/RFMENU.In the hierarchy, you define whether a logical transaction is triggered (field LTRANS) orif the user jumps to a submenu (field LMENU).SAP delivers the default menu with application ‘01’, presentation profile ‘****’ andpersonalization profile ‘**’. These entries can only be maintained in an SAP system. In acustomer system, these entries are locked for changes.Please notice that the standard menu is maintained by a central team.The menu hierarchy is stored in table /SCWM/TMENU_HIER.

3.10 Define logical transaction stepsAny logical transaction consists of at least one step. If possible, steps defined for otherlogical transactions can be re-used. Steps could be executed in the background or in theforeground. Each foreground step has a corresponding physical screen. Steps in thebackground can be combined.The following naming convention for the first 2 characters should be considered:

Initials ProcessAH Adhoc movements

IN Inquiries

Page 16: SAP EWM RF Cookbook

IV Physical Inventory

PA Packing

PI Picking

PT Putaway

QM Quality Management

RF RF-Framework

RS Resource Management

SH Shipping / Loading

SP Spreading

UL Unloading

WK Work process independent e.g. system-guidedReserved steps are ‘RFLOGN’, ‘RFMENU’, ‘RFLIST’ and ‘RFMSG’.Steps are stored in table /SCWM/TSTEP_CAT.

3.11 Define initial step for the logical transaction.The initial step is stored in the logical transaction data in table /SCWM/TTRNS_CAT infield ISTEP.

3.12 Define application data containersThe application data containers are used to carry data between the steps and between theprogram (content provider) to the screens. Data containers can be structures or tables.These structures or table types must be defined beforehand in the data dictionary.The same data dictionary structure or table type can only be defined once within anapplication.For example, function modules; dynpro with structure; dynpro with table.The assignment of the data containers to the corresponding structure or table is done in/SCWM/TPARAM_CAT. The maintenance menu in IMG is “Define ApplicationParameters.”Before you can use the data containers, you must inform the RF framework. Theframework offers 2 methods. The first is to init the formerly used parameter(/SCWM/CL_RF_BLL_SRVC=>INIT_SCREEN_PARAM) and the second one is forregistering the parameter in the framework(/SCWM/CL_RF_BLL_SRVC=>SET_SCREEN_PARAM).The data container registration is not just a strict recommendation, but it is a must. Thebest case, to initialize the registration in the screen PBO, and register all data containerswhich are used on the screen.The RF Framework act as a library from a visual point of view. In the IMG definedstructures and tables are the books, and the books the data. So the framework containsseveral kind of data in “books”. When a screen is displayed, then the framework (library)provide only those structures/tables (books), which are required from the screen side

Page 17: SAP EWM RF Cookbook

(reader). So even if the framework could contains a lot of data container, only that will bepassed to the screen/function module, which is needed.E.g:The framework has several data container:CS_ADMIN, CS_PTWY, CS_UNLO, CS_PACK, etc.The screen displays putaway data from CS_PTWY only. In this case the framework passthe CS_PTWY to the screen, so the value of CS_PTWY will be displayed on the screen.If CS_PTWY is not defined as a data container or CS_PTWY is not registered as ascreen parameter, then there is nothing to pass, so the screen will display empty data!

3.12.1 Using tables in the RF frameworkFunction modules have no limitation on using tables. Each screen can present manystructures but only one table. The content provider must declare which table will bepresented by using method /SCWM/CL_RF_BLL_SRVC=>SET_SCR_TABNAME. Thecontent provider must also declare which line of the table will be presented by usingmethod /SCWM/CL_RF_BLL_SRVC=>SET_LINE.

3.13 Create template screenThe template screen holds push buttons and encompasses the sub screen.The template screen is an object of the RF framework, whereas the sub screens belong tothe content provider.SAP provides a standard 8X40 template in program /SCWM/SAPLRF_TMPL withscreen 0001 with pushbutton handling and screen 0002 with message handling.

3.13.1 Use your own template dynproIf you want to make changes at template level, e.g. pushbutton placement, number ofpushbuttons or the size of the sub screen, you must define your own template screen.If you want to display an error message on the bottom line, the field must refer to/SCWM/S_RF_SCRELM-MSGTX.

3.14 Create sub screensThe sub screens belong to the content provider and should be developed in package/SCWM/CORE_RF_EN or /SCWM/CORE_RF_DE. The sub screens should be placed ina function group which holds the sub screens. The naming convention for the functiongroup is /SCWM/RF_Process (e.g. /SCWM/RF_PUTAWAY or /SCWM/RF_PICKING)The flow logic (PBO and PAI) of the sub screen should be simple. Furthermore, the twomodules ‘STATUS_SSCR’ in PBO and ‘USER_COMMAND_SSCR’ in PAI arestandard modules which must be included in the sub screen. It is recommended not to addyour own modules to the sub screen flow logic. All processing should be done in thefunction modules defined in the step flow table /SCWM/TSTEP_FLOW. These twomodules are also automatically added when you use the ‘Screen Management Tool’ tomake your changes to the standard screens.The modules are part of the include /SCWM/IRF_SSCR’. You must include this in thefunction pool of your function group.The flow logic of a sub screen should look like this:

Page 18: SAP EWM RF Cookbook

PROCESS BEFORE OUTPUT.* Common routine to control screen objects* before the dynpro is displayed.

* The module exists in include /SCWM/LRF_SSCRO01 MODULE STATUS_SSCR.

*PROCESS AFTER INPUT.* Common routine to handle standard function codes

* The module exists in include /SCWM/LRF_SSCRI01 MODULE USER_COMMAND_SSCR.

The flow logic of a sub screen with a step-loop should look like this:PROCESS BEFORE OUTPUT.* pass structures to the screen* set screen attributes

MODULE status_sscr_loop.* pass table rows to the step-loop

LOOP. MODULE loop_output. ENDLOOP.

* set (disable/enable) PGUP/PGDN pushbuttons on the screen MODULE loop_scrolling_set.

*PROCESS AFTER INPUT. LOOP.* save data of the step-loop elements MODULE loop_input.

ENDLOOP.

* pass input to the application, return function code* to the program MODULE user_command_sscr.

All screen objects should be taken from the assigned structure of the appropriate datacontainer. The screen objects should not have the same name as the container. You mustuse the structure of the table line for tables.In the function pool definition you should add the include ‘/SCWM/IRF_SSCR’ whichcontains the required subroutines and the data definition.Define a pushbutton on the sub screen is strictly forbidden, because it could cause anissue in ITS environment. Please use the pushbutton from the template screen (see. 3.3.1)

3.14.1 Predefined screen groupsScreen groups 1 and 3 should only be used in the way described below. Your own codingshould only use screen group 4.

Page 19: SAP EWM RF Cookbook

3.14.1.1 Group 1

001 Blocked for internal use to support ‘Required Input Fields’. Please DO NOT USEthis screen group at all! Group1 is filled / overwritten during runtime.

3.14.1.2 Group 3

001 Make empty fields invisible. If a verification field is assigned to a suppressed datafield, the verification field will also be suppressed automatically without usingscreen groups.

002 For verification fields only. Disable field after successful verification. It also marksthe field as a verification field.

3.14.2 Automatic Page Up / Page Down implementationDefine a table type in data dictionary.Assign the table type to a parameter in table /SCWM/TPARAM_CAT.Use this table type in your function module where you read the data and fill yourparameter. Be aware that you always define it in the CHANGING parameter.After you have filled the parameter data in your function module, you must call method‘SET_SCR_TABNAME’ from class ‘/SCWM/CL_RF_BLL_SRVC’ to register the tablename in the RF framework and you must call method ‘SET_LINE’ from class‘/SCWM/CL_RF_BLL_SRVC’ to register the first displayed line.Please be aware that the table name to register is the table type and not the parametername.Also be aware that the screen fields must named like the line type of your table type inthe dynpro.The pushbuttons in the dynpro must refer to ‘/SCWM/S_RF_SCRELM-PGUP’ and‘/SCWM/S_RF_SCRELM-PGDN’. It is recommended to implement the pushbuttonswith a length of 3 characters. The pushbuttons must be defined with the function codes‘PGUP’ and ‘PGDN’.The control of the pushbuttons is done by the RF framework.

* Transfer table name into RF framework CALL METHOD /scwm/cl_rf_bll_srvc=>set_scr_tabname EXPORTING iv_scr_tabname = '/SCWM/TT_RF_PROTO_TAB' .

* Set displaying line number of table CALL METHOD /scwm/cl_rf_bll_srvc=>set_line EXPORTING iv_line = 1 .You can use Page Up / Page Down to control either a screen or a step-loop on a screen. Inthe first case, you have several entries in your table and only ever diaply one entry on thescreen. With Page Down, the next entry of the table is displayed. In the second case, youhave a screen with a step-loop and you only control the behavior of the step-loop.

Page 20: SAP EWM RF Cookbook

3.14.3 Field to field navigation

3.14.3.1 Navigation between verification fieldsThe cursor is always positioned on the first enterable field. If a field is verifiedsuccessfully, it is deactivated and therefore the cursor is positioned in the next enterablefield.The content provider is not called during the navigation.Read the chapter related to ‘Verification’

3.14.3.2 Navigation between input fields (no verification fields)In contrast to the verification fields, normal input fields are not deactivated after datainput. This leads to different navigation behavior.The cursor is positioned in the first enterable field. The current field is an attribute of theservice class of the business logic layer (/SCWM/CL_RF_BLL_SRVC). This class alsoprovides two methods to get (GET_FIELD) and set (SET_FIELD) the current field. Thenavigation within the screen can be influenced using this.In the standard system, the cursor is positioned in the next initial input field. You must becareful if you have input fields which could have a valid initial value in them.Forexample, a flag with valid values of ‘ ‘ and ‘X’. In this case you must mark all fieldswhich must be entered in the field attribute in the dynpro as ‘Input obligatory’.Of course, the navigation of the cursor can also be done manually using the TAB key orthe Arrow keys.The content provider is not called during the navigation. The content provider is onlycalled at the end if all fields are filled. If you want to process an error and position thecursor in a certain field, use method /SCWM/CL_RF_BLL_SRVC=>SET_FIELD forpositioning.

3.14.3.3 Navigation on a screen with input fields and verification fieldsThe navigation goes through the verification fields first and then through the input fields.

3.14.4 Leaving a screen without saving data in internal structuresIf you have a screen with input fields and you want to leave this screen without savingthe data in the internal used structures defined in table /SCWM/TPARAM_CAT youmust leave the screen using ‘BACK.' Only with this can you avoid a data mismatch ifyour screens use the same data structures. To achieve this, simply assign the functioncode ‘BACK’ in table /SCWM/TFCOD_PRF to a function key / pushbutton / shortcut. Inthe step flow (table /SCWM/TSTEP_FLOW), no entry is necessary because the contentprovider is not called.

3.14.5 Leaving a screen with saving data in internal structuresIn contrast to the ‘BACK’ function code, ‘UPDBCK’ updates the data on the stack andthe screen called can use the updated data. With ‘UPDBCK,’ the content provider notcalled either.

Page 21: SAP EWM RF Cookbook

3.14.6 Leaving a screen with calling of the content providerIn some cases, it will be necessary to call the content provider before you leave a screen.In this case you cannot use ‘BACK’ or ‘UPDBCK’ directly. Assign another functioncode (e.g. ‘BACKF’) to your function key / pushbutton / shortcut but use the key which isnormally used for ‘BACK’ (F7). With the new function code, the content provider iscalled and after that you can set the ‘BACK’ function code which is processed by theframework. In this case, your step flow would look like this:

APPLIC PRES_PRF LTRANS STEP FCODE FMODUL SSTEP PRMOD FCODE_BCKG

01 **** LTX1 STEP2 BACKF FM1 STEP2 1 BACKBe aware that PRMOD must be 1, SSTEP = STEP and FCODE_BCKG must be ‘BACK’

3.15 Define function code catalogDefine the required function codes of the push buttons / function keys used in thebackground step processing. This should also be done in customizing and not directly inthe database table (Define steps in logical transactions -> Define function codes).The function codes are defined in table /SCWM/TFCOD_CAT.

3.15.1 Predefined function codes in the RF frameworkCurrently there are several predefined function codes for decreasing applicationdevelopment effort. Function codes mean ‘logical’ codes used in the step flow, notmerely the function codes triggered by pushbuttons or function keys.

Function code Description of the triggered function

INIT Starts logical transaction; if an entry for initial step and function code‘INIT’ is defined in table /SCWM/TSTEP_FLOW this represents thePBO for the first dynpro. If no entry is defined, the initial step isdisplayed in foreground.

CLEAR Clears actual input field with cursor in it. Pressing ‘CLEAR’ twice withoutchanging cursor’s position clears all input fields, but this behavior can becustomized in field ‘FLG_CLEAR_ALL’ in table /SCWM/TPRDV_CAT. In thestandard system, the feature is switched on. With ‘CLEAR’ the flow logicdoes not return from the screen. This means that ‘CLEAR’ does not trigger astep flow.

BACK Navigates flow logic to the previous foreground step. But if you havedefined some PBO steps in table /SCWM/TSTEP_FLOW like theINIT step, these PBO steps are NOT processed again.

ENTERLIST Display a screen presenting a list of possible entries of the current

input field. Corresponds to a listbox display.UPDBCK Update data in stack and navigate back to previous foreground step. If

you need to perform some steps in addition to the main operation step,for example, exception handling to determine a new storage bin whichchanges the data of the main operation. If you leave the exception with

Page 22: SAP EWM RF Cookbook

‘UPDBCK’ the stack data is updated with the new data.NEXTSC Used when a screen is split. The next screen of the split screen can be

reached with this function code.

BUILD_MENU Used in standard service step MENU

PGUP Used for automatic page up implementation

PGDN Used for automatic page down implementation

YES Used in standard service step MESSAGE / QUERY

NO Used in standard service step MESSAGE / QUERY

MORE Used for navigation for grouped pushbuttons. The next pushbuttongroup is displayed using ‘MORE’. From the last group you change tothe first group.

FULLMS Display error message on a separate screen. Used to see the full text ofan error message if the bottom line is not sufficient.

UNKNOW Used internally to handle unmapped function codes coming from the screenwithout definition in table /SCWM/TSTEP_FLOW.

UPDPST Light synchronous posting

CLSEMS Clears message line and displays screen in usual wayCMPTRS Function code to end a logical transaction. This function code must be

set at the end of each logical transaction via method ‘SET_FCODE’ ofclass ‘/SCWM/CL_RF_BLL_SRVC’ to continue in the defined way.

3.16 Assign text to function codeDone in table /SCWM/TOBJ_TXT. See above. The length of the function code text isdefined in the display profile.

3.17 Create services to support business logicA service is a function module which is assigned to a step flow definition. The functionmodules include the coding which is normally done in PBO and PAI modules.The function module interface is restricted. Only ‘CHANGING’ parameters are allowed.The parameters can contain structures and tables. Field parameters are not allowed.Note: The function module of the last step of the logical transaction should include thecall of method ‘SET_FCODE’ of class ‘/SCWM/CL_RF_BLL_SRVC’. The functioncode ‘CMPTRS’ must be set with this function. Alternatively, you can set / process thisfunction code in the step flow /SCWM/TSTEP_FLOW in background mode.

* Call method of RF framework to mark end of transaction/scwm/cl_rf_bll_srvc=>set_prmod('1').

/scwm/cl_rf_bll_srvc=>set_fcode( /scwm/cl_rf_bll_srvc=>c_fcode_compl_ltrans ).

3.18 Define state catalogue

Page 23: SAP EWM RF Cookbook

The purpose of states is to distinguish between relatively small differences of the samestep behavior and presentation view. You must take into account that the state is aparameter of the step and you can load it with its own features. You can omit or add somefunctionality (pushbuttons, functions keys) in accordance with the state, verificationprofile and / or to define a specific screen for particular state of the step.It is recommended that you take the opportunity to do make changes in the step’sbehaviour in accordance with some parameters with a state definition instead of doingthis with a new step.The state that is used is controlled by the content provider. Depending on your own rules,you set the state with method /SCWM/CL_RF_BLL_SRVC=>SET_STATE.The state is used in table /SCWM/TFCOD_PRF, /SCWM/TSTEP_SCR and/SCWM/TVALID_PRF. New states can be defined in customizing (Define steps inlogical transactions -> Define steps -> Define states). A state can only be defined for astep.The framework uses the following predefined states internally:

‘FIRST’ to show the first page of menu items.‘MIDDLE’ to show inner pages of menu items.‘LAST’ to show the last page of menu items.‘QUERY’‘INFERR’

Example: The logon screen can be opened for the user in 3 different states: afterdisconnection with attached work list, after disconnection without attached work list andafter normal logoff. Here, the same step is used for all 3 states, defining specific functioncodes for each state: DISCONNECT, RECONNECT or CONNECT.

3.19 Map logical transaction step to sub screenEach step processed in foreground should have a corresponding sub screen and program.This should be done in customizing (Define steps in logical transactions -> Define logicaltransactions -> Map logical transactions to screen)The mapping is stored in table /SCWM/TSTEP_SCR.

3.20 Define function code profileIn the function code profile, you define the corresponding pushbutton and the functionkey on the screen / step. You can also define an external reason code and you can disablethe function code / pushbutton / function key.The pushbuttons were assigned to the template during runtime.If you just want to activate the function key but not to display the pushbutton, you mustleave the field ‘PUSHB’ empty.If you just want to activate the pushbutton but not a corresponding function key, youmust leave the field ‘FNKEY’ empty.The text on the pushbutton is linked to the text of the pushbutton and the function code ofthe function key (if assigned).

Page 24: SAP EWM RF Cookbook

In the function code profile you must also define the ‘standard’ function codes, forexample, ‘BACK’ , ‘CLEAR’, … if you want to use them. They are not automaticallyavailable.Be careful if you use additional states in your logical transaction. State ‘******’ is usedas the default. This means that function codes which are not defined in your additionalstate are automatically added by the framework. If you want to avoid this, you can copythe entries with state ‘*******’ and mark the field ‘FLG_DISABLE’. If you always workwith your own states and not with state ‘******’ you can, of course, delete the entrieswith state ‘******’.Be aware that F10 is not directly usable. This function key is not directly addressable inthe GUI status. There is a workaround if you need F10 on the device. Pressing F10 on thedevice triggers an esc-sequence of, for example, Shift+F10. Shift+F10 is used in thefunction code profile and Shift+F10 is defined in the GUI status. Note, however, that thissolution does not work in the SAPGUI.The following function codes should be used in the standard system and assigned to thefollowing function keys:

Functioncode

Functionkey

Shortcut Action

NEXT F4 04 Jump to next screen (for example, from source todestination or from destination to end oftransaction)

MORE F5 05 Display next pushbutton sequence

CLEAR F6 06 Clear input field / Clear all input fields

BACK F7 Returns to previous screen without saving entereddata in data container

UPDBCK F7 Returns to previous screen with saving entereddata in data container

LIST F8 08 Display possible data for the current field

FULLMS F9 09 Display message on separate screen

ENT ENTER Default navigationIf you display pushbuttons then display only the non-standard functions (e.g. Detailscreen, ...). No pushbuttons should be assigned to the function codes mentioned above,except for ‘NEXT’ (which is controlled by the content provider)!The function code profiles are stored in table /SCWM/TFCOD_PRF.

3.20.1 GUI status is defined for the templateThe GUI status is defined at template level and is therefore valid for all sub screens.The pushbuttons and function keys are then dynamically excluded according to thedefinition in /SCWM/TFCOD_PRF. This means that in the GUI status, all necessaryfunction keys must be defined in advance.

Page 25: SAP EWM RF Cookbook

All function keys must be defined as ‘Application function’ for functional type. Do notdefine them as ‘Exit Command’. ‘Exit Command’ function keys are not currentlysupported.

3.20.2 How to connect screen function codes and RF framework functioncodes

In the GUI status, the function keys are defined with the function codes. You have F1 toF10 for the corresponding function keys, ENT for the Enter key, PGUP for the Scroll Upkey and PGDN for the Scroll down key. No pushbuttons are defined in the GUI status.On the template dynpro, the pushbuttons are defined with the function codes PB1 to PB4.The function codes used in the step flow are defined in table /SCWM/TFCOD_CAT.Here you define more ‘speaking’ function codes e.g. BACK, ENTER, DETAIL, SAVE,…In table /SCWM/TFCOD_PRF you make the link between the GUI function codes andthe RF framework function codes / step flow.

APPLIC LTRANS STEP STATE SQNCE FCODE PUSHB FNKEY Shortcut

01 LTX1 STEP1 ****** 01 DETAIL PB1 F1 01

01 LTX1 STEP1 ****** 01 CLEAR F6 06

01 LTX1 STEP1 ****** 01 BACK F7 07

01 LTX1 STEP1 ****** 01 FULLMS F9 09

01 LTX1 STEP1 ****** 01 ENTER ENT

01 LTX1 STEP2 ****** 01 SPLIT PB1 F1 01

01 LTX1 STEP2 ****** 01 ZERO PB2 F2 02

01 LTX1 STEP2 ****** 01 NEST PB3 F3 03

01 LTX1 STEP2 ****** 01 CLEAR F6 06

01 LTX1 STEP2 ****** 01 BACK F7 07

01 LTX1 STEP2 ****** 01 FULLMS F9 09

01 LTX1 STEP2 ****** 01 ENTER ENTBe aware that some columns are not displayed to provide a better overviewWith the definition of the above table you have defined that in STEP1, only the firstpushbutton (PB1 in the left corner) is valid and visible with the function code ‘DETAIL’.In addition, the function codes ‘CLEAR’, ‘BACK’, ‘FULLMS’ are assigned to functionkeys and a shortcut value. The function code ‘ENTER’ is assigned to the ENTER keywithout a shortcut value. In STEP2, you have the three pushbuttons on the top, valid andvisible and assigned to the function keys F1 to F3. The rest is the same as in ‘STEP1’.

3.20.3 Handle more function codes than available pushbuttons on ascreen / step

If you have more function codes than available pushbuttons on your screen or in otherwords, on your step, you can do the following. In table ‘/SCWM/TFCOD_PRF’ you must

Page 26: SAP EWM RF Cookbook

group your function codes with field ‘SQNCE’. This field also indicates the sequence ofthe groups. In addition to that, each group must contain the function code ‘MORE’ whichmust be assigned to a function key. Do not assign ‘MORE’ to a pushbutton. The RFframework will display ‘>’ automatically if more function codes than availablepushbuttons are defined. The ‘>’ will indicate to the user that more function codes areavailable. Of course, the user must know which function key triggers the ‘MORE’function code. The RF framework is responsible for presenting the correct group. Afterthe last group, the first group is displayed again. Each function code to be processed mustbe defined in each group.APPLIC LTRANS STEP STATE SQNCE FCODE PUSHB FNKEY Shortcut

01 LTX1 STEP3 ****** 01 DETAIL PB1 F1 01

01 LTX1 STEP3 ****** 01 SPLIT PB2 F2 02

01 LTX1 STEP3 ****** 01 ZERO PB3 F3 03

01 LTX1 STEP3 ****** 01 MORE F5 05

01 LTX1 STEP3 ****** 01 CLEAR F6 06

01 LTX1 STEP3 ****** 01 BACK F7 07

01 LTX1 STEP3 ****** 01 FULLMS F8 08

01 LTX1 STEP3 ****** 01 NEXT PB4 F4 04

01 LTX1 STEP3 ****** 01 PRINT F11 11

01 LTX1 STEP3 ****** 02 PRINT PB1 F11 11

01 LTX1 STEP3 ****** 02 NEXT F4 04

01 LTX1 STEP3 ****** 02 MORE F5 05

01 LTX1 STEP3 ****** 02 CLEAR F6 06

01 LTX1 STEP3 ****** 02 BACK F7 07

01 LTX1 STEP3 ****** 02 FULLMS F9 09

01 LTX1 STEP3 ****** 02 DETAIL F1 01

01 LTX1 STEP3 ****** 02 SPLIT F2 02

01 LTX1 STEP3 ****** 02 ZERO F3 03In this example, we have assumed a display profile with only 4 pushbuttons. We havedefined 2 groups. All groups have the same function codes. There are function codes witha pushbutton assignment and function codes without pushbutton assignment in eachgroup. Be aware that function codes not defined in the actual sequence are not availableand cannot be processed. You must define them without assigning a pushbutton.

3.21 Define step flow

Page 27: SAP EWM RF Cookbook

The step flow determines the business process flow and the corresponding contentprovider function modules. Only function modules can be used. Although functionmodules can be combined in the standard system, there should only be one functionmodule for the PBO (Process Before Output) and one for the PAI (Process After Input).The naming convention is /SCWM/RF_<Process_<Step>_PBO or/SCWM/RF_Process_Step_PAI (e.g. /SCWM/RF_PTWY_SOURCE_PBO or/SCWM/RF_PICK_CHECK_PAI). It is clear that within these function modules you cancall other function modules which can be re-used. Having only one function module willmake customizing easier and also helps to follow the step flow.In the step flow definition you define the transaction step sequence considering thefunction code utilized by the user. Steps may be displayed in the foreground or processedin the background as determined in customizing. Steps can be combined. If you combinesteps, the step flow is only interrupted by error messages. Be careful with error messagescoming from a function module which is processed before the screen is displayed (PBO).The message is displayed on the next screen and not on the previous one. This means thatthe user can proceed without correcting the old error. The error should be checked againin the PAI module.The step flow is defined in table /SCWM/TSTEP_FLOW.PRMOD 1 -> Background processingPRMOD 2 -> Foreground display

3.21.1 PBO of initial screen after menu selectionIn PBO of the initial screen, the table entry should look like this:

APPLIC PRES_PRF LTRANS STEP FCODE FMODUL SSTEP PRMOD FCODE_BCKG

01 **** LTX1 STEP1 INIT FM1_PBO STEP1 2For logical transaction LTX1 in step STEP1 after triggering the transaction from themenu function module, FM1_PBO is processed and the screen is displayed afterwards.It is hardcoded that the function code for the first function module call must be INIT.

3.21.2 PAI of screen and direct display of next screenIn PAI, the table entry should look like this:

APPLIC PRES_PRF LTRANS STEP FCODE FMODUL SSTEP PRMOD FCODE_BCKG

01 **** LTX1 STEP1 ENTER FM1_PAI STEP2 2For logical transaction LTX1 in step STEP1 after triggering ENTER function codefunction module FM1_PAI is processed and after that the new screen assigned to STEP2is displayed.

3.21.3 PAI of screen and PBO of next screenIn PAI of screen 1 and PBO of screen 2 the table entry should look like this:

APPLIC PRES_PRF LTRANS STEP FCODE FMODUL SSTEP PRMOD FCODE_BCKG

01 **** LTX1 STEP1 ENTER FM1_PAI STEP2 1 BCK0101 **** LTX1 STEP2 BCK01 FM2_PBO STEP2 2

Page 28: SAP EWM RF Cookbook

For logical transaction LTX1 function module FM1_PAI is processed in step STEP1 aftertriggering ENTER function code. After that FM2_PBO is processed in background. Afterthat, the new screen from STEP2 is displayed.

3.21.4 Call of common screen from several screens during transactionIf you want to call one screen from several steps of your logical transaction, you mustonly ever leave the screen via function code „BACK’ or ‘UPDBCK’. The internal callstack is only updated correctly with ‘BACK’ and ‘UPDBCK’. If you want to leave thescreen with another function code for any reason, you must maintain an entry in table/SCWM/TSTEP_FLOW as described below.Additionally, you define which step the verification should take place beforehand. If youhave more steps you should only set the ‘Verification’ flag once.Example: WT detail screen called from source screen and destination screen.

APPLIC PRES_PRF LTRANS STEP FCODE FMODUL SSTEP PRMOD FCODE_BCKG

01 **** LTX1 STEP1 ENTER STEP1 1 BACKWith this definition, the detail screen is left with ‘ENTER’ and function code ‘BACK’ isprocessed in the background.

3.21.5 Customizable ENTER / Set the next step dynamically using the CPIt should be possible that the CR (Carriage Return) coming from a scanner or the user bypressing ENTER is ‘redefined’ to act like a combination of several function keys e.g. F1(SAVE) and F4 (NEXT).ENTER should have the following behavior:

If you are not in the last input field, the cursor is positioned in the next input field(either verification or input field).

If you are on the last input field but not on the last open WT, the actual WT issaved and the next open WT is displayed (source or destination).

If you are on the last input field and on the last open WT, the actual WT is savedand comes from the source screen and the destination screen of the first TO isdisplayed. The transactions finish coming from the destination screen the.

Example: The Enter key is defined as function code ‘ENTER’. The Enter key triggers thenavigation between the input fields and the posting to the database. The step flow isdivided into 3 steps. The navigation, the check of the entered data and the posting to thedatabase, if all fields are entered.

APPLIC PRES_PRF LTRANS STEP FCODE FMODUL SSTEP PRMOD FCODE_BCKG

01 **** LTX1 STEP1 ENTER FM_NAV STEP1

01 **** LTX1 STEP1 SOURCE STEP2 2

01 **** LTX1 STEP1 DEST STEP3 2It is important that the processing mode (‘PRMOD’) and the background function code(‘FCODE_BCKG’) are initial.

Page 29: SAP EWM RF Cookbook

These fields are filled in function module ‘FM_NAV’ with the methods‘/SCWM/CL_RF_BLL_SRVC=>SET_PRMOD’ and‘/SCWM/CL_RF_BLL_SRVC=>SET_FCODE’.Example coding for the navigation function module:

* If only assigned ones were found, we must jump to destination

IF lv_enqueue IS INITIAL.

/scwm/cl_rf_bll_srvc=>set_prmod('1').

/scwm/cl_rf_bll_srvc=>set_fcode('DEST').

EXIT.

ELSE.

* We found un-assigned ones and are continuing with source

/scwm/cl_rf_bll_srvc=>set_prmod('1').

/scwm/cl_rf_bll_srvc=>set_fcode('SOURCE').

ENDIF.

3.21.6 Additional informationAll actions that can be counted as PBO of STEP2 in connection STEP1 -> STEP2, mustbe attached to some initial code of STEP2, otherwise they will be attached to STEP1 andBACK to STEP1 with recover STEP1 will all changes not relevant to STEP1.Example:

APPLIC LTRANS STEP FCODE FMODUL SSTEP PRMOD FCODE_BCKG

01 LTX1 STEP1 FCODE_X MODULE_X STEP2 1 INIT_2

01 LTX1 STEP2 INIT_2 MODULE_INIT_2 STEP2 2MODULE_X - actions associated with STEP1 because the module is called before thenext foreground step is processed. If STEP2 works with another table and you set the newtable name too early (e.g. in MODULE_X), this change is stored in the data for STEP1.When you return from STEP2 the data is restored and STEP1 works on the wrong table.Therefore the step flow should look like this:

APPLIC LTRANS STEP FCODE FMODUL SSTEP PRMOD FCODE_BCKG

01 LTX1 STEP1 FCODE_X STEP2 1 INIT_2

01 LTX1 STEP2 INIT_2 MODULE_X STEP2 1 INIT_3

01 LTX1 STEP2 INIT_3 MODULE_INIT_2 STEP2 2In general, you should first change the step and then make the data access or setting forthis step.

3.22 Set default navigation at transaction endThe default navigation is determined at the end of a logical transaction. The navigationallows the following handling:

Value Meaning

Page 30: SAP EWM RF Cookbook

0 User decision

1 Main menu

2 Last menu

3 Same transaction; Restart logical transactionThe default definition is defined in table /SCWM/TTRNS_NAV.Note: To trigger the default navigation, the function module of the last step of the logicaltransaction should include the call of method ‘SET_FCODE’ of class‘/SCWM/CL_RF_BLL_SRVC’. The function code ‘CMPTRS’ must be set with thisfunction. Alternatively, you can set / process this function code in the step flow/SCWM/TSTEP_FLOW in background mode.

* Call method of RF framework to mark end of transaction/scwm/cl_rf_bll_srvc=>set_prmod('1').

/scwm/cl_rf_bll_srvc=>set_fcode( /scwm/cl_rf_bll_srvc=>c_fcode_compl_ltrans ).

3.23 Set verification profileWhen creating the sub screens, the verification fields must be included. The verificationfields in the dynpro must be taken from the same structure as the data fields. Theverification field should follow directly after the origin field without a space in between.In the verification profile, you assign the verification field to the comparing data fieldincluding the data structure. Also the ‘translation’ method for the barcode (e.g. to supportEAN128; in EM function module /SCWM/RF_EAN128_SPLIT_VALID isimplemented) and explicit disabling were defined here. If you do not need a one to oneverification e.g. Material can be identified by material number and EAN/UPC number,you can define a function module which does the verification instead of the framework.Be careful if you use additional states in your logical transaction. State ‘******’ is usedby default. This means that verification fields which are not defined in your additionalstate are automatically added by the framework. If you want to avoid this you can copythe entries with state ‘*******’ and mark the field ‘FLG_DISABLE’. If you always workwith your own states and not with state ‘******’ you can, of course, delete the entrieswith state ‘******’.

3.23.1 VerificationFirstly, define the verification fields in your dynpro. The verification fields are alwayscharacter based with a length of 50 characters. The screen group 3 for these fields mustbe filled with ‘002’. This activates the verification fields and enables the RF frameworkto deactivate the verification field after a successful verification. Without ‘002’ the fieldswill NEVER be verified.In table /SCWM/TVALID_PRF, you must assign the verification field to the field whichcontains the comparing data value.

APPLIC LTRANS STEP STATE VRFVAL_TABNAME

VRFINP_FLDNAME

VRFVAL_FLDNAME

01 LTX1 STEP1 ****** /SCWM/S_RF_ NLPLA_VERIF NLPLA

Page 31: SAP EWM RF Cookbook

PROTO

01 LTX1 STEP1 ****** /SCWM/S_RF_PROTO

CHARG_VERIF CHARG

Be aware that some columns are not displayed so as to provide a better overviewWith the definition of the above table, you have defined that in STEP1, you have twoverification fields named /SCWM/S_RF_PROTO-NLPLA_VERIF and/SCWM/S_RF_PROTO-CHARG_VERIF. The data of the first verification field isverified against the data in field /SCWM/S_RF_PROTO-NLPLA and the second one isverified against /SCWM/S_RF_PROTO-CHARG.In the field ‘FLG_VERIF’ in table /SCWM/TSTEP_FLOW, you define BEFORE whichstep the verification should take place. Be aware that the verification should only be doneonce. If you have more than one step, only one step (normally the first) should be markedas ‘Verification relevant’.The verification is done automatically in the RF framework in method/SCWM/CL_RF_BLL_SRVC=>CHECK_VERIF_PRF. The field with the comparingdata value must be in a structure defined in table /SCWM/TPARAM_CAT!If you add a function module, the verification control is based on the content provider andthe check must be done in the function module. As an IMPORT-parameter, the functionmodule must have a structure named ‘IS_VERIF_PRF’ of type‘/SCWM/S_VERIF_PRF_EXT’ and a field named ‘IV_FLG_VERIFIED’ of type‘XFELD’. As an EXPORT-parameter, a field must be created with the name‘EV_FLG_VERIFIED’ and type ‘XFELD’. Optionally, you can have CHANGING-parameters like the other function modules which belong to the content provider.‘/SCWM/S_VERIF_PRF_EXT’ contains all information of the current verification fieldfrom table /SCWM/TVALID_PRF and the conversion exit for this field.‘IV_FLG_VERIFIED’ is ‘X’ if the framework already carried out a positive verificationbefore the function module was called. ‘EV_FLG_VERIFIED’ contains the return value.‘X’ is positive, initial value is negative verification. Please keep in mind that the functionmodule itself does not trigger an error message. The standard error message is triggeredby the framework.If the verification is not successful, error message /SCWM/UI_RF:020 (Invalidverification of &1) is processed. If the verification fields are empty, error message/SCWM/UI_RF:021 (Enter verification of &1) is processed.In table /SCWM/TSTEP_FLOW in field FLG_VERIF, you can define that theverification is done before the next step or function module is processed. If none of yoursteps or substeps contain the verification flag, no verification is carried out.Bear in mind that the verification fields must be longer if you verify via barcode scanningand you use concatenated barcodes e.g. EAN128. Otherwise the scanned barcodeinformation may be truncated because of the input field length limitation.In the RF framework application table (/SCWM/TAPPL_CAT), you can define afunction module for influencing / controlling the verification fields based on the actualapplication data. For example, if you are picking from storage type 0001 you want toverify fields other than by picking from storage type 0002. The RF transaction opens allverification fields by default. You can use the function module to switch off verificationfields. The example function module is /SCWM/RF_WME_SET_VERIFICATION.

Page 32: SAP EWM RF Cookbook

3.24 Presentation device catalogueIn the catalogue you define the single RF device and its characteristics such as displayprofile, presentation device type, data entry type, function keys quantity, indicator: applyfunctionality 'CLEAR ALL', indicator: enable shortcut on the template, indicator: defaultdevice, bell signal for information message, error message bell signal, warning messagebell signal, success message bell signal.The device catalog is stored in table /SCWM/TPRDV_CAT.

Page 33: SAP EWM RF Cookbook

4 LayoutThe following information is a general proposal for the screen layout which should helpthe developer to design the screens. Not all open questions could be answered, but ifsomeone has additional information that may also be of interest for other developers,please contact the author and the document will be updated.

4.1 ScreenThe screen size for the sub screen is 7X40. Please use this space. It is easier forcustomers to erase a field than to add a field, so it is better to have a randomly used fieldif some space is left.The fields should start at line 1 column 1.The fields on the screen should be arranged line by line. This means that empty linesshould be omitted (not implemented).

4.2 FieldsThe RF screens use different (shorter) field labels than the normal UIs.Therefore we often created data elements for RF based on the domains from the “normal”data elements.Use the 10 character field label if possible.If there is no suitable field, use the following procedure to get it.

Create your own data element with naming convention ‘/SCWM/DE_RF_xxxxxxx’ and domainaccording to the data element.Define the field labels with a length of 4, 6, 8 and 10 characters. For the 10 characters, try tofind a standard term in SAPTerm (In SAPNet please use alias SAPTERM). If you findabbreviations in SAPTerm and they fit into the field sizes, use the standard abbreviation. Ifthere is no abbreviation it is up to you to invent one.Add the new data element to structure /SCWM/S_RF_SCRTXT.Add the new data element to your own structure.Use the field of your structure on your screen.

In addition, not all fields have a field label e.g. ‘Storage bin’ contains field storage typeand field storage bin.Field attributes are set directly in the dynpro. You can use screen group 003 with value‘001’ and ‘002’. See the description above. Nevertheless, the framework offers methodsfor chnaging field attributes during runtime. These methods can be called in yourfunction module which is processed before the screen is displayed. You can switch theinput option, the required option and the visible option on or off. However, if you want touse this, keep in mind the influence on possible customer changes later on.Input fields must be defined without ‘Search Help’ and ‘Foreign Key Check’. If you wantthe user to enter something in an input field, you must set the ‘Input’ option to‘Obligatory’. The framework then checks this option and displays error/SCWM/UI_RF:035 “Enter required field”. Keep in mind that the check for verificationand required input is only done if the ‘Verification flag’ is set in the step flow.Verification fields must be defined with value ‘TRUE’ for the property ‘BarcodeInput’.You will find the property in the layout editor on the field attributes when you press the

Page 34: SAP EWM RF Cookbook

icon with the blue arrow (->). This allows special characters (Hex values) in a barcodewhich are normally filtered by SAPGUI.Verification fields follow directly after the original field without a space in between.

4.2.1 Field lengthQuantity fields should use domain /SCWM/DO_QTY_VERIF. This domain usesconversion exit ‘QNTY1’ which shortens the character-based field from 50 characters to21 characters. The number can contain 17 digits plus 3 decimals. On the screen, limit theoutput length to 11 characters and set the field to scrollable.The product number should be defined with 18 characters. Please use data element/SCWM/DE_RF_MATNR which is based on domain /SCWM/DO_RF_MATNR. Thisdomain limits the output length to 18 characters.The material short text should be defined with 20 characters. It is recommended that thematerial short text is displayed whenever it is possible depending on the space on thescreen.Special stock is displayed with the category, the document number and the item number.The warehouse request should be defined with 20 characters. The item number should bedefined with 6 characters.Batch number should be defined with 10 characters.Verification fields have a length of 50 characters but only one visible character.Input fields have a length of 50 characters to support barcode scanning into these fields.Conversion must be done by the content provider. This means that all fields with a GUIDor a timestamp will be shown in readable fields (e.g. MATNR instead of MATID) andmust be converted before they are displayed (in PBO) and after the return from the screen(in PAI) by the content provider.

Page 35: SAP EWM RF Cookbook

5 Programming information

5.1 PostingThe posting for the RF transaction should occur online. This is necessary to allow theuser to react to errors during the posting. It is suggested that the posting should be carriedout in ‘UPDATE TASK’ but the commit should be done by ‘COMMIT WORK ANDWAIT’. While we might get errors, this ensures that the order within the posting is notchanged.

5.2 Exception handling / Shortcut usingThe field ‘SHORTCUT’ from structure /SCWM/S_RF_SCRELM is on the template.The field is 4 characters long but only 2 will be displayed. This field is used fornavigation by entering a shortcut value and is also used for exception triggering byentering an exception code. The field can be defined as optional or required with the flag‘FLG_SHORTCUT’ in table ‘/SCWM/TPRDV_CAT’. If you define the flag as optionalthe field is not considered in the default navigation. This means that ‘ENTER’ on the lastinput field of the sub screen triggers the step flow. The navigation to the field e.g. to enteran exception must be done manually with the TAB key. If you define the flag as optionalthe cursor is set to the field always after the last input field of the sub screen. The usermust then press ‘ENTER’ again to trigger the step flow.

5.2.1 NavigationIn field ‘FLG_SHORTCUT’ in table /SCWM/TPRDV_CAT, you can control whetherthe shortcut functionality is activated or not. If you mark the flag, the navigation ispossible if the flag is not marked and the ‘Shortcut’ field is only used for exceptions.Navigation must then be done via function keys.In addition, to mark the flag you must assign the corresponding shortcut values in table/SCWM/TFCOD_PRF to the function codes which are to be triggered. Figures 1 to 10are reserved for navigation. The figures reflect the function keys F1 to F10. Use thefollowing assignment in the standard system:

FCODE Function key Shortcut

MORE F5 05

CLEAR F6 06

BACK or UPDBCK F7

LIST F8 08

FULLMS F9 09You can use the flag ‘FLG_QUICK_ENTER’ to suppress the jump to the shortcut fieldeven if it is visible. The flag is part of the table /SCWM/TSTEP_SCR and can be set inthe screen management tool (transaction /SCWM/RFSCR). However, you must keep inmind that the PAI function module is called for each field. Therefore the programmermust ensure that the posting (e.g. WT confirmation) is not called too early.

Page 36: SAP EWM RF Cookbook

5.2.2 ExceptionsIf you want to trigger exceptions, you can use methods from the ‘Exception handler’.There is a method ‘GET_EXCEPTION_CODE’ for getting a list of possible exceptionsin your business context. A method ‘VERIFY_EXCEPTION_CODE’ for verifying theexception code and receiving the internal exception code which you can use for yourinternal reaction to the exception. A method ‘PROCESS_EXCEPTION_CODE’ istriggered for asynchronous exception processing.In your step flow (/SCWM/TSTEP_FLOW), you must foresee a function codeassignment with a shortcut value ‘****’. This function code and the function moduleassigned to them is processed by the framework. The exception should be checked in thisfunction module. Depending on the internal exception code, you can then set the follow-up step (if necessary). The posting of the exception can either be done in this functionmodule or later on. This is the decision of the developer.

5.3 DifferencesDifferences are handled on a separate screen that looks the same. If you want toimplement a new type of difference, we recommend you use the ‘standard’ screen.

5.4 Support LIST functionalityThe framework offers a functionality for showing the user possible entries for an inputfield.The content provider must informl the framework which field is possible and whichvalues can be selected. Old values can be reset using method/SCWM/CL_RF_BLL_SRVC=>INIT_LISTBOX (fieldname). With method/SCWM/CL_RF_BLL_SRVC=>INSERT_LISTBOX(fieldname, value, text), a valuecan be added to the listbox. You must call this method for each possible value. In thefunction code profile, you must assign function code ‘LIST’ to a function key and / or apushbutton. The standard function key is ‘F8’. The user can then press the function keywhen they are on the field. The framework displays a new screen where the user canselect a possible value. The value then is transferred into the input field.

5.5 Display of text (from delivery or hazard. material)There is a common way to retrieve and display text from hazardous material master anddelivery. With the function module /SCWM/RF_TEXT_GET_AND_SET, the texts areread and passed to the RF framework (using method/SCWM/CL_RF_BLL_SRVC=>SET_RF_TEXT).The text now can be displayed by pressing F9 (function code FULLMS). The RFframework displays the text in a step-loop. If there is an error message to display thanfirst the error message is displayed and after another F9 (from the error text screen) thetext is displayed. In addition, an indicator is displayed on the application screen to informthe user that text is available.

5.6 Methods usable by the content provider

Page 37: SAP EWM RF Cookbook

5.6.1 Methods into the framework/scwm/cl_rf_bll_srvc=>set_prmod( '1' ) to set the processing mode of the nextstep in the step flow. ‘1’ = Background; ‘2’ = Foreground

/scwm/cl_rf_bll_srvc=>set_fcode( 'DEST' ) to set the function code to determinethe next step flow.

/scwm/cl_rf_bll_srvc=>set_state( '******' ) to set the state.

/scwm/cl_rf_bll_srvc=>set_field( 'WHO' ) to set the cursor to a specific field.

/scwm/cl_rf_bll_srvc=>init_screen_param( ) to reset the used data container, butonly the name, not the data itself

/scwm/cl_rf_bll_srvc=>set_screen_param( ‘PICKPT’ ) to introduce the used datacontainer .

/scwm/cl_rf_bll_srvc=>set_scr_tabname( 'TT_PICKPT' ) to introduce the usedtable data container.

/scwm/cl_rf_bll_srvc=>set_line( 1 ) to set the actual / beginning line in the usedtable data container.

/scwm/cl_rf_bll_srvc=>init_listbox( ‘/SCWM/S_RF_PICKPT-HUENT’ ) to resetthe data assigned to the given listbox.

/scwm/cl_rf_bll_srvc=>insert_listbox( ‘/SCWM/S_RF_PICKPT-HUENT’, ‘X’,‘HU-Entnahme’ ) to set a value for the given listbox. For additional data, call themethod again.

/scwm/cl_rf_bll_srvc=>set_screlm_required_on(‘/SCWM/S_RF_PICKPT-VLPLA’) to switch on the required field attribute for the given field.

/scwm/cl_rf_bll_srvc=>set_screlm_required_off(‘/SCWM/S_RF_PICKPT-VLPLA’) to switch off the required field attribute for the given field.

/scwm/cl_rf_bll_srvc=>set_screlm_invisible_on(‘/SCWM/S_RF_PICKPT-VLPLA’) to switch on the invisible field attribute for the given field.

/scwm/cl_rf_bll_srvc=>set_screlm_invisible_off(‘/SCWM/S_RF_PICKPT-VLPLA’) to switch off the invisible field attribute for the given field.

/scwm/cl_rf_bll_srvc=>set_screlm_input_on(‘/SCWM/S_RF_PICKPT-VLPLA’)to switch on the input field attribute for the given field.

/scwm/cl_rf_bll_srvc=>set_screlm_input_off(‘/SCWM/S_RF_PICKPT-VLPLA’)to switch off the input field attribute for the given field.

/scwm/cl_rf_bll_srvc=>set_flg_stack(‘X’) to set a new stack level. This can beused if you want the framework to add a new stack level to its internal stack.

/scwm/cl_rf_bll_srvc=>message( ‘ ‘, ‘/SCWM/UI_RF, ‘S’, ‘xxx’ ) to display amessage of message type ‘S’ or ‘I’.

Page 38: SAP EWM RF Cookbook

/scwm/cl_rf_bll_srvc=>set_flg_dequeue_all( ) to tell the framework to carry out aDEQUEUE_ALL.

/scwm/cl_rf_bll_srvc=>set_rf_text( lt_text_table ) to pass the read text to theframework.

5.6.2 Methods out of the framework/scwm/cl_rf_bll_srvc=>get_step( ) to get the actual step./scwm/cl_rf_bll_srvc=>get_fcode( ) to get the actual function code./scwm/cl_rf_bll_srvc=>get_line( ) to get the actual line number./scwm/cl_rf_bll_srvc=>get_state( ) to get the actual state.

5.7 Global variablesMost of RF specific Function Group contains global variables. It could cause problem,when a customer program call directly a RF Function Module, but inside the FM, theprocessing use a global variable. Basically it has initial value if it was called fromcustomer program.For each RF specific Function Group a new interface is created to set and get the globalvariables from the customer program. The name for the interface is created:

/SCWM/RF_<process>_SET_GLOBVARThis FM is responsible to set the value of global variable from the customer codee.g. /SCWM/RF_PACK_SET_GLOBVAR,,/SCWM/RF_PICK_SET_GLOBVAR, etc.

/SCWM/RF_<process>_GET_GLOBVARThis FM is responsible to retrieve the value of global variable from the standardcode.e.g. /SCWM/RF_PACK_GET_GLOBVAR,,/SCWM/RF_PICK_GET_GLOBVAR, etc.

How should it use:The customer has an own FM and inside call a FM which belongs to the standard RFcode. Inside the standard FM there is a global variable and it is updated inside, but thecustomer want to use the updated value.

Z_RF_PICK_PIMTTO_PAI…. lv_buscon = 5. CALL FUNCTION /SCWM/RF_PICK_SET_GLOBVAR

IMPORTINGiv_buscon = lv_buscon

CALL FUNCTION /SCWM/RF_PICK_PIMTTO_PAICHANGING….

Page 39: SAP EWM RF Cookbook

CALL FUNCTION /SCWM/RF_PICK_GET_GLOBVAREXPORTING

iv_buscon = lv_buscon

The customer has set the global variable in the own FM, the value passed into thestandard FM, the FM /SCWM/RF_PICK_PIMTTO_PAI changed the value of “buscon”,and the customer can retrieve the changed value with FM/SCWM/RF_PICK_SET_GLOBVAR.

5.8 Display technical data on RFUI’s GUI TitleOn RFUI there is a possibility to display technical data with the well knownCTRL+SHFT+F1.It can work on SAPGUI, and only there. There was a request to make the technical infoavailable on ITS also, but with limited information. The following data can be displayedin ITS environment:

- actual logical transaction- actual step- screen info

To get the technical info you must set a user parameter:System-> User Profile-> Own dataOn tabstip Parameters maintain Parameter ID: /SCWM/RF_TECH_TITLE with ‘X’

Page 40: SAP EWM RF Cookbook

If the user parameter is available on the normal user interface, then the RFUI looks likethe following:

Page 41: SAP EWM RF Cookbook

6 Usage of provided tools

6.1 Menu managerThe menu manager is started with transaction /SCWM/RFMENU or from the IMG see(RF Framework customizing overview)

It is a tool for managing (creation, deletion, changing ) customer menus.

The selection screen includes application, presentation and personalization profiles anddisplayed screen size.The first three parameters determine the menu hierarchy. The user can create copy anddelete the menu hierarchy from the selection screen.In order to change some hierarchy user must press pushbutton 'Change' and enter thescreen of menu maintenance.

This screen is split into 2 parts:Left part includes menu building bricks (menu and logical transactions).Right part includes menu hierarchy.

At the beginning, it represents the hierarchy of the main menu. The user can change thehierarchy in the following ways:Selecting a certain element in the left ALV and pressing the 'Add as sub node' button.If a tree menu is selected, a new item will be added to it.If no tree menu item is selected, a new item will be added to the presented upper menuSelecting an element in the left ALV and pressing the 'Add the same level' button.A tree element must be selected and a new item is inserted before it.Dragging an element from the left ALV to the tree: the result will depend on the treeelement on to which the new one is dropped.If element is dropped on the logical transaction, it will be inserted before it.If element is dropped on the menu, the pop up for choosing one of 2 options will appear:add as sub node or add at the same level.Selecting an item in the tree and pressing buttons to change its sequence : Up/Down.

The user can change the main menu by clicking on a menu element's (in the left ALV)'Main' checkbox.The user can display a submenu in the right tree:By selecting menu in the left ALV and pressing 'Display menu' button.By selecting a menu item in the tree and pressing the 'Next level' button of the treetoolbar.Opposite action is 'Previous level'

The tool enables the user to manage the menus catalog:To add user-specific menus to the menu catalog (button New on the left ALV)To delete user-specific menus from the menu catalog (button Delete on the left ALV)

Page 42: SAP EWM RF Cookbook

To change user-specific menus descriptions in the menu catalog (button Change on theleft ALV)To manage RF-texts of the menus (button Object Texts on the left ALV)

6.2 Screen managerYou can use the RF screen manager, a tool that enables you to customize the appearanceof RF presentation screens, so as to ensure that they are consistent with the attributes ofthe presentation devices being used.The RF screen manager enables you to do the following:

Create, copy and delete display profilesEdit screens of a display profile

Display profile ** is provided with the standard system.

6.2.1 Create, Copy and Delete Display ProfilesBy defining your own display profiles, you can determine the following screen displaycharacteristics:

Screen sizeScreen element attributes, including:

o Number of pushbuttons available for the screen

o Text length for pushbuttons, logical transactions and menu items

o How messages are displayed

Screen template function groups and screen numbersYou can also create a new display profile based on an existing one and delete an existingdisplay profile.Even if the RFUI is developed for character based device, the customers can raise a claimto use it in graphical environment via ITSMobile. In this case a new Display Profile mustbe created. For graphical devices, the following screen dimensions could be feasible:

width: max. 19/20 colums for 240 pixel or 25 columns for 320 pixelheigth: max. 12 rows for 320 pixel

Keep in mind these values are experimental values. It has to be checked in the actualenvironment on the final mobile device whether is it correct or not.

6.2.1.1.1.1 Creating a Display Profile1. Ensure that you are in the Display Profile tab.2. Enter a two-digit identifier for your display profile and choose Create.

The Screen Manager dialog box appears.3. Enter the following details for the display profile:

a) Text descriptionb) Screen height and widthc) Screen element attributes

Page 43: SAP EWM RF Cookbook

d) Function group and screen number of the screen template.If you have chosen to display messages in the status line (i.e. you entered 1 in theMessage Display field), you must also enter a function group and screen number forthe secondary screen template containing the status line instead of pushbuttons. Ifyou want to use your own GUI title you must enter the function group name andtitle number.

4. If you want to immediately create the sub-screens, do the following:a) Set the Create Sub-Screens indicator.b) Enter the sub-screens' function group.c) If you want the system to use the standard screens and convert them to newscreens based on the size parameters of your display profile, select Convert Screens.This option is desirable for the mass creation of screens, especially if you do not intend to make large changes to the screens.If you want the system to copy the standard screens as they are, select CopyScreens.

5. If you do not want to create sub-screens immediately, do not set the Create Sub-Screensindicator. The created display profile will reference the standard or source sub-screens.6. Choose Enter.

6.2.1.2 Copying a Display Profile1. Ensure that you are in the Display Profile tab.2. Enter the identifier of the display profile that you wish to form the basis of a newdisplay profile.3. Choose Copy.The Screen Manager dialog box appears, containing the attributes of the source displayprofile.4. Enter the destination display profile identifier and description. You can also changeany of the other attributes.5. Choose Enter to copy the display profile.

6.2.1.3 Deleting a Display Profile1. Ensure that you are in the Display Profile tab.2. Enter the display profile identifier and choose Delete.A query message appears.3. Confirm that you wish to delete the display profile and its corresponding screens.

6.2.2 Edit Screens of a Display ProfileAfter creating a display profile, you can effectively adjust the size and position of screenelements (such as menus and pushbuttons) to fit the physical dimensions of yourpresentation devices. The RF screen manager enables you to do the following:

Perform analyses regarding screen compression and overlapping of lines andcolumns before creating new screensEdit and display screen templatesManually create, copy, edit, or display sub-screensAutomatically create sub-screens based on conversion analysis results

Page 44: SAP EWM RF Cookbook

Maintain customizing of sub screens (mapping of sub screens to logical transactionsteps)

6.2.2.1 Screens Maintenance1. Ensure that you are in the Screens tab.2. Enter one or more selection criteria for the screens that you wish to maintain.3. Choose Screens.The Screen Manager screen appears.4. The top ALV contains screen template information for the relevant display profile.

a) If you want to display a screen template in the Screen Painter, choose the linecorresponding to the screen template and choose Display Screen.b) If you want to manually edit a screen template in the Screen Painter, choose theline corresponding to the screen template and choose Edit Screen.

5. The bottom ALV contains information on all of the relevant sub screens, including thefollowing:

Screen conversion status, which is represented by one of the following threetraffic lights:

- Green: The sub screen exists, and matches the display profile settings.- Yellow: The sub screen exists, but does not match the display profile settings (i.e.the sub screen is not fully adjusted to the sub screen template area).- Red: The sub screen does not yet exist. This will be the case if you did not set theCreate Sub-Screens indicator when creating the display profile (pursuant to step 4aabove).a) Presentation context, including the following:- Presentation profile- Personalization profile- Logical transaction- Step- Stateb) Screen program and numberc) Screen conversion analysis results, namely the lines deficit and columns deficit

6. You can do any of the following from the toolbar of the bottom ALV, via thecorresponding pushbuttons:

Create, copy, change or delete the sub screen customizing (mapping of theselected sub-screen to a logical transaction step)Enable/disable the Skip Shortcut functionality for a sub screenIf a sub-screen has not already been created, you can either manually create it inthe Screen Painter (Create Screen), or trigger its automatic creation based on theconversion analysis results (Convert Screen).Copy an existing sub screen (Copy Screen). If you choose to do this, you mustenter the function group and number of the sub screen template.Edit (Edit Screen) or display (Display Screen) an existing sub screen in the ScreenPainter

6.3 WizardsThe wizards are started directly from a running RF transaction with key Ctrl+Shift+F1.

Page 45: SAP EWM RF Cookbook

Concerning the possibility of error message can be thrown in conversion exit, the RFFramework must catch that error message. This message catch

6.3.1 Split screenThis Wizard guides you through the steps necessary to split the RF transaction screen intoseveral screens. These screens are then displayed in your preferred sequence. You canalso configure the function codes that are displayed in each resulting screen.The wizard contains the following steps:

Assign Fields to Split ScreensAssign Function Codes to Split Screens / AssignmentAssign Function Codes to Split Screens / PushbuttonsDefine Target Function Group and Screen NumbersDefine Personalization ProfileComplete (Creating the new screens and customizing in database)

6.3.2 Modify screenThis Wizard guides you through the steps necessary for modifying an RF transactionscreen. Each time you add or remove fields from the screen, the Wizard generates anupdated screen. To display the new screen to a specific group of users, enter the user'spersonalization profile, and the Wizard automatically adjusts the Customizing.Once you run the Wizard, the new screen is displayed in Screen Painter, so that you canverify the contents or make manual adjustments.The wizard contains the following steps:

Select Target Screen FieldsAssign Verification FieldsDefine Target Function Group and Screen NumberDefine Personalization ProfileComplete (Creating the new screens and customizing in database)

6.3.3 Error message handling in RF WizardConcerning the possibility of error message can be thrown in conversion exit, the RFFramework must catch that error message. This message catch will catch the messagesfrom RF Wizard also. It means whenever an error occurs in RF Wizard, then Wizardquits and the RF Framework will display the error message.It would be annoying if some effort spent before the error occurs. If you working with theRF Wizard on the desktop, then it would be comfortable to set Parameter ID‘/SCWM/RF_WIZ_ACT’ on your own profile.How to set parameter ID:

Select System->User Profile->Own DataOn tabstrip Parameter add a new entry:Parameter ID: /SCWM/RF_WIZ_ACTParameter Value: X

Page 46: SAP EWM RF Cookbook

With this Parameter ID the RF Wizard will not quit when an error message occurs, butdisplay it inside the Wizard.

Usage of this Parameter ID can be relevant only in development or test system, but not inlive system, because makes no sense to start RF Wizard in live system.

Page 47: SAP EWM RF Cookbook

General Disclaimer

SAP does not represent or endorse the accuracy or reliability of any of the information, content, or advertisements(collectively, the "Materials") contained on, distributed through, or linked, downloaded, or accessed from any of theservices contained on this Web site (the "Service"), nor the quality of any products, information, or other materialsdisplayed, purchased, or obtained by you as a result of an advertisement or any other information or offer in or inconnection with the Service (the "Products"). You hereby acknowledge that any reliance upon any Materials shallbe at your sole risk. SAP reserves the right, in its sole discretion and without any obligation, to make improvementsto, or correct any error or omissions in any portion of the Service or the Materials.

THE SERVICE AND THE MATERIALS ARE PROVIDED BY SAP ON AN "AS IS" BASIS, AND SAP EXPRESSLYDISCLAIMS ANY AND ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATIONWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TOTHE SERVICE OR ANY MATERIALS AND PRODUCTS. IN NO EVENT SHALL SAP BE LIABLE FOR ANYDIRECT, INDIRECT, INCIDENTAL, PUNITIVE, OR CONSEQUENTIAL DAMAGES OF ANY KINDWHATSOEVER WITH RESPECT TO THE SERVICE, THE MATERIALS, AND THE PRODUCTS.

SAP encourages you to exercise discretion while browsing the Internet using this site.

SAP makes no representations concerning any endeavor to review the content of sites linked to this site or any ofthe Materials, and so SAP isn't responsible for the accuracy, copyright compliance, legality, or decency of materialcontained in sites listed in the directory or in the Materials.

SAP respects the rights (including the intellectual property rights) of others, and we ask our users to do the same.SAP may, in appropriate circumstances and in its sole discretion, terminate the accounts of users that infringe orotherwise violate such rights of others.

If you believe that your work has been copied in a way that constitutes copyright infringement, please follow theinstructions at the top of this page.

© Copyright 2008 SAP AG. All rights reserved.

No part of this publication may be reproduced or transmitted in any form or for any purpose without the expresspermission of SAP AG. The information contained herein may be changed without prior notice.

Some software products marketed by SAP AG and its distributors contain proprietary software components ofother software vendors.

Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation.

IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10,System z9, z10, z9, iSeries, pSeries, xSeries, zSeries, eServer, z/VM, z/OS, i5/OS, S/390, OS/390, OS/400,AS/400, S/390 Parallel Enterprise Server, PowerVM, Power Architecture, POWER6+, POWER6, POWER5+,POWER5, POWER, OpenPower, PowerPC, BatchPipes, BladeCenter, System Storage, GPFS, HACMP, RETAIN,DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX, Intelligent Miner, WebSphere, Netfinity,Tivoli and Informix are trademarks or registered trademarks of IBM Corporation.

Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.

Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of AdobeSystems Incorporated in the United States and/or other countries.Oracle is a registered trademark of Oracle Corporation.

UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.

Page 48: SAP EWM RF Cookbook

Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks orregistered trademarks of Citrix Systems, Inc.

HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C® , World Wide Web Consortium,Massachusetts Institute of Technology.

Java is a registered trademark of Sun Microsystems, Inc.

JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented andimplemented by Netscape.

SAP, R/3, xApps, xApp, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and other SAPproducts and services mentioned herein as well as their respective logos are trademarks or registered trademarksof SAP AG in Germany and in several other countries all over the world. All other product and service namesmentioned are the trademarks of their respective companies. Data contained in this document serves informationalpurposes only. National product specifications may vary.These materials are subject to change without notice. These materials are provided by SAP AG and its affiliatedcompanies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAPGroup shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Groupproducts and services are those that are set forth in the express warranty statements accompanying such productsand services, if any. Nothing herein should be construed as constituting an additional warranty.