on 2013 Dec 20 12:21 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.