Question:
I have confirgured a material for a sale order and created a production order wi.r.to the sale order. I am able to see the confuguration values from the header configuration display. But could anybody let me know in which table are the configuration values stored ? I am not able to get them in AUSP table.
Answer:
Use the oject number from VBAP-CUOBJ. Feed this to the following function module and this will give you the config in a table. Use this table to get the characteristic names and values.
data: begin of icharacteristics occurs 0,
atnam type cabn-atnam,
atwrt type cawn-atwrt,
atflv type cawn-atflv,
atwtb type cawnt-atwtb,
end of icharacteristics.
data: icomw type table of comw.
data: xcomw type comw.
data: xcabn type cabn.
data: xcawn type cawn.
data: xcawnt type cawnt.
call function 'CUD0_GET_VAL_FROM_INSTANCE'
exporting
instance = vbap-cuobj
tables
attributes = icomw
exceptions
instance_not_found = 1.
loop at icomw into xcomw
where not atinn is initial.
clear xcabn.
select single * into xcabn
from cabn
where atinn = xcomw-atinn.
clear xcawn.
select single * into xcawn
from cawn
where atinn = xcomw-atinn
and atwrt = xcomw-atwrt.
clear xcawnt.
select single * into xcawnt
from cawnt
where atinn = xcomw-atinn
and atzhl = xcawn-atzhl.
icharacteristics-atnam = xcabn-atnam.
icharacteristics-atwrt = xcomw-atwrt.
icharacteristics-atflv = xcomw-atflv.
icharacteristics-atwtb = xcawnt-atwtb.
append icharacteristics.
endloop.
Regards,
R Heilman
Answer:
Thanks R.
Regards
Answer:
....or look at VC_I_GET_CONFIGURATION. It will return the language-specific values directly without the need for the subsequent selects.
DK