Skip to content
✦ Made with Docsie · generated from video

How to Add a User Defined Field (UDF) in SAP Business One

User Defined Fields (UDFs) let you capture additional information in SAP Business One that isn't included by default. You can add UDFs at the document header level, at the row (line item) level, and then control where and how they display across your documents. This guide walks you through creating a header-level UDF, a row-level UDF, displaying both in a transaction, managing their visibility, and verifying that they work correctly.

SAP Business One 20 steps 14 screenshots 1376 words Source video 5:36 Generated cost $2.10

Video: How to Create a User-Defined Field (UDF) in SAP Business One | Step-by-Step Guide by Maruf Rahman (2020). All credit for the demonstration goes to the creator; watch the original on YouTube. The written guide below was generated from this video by Docsie. Creator? Request a change or removal.

User Defined Fields (UDFs) let you capture additional information in SAP Business One that isn't included by default. You can add UDFs at the document header level, at the row (line item) level, and then control where and how they display across your documents. This guide walks you through creating a header-level UDF, a row-level UDF, displaying both in a transaction, managing their visibility, and verifying that they work correctly.

Prerequisites

  • You must be logged into SAP Business One with access to the main cockpit screen.
  • You need permissions to access the Tools menu and Customization Tools.
1

Open SAP Business One

Make sure you are logged into SAP Business One and have reached the main cockpit screen. The main menu and available modules appear on the left side, with the SAP Business One logo centered on the screen.

SAP Business One main cockpit screen with navigation menu and open documents panel
SAP Business One main cockpit screen with navigation menu and open documents panel
2

Open the customization tools

At the top menu bar, click Tools. A dropdown menu opens, displaying several options including Customization Tools.

From this dropdown, hover over Customization Tools, then click User-Defined Fields – Management... in the submenu that appears.

Tools menu opened in SAP Business One, showing options including Customization Tools
Tools menu opened in SAP Business One, showing options including Customization Tools
3

Select the module and level for your new UDF

In the User-Defined Fields – Management window, select the module where you want to add the UDF. For example, expand Marketing Documents. You can then choose whether the UDF applies at the Title (header) level or the Rows (line item) level — Title refers to the document header, while Rows refers to the tabular section of the document.

Click Title under the document type you selected (for example, Marketing Documents), then click the Add button at the bottom right of the window to start creating the field.

4

Enter the header-level UDF details

In the Field Data dialog, fill in the following fields:

  • Title: Enter a unique name for the UDF (for example, TCode).
  • Description: Optionally, enter a description.
  • Type: Select the data type for the UDF. For this example, keep it set to Alphanumeric.
  • Length: Set the maximum length (for example, 10).
  • Structure: Leave as Regular unless a different structure is needed.
  • Validation: Leave as None unless validation is required.

Do not check the boxes for Set Default Value for Field or Mandatory Field unless you specifically need to enforce those options.

Field Data dialog for creating a UDF, with Title set to TCode, Type set to Alphanumeric, and no boxes checked
Field Data dialog for creating a UDF, with Title set to TCode, Type set to Alphanumeric, and no boxes checked
5

Review and create the header-level UDF

Double-check all the details you entered, then click Add to create the UDF.

Here is a summary of the settings used in this example:

  • Title: TCode
  • Type: Alphanumeric
  • Length: 10
  • Structure: Regular
  • Validation: None
  • Mandatory Field: Not checked
  • Set Default Value for Field: Not checked

Following these steps creates a new User Defined Field at the document header level.

Field Data dialog with all options visible, ready to add the UDF
Field Data dialog with all options visible, ready to add the UDF
6

Add a row-level UDF

In the User-Defined Fields – Management window, select the Rows node under your desired module (for example, Marketing Documents), then click Add at the bottom right. In the Field Data dialog, enter:

  • Title: TQty
  • Description: TQuantity
  • Type: Select Units and Totals from the dropdown.
  • Structure: Select Quantity from the dropdown.
  • Validation: Leave as None.

Do not check Set Default Value for Field or Mandatory Field unless required. Click Add to create the row-level UDF.

Field Data dialog for row-level UDF with Title 'TQty', Description 'TQuantity', Type 'Units and Totals', Structure 'Quantity'
Field Data dialog for row-level UDF with Title 'TQty', Description 'TQuantity', Type 'Units and Totals', Structure 'Quantity'
7

Confirm the database structure change

A System Message appears, stating that the database structure has been modified and all open windows will be closed to resume the process. Click Yes to continue adding the user-defined field.

System Message dialog prompting to confirm database structure change
System Message dialog prompting to confirm database structure change
8

Display the UDF in a document

Open a document where the UDF should appear, such as an A/P Invoice. If the UDF columns are not visible, go to the top menu, click View, and select User-Defined Fields (or press Ctrl+Shift+U).

9

Verify the UDF columns appear in the document

The UDF columns (for example, Code and TQuantity) now appear in the document grid. Confirm that your new UDF shows up as a column in the rows section of the document.

A/P Invoice screen showing UDF columns 'Code' and 'TQuantity' in the grid
A/P Invoice screen showing UDF columns 'Code' and 'TQuantity' in the grid
10

Open settings to manage UDF visibility and order

If you want to hide or reorder UDFs, go to Tools in the top menu, hover over Customization Tools, and select Settings....

11

Adjust visibility, order, and category

In the Settings – Fields – Setup dialog, use the Visible checkbox to show or hide fields, the Order column to set their display sequence, and the Category dropdown to assign fields to categories. Click OK to save your changes.

Here is a summary of the row-level UDF settings used in this example:

  • Title: TQty
  • Description: TQuantity
  • Type: Units and Totals
  • Structure: Quantity
  • Validation: None
  • Visibility/Order: Managed via Tools > Customization Tools > Settings

Following these steps lets you create, display, and manage row-level User Defined Fields in your documents.

12

Hide unnecessary UDFs

Open the Settings – Fields – Setup dialog again. For each UDF you do not want to display, uncheck the Visible checkbox next to the field name, ensuring only the newly created UDF (for example, Code) remains visible. Leave the Category as General. Click OK to apply the changes.

Settings – Fields – Setup dialog with the 'Visible' checkboxes unchecked for unnecessary UDFs, leaving only 'Code' visible
Settings – Fields – Setup dialog with the 'Visible' checkboxes unchecked for unnecessary UDFs, leaving only 'Code' visible
13

Clean up the table format

Open the Form Settings – A/P Invoice dialog and go to the Table Format tab. Uncheck the Visible checkbox for any columns you do not need, ensuring only the relevant columns, such as TQuantity, remain visible. Click OK to save your changes.

Form Settings – A/P Invoice dialog, Table Format tab, with 'TQuantity' checked as visible and other columns unchecked
Form Settings – A/P Invoice dialog, Table Format tab, with 'TQuantity' checked as visible and other columns unchecked
14

Fit columns to the table area

Go to the top menu, click View, and select Fit Column Width to automatically adjust the width of all columns so they fit the table area.

A/P Invoice screen with View menu open and Fit Column Width option highlighted
A/P Invoice screen with View menu open and Fit Column Width option highlighted
15

Select a business partner for your test transaction

Set the Posting Date for the transaction. Click the yellow arrow or selection button next to the Vendor field to open the List of Business Partners, select a business partner (for example, V10000 - Acme Associates), and click Choose.

List of Business Partners dialog with 'V10000 - Acme Associates' selected
List of Business Partners dialog with 'V10000 - Acme Associates' selected
16

Select an item for your test transaction

In the item grid, click the selection button to open the List of Items, select an item (for example, A00001 - J.B. Officeprint 1420), and click Choose.

Enter the following values in the grid to test your UDFs:

  • Quantity: 1
  • Unit Price: 400.00
  • TQuantity: 1
  • Code: Enter a meaningful alphanumeric code (for example, TA00001).

Review the transaction details to confirm all values are correct.

List of Items dialog with 'A00001 - J.B. Officeprint 1420' selected
List of Items dialog with 'A00001 - J.B. Officeprint 1420' selected
17

Add and verify the transaction

Click Add to save the transaction, and confirm the operation when prompted. After the operation completes, verify that the grid displays the item with Quantity = 1, Unit Price = 400.00, TQuantity = 1, and your entered Code, and that the right panel shows the Code value.

18

Navigate records to confirm saved data

Use the navigation arrows at the top right to move between records: click the rightmost arrow to go to the last record, the leftmost arrow to go to the first record, and the middle arrows to move to the previous or next record. Confirm that the TQuantity and Code values you entered are correctly saved and displayed.

19

Confirm UDF functionality

Review the completed A/P Invoice to confirm the UDFs are working as intended:

  • The TQuantity column in the item grid displays 1.
  • The Code field in the right panel displays TA00001.
  • All other transaction details are correct: Vendor V10000 - Acme Associates, Item A00001 - J.B. Officeprint 1420, Quantity 1, Unit Price 400.00, Tax Code NY, Buyer James Chan, Owner Chan, James.
  • The document status is Open and the posting date is 07/20/2020.
A/P Invoice screen showing TQuantity = 1 in the grid and Code = TA00001 in the right panel, with all transaction details visible
A/P Invoice screen showing TQuantity = 1 in the grid and Code = TA00001 in the right panel, with all transaction details visible
20

Review the UDF field in context

Check the Code UDF field, showing the entered value TA00001 highlighted in the document.

A/P Invoice screen focused on the Code UDF field, showing the value TA00001 entered and highlighted
A/P Invoice screen focused on the Code UDF field, showing the value TA00001 entered and highlighted

Summary

UDFs in SAP Business One let you add any additional fields your business processes require that aren't included by default. You can create as many UDFs as needed to capture information specific to your organization, and these fields can be customized, displayed, or hidden to fit your workflow. Review and adjust your UDFs regularly to make sure they continue to meet your business needs as your processes evolve.

Generation details: cost, quality tiers

Docsie billed 3,000 credits ($2.10) to analyze this 6-minute video at standard quality. The rewrite, template fill and Word/PDF exports were included. The same video at each quality tier:

QualityFrames sampledCreditsApprox. cost
Draftevery 16-30 s1,500$1.05
Standard (this guide)every 8-15 s3,000$2.10
Detailedevery 4-7 s6,000$4.20
Ultraevery 1-3 s12,000$8.40

Credits priced at $0.70 per 1,000; plans include a monthly allowance. Enterprise customers on on-premise or bring-your-own-model deployments run this on their own inference and pay no per-video credits.

Generated by Docsie Video-to-Docs on 2026-10-11 from a 5-minute video. Screenshots are frames from the source video and belong to their creator, Maruf Rahman, whose original is embedded above. If you own this video and want the guide removed or credited differently, contact us and we will act within one business day.

Turn your own training videos into guidesJoin teams that save hours, reduce documentation work and scale training with Docsie.
See Docsie in action. No commitment.

Ready to Transform Your Documentation?

Start creating professional documentation that your users will love