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

Function Module CNECP_MAINTAIN

Former Member
0 Likes
1,310

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

3 REPLIES 3
Read only

Former Member
0 Likes
1,011

PS_EXTN_SFWS_UI_1 is a switch.

It can be seen in transaction SFW1.

Read about Switch Framework concept and decide whether it needs to be activated.

Read only

0 Likes
1,011

Hello Manish.

How does SFW1 works. It seems the switch is active but the error still remains.

I have tried to modify the switch but it tells me to register the objet.

I have seen that there is one parameter that is in OFF. Maybe it has to be on.

Do i have to register the object?. Is it dangerous?.

Thanks.

Alex

Read only

denis_skuridin
Explorer
0 Likes
1,011

Hi Alex,

I'm going to use this FM for Excel-Upload of costs to ECP. You write, that you had some troubles to make this FM working. Could you please give some tips/hints concerning this FM?

Thanks,

Denis