cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot add or update document; specify a UoM code

Former Member
0 Kudos

Hi,

Need some help urgently.

I am facing an error "Cannot add or update document; specify a UoM code" when adding Sales order to SAP via Di-api.

Client has SAP 9 32 bit pl-12.

My development environment has

SAP 9 32 bit pl-00.

I am currently unable to fetch the UoM associated to Item via getbykey() function nor can assign any pre-defined value at sales order line level cause at debugging shows it is only readable field.

Will Pl-upgradation at my development environment help me in any way or there exists any other solution.

Please give some advice.

Thanks and Regards,

Saurav

Accepted Solutions (1)

Accepted Solutions (1)

former_member186712
Active Contributor
0 Kudos

Hi Saurav,

There were some problems in the 1st PL's of SAP 9.

I suggest that you update B1 9 to PL 8 or bigger

Hope it helps,

Augusto

Former Member
0 Kudos

Hi Augusto,

We have upgraded our SAP pl to 12. However, when I check the field again it is still only in the read only state.
I have removed the dll reference and re-added the dll to my class library.


Is there anything that I am doing wrong.

Thanks and Regards,

Saurav

former_member186712
Active Contributor
0 Kudos

Hi Saurav,

The UoM is readable field

It's not possible to change the UoM after having transations.

Please check this thread:

http://scn.sap.com/thread/3437638

http://scn.sap.com/thread/3422548

Hope it helps,

Augusto

Former Member
0 Kudos

Hi Augusto,

I know that after any transaction, the UoM code cannot be changed.
However, I am facing the error (mentioned in the topic) when adding sales order to SAP via di-api.

Any suggestion why this might be happening.

Thanks and Regards,

Saurav

former_member186712
Active Contributor
0 Kudos

Hi Saurav,

Do you work with bins?

Is there any thing special in the SO?

Regards,

Augusto

Former Member
0 Kudos

Hi Augusto,

Thanks for your help. No the client doesn't work with bins.
However, we have found some of the items that were in the order didn't have UoM code assigned to them. These items were BOM item.Their child items however had the UoM code assigned to them. Is it because of that reason the orders failed to get added to SAP?

Thanks and Regards,

Saurav

former_member186712
Active Contributor
0 Kudos

Hi Saurav,

That can be.

In a test environment try to add/change the UoM in all items that are in the BOM and try to add the SO.

I think that can be the problem.

Regards,

Augusto

Answers (0)