Hi AJ,
If you do not want any code changes, Dave's answer is the best approach. However, if you are open to implementing BADI /SAPSLL/IFEX_MM0A_R3 (Method IF_EXTEND_CON_CDOC), create a generic material named GTS_GENERIC_MATERIAL in ERP, transfer it to GTS and pass that as the material number in the BADI.
loop at cs_itm_cdoc-gen into ls_gen.
* If the productid is empty, get the short text and populate
* additional fields in the extension
if ls_gen-product_id is initial.
* Get the short text from the EKPO table
clear: ls_ekpo.
read table it_ekpo into ls_ekpo with key ebelp = ls_gen-item_number.
ls_gen-product_id = 'GTS_GENERIC_MATERIAL'.
ls_gen-mat_short_text = ls_ekpo-txz01.
modify cs_itm_cdoc-gen from ls_gen.
clear: ls_extension2-field, ls_extension2-value.
ls_extension2-row = ls_gen-item_number.
ls_extension2-field = 'YY_TEXT'.
ls_extension2-value = ls_ekpo-txz01.
append ls_extension2 to ct_extension2.
endif.
endloop. "cd_itm_cdoc
Regards,
Satish