‎2006 Sep 26 6:35 AM
Hi frnds...
Can anyone tell me using Object oriented concept how to
convert parameters into select-options.
‎2006 Sep 26 6:47 AM
parameters and select options are features on the selection screen.THE oops concept is only used in module pool programming and not on selection screens.
‎2006 Sep 26 10:30 AM
hi Satish,
INCLUDE ZPPR3490_SLOC_VAR_CL.
SELECTION-SCREEN BEGIN OF BLOCK ONE WITH FRAME TITLE TEXT-001.
PARAMETERS : P_WERKS TYPE WERKS_D obligatory, "Plant
P_LGORT TYPE LGORT_D. "Storage Location
SELECT-OPTIONS: S_BUDAT FOR SY-DATUM. "Date
SELECTION-SCREEN END OF BLOCK ONE.
"This way you can pass the selection screen paramters
"to the methods of your class.
*-- start of selection.
START-OF-SELECTION.
DATA : O_INV TYPE REF TO LCL_INV_VAR.
CREATE OBJECT O_INV.
*--Call method for selecting the data
CALL METHOD O_INV->SELECT_INV_DATA
EXPORTING
E_WERKS = P_WERKS
E_LGORT = P_LGORT
E_BUDAT = S_BUDAT[].
*--end of selection
END-OF-SELECTION.
*--Call method for displaying the variance report
CALL METHOD O_INV->DISPLAY_INV_DATA
EXPORTING
E_WERKS = P_WERKS
E_LGORT = P_LGORT
E_BUDAT = S_BUDAT[].
Regards,
Richa