Skip to Content

Metadata config in SRM : Configure Generic Field Display on User Interface_How to get 2 custom fields in 1 row

Hello experts,

I am adding two custom fields in SC item via Metadata configuration.

I am able to see new fields in SC item details tab.

My requirement is to show both of these new fields in a single line. Currently it is coming in 2 different lines.

There is option given by SAP via "Configure Generic Field Display on User Interface" where various options are available. I tried many combinations but it is not coming properly.

I am expecting it to achieve without modifying WebDynpro as I still assume that it is achievable by Metadata config.

Can someone please help me with this.

Thanks in advance,

Shyam

Field Display.jpg (59.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    Dec 27, 2013 at 05:54 PM

    Hello all,

    Thanks a lot for your inputs.

    Since I didn't received any suggestion on how to achieve it using only Meta-data config, I did tried enhancing the Standard WebDynpro view and to my surprise, it is really very simple.

    For a direct requirement, you don't even need to write a single line of code. Data automatically flows between database table <-> WebDynpro screen.

    I am closing this thread now.

    Warm Regards,

    Shyam Agrawal

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Vinita,

      You can find required steps at many links, still I am adding here:

      say for example, we want to add 2 custom fields in Shopping Cart line item screen.

      1) add two fields at below path:

      SPRO -> SAP Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> Extensions and Field Control (Personalization) -> Configure Customer Fields -> Define Customer Fields on Item Level

      add in 2 structures from pop-up:

      a. Append for Customer Cross-Document Item Database Fields(to have it added in table BBP_PDISC)

      b. Append for Customer Fields on Confirmation Item(to add it for SC line item)

      2) then add metadata for these 2 fields at below path:

      SPRO -> SAP Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> Extensions and Field Control (Personalization) -> Configure Field Control -> Configure Control for Fields on Item Level -> Metadata for Fields on Item Level

      Structure field name : Same as added in structures added above

      Object Type : BUS2121

      Field Visible : Yes

      Field Editable : Yes

      Now metadata part is done.

      Now time for WD enhancement: Open in SE80 as below(for Non-limit SC)

      Web-Dynpro component: /SAPSRM/WDC_DODC_SC_I_BD

      View: V_ V_DODC_SC_I_BD

      Click on enhancement and give details for enhancement(starting with Z*)

      Once saved, add these 2 fields in Context tab of View via appending from structure.

      This will make custom fields available in Context structure for binding.

      Now, in Layout tab, create 2 fields and bind those with new fields in Context.

      That's it. 😊

      If you need any further help, let me know.

      Warm Regards,

      Shyam Agrawal

      WD.png (22.9 kB)
  • Dec 20, 2013 at 04:08 PM

    Hello Shyram,

    it is not possible using metadata.

    Try by enhancing INIT_FIELD_EXTENSIONS from /SAPSRM/CL_CH_WD_MAP_HELP_CORE class: it shoud be possible.

    Regards.

    Laurent.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 20, 2013 at 04:13 PM

    Hi Shyam,

    Same requirement we had also completed but for this just change the Web dynpro because i think while configuration we can't maintained the sequence. But if you find any solution for setting the field as per the requirement let me know.

    Regards,

    Nishant Bansal.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 24, 2013 at 06:38 AM

    We have a similar requirement please could some one confirm on what was done to have the new fields come in a single line ??

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Vinita,

      So far everyone is suggesting to make enhancements in WD view. I also didn't received any positive feedback if we can do it by config only.

      Please let us know in case you get the solution.

      Warm Regards,

      Shyam