Application Development and Automation 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: 
Read only

IF condition

Former Member
0 Likes
1,001

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
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
965

Hi ,

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

Rgds,

Sandeep

Read only

Former Member
0 Likes
965

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.

Read only

0 Likes
965

there is no field in VEIAV

like HEFEL

Read only

0 Likes
965

IF I GIVE THAT CONDITION IT IS GIVING ERROR

Read only

0 Likes
965

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.

Read only

Former Member
0 Likes
965

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

Read only

bpawanchand
Active Contributor
0 Likes
965

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

Read only

Former Member
0 Likes
965

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.

Read only

Former Member
0 Likes
965

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 .