I was creating a stored procedure which exports data to a JSON. In this JSON I need to have the document invoice number (DocNum). B1 always exports the invoice number as: