Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

IF condition

Former Member
0 Kudos

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

9 REPLIES 9

Sandeep_Kumar
Advisor
Advisor
0 Kudos

Hi ,

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

Rgds,

Sandeep

Former Member
0 Kudos

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.

0 Kudos

there is no field in VEIAV

like HEFEL

0 Kudos

IF I GIVE THAT CONDITION IT IS GIVING ERROR

0 Kudos

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
0 Kudos

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

bpawanchand
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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 .