‎2008 Jul 22 11:06 AM
Hi Guy's,
please help me, want to change the parameter into select-options (fund center-fictr). actual code is like this:
whrere i need to change the development.
fundcenter contain table is FMFCTR.
IF NOT sfictr-low IS INITIAL.
IF sub = ' '. " No subordinates
i_fcsel-sign = 'I'.
i_fcsel-option = 'EQ'.
i_fcsel-low = sfictr-low.
APPEND i_fcsel.
ELSE.
CALL FUNCTION 'Z_HR_GET_FUND_CENTERS'
EXPORTING
z_fund_center = sfictr-low
TABLES
z_fundctrs = i_fcsel
EXCEPTIONS
fund_center_not_valid = 1
other_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
i_fcsel-sign = 'I'. i_fcsel-option = 'EQ'.
i_fcsel-low = sfictr-low.
APPEND i_fcsel.
ENDIF.
ENDIF.
ENDIF.
Thanks,
Sai.
‎2008 Jul 22 11:16 AM
Hi Sai
IF NOT sfictr-low IS INITIAL.
IF sub = ' '. " No subordinates
i_fcsel-sign = 'I'.
i_fcsel-option = 'EQ'.
i_fcsel-low = sfictr-low.
APPEND i_fcsel.
ELSE.
CALL FUNCTION 'Z_HR_GET_FUND_CENTERS'
EXPORTING
z_fund_center = sfictr-low
TABLES
z_fundctrs = i_fcsel
EXCEPTIONS
fund_center_not_valid = 1
other_error = 2
OTHERS = 3.
IF sy-subrc 0.
i_fcsel-sign = 'I'. i_fcsel-option = 'EQ'.
i_fcsel-low = sfictr-low.
APPEND i_fcsel.
ENDIF.
ENDIF.
ENDIF.
You already used select-options for fundcenter i.e. sfictr.
If I am wrong then please explain your question with the sample code.
Regards,
CoolDeep.
‎2008 Jul 22 11:11 AM
‎2008 Jul 22 11:16 AM
Hi,
covert your parameter into select-option as bellow
declare type.
select-options:
(Varname) for (typename)
check the link for example code
http://sap.niraj.tripod.com/id33.html
regards,
Anirban
‎2008 Jul 22 11:16 AM
Hi Sai
IF NOT sfictr-low IS INITIAL.
IF sub = ' '. " No subordinates
i_fcsel-sign = 'I'.
i_fcsel-option = 'EQ'.
i_fcsel-low = sfictr-low.
APPEND i_fcsel.
ELSE.
CALL FUNCTION 'Z_HR_GET_FUND_CENTERS'
EXPORTING
z_fund_center = sfictr-low
TABLES
z_fundctrs = i_fcsel
EXCEPTIONS
fund_center_not_valid = 1
other_error = 2
OTHERS = 3.
IF sy-subrc 0.
i_fcsel-sign = 'I'. i_fcsel-option = 'EQ'.
i_fcsel-low = sfictr-low.
APPEND i_fcsel.
ENDIF.
ENDIF.
ENDIF.
You already used select-options for fundcenter i.e. sfictr.
If I am wrong then please explain your question with the sample code.
Regards,
CoolDeep.
‎2008 Jul 22 2:30 PM
Hi kuldeep,
Sfictr is the parameter, want to change that one as select-options.
whrere i need to change the development.
fundcenter contain table is FMFCTR.
IF NOT sfictr-low IS INITIAL.
IF sub = ' '. " No subordinates
i_fcsel-sign = 'I'.
i_fcsel-option = 'EQ'.
i_fcsel-low = sfictr-low.
APPEND i_fcsel.
ELSE.
CALL FUNCTION 'Z_HR_GET_FUND_CENTERS'
EXPORTING
z_fund_center = sfictr-low
TABLES
z_fundctrs = i_fcsel
EXCEPTIONS
fund_center_not_valid = 1
other_error = 2
OTHERS = 3.
IF sy-subrc 0.
i_fcsel-sign = 'I'. i_fcsel-option = 'EQ'.
i_fcsel-low = sfictr-low.
APPEND i_fcsel.
ENDIF.
ENDIF.
ENDIF.
Thanks,
Sai.
‎2008 Jul 22 11:19 AM
Hi,
IF NOT sfictr-low IS INITIAL.
IF sub = ' '. " No subordinates
select-options i_fcsel for 'specify type'.
w_temp = i_fcsel-low .
ELSE.
CALL FUNCTION 'Z_HR_GET_FUND_CENTERS'
EXPORTING
z_fund_center = w_temp
TABLES
z_fundctrs = i_fcsel
EXCEPTIONS
fund_center_not_valid = 1
other_error = 2
OTHERS = 3.
IF sy-subrc 0.
select-options i_fcsel for 'specify type'.
ENDIF.
ENDIF.
ENDIF.
Regard,
Sandeep
‎2008 Jul 22 11:20 AM
u need to change the fm Z_HR_GET_FUND_CENTERS with table parameter sfictr as select options or range table as output.
Amitava