08-17-2015 1:07 PM
HI,
I have one requirement, I.e I need to Restrict the users , after i click on the Document Over flow button,
Please have a look on below attached image.
here i need to Consider two things or I need to restrict two Important point. User may be Press F5 button , I think this is called Function key.
next After click on the Button Document Over flow button. But i dont know how can i achieve this.
After a lot of search i found that.
MV45AFZZ is the Include it is firing if i open the va03.
But After that i dont know how could i write the logic. Has any body faced this type of problem.
Please Inform me. I need your valuable suggestions.
08-17-2015 1:51 PM
Hello NewB,
MV45AFZZ is not the right place where u are trying to set the code.
It is calling when you are coming from from that screen.
if sy-ucomm = 'IFLU'.
Should Raise some message or LEave screen.
Endif.
08-17-2015 1:51 PM
Hello NewB,
MV45AFZZ is not the right place where u are trying to set the code.
It is calling when you are coming from from that screen.
if sy-ucomm = 'IFLU'.
Should Raise some message or LEave screen.
Endif.
08-17-2015 1:58 PM
HI,
Thanks For your reply.
May i know Where can i write this code..
Can u please tell me.
if sy-ucomm = 'IFLU'.
Should Raise some message or LEave screen.
Endif.
08-17-2015 1:59 PM
Hi,
I hope u r correct.
Is there any other Include or Where can i write the code...
08-17-2015 2:01 PM
Hello,
Please can you have a look to the BADI BADI_SD_DOCUMENTFLOW.
You can implement your logic there.
Thank you.
Best regards,
Christophe.
08-17-2015 2:04 PM
I will try it. Give me some time please
Any way thanks for your reply..
08-17-2015 2:05 PM
08-17-2015 2:09 PM
This is only one scenario - let see if this scenario work we can apply this in another scenario ...
Second scenario is u can call flow of document from VA03 first screen - that time this form is not calling - we can see that later.
Let see first scenario how it works.
In MV45AFZZ it self - try under this form - this is the right place of triggering...
FORM USEREXIT_MOVE_FIELD_TO_VBAK.
If sy-tcode = 'VA03'.
if sy-ucomm = 'IFLU'.
MESSAGE 'do not have have access' type 'E'.
OR
Leave to SCREEN 4701.
endif.
endif.
Thanks,
SK
08-17-2015 2:14 PM
08-17-2015 2:34 PM
Hi,S K
Thanks for Reply.
I hop it's working.
I need a small clarification. Can any body tell me, What is the reason behind it.
If i press the icon (Document flow ) code is triggering.
If i press the f5 function key also the code is triggering.
I was thought i need to implement the two logic's for Ac hiving My Target.
But Below code is working for two scenarios may i know why.
if sy-tcode = 'VA02'.
if sy-ucomm = 'IFLU'.
MESSAGE 'do not have have access' type 'E'.
endif.
ENDIF.
Thanks For your reply...Dear Sk, I will Close the thread So-only. Definitely.