Custom Screen in Vendor Master
Vendor Master is a basic transaction for processing Pusrchasing and Accounts Payable. Vendor Master has a variety of data that is categorized into three screens:general data, company data and purchasing data.
The standard vendor master screen contain many fields, which allow most of the business transactions to be processed. However, at times, there are scenarios, where the existing vendor master information is not sufficient to incorporate all business partners information. In order to incorporate such specific requirements, it is necessary to enhance the existing vendor master with additional fields to incorporate the business transactions.
There are dedicated enhancement spots, that enable enhancing the existing vendor master without making a modification in standard. The new subscreens are added in existing standard transactions. The IMG path for the same is as under:
The first step in the same is creating a screen group
Execute the customizing point “Prepare Modification-Free Enhancement in Vendor Master Record”
Enter a screen group name and description
Each screen can contain several tab pages. In order to add a new tab, select the created screen group and double-click on “Label Tab Pages”. Provide each tab page with a function code and a description.
Implement the enhancement spots to integrate the screens into standard transaction codes. Use enhancement sport VENDOR_ADD_DATA to activate the enhancement. Go to transaction SE18 and enter spot name “VENDOR_ADD_DATA”. (There is also a BADI available with the same name)
In the Pop Up enter the implementation name and implementation description
Enter the Implementation Class Name as well in the next pop up
The enhancement implementation is created and the below screen appears
Double-click on “Implementing class” to display class details.
Click on Class Name to get the Class Editor (You can also navigate through SE24)
Implement method CHECK_ADD_ON_ACTIVE
The next step is to specify the subscreen location. One of the enhancement spot for the same is VENDOR_ADD_DATA_CS. A Badi with the same name is also available. Scroll to T Code SE18 and enter spot name as VENDOR_ADD_DATA_CS. Than create a new enhancement implementation using Implement enhancement or pressing F6. Select Filter value. Than create a new combination by clicking on button
A combination is added. Now double click on it. Under “Value 1” choose the screen group you have created and “=” under “Comparator 1”.
Now activiate the enhancement implementation. Double click on implementating class and than on class name.
Now execute transaction code SE24 and toggle to class editor. Implement method IF_EX_VENDOR_ADD_DATA_CS~GET_TAXI_SCREEN.
Now we need to create a Z Program that will contain the new sub screen and add the additional field(s) to it. Suppose the fields are to be added at Company Code Level (Table LFB1 impacted). Execute T Code SE11 for table LFB1 and click on append structure and than click on Create button
Enter the Structure Name and than add the additional field to the structure
In SE38, create a module pool ZTEST_ENHANCEMENT with a subscreen 9000.
Now the new code will be displayed in all the T Code which manage vendor master.