采购BADI---表头内文初始
2021-05-24
浏览次
data:i_text type MMPUR_T_TEXTLINES,
wa_text like line of i_text.
wa_text-TDOBJECT = 'EKKO'.
wa_text-TDID = 'F01'.
wa_text-TDLINE = 'ABCDEFG'.
wa_text-TDFORMAT = 1.
append wa_text to i_text.
wa_text-TDOBJECT = 'EKKO'.
wa_text-TDID = 'F01'.
wa_text-TDLINE = '123456'.
wa_text-TDFORMAT = 2.
append wa_text to i_text.
IM_HEADER->IF_LONGTEXTS_MM~SET_TEXT( IM_TDID = 'F01'
IM_TEXTLINES = i_text ).
wa_text like line of i_text.
wa_text-TDOBJECT = 'EKKO'.
wa_text-TDID = 'F01'.
wa_text-TDLINE = 'ABCDEFG'.
wa_text-TDFORMAT = 1.
append wa_text to i_text.
wa_text-TDOBJECT = 'EKKO'.
wa_text-TDID = 'F01'.
wa_text-TDLINE = '123456'.
wa_text-TDFORMAT = 2.
append wa_text to i_text.
IM_HEADER->IF_LONGTEXTS_MM~SET_TEXT( IM_TDID = 'F01'
IM_TEXTLINES = i_text ).