Skip to Content
Author's profile photo Sanil Bhandari

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:

Sub1.PNG

The first step in the same is creating a screen group

Execute the customizing point “Prepare Modification-Free Enhancement in Vendor Master Record”

Sub2.PNG

Enter a screen group name and description

Sub3.PNG

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.

Sub4.PNG

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)

Sub5.PNG

Display enhancement spot details and click on button “Implement enhancement spot”     or F6 to create a new enhancement implementation.

Sub6.PNG

In the Pop Up enter the implementation name and implementation description

Sub7.PNG

Enter the Implementation Class Name as well in the next pop up

Sub8.PNG

The enhancement implementation is created and the below screen appears

Sub9.PNG

Double-click on “Implementing class” to display class details.

Sub10.PNG

Click on Class Name to get the Class Editor (You can also navigate through SE24)

Sub11.PNG

Implement method CHECK_ADD_ON_ACTIVE

Sub12.PNG

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 Sub13.PNG

A combination is added. Now double click on it. Under “Value 1” choose the screen group you have created and “=” under “Comparator 1”.

Sub14.PNG

Now activiate the enhancement implementation. Double click on implementating class and than on class name.

Sub15.PNG

Now execute transaction code SE24 and toggle to class editor. Implement method IF_EX_VENDOR_ADD_DATA_CS~GET_TAXI_SCREEN.

Sub16.PNG

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

Sub17.PNG

Sub18.PNG

Enter the Structure Name and than add the additional field to the structure

Sub19.PNG

Sub20.PNG

In SE38, create a module pool ZTEST_ENHANCEMENT with a subscreen 9000.

Sub21.PNG

Sub22.PNG

Now the new code will be displayed in all the T Code which manage vendor master.

Assigned Tags

      7 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Very Useful...Many Thanks.

      Best Regards,

      Naresh K.

      Author's profile photo Sanil Bhandari
      Sanil Bhandari
      Blog Post Author

      Thanks Naresh

      Regards

      Sanil Bhandari

      Author's profile photo Former Member
      Former Member

      Dear Sanil,

      I have tried the same method as suggested by you but when ever any new data is added in the additional field, its data does not get saved in the table. Kindly suggest.

      Author's profile photo ajay mukundan
      ajay mukundan

      For the benefit of others, some steps regarding 'setting' and 'getting' the values to and from the custom screen are not clearly explained.

      You can follow the steps 11 onward in an earlier blog (2012).

      Author's profile photo Former Member
      Former Member

      Thanks Bro 🙂

      Author's profile photo David López Alcaide
      David López Alcaide

      Very good information...but How can add this customer fields to transaction xk04 or fk04?

      Regards,

      David.

      Author's profile photo Donald Bartenstein
      Donald Bartenstein

      I've begun this customization and I am wondering how to specify that the button should be on the Pur Org level?