cancel
Showing results for 
Search instead for 
Did you mean: 

How check if a row or call is enabled in SAP B1 8.80

former_member221339
Participant
0 Kudos

Hi

I have written some code which udates the gl codes in the sales order matrix

This all works fine apart from when they look at a closed order or I guess a sales order that has been part shipped

Is it possible to check if a cell or a row is enabled, ie I can update the gl code

At the moment it comes up with an error because it maybe read only

Many thanks

Regards Andy

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I usually check the row status & the docstatus

If the docstatus is O, and the rowstatus is O, then you can edit the row.

former_member221339
Participant
0 Kudos

Hi

Sorry I forgot to say I am using the ui api and not the di api

At the moment I have wrapped the update line in a try catch statement

Should work ok ?

Thanks

Regards Andy

Former Member
0 Kudos

Well yes it would work ,but you can check rowstatus and document statis with the UI anyways

Document Status is oForm.Item("81")

And row status is (depending on the document type either)

oForm.Items.Item("38").Columns.Item("40") or

oForm.Items.Item("39").Columns.Item("20")

former_member221339
Participant
0 Kudos

Hi

I think I will stick with my try catch method but thanks for your suggestion, good bit of lateral thinking !

Regards Andy