software

SAP B1 – Getting the data in a form field for a formatted search

1 min read

To get the data held in a form field (for example in the inventory transfer form), use:

text
SELECT $[$24.U_XX_NEnc.0];

By enabling the “System Information” option in the “View” menu, we can see some of the data we need for the formula above.

In the case of a grid: $24 is the value shown in “Item”, and “U_XX_NEnc” is the column.
If the field does not belong to a grid, the “U_XX_NEnc” value is taken from the “variable” value. We can use this, for example, in a formatted search to get data from tables that are not directly accessible in the form, based on / filtered by the data returned by the formula above.

#development#sap b1