Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

object oriented

Former Member
0 Likes
337

Hi frnds...

Can anyone tell me using Object oriented concept how to

convert parameters into select-options.

2 REPLIES 2
Read only

Former Member
0 Likes
310

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.

Read only

Former Member
0 Likes
310

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