Application Development and Automation 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: 
Read only

BAPI_MATERIAL_SAVEDATA: Gross Weight Basic Data 1

Former Member
0 Likes
3,663

Hi, people.

I´m creating materials thru BAPI_MATERIAL_SAVEDATA.

I´m passing the corresponding values of weight and volume in table UNITSOFMEASURE: GROSS_WT, VOLUME and VOLUMEUNIT (and filling its corresponding table UNITSOFMEASUREX)

The material is created correctly. But, when I go to transaction MM03 to see the material, I don´t see these values updated in Basic Data 1 or any other place.

Could you tell me why, please?

Thank u so much!

1 ACCEPTED SOLUTION
Read only

former_member182010
Active Participant
2,476

Hello SAPNuno,

Are you filling the values for the base unit of measure? If so, then you should fill in the measurements in structure CLIENTDATA and CLIENTDATAX.

Kind Regards,

Rae Ellen Woytowiez

11 REPLIES 11
Read only

Former Member
0 Likes
2,476

Hi,

Hope that you are calling "BAPI_TRANSACTION_COMMIT" after calling your BAPI - BAPI_MATERIAL_SAVEDATA.

If not call the BAPI_TRANSACTION_COMMIT to save the material in the database.

Regards,

Harish

Read only

0 Likes
2,476

Hi, Harish.

Yes, I´m already doing it...

Read only

former_member182010
Active Participant
2,477

Hello SAPNuno,

Are you filling the values for the base unit of measure? If so, then you should fill in the measurements in structure CLIENTDATA and CLIENTDATAX.

Kind Regards,

Rae Ellen Woytowiez

Read only

0 Likes
2,476

Hi, Rae:

In fact, I´m filling structure CLIENTDATA, CLIENTDATAX (with values base_uom, base_uom_iso), and tables UNITSOFMEASURE and UNITSOFMEASUREX (with values gross_wt, volume, volumeunit).

I´m filling the field UNITSOFMEASURE-DEL_FLAG with 'X'. Has anything to do with this? If I don´t fill it, BAPI returns me an error: "Specify unit of measure".

I´m really lost, people...

Read only

0 Likes
2,476

Are you converting UOM to German first. For example the UOM PC (in English) needs to be converted to ST (in German). Look in table T006a for translations.

Kind Regards,

Rae Ellen Woytowiez

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,476

- Did you check for error messages returned in parameter RETURN and table RETURNMESSAGES ?

- Filling UNITSOFMEASURE-DEL_FLAG with 'X', you ask the BAPI to delete unit of measure ?

Regards,

Raymond

Read only

0 Likes
2,476

Hi, Raymond:

Yes, I did. They don´t give me relevant information abou it, and returns me messages type S and H, telling me that the material was created successfully.

Read only

0 Likes
2,476

Did you correctly fill the field ALT_UNIT in UNITSOFMEASUREX with actual unit code and not with 'X' ?

(You must fill fields ALT_UNIT and ALT_UNIT_ISO with the same values in both table UNITSOFMEASURE and UNITSOFMEASUREX.)

Regards,

Raymond

Read only

0 Likes
2,476

One important question: Is obligatory filling the fields UNITSOFMEASURE-ALT_UNIT and UNITSOFMEASURE-ALT_UNIT_ISO (with its corresponding X)?

Because to create materials in my SAP system, I´ve understood that is not mandatory and that´s why I was not filling them in the BAPI.

But now, I´ve filled them and gross weight, volume and volume unit are correctly informed in transaction MM03.

Read only

2,476

Well, people. Here we go with my solution.

First of all, thank all of you very much. Undoubtly, I wouldn´t have been able to get the solution by my own without your help.

So, to fix my problem, I´ve filled alternative unit with the same value in base unit in my BAPI structures.

Thru this way, values in fields Gross weight, Volume and Volume Unit are correctly updated. And, aditionally, we´re able to check the conversions in additional data->Units of measure (which contains the same units, base and alternative).

I hope I´m clear enough.

Once more, thank you very much for your help, people.

Best regards.

Read only

Former Member
0 Likes
2,476

This message was moderated.