cancel
Showing results for 
Search instead for 
Did you mean: 

Realign fields in account assignment tab of Shopping cart

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (3)

Answers (3)

Former Member
0 Kudos

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

former_member184578
Active Contributor
0 Kudos

Hi,

If you are creating UI elements at runtime, as suggested, do it via coding in post exit of DOMODIFYVIEW. Get the UI elements, delete them and create in the order as required. Check the documents mentioned above for reference.

Regards,

Kiran

ramakrishnappa
Active Contributor
0 Kudos

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

former_member184578
Active Contributor
0 Kudos

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