cancel
Showing results for 
Search instead for 
Did you mean: 

custom field descriptions for custom fields in shopping cart

Former Member
0 Kudos

Hi Gurus,

we have added some custom fields to the webdynpro component /SAPSRM/WDC_UI_DO_ACC through configuration and it is working fine.

custom fields are added dynamically to the webdynpro component

Here the new requirement is to display the descriptions for custom fields with alignment.

since custom fields are added dynamically i am not getting how to add description fields with proper alignment with custom fields.

please guide me the way to proceed on this and it is bit urgent also.

Regards

Sampath Y

Accepted Solutions (1)

Accepted Solutions (1)

ricardo_romeromata
Active Contributor
0 Kudos

Hi,

To do that you need to create an enhancement point in the webdynpro.

Try this:

- Go to the webdynpro and create an enhancement point

- Go to component controller to the context, node COMP_CONTEXT, subnode ACCOUNTING and add the attributes refering your custom fields, do it with right click "Create using wizard" -> "Attributes from component structure". Select your custom field and push Ok.

- Go to the view you want (I guess V_DO_ACCOUNT_DETAIL) update the mapping in context. Create a new node and an attribute to store the description/s.

- Go to the layout and add a new Label you don't need to fill the property "text". Set the property "Layout data" to "MatrixHeadData"

- Create a transparent container below the label.

- Within the container add an input field , create the binding of property "value" with the attribute context.

- Change the property of the label "label for" to refer the input field.

- Create in the container a textview and do the binding with the attribute you created to store the descriptions. Change the property "Visible" of this textview defining a binding with "Bind to the property of selected Attibute" and select the input field. In this way when the input field is hide the text view is also hide.

- To fill the descriptions you need to add a post-exit in a method, for example in method WDDOMODIFYVIEW.

And that's all. The configuration you did in SPRO is still working, so if you have some dynamic class and method to hide the field in some conditions is still working...

If you want to do some special alignment in all the custom fields may be you need to add all of them in the webdynpro...

Hope this help you.

Regards.

Former Member
0 Kudos

Hi Ricardo Romero,

Thanks for your reply.

I have added fields as you suggested.

In the output two input fields are getting displayed and the one added in webdynpro component for this SPRO configuration is not working.

kindly let me know if any changes need to done from SPRO configuration.

Regards

Sampath Y

ricardo_romeromata
Active Contributor
0 Kudos

Hi Sam,


It's strange , for me it's working fine without doing nothing special for these fields.
If I change the SPRO configuration to hide my custom field is working, the same to set it as not editable...

Answers (0)