Skip to Content

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

Find a value from 10 variable

Hi ,

I am finding a value into 10 different fields . By using IF-ElSE i know it is possible but i have to do a 10 level nesting .Can any one help me to do this .

Actually in table TOBJ first i check the object once it find then i have to check whether this auth fields contain in 10 diff field (. The value will be somewhere in fields FIEL1 u2013 FIEL0.) with same auth object .

I have done this way

SELECT SINGLE *

FROM TOBJ

WHERE OBJCT = ISWAUDC-OBJECT.

IF SY-SUBRC <> 0.

            • code ********

ELSE.

CONCATENATE TOBJ-FIEL1 TOBJ-FIEL2 TOBJ-FIEL3 TOBJ-FIEL4 TOBJ-FIEL5

TOBJ-FIEL6 TOBJ-FIEL7 TOBJ-FIEL8 TOBJ-FIEL9 TOBJ-FIEL0 INTO

L_FND_STRNG . "SEPARATED BY SPACE.

IF L_FND_STRNG NS ISWAUDC-FIELD .

            • code ********

ENDIF.

ENDIF.

Thanks in Advance

Ta

Former Member

Helpful Answer

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