09-08-2008 1:09 PM
Hello Guyz,
Could anyone please explain, How do you take care of uploading different types of Materials using BDC?
There will be lot of Materials in my Flatfile of different Types, say Raw Material(ROH), Semi Finished Materials(HALB) , Finished Goods (FERT) and so on.
How do you take care of the upload for different material types.
Regards,
Sudhir
09-08-2008 1:52 PM
Hi,
First take all fielsds in one itab,three recordings.
Put the condition,
If MTART = 'ROH'.
send those fields in to another itab.
append the itab.
elseif mtart = 'HALB'.
send those fields into itab1.
append itab1.
elseif mtart = 'FERT'.
send those fields into itab2.
append itab2.
endif.
if not itab[] is initial.
loop the itab
here ur performs
endloop.
endif.
if not itab1 is initial.
loop the itab1.
performs.
endloop.
endif.
if not itab2 is intial.
loop the itab2.
performs.
endloop.
endif.
if it is helpful give me the points
09-08-2008 1:12 PM
Hi
[Check this|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/bdcProgramtoUploadMaterialMasterData+(MM01)]
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/sampleBDCprogramforMM02
Regards
pavan
09-08-2008 1:52 PM
Hi,
First take all fielsds in one itab,three recordings.
Put the condition,
If MTART = 'ROH'.
send those fields in to another itab.
append the itab.
elseif mtart = 'HALB'.
send those fields into itab1.
append itab1.
elseif mtart = 'FERT'.
send those fields into itab2.
append itab2.
endif.
if not itab[] is initial.
loop the itab
here ur performs
endloop.
endif.
if not itab1 is initial.
loop the itab1.
performs.
endloop.
endif.
if not itab2 is intial.
loop the itab2.
performs.
endloop.
endif.
if it is helpful give me the points