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

report at line-selection

Former Member
0 Likes
393

my train_no is of type char.even if f2 contains 3 and itab_train1-train_no is 3 on clicking at train_No my inner if does not become true.why is it so?

AT LINE-SELECTION.

IF SY-LSIND = 1.

GET CURSOR FIELD F1 VALUE F2.

IF F2 = ITAB_TRAIN1-TRAIN_NO.

CALL TRANSACTION 'Z98477_MOCK5'.

ELSE.

MESSAGE I002(Z77_MESSAGE).

ENDIF.

ENDIF.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
364

Hi,

IF F2 = 3 and ITAB_TRAIN1-TRAIN_NO = 3....it ll surely go into the inner IF..........

Put a session break-point on dat IF line and debugg....check de values of F2 and ITAB_TRAIN1-TRAIN_NO.......

U must use either READ TABLE or LOOP AT statements to read ITAB_TRAIN1 tables records...

Cheers,

jose.

my train_no is of type char.even if f2 contains 3 and itab_train1-train_no is 3 on clicking at train_No my inner if does not become true.why is it so?

AT LINE-SELECTION.

IF SY-LSIND = 1.

GET CURSOR FIELD F1 VALUE F2.

IF F2 = ITAB_TRAIN1-TRAIN_NO.

CALL TRANSACTION 'Z98477_MOCK5'.

ELSE.

MESSAGE I002(Z77_MESSAGE).

ENDIF.

ENDIF.

1 REPLY 1
Read only

Former Member
0 Likes
365

Hi,

IF F2 = 3 and ITAB_TRAIN1-TRAIN_NO = 3....it ll surely go into the inner IF..........

Put a session break-point on dat IF line and debugg....check de values of F2 and ITAB_TRAIN1-TRAIN_NO.......

U must use either READ TABLE or LOOP AT statements to read ITAB_TRAIN1 tables records...

Cheers,

jose.