2016 Dec 26 8:07 AM
Hi All,
I have a table which is not accessible in the program gt_grad_change which is defined in Function Group CV140. My requirement is to check whether this is filled or empty. If it is empty, values have to be filled using variables namely SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S55 { color: #800080; } pf_doknr, pf_dokar, pf_dokob, pf_objky_old, pf_tldok, pf_dokvr.
I tried usingField symbol. Here is my code snippet:
SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S33 { color: #4DA619; } .L0S52 { color: #0000FF; } .L0S55 { color: #800080; } FIELD-SYMBOLS <FT_DRAD> TYPE DRAD.
ASSIGN ('(SAPLCV140)GT_DRAD_CHNAGE[]') TO <FT_DRAD>.
IF <FT_DRAD> IS NOT ASSIGNED.
After this, I have to assign value pf_doknr to <ft_drad>-doknr and so on. But this is not working. Any suggestions?
2016 Dec 27 2:51 PM
To make sure an external global variable is accessible at a given position in a program, stop at this position using the debugger, and enter the variable name (SAPLCV140)GT_DRAD_CHANGE[] directly in the debugger. If it says "not available", it means that SAPLCV140 is not loaded in the current internal session (or that GT_DRAD_CHANGE is not a global internal table of SAPLCV140).
But... there's a typo in your code: use
ASSIGN ('(SAPLCV140)GT_DRAD_CHANGE[]')
instead of
ASSIGN ('(SAPLCV140)GT_DRAD_CHNAGE[]')