cancel
Showing results for 
Search instead for 
Did you mean: 

regarding displaying webdynpro based on user

Former Member
0 Kudos

Hi

I have created web dynpro application which is basically a form and portal team has uploaded it on portal. Now requirement is to show the form for some users maintained in ztable and for other give message that they are not allowed.

I tried using WDDOINIT and using sy-uname given the message also but issue is, the form is displayed nonetheless. I donot want to show the form to user if he is not maintained in ztable.

Is there any way to achieve this.

Thanks

Aamir

Accepted Solutions (1)

Accepted Solutions (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi,

You can achieve your requirement as below


  • Embed an empty view in your window
  • Create an outbound plug TO_EMPTY_VIEW in your window
  • Create a navigation link in window for inbound plug of empty view
  • You need to show empty view after displaying error message & write the below code in WDDOINIT


      wd_this->wd_get_api( )->get_embedding_window_ctlr( )->fire_plug(

          plug_name  = 'TO_EMPTY_VIEW'

      ).

Please check the below document which suits your requirements

Hope this helps you.

Regards,

Rama

Former Member
0 Kudos

Thanks Rama,

Issue is resolved with your suggestion

ramakrishnappa
Active Contributor
0 Kudos

Thats good to hear

Answers (2)

Answers (2)

0 Kudos

hi,

Create two windows and two views

window1 -view1 with interactive form ,window2 -view2 with error message in wddoinit.

I think in ztable you have to maintain one username field .based on that in Component controller WDDOINIT mehod use the

SELECT statement from ZTABLE where username = sy-uname.

if workarea or internal table if not inital .

call you view1 with interactive form.

elsif workarea or internal table is not initial.

  call other window2 with popup error message.

endif.

Regards

Jayaprakash T

Gowtham
Contributor
0 Kudos

Hi Mohd,

Control the visibility of the form based upon your condition.

Gowtham