cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Attributes in SAP

BhawanaDaultani
Level 3
Hi All,

I am trying to pass dynamic attribute in an element.
Element ID is  :      /app/con[0]/ses[0]/wnd[1]/usr/sub:SAPLV14A:0100/radRV130-SELKZ[0,0]

Now the problem is I am trying to make dynamic this ID and value of Red colored 0 should be taken from the Data item like this:
Dynamic ID /app/con[0]/ses[0]/wnd[1]/usr/sub:SAPLV14A:0100/radRV130-SELKZ[[DataItemValue],0]

Getting below error message while using this
The following error has occurred:
Your expression does not appear to be valid:
Data items must be between [ and ]. Text must be between " and ". Functions should be in the form FunctionName()

Can anyone help me how I can pass the data item value.

TIA.

Regarda,
Bhawna

------------------------------
Bhawana Daultani
------------------------------
1 BEST ANSWER

Helpful Answers

Perfect!! Try it then:
Dynamic "ID /app/con[0]/ses[0]/wnd[1]/usr/sub:SAPLV14A:0100/radRV130-SELKZ["&[DataItemValue]&",0]&"

------------------------------
Emerson Ferreira
Sr Business Analyst
Avanade Brasil
Recife
+5581988869544
If my answer helped you? Mark as useful!
------------------------------
Sr Cons at Avanade Brazil

View answer in original post

5 REPLIES 5

EmersonF
MVP
Is this in the code stage, or Wait condition?
Could you provide more information? Like prints for example?
Try it:
Assemble the expression inside the calculation concatenated with the value you want and store it in a variable, then add the variable inside the dynamic wait/navigate, thus, I believe it is not possible to put the expression directly in the application moduller

Dynamic ID /app/con[0]/ses[0]/wnd[1]/usr/sub:SAPLV14A:0100/radRV130-SELKZ[&[DataItemValue]&,0]

------------------------------
Emerson Ferreira
Sr Business Analyst
Avanade Brasil
Recife
+5581988869544
If my answer helped you? Mark as useful!
------------------------------
Sr Cons at Avanade Brazil

So I have captured the element in Objects and ID was there as attribute properties. Now  while writing action I am using the same element to write with dynamic match type.

Already tried with concatenated Logic but still same issue.

attaching screenshot for your reference.

1) This is the element.
11803.png2)  This is where I am setting the dynamic value 
11804.png
11805.png


------------------------------
Bhawana Daultani
------------------------------

Perfect!! Try it then:
Dynamic "ID /app/con[0]/ses[0]/wnd[1]/usr/sub:SAPLV14A:0100/radRV130-SELKZ["&[DataItemValue]&",0]&"

------------------------------
Emerson Ferreira
Sr Business Analyst
Avanade Brasil
Recife
+5581988869544
If my answer helped you? Mark as useful!
------------------------------
Sr Cons at Avanade Brazil

It worked.

Thank you for your help.

------------------------------
Bhawana Daultani
------------------------------

Glad to be able to help you!

------------------------------
Emerson Ferreira
Sr Business Analyst
Avanade Brasil
Recife
+5581988869544
If my answer helped you? Mark as useful!
------------------------------
Sr Cons at Avanade Brazil