‎2007 Apr 03 3:49 PM
Hello All,
I am trying to check in a custom pricing requrement routine whether the internal table tkomv is assigned or not, because further statements on the same is causing a dump as it is not assigned. I tried to assign it to a field symbol like
ASSIGN 'tkomv[]' TO <fs_tkomv>
and then check sy-subrc, but in all cases sy-subrc is 0, even though the internal table tkomv is not assigned.
Can anyone give me a solution for this to check whether it is assigned or not??
Thanks in advance
Anirban
‎2007 Apr 03 3:51 PM
Hi!
Check out this example:
FIELD-SYMBOLS <FS> TYPE ANY.
IF <FS> IS NOT ASSIGNED.
WRITE 'That is O' NO-GAP.
ENDIF.
ASSIGN SY-SUBRC TO <FS>.
IF <FS> IS ASSIGNED.
WRITE 'K.'.
ENDIF.
Regards
Tamás
‎2007 Apr 03 3:56 PM
Hi,
You have used the single quotes for the internal table while writing the Assign statment,
ASSIGN tkomv[] TO <fs_tkomv>.Regards
Sudheer
‎2007 Apr 03 4:08 PM
If I try without the quotes it will dump as tkomv is not assigned. Using quotes also is not useful as you mentioned.