Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Ecatt related issue

Former Member
0 Kudos


Hi All,

I am facing one issue with eCATT automation.

can we pass combination of 'hard coded value' & 'value from some local variable' to the some specific position  to a textbox togather?

Detail are as given blowe->

I recorder certain t-code using SAPGUI, and i entered few value in a 'multipul line text box'

for example this is the data which i have entered

'

*************************

material name -> '****'

*************************

quantity -2

type- raw

*************************

End detail

*************************

'

which is comming properly in a 'Value-> Text 'section of the structure editor of the eCATT command.

Now when ever i executes this script  'multipul line text box' filled up with the same value, which is completly fine.

But in above given value i want to update material name value also which will come from some Import ecatt varible and may change also evrytime.

For exampel , in below example i am passing valie as Furniture which will come from varilable.

'

*************************

material name -> Furniture

*************************

quantity -2

type- raw

*************************

End detail

*************************

'

I could have done some concatination operations but it can not be done as i can not pass complet value using eCATT parameters.

In my example

'

*************************

material name -> '****'

*************************

quantity -2

type- raw

*************************

End detail

*************************

'

this complete structure kind of value should be hardcoded  but material name value (dipicted as  **** )sould come from Variable.

Could anyone tell me how it can be done or is it possible also or not?

Kindly have  a look.

4 REPLIES 4

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

Yes this is possible, if i understand your query , this is how its done :

Considering i have created a structure variable which has values:

DO ( LOOP COUNTER )

V_VARIABLE = I_MATERIAL[&LPC]-TABLE_LINE & V_VAR2

ENDDO.

Let me know if it helps.

Thanks,

Aj

Former Member
0 Kudos

Hi Aj

Actualy may doubt is bit diffrent.

'

*************************

material name -> '****'

*************************

quantity -2

type- raw

*************************

End detail

*************************

'  this is the value i am passing to the section of the screen where i can write text. so 'value-> text' in the Structure editor will be having above given value & if i execute script with above given hard coded value, it will work fine.

But as per the requirement , i want to replace '****' with the material name(example -> equipment, Furniture etc.) , and this value should come from Import parametre.

Above given complet structured data can not be passed using ecatt  Parameters (parameter will not support it) hence this has to be hard coded .And only value for '****' part should come from ecatt parameters.

I do not know how to achive it whether it is poosible to achive or not that is also not sure top me.

Kindly have  a look.

Thanx & regard,

Ashish

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

Let me try to understand your query.

You have created a structure parameter say I_STRUCTURE

Now you want to load this I_STRUCTURE with different values of (material, equipment etc..)

If yes then I_STRUCTURE at first can either be hardcoded with different values of material, equipment etc.. or the its value can be passed at run time.

Now coming to the handling:

At first find the length of I_STRUCTURE & then loop so many times to perform your desired activity.

GETLEN ( I_STRUCTURE , V_LENGHT )

DO ( V_LENGHT )

I_MATERIAL NAME =  I_STRUCTURE[&LPC]-TABLE_LINE.

quantity -2

type- raw

ENDDO.

Thanks,

Aj

Former Member
0 Kudos

Hi,

Above given methods can not be used here as below given complete design is a single input.

'

*************************

material name -> '****'

*************************

quantity -2

type- raw

*************************

End detail

*************************

'

And only small part of it shoudl come from the Import parameter.

For example 'I_MATR' is a import partameter & user passes value 'ABC' to this parameter.

So now input will be as given below. Only '****' should get  replaced by the Import parameter value 'ABC'.

'

*************************

material name -> ABC

*************************

quantity -2

type- raw

*************************

End detail

*************************

'

And this is the issue , only some past of the input not geting parameterized.

Kindly have a look.

Thanx & Regard,

Ashish