Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Uploading Different types of materials using BDC

sudhir_uppalapati
Participant
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

2 REPLIES 2

bpawanchand
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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