Skip to Content
0
May 26, 2010 at 05:26 AM

Add ean11 using BAPI_MATERIAL_SAVEDATA in version 6

600 Views

Hi

Im doing upgrade from version 5 to version 6 and i have a problem with BAPI_MATERIAL_SAVEDATA

im using this bapi to add ean11 to a material.

in vertion 5 it worked and in vertion 6 it doesnt work

the kod is like that:

headdata-material = itab-matnr.

unitsofmeasure-ean_upc = itab-bcode.

unitsofmeasure-alt_unit = itab-meinh.

APPEND unitsofmeasure.

CLEAR: unitsofmeasurex.

unitsofmeasurex-alt_unit = itab-meinh.

unitsofmeasurex-ean_upc = 'X'.

unitsofmeasurex-ean_cat = 'X'.

APPEND unitsofmeasurex.

CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'

EXPORTING

headdata = headdata

flag_online = ' '

flag_cad_call = ' '

no_dequeue = ' '

IMPORTING

return = bapiret2

TABLES

unitsofmeasure = unitsofmeasure

unitsofmeasurex = unitsofmeasurex

returnmessages = returnmessages.

Tthe function itself does not work in vertion 6 and it did work with the same parameters in version 5.

how can i use it in version 6.

Regards

Shlomit