Friday, March 16, 2012

In sm30 add description column which is not a table fields

In se80 function group:

# Declaration in top include.

data : gv_mat_DESC type string.

# Add one column in layout.:column Name gv_mat_DESC

# In PBO

inside loop add one module .: module get_desc.

module GET_DESC output.

IF zct_stage_prod-BY_PROD is not initial.
select single maktx into gv_mat_DESC
from makt client specified
where mandt = sy-mandt
and matnr = zct_stage_prod-BY_PROD.
ENDIF.
endmodule. " GET_DESC OUTPUT

No comments:

Post a Comment