Skip to Content
0

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

Jul 11, 2017 at 04:45 AM

73

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Serhan Er Jul 13, 2017 at 07:40 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded