on 11-21-2008 3:44 PM
Hi,
I have created a little WebDynpro-Application.
There are a lot of select-options-fields.
The requirement is to show the result which will be displayed within ALV table
on the next page. Briefly I need to pages. First page contains the select-options fields
and the second page must contain the ALV. How can I implement this requirement
whether the output will be shown on the second page. Do I need plugs ?
If so how does it work generally and what is about data transmission between those
two views. One Pgae has only SelOptions and the other one has the ALV in it.
Regards
sas
I would suggest you to create two Trays,
One tray for keeping the select options
Second tray is for showing the ALV output.
When press Execute which is supposed to be under Tray one on the select options, if it has values then collapse the tray and expand the ALV output Tray and do vise versa.
Hope this helps.
Cheers,
Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Erdem ,
you can achieve the functionality by creating the plugs and creating the ALV data node at
component controller level . Perform the following steps .
1. Create an inbound plug ( say INPLUG_1 ) and an outbound plug ( Say OUTPLUG_1 ) for view1 ( select option view ) .
2. Create an inbound plug ( say INPLUG_2 ) and an outbound plug ( Say OUTPLUG_2 ) for view2 ( ALV view )
3 . embed both the view into main window .
4. create navigation link between OUTPLUG_1<--->INPLUG_2 .... and between OUTPLUG_2<>INPLUG_1.
5.Create the data node for ALV at component controller level and Map it to the view1 and view2 both . ( I hope , you know how to implement an ALV ) .
6. On the action handler of Execute ( or Start Search ) read the select option and retrieve the ALV data
and bind it to ALV data node in your component controller. And then fire the plug OUTPLUG_1 to move to view 2..
7 . Create the back button in the view2 . In action handler of button . Fire the plug OUTPLUG_2 to go back to the first view .
i hope this will solve your problem .
Regards
Vivek
PS: please provide the points if answer is helpful .
ABAP Web Dynpro is not like the traditional ABAP where you would have the pages concept. If you have ALV then you will see the scrolls but not pages. So there are many options how your issue will besolved, some of them is already mentioned in the thread. One more option is create 2 flags as an attribute say 'visibility' as flag(char1 field). And then bind this to first group or viewUIelement to visible property, and the 2nd to ALV. Then set is as 'X' or space vice virsa when press the search button. e.g on search make flag1 = '' and flag2 = 'X' and then call the set_attribute method. So by doing this when you will press the search button select options will be dissapeared and alv will be displayed. You can do the same for going back to see the select options.
By this way you can acheive this by sitting in one view.
Hope it works.
Please go through my WIKI
https://wiki.sdn.sap.com/wiki/x/QICmAw
Let me know if you still have problem with it.
Add as many WDR_SELECT_OPTIONS in the webdynpro components
Map the WDR_SELECT_OPTIONS in the View,
then follow the similar procedure of how you do it for one select option.
Follow the blog for how to create one select option
Procedure is the same for one select option or multiple.
Cheers,
Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Joshi,
I have created an application based on this tutorial.
And now after your last posting all what I did was I have copyied the Main View and
passed a new name and created navigation links between them according to your
instruction.
If I run this application and klick on search button I get error message:
Note
The following error text was processed in the system E56 : Access via 'NULL' object reference not possible.
The error occurred on the application server apssap13_E56_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: WDDOINIT of program /1BCWDY/4JZAQK4KUMPQVIA7OUFX==CP
Method: IF_WDR_VIEW_DELEGATE~WD_DO_INIT of program /1BCWDY/4JZAQK4KUMPQVIA7OUFX==CP
Method: DO_INIT of program CL_WDR_DELEGATING_VIEW========CP
Method: INIT_CONTROLLER of program CL_WDR_CONTROLLER=============CP
Method: INIT_CONTROLLER of program CL_WDR_VIEW===================CP
Method: INIT of program CL_WDR_CONTROLLER=============CP
Method: GET_VIEW of program CL_WDR_VIEW_MANAGER===========CP
Method: BIND_ROOT of program CL_WDR_VIEW_MANAGER===========CP
Method: IF_WDR_VIEW_MANAGER~MAKE_VISIBLE of program CL_WDR_VIEW_MANAGER===========CP
Method: PERFORM_NAVIGATION of program CL_WDR_CLIENT_APPLICATION=====CP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.