Skip to Content

GAF steps in "Carry out sourcing"

Hi all gurus,

kind of technical question; I'm working on GAF FPM framework in "Carry Out Sourcing" in SRM 7.02.

I'd like to know if there's a way, in:

/SAPSRM/WDC_DO_SOCO_GAF_2

-> view V_AO_SOCO_GAF_2

method WDDOMODIFYVIEW

to understand the view is going to be refreshed after passing from GAF's step 1 to step 2.

IF FIRST_TIME = 'X' clause is not effective as FIRST_TIME is set to abap_true only the very first time the view is triggered; if the user goes from Step1 to Step2, then come back to Step1 and again switch to Step2 ... first_type is empty. 😔

I need to trigger some custom action each time the user comes from another step to step2.

Thanks again for any help or suggestion you'll give me 😉

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Sep 28, 2013 at 09:24 AM

    Hi Matteo,

    you can try following.

    1. Create a Z-class with STATIC attribute.

    2. Make a pre- enhancement in the method /SAPSRM/CL_FPM_OVRIDE_GAF

    There you can determine event and navigation step. Probably you have to handle 3 events:

    a) Next from 1st Step

    b) Prev. from 3rd Step

    c) Click on 2nd step in the navigation area.

    If it is your case - set a static attribute of your Z-class to 'X'.

    3. In the WDDOMODIFYVIEW, if Z-class attribute = 'X' perform you actions  and clear an attribute

    Regards

    K

    P.S. Warning!!!

    /SAPSRM/CL_FPM_OVRIDE_GAF works for all GAF applications. You can check typeof(me) it will be /SAPSRM/CL_FPM_OVRIDEGAF_SOCO. Actually you can make an enhancement there.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member L0rd TH

      Hi,

      we can get run time information as below

      DATA: LO_FPM TYPE REF TO IF_FPM,

              LS_FPM_INFO TYPE  FPM_S_RUNTIME_INFO.

      DATA: LO_OIF_INFO TYPE REF TO IF_FPM_GAF_INFO,

              LS_CURRENT_STATE TYPE FPM_S_GAF_INFO,

              LS_TARGET_STATE TYPE FPM_S__GAF_INFO,

        LO_FPM = CL_FPM=>GET_INSTANCE( ).

        LS_FPM_INFO = LO_FPM->GET_RUNTIME_INFO( ).

      LO_GAF_INFO ?= LS_FPM_INFO-FLOORPLAN_INFO.

        LS_TARGET_STATE = LO_GAF_INFO->GET_TARGET_STATE( ).

      LS_current_STATE = LO_GAF_INFO->GET_CURRENT_STATE( ).

      I hope this will help

      Regards,

      Sreenivas.