Skip to Content
0
Former Member
Oct 17, 2006 at 01:48 PM

Loading Master Data - Help

18 Views

Hello Friends,

I have a current program loading Master Data through program.... basically it loads data reading from multiple ODSs and master data tables into another ODS through ABAP program ... during this process it also loads the Masterdata (i have the sample Master data load part below...).

Now my question is, instead of loading like this, can i just bring the BC object 0MATERIAL and assign the other related objects (please check the sample code below..) as the attributes and load data to this 0MATERIAL...

Can i do this ?

also which one is better on performance aspect ?

All useful answers would be awarded points ...

*Material Related Information (ITAB6).

SORT ITAB BY MATERIAL.

SORT ITAB6 BY MATERIAL.

LOOP at ITAB.

Read Table ITAB6 with Key MATERIAL = ITAB-MATERIAL Binary Search.

IF ITAB-MATERIAL IS INITIAL.

ITAB-/BIC/GPRODCTGY = ''.

ITAB-/BIC/GPRODCD = ''.

ITAB-/BIC/GPRODFAM = ''.

ITAB-/BIC/GPRODGRP = ''.

ITAB-/BIC/GPRODPLFM = ''.

ELSE.

ITAB-/BIC/GPRODCTGY = ITAB6-GPRODCTGY.

ITAB-/BIC/GPRODCD = ITAB6-GPRODCD.

ITAB-/BIC/GPRODFAM = ITAB6-GPRODFAM.

ITAB-/BIC/GPRODGRP = ITAB6-GPRODGRP.

ITAB-/BIC/GPRODPLFM = ITAB6-GPRODPLFM.

.

ENDIF.

  • COLLECT ITAB.

MODIFY ITAB TRANSPORTING /BIC/GPRODCTGY

/BIC/GPRODCD

/BIC/GPRODFAM

/BIC/GPRODGRP

/BIC/GPRODPLFM.

.

CLEAR: ITAB, ITAB6.

ENDLOOP.

Cheers,

Happy One ..

Message was edited by: HAPPY ONE