Skip to Content
0
Former Member
Jun 07, 2013 at 07:46 AM

Function Module CNECP_MAINTAIN

185 Views

Hello experts.

I am using this function module. After a lot of tests i have been able (more or less) to make it work. I have one question, at the beguining of the function module it has this control:

CALL FUNCTION 'PSSFAW_CHECK_SWITCH_ACTIVE_EXT'


EXPORTING


i_switch_name = 'PS_EXTN_SFWS_UI_1'


IMPORTING


e_active = variable1


EXCEPTIONS


method_not_found = 1


OTHERS = 2.


After executing this function it returns the value of variable1 equal to space, and it should come equal to X. By debugging i have change this value and the function works but i need to know why this variable1 comes in blanck and what should i do to fix it.

IF variable1 <> 'X' .


MESSAGE a001(prgr_ntw_wbs) INTO lv_message_text .


CALL FUNCTION 'ECP_ADD_MESSAGES'


EXPORTING


message = lv_message_text


TABLES


messages = messages.


RETURN.


ENDIF.

Thanks.

Alex