Professional Documents
Culture Documents
screen
Go to VF02 transaction
Step by step how can we add custom tab to the billing header detail;
In order to fulfill the requirement we need a custom subscreen with some custom fields in that screen.
Steps for creating the custom fields and adding them to the custom sub screen.
b) Give a name to the structure for example ZZVBRK_APPEND. Enter the fields name which will you
need.
Note: the added fields should follow the naming convention that they should start with ZZxxxxx or
YYxxxxx.
c) Save and activate.
2. Creating the z* program and its screen and adding the Z fields on layout.
a) Create a z*program using transaction SE38
give a name for example ZZBILLHEADER .
b) Create a screen using the transaction SE51.
Go to screen layout and get the fields from dictionary on vbrk table
The screen in VF03 before which is in changeable mode. If you write screen pbo module below code it
will be read only.
SAP provides 2 screens for customer addional datas; screen 6001 is for header and screen 6002 is for
detail screen.
In the cust_head_activate subroutine we have to activate TABSTRIP_TAB06 for customer header tab
screen.
You will see the arrows . Right click on the arrow line and click Enhancement implemantation >Create
10
11
12
Activate the enhancement and check in the VF01/ VF02/ VF03 you can find the custom tab with the
custom fields. The Data automatically populates to the database table when the data is entered into the Z
fields.
13
SAP has provided a custom tab in the tab strip (Program name
SAPMV60A) screen 6002 which is having the function code PFCU.
14
In order to fulfill the requirement we need a custom subscreen with some custom fields
in that screen.
Steps for creating the custom fields and adding them to the custom sub screen.
1. Creating the Custom fields
a) Create the Z fields to the table VBRP, by appending the structure.
15
b) Give a name to the structure for example zzcustom_fields. Enter the field name.
Note: the added fields should follow the naming convention that they should start
with ZZxxxxx.
c) Save and activate.
16
b) Get the field from the dictionary which needs to be added to the screen.
17
18
In order to activate the custom tab for this requirement which is having the function code
PFCU, the module CUST_ITEM_ACTIVATE needs to be implemented.
19
To make use of this logic use enhancement frame work. We have enhancement spots
at the begin/end of the subroutine.
4. Steps to write the code in the enhancement spots.
a. First to find the enhancement spots click on the spiral icon in the menu bar, and next
click on the edit enhancement operations - show implicit enhancement
options.
20
21
22
23
Activate the enhancement and check in the vf01/vf02/vf03 you can find the custom tab
with the custom
fields.
The Data automatically populates to the database table when the data is entered into
the Z fields. But where as in display mode it is changeable for it to be made disable, a
simple code is to be added.
The screen in VF03 before which is in changeable mode.
24
25