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

Problem with statement like

former_member216100
Participant
0 Likes
774

Dear all

when I do a select I can work with the statement like

CONCATENATE WA_DEL-FIELD '%' INTO I_FIELD.

      SELECT * FROM ZTABLE INTO TABLE IT_ITAB
        WHERE FIELD LIKE I_FIELD.

how do I can do the same question for a if command for a field ?

I was thinking with the statement (FIELD = ABCDEFG) (I_FIELD-SIGN = I / I_FIELD-OPTION = 'EQ' / I_FIELD-LOW = 'ABC*'

IF FIELD IN I_FIELD

should work, but it was not working..... what do I need to do

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
750

Hello,

Silly mistake ... You have to use the OPTION as CP ( C ontains P attern ) instead of EQ

(I_FIELD-SIGN = I / I_FIELD-OPTION = 'CP' / I_FIELD-LOW = 'ABC*'

BR,

Suhas

5 REPLIES 5
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
751

Hello,

Silly mistake ... You have to use the OPTION as CP ( C ontains P attern ) instead of EQ

(I_FIELD-SIGN = I / I_FIELD-OPTION = 'CP' / I_FIELD-LOW = 'ABC*'

BR,

Suhas

Read only

ThomasZloch
Active Contributor
0 Likes
750

OPTION should be 'CP', not 'EQ'. You can also try the "CP" operator ("covers pattern")

Thomas

Read only

Former Member
0 Likes
750

Hi,

Change the I_FIELD-OPTION to CP insttead of EQ. It should work now

Vikranth

Read only

former_member216100
Participant
0 Likes
750

it is to early in the morning... sorry guys and thanks for the support...... I should sleep longer.... have not seen that I did not use CP....

Read only

0 Likes
750

No Problem. Please remember the other guys as well, we all answered at the same time more or less

Thomas