cancel
Showing results for 
Search instead for 
Did you mean: 

Create WDA Input field for currency amount ref to curr key

Former Member
0 Kudos

Hi Experts,

Could the UI elements in WDA input fields have a key reference? If that possible, how to do that?

For example: currency amount input field referenced to Curr key?or quantity ref to UoM field.

Regards,

Agnis Virtinova Avency

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks naresh sadu for your explanation.

That mean in input field element of WDA can't auto format amount ref to curr key right?

Because in ABAP screen programming, ALV on R/3, even ALV on WDA can do that.

We only define ref key field and output is formatted automatically.

Regards,

Agnis Virtinova Avency

ChrisPaine
Active Contributor
0 Kudos

Hello Agnis Virtinova Avency,

WDA uses ABAP dictionary structures for this kind of linking - define your amount and currency as part of a standard ABAP structure - then link the two fields in the structure as per normal ABAP data dictionary . Then use this structure to define your context node.

This is the same approach you should use if you have multiple fields that should input to or output from a DDIC search help.

This means that if you choose - for example CLP (Chilean Peso) as the currency, then the decimal places on the amount field are removed.

Hope this is what you were looking for.

Cheers,

Chris

Former Member
0 Kudos

Hi Agnis Virtinova Avency

UI elements input fields and lables just those are like skeletons , depend on your requirement you have to bind your data and show them to users how they want it to be.

If you want to make the relation between Currency key and amount or Quantity and Unit, you need to take the input fields and lables bind the contexts respectively and write your logic where ever you need, on action of Input field or WDINIT or WDMODiFY.

Regards,

Naresh.