on 12-20-2013 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
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
We have a similar requirement please could some one confirm on what was done to have the new fields come in a single line ??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.