Hi Experts
when i try to extend a meterial
Using BDC all values is getting caputured for the meterial all data is getting copied to new plant but in MRP3 Configure varients is not getting copied in bdc i am getting all the values from parent plant but these values are not getting displayed in Extended Plant for only *MRP3 Configure varients
here is the code for extending meterial
form material_extend .
when 'D'.
perform populate_bdc_tab1 tables itab1 using :
'1' 'SAPLMGMM' '4000',
' ' 'BDC_OKCODE' '/00',
'1' 'SAPLMGMM' '4000',
' ' 'BDC_OKCODE' '/00'.
if not new_material+(5) eq 'ACBSY'.
select single * from marc where matnr = new_material and
werks = def_plant and
stdpd = ''.
if sy-subrc = 0.
select single stdpd into m_stdpd from marc where matnr = ref_mat and
werks = def_plant.
if sy-subrc = 0.
perform populate_bdc_tab1 tables itab1 using :
'1' 'SAPLMGMM' '4000',
' ' 'MARC-STDPD' m_stdpd,
' ' 'BDC_OKCODE' '=PB19'.
endif.
else.
perform populate_bdc_tab1 tables itab1 using :
'1' 'SAPLMGMM' '4000',
' ' 'BDC_OKCODE' '=PB19'.
endif.
perform populate_bdc_tab1 tables itab1 using :
'1' 'SAPLCEI0' '0109'.
select single * from marc where matnr = new_material and
werks = '2001'.
if marc-cuobj is initial or marc-stdpd is initial.
select * from marc where matnr = marc-matnr and stdpd <> ''
and pstat like '%D%'
order by werks descending.
endselect.
endif.
if sy-subrc = 0.
select single * from ibin where instance = marc-cuobj.
if sy-subrc = 0.
refresh it_v_ibin_syval.
select * from v_ibin_syval into table it_v_ibin_syval where
in_recno = ibin-in_recno.
if it_v_ibin_syval[] is not initial.
refresh it_cabn.
select * from cabn into table it_cabn for all entries in
it_v_ibin_syval where atinn = it_v_ibin_syval-atinn.
endif.
endif.
endif.
* endif.
data: count type n,
str type string,
str1 type string.
loop at it_v_ibin_syval into wa_v_ibin_syval.
read table it_cabn into wa_cabn with key atinn = wa_v_ibin_syval-atinn.
if sy-subrc = 0.
count = count + 1.
concatenate 'RCTMS-MNAME(' count ')' into str.
concatenate 'RCTMS-MWERT(' count ')' into str1.
perform populate_bdc_tab1 tables itab1 using :
' ' str wa_cabn-atnam,
' ' str1 wa_v_ibin_syval-atwrt.
if count = 9.
perform populate_bdc_tab1 tables itab1 using :
' ' 'BDC_OKCODE' '/00'.
count = 0.
endif.
endif.
endloop.
perform populate_bdc_tab1 tables itab1 using :
' ' 'BDC_OKCODE' '/00',
'1' 'SAPLCEI0' '0109',
' ' 'BDC_OKCODE' '=BACK'.
endif.
perform populate_bdc_tab1 tables itab1 using :
'1' 'SAPLMGMM' '4000',
' ' 'BDC_OKCODE' '/00'.
how to get those values please give a solution
and
when i am trying to make the BDC recording of creation of meterial in this process
in MRP3 when i give configurable meterial = Lamp or CT or VOLTMETER and when
i go for configurevariants button it's not displaying any Char Description for the perticular meterial
but in general when create a material process there Char Description are coming where i can give the values
how to get those Char Description when i record please give a solution
Edited by: vamsi.majji on Feb 12, 2011 7:44 AM