on 08-06-2014 3:22 PM
Hi All, I am trying to realign fields in account assignment tab of shopping cart based on account assignment category. Currently based on account assignment category a set number of fields will be displayed on the tab. Now I want to align these fields in a different order. For this I have written custom code in post-exit of Method WDMODIFYVIEW of view V_DO_ACCOUNT_DETAIL in WDC /SAPSRM/WDC_UI_DO_ACC. In here I need to realign the fields available for the particular account assignment category. Any lead in going ahead will be helpful. Regards, Depp
Solved!!. I followed a different approach than mentioned above by me.
I created two custom containers{ZLEFT & ZRIGHT} and filled the ZLEFT with left_container and re aligned ZLEFT { design time }according to requirement and filled ZRIGHT with required custom fields { design time } and aligned in required order.
I had to change only the binding and visibility at runtime.
Thanks,
D3pp
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Kiran & Rama.
I will try out the options you have mentioned. My approach & requirement( Sorry I didn't mention it elaborately enough..) goes like this.
In View Name: V_DO_ACCOUNT_DETAIL and Post-Exit of method WDMODIFYVIEW based on SPRO settings the different account assignment fields are displayed based on account assignment Category at runtime.
So at runtime I need to perform below two steps:
STEP 1: I need to move the required fields from LEFT_CONTAINER to RIGHT_CONTAINER in desired order.
STEP 2: I need to remove all the available fields at runtime from the LEFT_CONTAINER and add the in my desired order in the LEFT_CONTAINER.
Regards,
Depp
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deepak,
As Kiran suggested, you need to enhance the view layout and delete the elements using REMOVE_ELEMENT option and Create transparent containers and inside you can place the elements as per your requirement.
You can also do it by using code at runtime, please also check the below document
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,
Enhance the View V_DO_ACCOUNT_DETAIL, go to Layout, Right click on the block/ individual UI elemnts and click on Remove Element. Then create the UI elements in the order you prefer.
If you want to do it via coding in WDDOMODIFY view, you have to get the UI elements and then delete those and re create again in the order. You can refer this document:
hope this helps,
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
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.