Skip to Content
0
Former Member
May 27, 2011 at 12:56 PM

Data (for new Zfield) in R/3-RSA3 but not in BW-PSA

31 Views

we enhanced our zmaterial- DataSource with a "new" Z-field.

I checkt the DataSource with RSA3 and everything seemed to be fine (right data in Z-Field).

I loaded one record to BW and this new Z-Field is empty (I expected data!).

I allready:

- activated everything on BW

- deleted Source System Assignment and assigned it new

- Replicated the Data Source (twice)

- checked Transfer Rules

- checked the assignment of the z-field (Type is Ok, it is assigned)

- tried Delta and Full dtp

- searced with google and in this forum.

...

Monitor shows green light on DataLoading (no errors)

ST22 shows no shortdump (BW and R/3)

System BW 3.5

Why can i see data on RSA3 and BW can´t load values for this new Z-Field?

and this is my user exit

data :

wa_zmaterial type zoxztd0042,

when 'ZMATERIAL_M2_1'.

"mcekdemir

data: wa_mattab like standard table of bapi1003_alloc_values_char with header line,

wa_matcurr like standard table of bapi1003_alloc_values_curr with header line,

wa_matnum like standard table of bapi1003_alloc_values_num with header line,

wa_return like standard table of bapiret2 with header line,

lv_matnr like bapi1003_key-object.

*BREAK-POINT.

loop at i_t_data into wa_zmaterial.

lv_tabix = sy-tabix.

lv_matnr = wa_zmaterial-zzmatnr.

refresh wa_mattab.

clear wa_zmaterial-zzkalite.

call function 'BAPI_OBJCL_GETDETAIL'

exporting

objectkey = lv_matnr

objecttable = 'MARA'

classnum = 'ZZ_EV_TEKSTILI'

classtype = '001'

  • KEYDATE = SY-DATUM

  • UNVALUATED_CHARS = ' '

  • LANGUAGE = SY-LANGU

  • IMPORTING

  • STATUS =

  • STANDARDCLASS =

tables

allocvaluesnum = wa_matnum

allocvalueschar = wa_mattab

allocvaluescurr = wa_matcurr

return = wa_return

.

read table wa_mattab with key charact = 'ZZ_KALITE'.

if sy-subrc = 0 .

wa_zmaterial-zzkalite = wa_mattab-value_char.

modify i_t_data from wa_zmaterial index lv_tabix.

else.

call function 'BAPI_OBJCL_GETDETAIL'

exporting

objectkey = lv_matnr

objecttable = 'MARA'

classnum = 'YB_N_MAMUL_RAPOR'

classtype = '001'

  • KEYDATE = SY-DATUM

  • UNVALUATED_CHARS = ' '

  • LANGUAGE = SY-LANGU

  • IMPORTING

  • STATUS =

  • STANDARDCLASS =

tables

allocvaluesnum = wa_matnum

allocvalueschar = wa_mattab

allocvaluescurr = wa_matcurr

return = wa_return

.

read table wa_mattab with key charact = 'YB_KALITEKOD' .

if sy-subrc = 0.

wa_zmaterial-zzkalite = wa_mattab-value_char.

modify i_t_data from wa_zmaterial index lv_tabix.

endif.

endif.

endloop.

Edited by: mebanato on May 27, 2011 2:58 PM