cancel
Showing results for 
Search instead for 
Did you mean: 

How to enter numeric values as quoted string in a config variant?

Former Member
0 Kudos

Hi all,

I have an eCATT test configuration variant where I can enter a STRING parameter which I use for comparison later in the test. When I enter a numeric valule in the variant field as a quoted string (like this '67'), then the system strips the quotes at the time of saving. Although the field is a string field, the contents are not null-terminated. The test therefore fails.

I need to store a number as a null terminated string as a parameter.

Grateful for any workarounds, cheers!

srini

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

PS: I refer to values under Variant Field IT_EXPECTED_DG_PARAMS (DG_NUM_PO for example)

Former Member
0 Kudos

Right - problem solved.

I'd walked into an old trap... the issue had nothing to do with null termination, neither was eCATT involved (which works beautifully)...

FWIW, here was the problem:

DATA: lv_num type i value 5,

lv_string type string.

*This will add a trailing blank to lv_string!

lv_string = lv_num.

*This will notu2026

lv_string = ||.

Regards, srini

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

But your issue was with having the quotes with the number.

Will this solve that problem aswell.

Thanks,

Ajay

Former Member
0 Kudos

Thx for suggestion Ajay. However, no success. Neither with 2 single qotes, nor with 3 unfortunately.

Config name is SEPM_DG_UI_TESTS, variant TEST1.

Thx and regards, srini

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Colleague,

You have to nullify the effect of single quote ' to do that we need to use say '''67''' (three single quote) somtimes four.

Please try this option.

Thanks & Best regards,

Ajay