Skip to Content
avatar image
Former Member

Realign fields in account assignment tab of Shopping cart

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

ACC_TAB.png (122.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 13, 2014 at 11:55 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 07, 2014 at 04:19 AM

    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: Auto Align UI Elements Dynamically in Web Dynpro ABAP

    hope this helps,

    Regards,

    Kiran

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 07, 2014 at 05:01 AM

    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

    How to Hide UI Elements & Adjust View Layout Dynamically in Web Dynpro ABAP

    Hope this helps you.

    Regards,

    Rama

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 07, 2014 at 06:48 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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