MAKTX -pls help
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..
Narayana Varma replied
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.
reward if Helpful.