2009 Oct 12 8:42 PM
Hi everyone,
In my internal table it_itab I have a field zext with value 'Number 1100992288' and now I just need to grab
'1100992288' in an a variable v_num. so can you please tell me how can I do that,.
Thanks,
Raeev Gupta
2009 Oct 12 8:55 PM
Hi,
If the first characters would be Number, then you can use v_num = ws_itab-ztext+7.
else, split the field at 'space' into diff variables.
or
try func module: ISM_CONVERT_NUMC_TO_DEC, even though the input parameter is of type 'N', I passed your string and it returned me the DEC numbers.
or
you can create your own func module to extract the numbers out of the string.
Regards,
Subramanian
Hi everyone,
In my internal table it_itab I have a field zext with value 'Number 1100992288' and now I just need to grab
'1100992288' in an a variable v_num. so can you please tell me how can I do that,.
Thanks,
Raeev Gupta
2009 Oct 12 8:50 PM
split your variable at space ...
split it_itab-ztext at space into v_char v_num .
2009 Oct 12 8:56 PM
Hi srinivas,
That field is 80 character long and I just need to grab that numeric value and that pass it to another variable.
2009 Oct 12 8:55 PM
Hi,
If the first characters would be Number, then you can use v_num = ws_itab-ztext+7.
else, split the field at 'space' into diff variables.
or
try func module: ISM_CONVERT_NUMC_TO_DEC, even though the input parameter is of type 'N', I passed your string and it returned me the DEC numbers.
or
you can create your own func module to extract the numbers out of the string.
Regards,
Subramanian
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |