Skip to Content
0
Former Member
Apr 04, 2013 at 12:45 PM

How to Hide a substep

16 Views

Hi All,

As per my scenario I need to hide a sub-step when user selects a check box in before step, i troed the following code ..which throwing ab exception in override method , than I created a post exit to the override ...but still the same..please go through the code and scren shots and help me

IF LS_CURRENT_STATE-MAINSTEP = 'MAINSTEP_1' AND LS_CURRENT_STATE-SUBSTEP = '' AND ( IO_GAF->MO_EVENT->MV_EVENT_ID = 'FPM_NEXT_STEP' ).

IF LV_SUBSTP_2A eq 'X'.

TRY.

CALL METHOD IO_GAF->HIDE_SUBSTEP

EXPORTING

IV_VARIANT_ID = 'VARIANT1'

IV_MAINSTEP_ID = 'MAINSTEP_2'

IV_SUBSTEP_VARIANT_ID = 'SUB_STEP_VARIANT1'

IV_SUBSTEP_ID = 'SUBSTEP_2_1'.

catch CX_FPM_FLOORPLAN INTO EXCEPSTR. " Floorplan exceptions

ENDTRY.

Data strExce TYPE string.

STREXCE = EXCEPSTR->GET_LONGTEXT( ).

CALL METHOD lo_message_manager->REPORT_SUCCESS

EXPORTING

MESSAGE_TEXT = STREXCE.

ENDIF.

ENDIF.

when I use the above code am getting Subview does not exist or cannot be accessed at the moment.error,

2.How to hide the Next/Previous buttons on conditional based

Thanks

Rajesh


Attachments

substep-1.jpg (36.8 kB)
step2.jpg (14.6 kB)
step1.jpg (21.5 kB)