Skip to Content
0
Jun 12, 2018 at 02:17 PM

change ItemCode in sap b1 documents

109 Views

Hi,

i want to change field itemcode ("1") in the documents Sales Quote,Sales Order,Purchase Request.... in matrix (38).

i manage to change the itemcode value in many ways , but each time the other

columns of the changed line got empty after the change.

i want to try and change the itemcode value but before i do this i want to save all row data ,change the value and set all row data back

i tryied to use :

matrix.GetLineData(selectedRow);

matrix.Columns.Item("1").Cells.Item(selectedRow).Specific.value = replaceItemcode;

matrix.SetLineData(selectedRow);

but i get error : "Item - The item is not a user-defined item"

what am i doing wrong?? i didnt manage to use UserDataSources ...

thanks