Former Member

# IF condition

Hi,

In my requirement i need to test a condition which looks like this,

I_VEIAV-(I_T609I-HEFEL) <> INITIAL

can any one tell me the meaning plz

10|10000 characters needed characters exceeded

• Oct 20, 2008 at 11:59 AM

Hi ,

Could you let us know how you have declared : I_VEIAV-(I_T609I-HEFEL).

Rgds,

Sandeep

10|10000 characters needed characters exceeded
• Former Member
Oct 20, 2008 at 12:00 PM

Hi,

```I_VEIAV-(I_T609I-HEFEL) is INITIAL.
```

It checks whether I_VEIAV-HEFEL has ne value or not.

If it is initial then it has no value.

10|10000 characters needed characters exceeded
• Pavan Bhamidipati Former Member

How did you declare the internal table structure can you post the code

or try to write the condition with putting them in the parenthesis

`I_VEIAV-I_T609I-HEFEL is INITIAL.`

• Former Member
Oct 20, 2008 at 12:01 PM

Hi,

if I_VEIAV-(I_T609I-HEFEL) INITIAL

it mean the value of (I_T609I-HEFEL) is getting in the run time .

suppose in run time , the value of I_T609I-HEFEL is MATNR say.

ultimately..

if I_VEIAV-MATNR initial

regards

Naveen

10|10000 characters needed characters exceeded
• Oct 20, 2008 at 12:02 PM

HI

I_VEIAV-(I_T609I-HEFEL) INITIAL Check whether I_VEIAV is a internal table with headear line and this internal table's structure is a DEEP structure , i mean the internal table consiting of one more internal table inside it

HEFEL is a field of inner internal table I_T609I and by putting them in a pair of parenthesis mean their values are set at run time.

and I_VEIAV-(I_T609I-HEFEL) INITIAL mean that the whole value is initial or does it contain any value other than ZERO or the initial value of the type it has been assigned.

Regards

Pavan

10|10000 characters needed characters exceeded
• Former Member
Oct 20, 2008 at 12:13 PM

try like this...

```DATA: fnam TYPE char20.

FIELD-SYMBOLS <fs>.

CONCATENATE 'I_VEIAV-' i_t609i INTO fnam.
CONDENSE fnam NO-GAPS.

ASSIGN (fnam) TO <fs>.
IF <fs> IS ASSIGNED.
IF <fs> IS INITIAL.
"Write ur code here...
ENDIF.
ENDIF.
```

10|10000 characters needed characters exceeded
• Former Member
Oct 20, 2008 at 12:15 PM

hi,

I_VEIAV-(I_T609I-HEFEL) INITIAL

at runtime I_T60911-HEFEL would be having some value ,say A.

so,

I_VEIAV-(I_T609I-HEFEL) INITIAL

becomes :

I_VEIAV-A initial.

it checks whether I_VEIAV-A is intial .