cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member207661
Active Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member207661
Active Participant
0 Kudos

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

vinita_kasliwal
Active Contributor
0 Kudos

Hey Shyam

Could you please include more details here as I still did not understand exactly what should be done .

former_member207661
Active Participant
0 Kudos

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

Answers (3)

Answers (3)

vinita_kasliwal
Active Contributor
0 Kudos

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

former_member207661
Active Participant
0 Kudos

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

nishantbansal91
Active Contributor
0 Kudos

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.

former_member207661
Active Participant
0 Kudos

Hi Nishant,

We can maintain sequence.

In given screenshot, we have an option 'Call Sequence', using which sequence can be controlled.

former_member184111
Active Contributor
0 Kudos

Hi Shyam,

'Call Sequence' just specifies the position of field on UI but every new field always comes in a new line by default.

Thanks,

Anubhav

laurent_burtaire
Active Contributor
0 Kudos

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.

former_member207661
Active Participant
0 Kudos

Hello Laurent,

Well in that case, what may be use of 'Configure Generic field display on UI'