cancel
Showing results for 
Search instead for 
Did you mean: 

Switch off / on fcodes in RF transaction based on exception codes

Former Member
0 Kudos

I have a requirement to disable a function code based on few exception codes. But the function code should be enabled for another exception code along with few other function codes.

I know there are SET_FCODE_OFF, SET_FCODE_ON methods in class /SCWM/CL_RF_BLL_SRVC.

But my question is where can I call these methods? Is that within a BADI or screen level?

Is there a way to get next screen number from current RF screen so that I can disable the fcode based on the next screen number and exception code conditions? If so, which class / method should I use to get next screen number.

Appreciate your suggestions!

Thanks,

JKV

Accepted Solutions (1)

Accepted Solutions (1)

former_member209095
Contributor
0 Kudos

Hello Joby,

Follow this path:

IMG: SCM Extended Warehouse Management >> Extended Warehouse Management >> Business Add-Ins (BAdIs) for Extended Warehouse Management >> Mobile Data Entry >> Flow Processing of RF Framework >> BAdI: Before Call of Defined Flow Step & BAdI: Processing After Call of Defined Flow Step.

In my understanding, you want to disable a function code based on the exception you entered on the screen? Then you might want to use "after flow badi" so that your exception code gets checked first, then you influence function codes.

The other requirement, you can use "before flow badi" where you have the screen number in class /SCWM/CL_RF_BLL_SRVC buffer. But make sure to check exception codes first.

Remember, these BAdI's are called before/after every screen and SAP can make changes on standard screens or flow. Make sure you make changes at the right time.

Best regards

S.E.

Answers (0)