on 12-19-2013 1:06 PM
Dear Experts,
I am using 3 alv Component usage in my view for 3 different tables. Based on a condition in the drop down field i will display any one of the table.
For the first time the ALV is displaying fine. But when the other type of value is selected in the drop down the ALV Component usage already exist for the other usage and it is not creating the new component usage.
I tried even deleting the compont usage and creating again still its not displaying the alv table.
lv_y_alv_cmp_usage = wd_this->wd_cpuse_z_year_alv_usage( ).
IF lv_y_alv_cmp_usage->has_active_component( ) IS INITIAL.
lv_y_alv_cmp_usage->create_component( ).
ELSE.
lv_y_alv_cmp_usage->delete_component( ).
lv_y_alv_cmp_usage->create_component( ).
ENDIF.
Kindly give some suggestions.
Thanks
Nalla B
Hi Nalla,
You need not create instances multiple times. try to reuse the instances.
In your previous reply, I have noticed output is blank, can you debug and check whether you are able to fetch data from DB and binding data to the node correctly or not.
Thanks & Regards,
Sankar Gelivi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nalla,
I would suggest you to use only one usage and populate the data based on the user selection in the drop down.
and if you insist to follow same approach you need to refer different usages.
say the other two are ALV_V1 AND ALV_V2.
wd_this->wd_cpuse_alv_v1( ).
wd_this->wd_cpuse_alv_v2( ).
Regards
Anurag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Give component usage with two different names.
Go through this document http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90b5f165-f4b8-2d10-39bf-e2b59da7f...
Regards,
Sreenivas.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sreenivas,
I have used three different names. But for the first time the component instatntiation is working fine for all the three ALVs. For the second time since it has an active component usage already i am deleting and creating it again.
Then also its not displaying the ALV Table. The output is Blank.
Kindly suggest where it went wrong.
Thanks,
Nalla B
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.