Skip to Content
0
Former Member
Dec 21, 2006 at 09:02 AM

dynamic string

22 Views

Hallow I wont to do a string dynamic that when I wont to ask for relation 027 and 034 the string bring me both of relation my problem is that didn’t work what wrong.

DATA ceck_str TYPE string.

IF switch_history = 'X' .

ceck_str = 'relat EQ ''027'''.

ELSE.

<b>ceck_str = 'relat EQ ''027'' OR relat EQ ''034'''.</b> ENDIF.

3---- select the employee who register to course --


SELECT objid sobid priox istat endda begda

FROM hrp1001

INTO CORRESPONDING FIELDS OF TABLE d_itab

  • FOR ALL ENTRIES IN z_course_table

WHERE otype = 'D'

AND objid = z_course_table-objid

AND sclas = 'P'

<b>AND (ceck_str).</b>

regards