Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How Restrict the Document overflow button at Va03.

former_member196331
Active Contributor
0 Kudos

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.

1 ACCEPTED SOLUTION

suresh_kutam
Participant
0 Kudos

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.

9 REPLIES 9

suresh_kutam
Participant
0 Kudos

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.

0 Kudos

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.

0 Kudos

Hi,

I hope u r correct.

Is there any other Include or Where can i write the code...

christophe_hu2
Participant
0 Kudos

Hello,

Please can you have a look to the BADI BADI_SD_DOCUMENTFLOW.

You can implement your logic there.

Thank you.

Best regards,

Christophe.

0 Kudos

I will try it. Give me some time please

Any way thanks for your reply..

0 Kudos

You are welcome.

suresh_kutam
Participant
0 Kudos

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

0 Kudos

Ok i will check it.

0 Kudos

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.