Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
detail screen
By Ugur Baris Turkeli , Istanbul
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.
1. Creating the Custom fields
Note: the added fields should follow the naming convention that they should start with ZZxxxxx or
YYxxxxx.
2. Creating the z* program and its screen and adding the Z fields on layout.
The screen in VF03 before which is in changeable mode. If you write screen pbo module below code
it will be read only.
Go to transaction vf02,
Double click program name SAPMV60A
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.
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.
You will see the arrows . Right click on the arrow line and click Enhancement implemantation
>Create
4. Give a name for Enhancement point, for example ZZBILLHEADER_ACTIVATE_TAB
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.
RV60AFZZ
FORM USEREXIT_PRICING_PREPARE_TKOMK.
*{ INSERT DEVK911780 1
TABLES : ZADV_LIC.
IF XVBRK-FKART = 'ZF0'.
IF SY-UCOMM = 'SICH'.
IF XVBRK-ZZADVLI = ''.
MESSAGE 'Pls Enter Adv Lic Number in Header' TYPE 'E'.
ELSE.
IF sy-subrc = 4.
MESSAGE 'Pls Enter Valid Adv Lic Number.' TYPE 'E'.
ENDIF.
if w_itab-budat ge XVBRK-FKDAT.
MESSAGE 'Entered Adv Lic Number Not in Between Valid dates ' TYPE '
E'.
endif.
ENDIF.
ENDIF.
ENDIF.
IF XVBRK-FKART = 'ZF1'.
IF SY-UCOMM = 'SICH'.
IF XVBRK-ZZADVLI = ''.
MESSAGE 'Pls Enter Adv Lic Number in Header' TYPE 'E'.
ELSE.
SELECT ZADVLI FROM ZADV_LIC INTO ZZADVLI WHERE ZADVLI = XVBRK-ZZADVLI.
ENDSELECT.
IF sy-subrc = 4.
MESSAGE 'Pls Enter Valid Adv Lic Number.' TYPE 'E'.
ENDIF.
if w_itab-budat ge XVBRK-FKDAT.
MESSAGE 'Entered Adv Lic Number Not in Between Valid dates ' TYPE '
E'.
endif.
ENDIF.
ENDIF.
ENDIF.
*} INSERT