Skip to Content

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

MAKTX -pls help

Hi,

I'm selecting matnr and maktx(material decription) from makt into an internal table i_maktx where spras = sy-langu.

When log on language is EN- it will give all the material decriptions for the materials.

When log on language is german(DE) or spanish(es), it may give material decription for some materials or will not give for any materials..

So in case where materials do not have material decription in other languages(DE or es), the internal table has to be populated with the material decription from the default English language.

So do we implement that..

Tags:
Former Member
replied

Hi Abhsihek..

Sample code: Just try...

SELECT MATNR MAKTX FROM MAKT INTO TABLE ITAB WHERE SPRAS = SY-LANGU.

loop at itab INTO WA where MAKTX = SPACE.

SELECT SINGLE MATNR MAKTX FROM MAKT INTO WA WHERE MATNR = WA-MATNR AND SPRAS = 'EN'.

IF SY-SUBRC = 0.

MODIFY ITAB FROM WA.

ENDIF.

ENDLOOP.

reward if Helpful.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question