Skip to Content

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

how to loop an internal table content into sapscript

Hi, all.

My code is currently like below.

FORM GET_MATERIAL_TEXT

TABLES

IN_TAB STRUCTURE ITCSY

OUT_TAB STRUCTURE ITCSY.

LOOP AT T_TEXT INTO R_LINES.

read table out_tab INDEX sy-tabix.

move R_LINES-TDLINE to out_tab-value.

modify out_tab INDEX sy-tabix.

ENDLOOP.

ENDFORM..

PERFORM GET_MATERIAL_TEXT IN PROGRAM Zabc

CHANGING &MATERIAL_TEXT1&

CHANGING &MATERIAL_TEXT2&

CHANGING &MATERIAL_TEXT3&

......

CHANGING &MATERIAL_TEXT99&

Do anyone know how to pass the T_TEXT internal table content to sapscript's element &MATERIAL_TEXT&?? I think that is not possible to hard to material text element for so many lines, bcz sometime we don't know how much of lines in the t_text internal table.

Thanks in advance.

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