You are on page 1of 1

SAP

Implementing Screen Enhancem


REFX ForgeneralinformationonhowtoimplementBusinessAddIns,refertothesection
Theuserofthescreenenhancementshouldperformthefollowingsteps:
1. CreateascreenoftheSubscreentype.Arrangetherequiredfieldsonthescreen.

2. Writetheprogramforthescreenbycreatingeitheramodulepoolorafunctiongrou

Topinclude:
DATA:exitTYPEREFTOif_ex_badi_screen,
flightTYPEsflight.
(REFX) TABLESsflview.

AtPBOtime:
MODULEstatus_0100OUTPUT.
IFexitISINITIAL.
CALLMETHODcl_exithandler=>get_instance_for_subscreens
PDF
CHANGING
PDF instance=exit
EXCEPTIONS
OTHERS=6.

ClassicBAdIs ...
ENDIF.
ArchitectureofClassicBAdIs CALLMETHODexit>get_data_from_screen
IMPORTING
ComparisonofClassicBAdIswithPreviousTechniques
flight=flight
DefinitionofaClassicBAdI EXCEPTIONS
reserved=1
CallingaClassicBAdI OTHERS=2.

ImplementingaClassicBAdI ...
SELECTSINGLE*FROMsflview
ImplementingMethodsofClassicBAdIs WHEREcarrid=flightcarridAND
connid=flightconnidAND
FilterDependentClassicBAdIs
fldate=flightfldate.
ClassicMultipleUseBAdIs ..
ENDMODULE.
MenuEnhancements AtPAItime:

ScreenEnhancements Ifdatahasbeenchanged,themethodPUT_DATA_TO_SCREENiscalledatPAI.
MODULEuser_command_0100INPUT.
DefiningScreenEnhancements CALLMETHODexit>put_data_to_screen
EXPORTING
ImplementingScreenEnhancements
flight=flight
SortingClassicBAdIImplementations EXCEPTIONS
reserved=1
ProcedureforImportingClassicBAdIs OTHERS=2.

IFsysubrc<>0.
...