on 02-23-2011 3:40 PM
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
PS: I refer to values under Variant Field IT_EXPECTED_DG_PARAMS (DG_NUM_PO for example)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.