36
Bala Nadella Advanced ABAP 3.x to 4.6 Conversion

modification Assitant.ppt

Embed Size (px)

DESCRIPTION

modification Assitant

Citation preview

Page 1: modification Assitant.ppt

Bala Nadella

Advanced ABAP

3.x to 4.6 Conversion

Page 2: modification Assitant.ppt

Bala Nadella

Table of Contents

5-1

Chapter 1. Modification Adjustment

Chapter 2. Custom Controls

Chapter 3. Smart Forms

Page 3: modification Assitant.ppt

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

Page 4: modification Assitant.ppt

Bala Nadella

Changing the SAP Standard

Page 5: modification Assitant.ppt

Bala Nadella

Personalization

Page 6: modification Assitant.ppt

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

Page 7: modification Assitant.ppt

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

Page 8: modification Assitant.ppt

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

Page 9: modification Assitant.ppt

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

Page 10: modification Assitant.ppt

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

Page 11: modification Assitant.ppt

Bala Nadella

Business Add- Ins Architecture

Page 12: modification Assitant.ppt

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 )

Page 13: modification Assitant.ppt

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.

Page 14: modification Assitant.ppt

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

Page 15: modification Assitant.ppt

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.

Page 16: modification Assitant.ppt

Bala Nadella

Modifications overview SE95

Page 17: modification Assitant.ppt

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.

Page 18: modification Assitant.ppt

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

Page 19: modification Assitant.ppt

Bala Nadella

Modifications Beginning from Release 4.5

Page 20: modification Assitant.ppt

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

Page 21: modification Assitant.ppt

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

Page 22: modification Assitant.ppt

Bala Nadella

Tools Supported by Modification Assistant

• ABAP Editor • Function Builder • Screen painter • Menu Painter • Text Elements • ABAP Dictionary • Document Maintenance

Page 23: modification Assitant.ppt

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.

Page 24: modification Assitant.ppt

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

Page 25: modification Assitant.ppt

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

Page 26: modification Assitant.ppt

Bala Nadella

Screen painter (2)

• Condition for automatic adjustment

No layout conflicts

No flow logic changes in imported screen

Page 27: modification Assitant.ppt

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

Page 28: modification Assitant.ppt

Bala Nadella

Text Elements

• Support Replacement of existing text elements Insertion of new text elements.

• Condition for automatic adjustment No naming conflicts

Page 29: modification Assitant.ppt

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.

Page 30: modification Assitant.ppt

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

Page 31: modification Assitant.ppt

Bala Nadella

Adjusting R/3 Repository Objects (SPAU)

Page 32: modification Assitant.ppt

Bala Nadella

Adjustment with Modification AssistantPrograms

Page 33: modification Assitant.ppt

Bala Nadella

Adjustment with Modification AssistantScreen painter

Page 34: modification Assitant.ppt

Bala Nadella

Adjustment with Modification AssistantMenu painter

Page 35: modification Assitant.ppt

Bala Nadella

Adjustment with Modification AssistantDocumentation

Page 36: modification Assitant.ppt

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