This post is a detailled tutorial how to Add custom field to Sales Order.
It will explain how to extend Sales Order with custom fields at SAP Order Header or at Items level.
Table of Contents
First you need to append the new custom field by Adding custom fields to VBAK and VBAP.
Here you can then design your own layout. and define your flow logic
Everytime you want to manipulate the date for the custom field, make attention to following elements:
When you deal with Items it will be some thing like this..
XVBAP <– New data if any change/else it will be same as old
YVBAP <—old data if any change/else it will be same as old
The update indicators of the individual table entries in the X and Y tables (field name UPDKZ) control whether an entry is added.
This indicator can have the following value:
In action,
only the update indicator ‘I’ can exist in the X tables (or sometimes the update indicator remains initial). No records exist in the Y tables.o When you change a document, the following cases may occur:
You add a table entry. There is only one entry in the X table that has the update indicator I. There is no entry in the Y table
You change a table entry. The X table contains the changed entry with the update indicator ‘U’.
The Y table contains the original table entry and has the same status as before the change; the update indicator usually is initial. The Y table can only contain one entry with the same key in each case
You delete a table entry. In this case, the X table contains this entry with the update indicator ‘D’; the entry may also be directly deleted from this table (for example, for table XVBUP).
The original entry (status before the deletion) is contained in the Y table and has also the update indicator ‘D’.
The X tables can contain any number of entries with the same key and the update indicator ‘D’, but only one entry with the update indicator ‘I’ or ‘U’.
If you want to access a specific table entry in a user exit, the update indicator must be queried at the same time so that only active entries are taken into account.
update indicators and Y tables are irrelevant.
If you want to go further check the following links:
SAP ISU Tables for Technical master data, for Billing Master Data, Billing and invoicing Tables?…
SAP Fiori 3 UX and Design of SAP Fiori Apps for SAP S/4HANA, SAP TechEd…
Dunning is the business practice of informing a customer of past due payment. Dunning letters…
SAP AP Tcodes & SAP AR Tcodes: House Banks Tcodes, Advance Payments or Down Payments,…
What are the main SAP Payment Terms Tables ? What are the related Tables in…
Work center consists of master data related to routing of products. It contains data related…