Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Facing problems while Adding a Character & a Integer

Hi friends,

I have a problem when additing a Character and a interger

My requirement:

I have to build a range ..... with only option = 'EQ'

So if iam encoutering any 'BT' iam changing it to 'EQ'

The following is my code and the problem ;-(

*********************************

LOOP AT I_SETLEAF.

CLEAR L_LOW_SETLEAF.

R_SETLEAF-SIGN = I_SETLEAF-VALSIGN.

R_SETLEAF-OPTION = I_SETLEAF-VALOPTION.

IF R_SETLEAF-OPTION EQ 'BT'.

L_LOW_SETLEAF = I_SETLEAF-VALFROM.

WHILE L_LOW_SETLEAF LE I_SETLEAF-VALTO.

R_SETLEAF-SIGN = I_SETLEAF-VALSIGN.

R_SETLEAF-OPTION = 'EQ'.

R_SETLEAF-LOW = L_LOW_SETLEAF .

R_SETLEAF-HIGH = L_LOW_SETLEAF.

L_LOW_SETLEAF = L_LOW_SETLEAF + '1'. ---> 1

L_LOW_SETLEAF = L_LOW_SETLEAF + '1'. ---> 2

APPEND R_SETLEAF.

CLEAR R_SETLEAF.

ENDWHILE.

ELSE.

R_SETLEAF-LOW = I_SETLEAF-VALFROM.

R_SETLEAF-HIGH = I_SETLEAF-VALTO.

APPEND R_SETLEAF.

CLEAR R_SETLEAF.

ENDIF.

ENDLOOP.

My L_LOW_SETLEAF is LIKE I_SETLEAF-VALFROM.

**************************************

I ve tried with both ...... 1 & 2 but still the loop goes to endless loop ;-(

EXPECTING ur replies .....

Thanks in Advance

Cheers,

R.Kripa.

Tags:
Not what you were looking for? View more on this topic or Ask a question