Skip to Content
0
Former Member
Dec 12, 2006 at 05:27 PM

Enhanceing 0customer_attr master data

44 Views

Hi All,

I am trying to enchance 0customer_attr data source with sales region, sales group, sales office, so what I did is went to CMOD entered the project as ZBI_LOAD and selected components and clicked on EXIT_SAPLRSP_002, and clicked on include ZXRSAU02 and then entered the following code

Tables: knvv.

data: h_tabix like sy-tabix.

DATA : i_tab LIKE BIW_KNA1_S.

case i_datasource.

WHEN '0CUTOMER_ATTR'.

loop at i_t_data into i_tab.

h_tabix = sy-tabix.

select single * from knvv

where kunnr = i_tab-kunnr.

if sy-subrc = 0.

i_tab-zzvkgrp = knvv-vkgrp.

i_tab-zzvkbur = knvv-vkbur.

i_tab-zzbzirk = knvv-bzirk.

modify i_t_data from i_tab index h_tabix.

endif.

endloop.

endcase.

Activeted and ran rsa3 for data

But when I try to see the data in RSA3 the enhanced fields are blank, but the data exists in KNVV table.

Any help would greatly appreciated

Thanks,

Raj