cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

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 Likes
1,268

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

View Entire Topic
former_member207661
Active Participant
0 Likes

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

Former Member
0 Likes

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 Likes

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