modification assitant.ppt
DESCRIPTION
modification AssitantTRANSCRIPT
Bala Nadella
Advanced ABAP
3.x to 4.6 Conversion
Bala Nadella
Table of Contents
5-1
Chapter 1. Modification Adjustment
Chapter 2. Custom Controls
Chapter 3. Smart Forms
Bala Nadella
Modification Adjustment – Chapter 1
• Changing the SAP Standard• Personalizing the Application• Business Add-Ins • Customer Exits • Modification Assistant• Adjustment with Modification Assistant • Adjustment without Modification Assistant
Bala Nadella
Changing the SAP Standard
Bala Nadella
Personalization
Bala Nadella
Personalization possibilities ( 1 )
5-2
• Hiding Screen Elements
• Defining Default Values for Input Fields
• Revoking an Element's Ready for Input Status
• Adjusting Table Controls
• Simplifying Selection Screens
Bala Nadella
Personalization possibilities ( 2 )
• Personalizing the Possible Entries Help
• Moving Fields on a Screen
• Changing Field Texts
• Including Graphics and Text
• Defining Additional Elements on a Screen
Bala Nadella
Transaction Variants
Defining Transaction variant
Tools AcceleratedSAP Personalization (SHD0)
Screen Can be included in a variant Normal Screens Dialog Screens Sub Screens
Screens can not be included in a variant
Help and possible entries help (F1, F4) List display (and selection screens) Confirmation dialog boxes Various system functions (status display, save list...)
Bala Nadella
Screen Variants
Screen variants allow you to simplify screen editing by:
• Inserting default values in fields
• Hiding and changing the ready for input status of fields
• Hiding and changing the attributes of table control columns
Definition
Choose Goto Screen variants from the initial transaction variant maintenance screen to maintain screen variants
Bala Nadella
Functions for Transaction & Screen Variants
Transaction Variant
RS_HDSYS_GET_TC_VARIANT
RS_HDSYS_CALL_TC_VARIANT
Screen Variants
RS_HDSYS_GET_SC_VARIANT
RS_HDSYS_SET_SC_VARIANT
Bala Nadella
Business Add- Ins Architecture
Bala Nadella
Business Add- Ins
Defining the Business Add- Ins (SE18)
Tools ABAP Workbench Utilities Business Add-Ins
Implementing Business Add- Ins (SE19)
Tools -> ABAP Workbench -> Utilities -> Business Add-Ins
( Click on the corresponding activity in the Implementation Guide )
Bala Nadella
Calling Business Add- Ins
Calling the Business Add- Ins
class cl_exithandler definition load. "declarationdata exit type ref to if_ex_businessaddin. "interface referencedata word(15) type c value 'Business Add-in'. "string you want to change
start-of-selection. call method cl_exithandler=>get_instance "factory method call changing instance = exit. write:/'Please click here'.
at line-selection. write:/ 'Original word: ',word.
call method exit->methode "add-in call changing parameter = word.
write:/ 'Changed word: ',word.
Bala Nadella
Customer Exits (1)
Advantages:
• Customer Exits do not affect standard SAP source code
• Customer Exits do not affect software updates
Types of Exits
Menu Exits
Screen Exits
Function Module Exits
Bala Nadella
Customer Exits (2)
Locating Applications that have Exits
ABAP Work Bench -> Utilities Enhancements Project management Utilities SAP enhancements
Locating through Application Hierarchy ABAP Workbench ->Overview -> Application hierarchy
1. Place the cursor on the eg. Materials Management branch of the Application Hierarchy tree and choose Sel./desel. sub-tree.
2. Choose Repository Infosys. The system lets you search for any objects assigned to a particular application.
3. Expand the Environment sub-tree in the Repository Information System. 4. Expand the Exit Techniques sub-tree. Choose either Enhancements or
Projects for specific customer exit by double-clicking. 5. Choose Execute.
Bala Nadella
Modifications overview SE95
Bala Nadella
Modifications Before Release 4.5
Form user_command. Case sy-ucomm. when fun1.
* If condition. “ SAP Original If condition OR mycondition . “ SDK0005378 25.08.1999 perform handle_fun1.
Else.…Endif.
When fun2.Perform handle_fun2.
When myfun. ”SDK0005466 19.08.1999
Perform handle_myfun. “SDK0005466 19.08.1999 Endcase.Endform.
Bala Nadella
Upgrade Before Release 4.5
.SAP NEW
Insert
Delete
Delete
Insert
Insert
Insert
SAP OLD (Customer modified)
If Condition. “ SAP Original
If Condition Or MyCondition.“SDK0005378 25.08.1999
When myfun. “SDK0005378 25.08.1999
perform handle_myfun. “SDK0005378 25.08.1999
Bala Nadella
Modifications Beginning from Release 4.5
Bala Nadella
Upgrade After Release 4.5: Automatic
.SAP NEW SAP Old Modified
Form f1.
Endform.
Form f1.
Endform.
FORM user_command
<not modified>
Endform.
FORM user_command
< modified>
Endform.
Form f3
Endform.
Form f3
Endform.
Automatic
Bala Nadella
Upgrade after Release 4.5: Semiautomatic
.SAP NEW SAP Old Modified
Form f1.
Endform.
Form f1.
Endform.
FORM user_command
<not modified>
Endform.
FORM user_command
< modified>
Endform.
Form f3
Endform.
Form f3
Endform.
Replace
Bala Nadella
Tools Supported by Modification Assistant
• ABAP Editor • Function Builder • Screen painter • Menu Painter • Text Elements • ABAP Dictionary • Document Maintenance
Bala Nadella
ABAP – Editor
• Support Deletion, insertion, and replacement of ABAP Granularity (Sub unit)
• Methods
• Subroutines
• Modules
• Events
• Global data
• Condition for automatic adjustment Sub unit modified but not changed.
Bala Nadella
Function Builder
• Support Addition of new function modules to a standard function group Compatible enhancements to a function interface Source code modification similar to subroutine modification
• Conditions for automatic adjustment No naming conflicts (parameters and functions) Imported function source code not changed
Bala Nadella
Screen painter (1)
• Support Full Screen
Addition of new fields,texts, subsceens Layout modifications
• Fields Attributes(visibility, length,..)
• Flow Logic Modification of events (deletion, insertion and
replacement) Addition of new events
Bala Nadella
Screen painter (2)
• Condition for automatic adjustment
No layout conflicts
No flow logic changes in imported screen
Bala Nadella
Menu Painter
• Support Addition and modification of
• Status • Menu bars • Menus• Functions • Pushbuttons• Titles
• Condition for automatic adjustment. No naming conflicts Sufficient space for new entries
Bala Nadella
Text Elements
• Support Replacement of existing text elements Insertion of new text elements.
• Condition for automatic adjustment No naming conflicts
Bala Nadella
ABAP Dictionary
• Support Appendage of new fields to tables, structures and views Insertion of single search helps in composite search
helps Overview of IS/CS include structures Replacement of data element texts
• Condition for automatic adjustment No naming conflicts.
Bala Nadella
Document Maintenance
• Support Insertion of new text at beginning and at the end of
existing documentation. Replacement of Documentation
• Condition for automatic adjustment No naming conflicts
Bala Nadella
Adjusting R/3 Repository Objects (SPAU)
Bala Nadella
Adjustment with Modification AssistantPrograms
Bala Nadella
Adjustment with Modification AssistantScreen painter
Bala Nadella
Adjustment with Modification AssistantMenu painter
Bala Nadella
Adjustment with Modification AssistantDocumentation
Bala Nadella
Adjustment without Modification Assistant
• Objects where no version management is possible – Eg. Transaction Codes
• Objects where version management is possible – Eg. ABAP Dictionary objects