on 02-19-2014 8:08 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mohd,
Control the visibility of the form based upon your condition.
Gowtham
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.