Monday, September 17, 2007

Vendor Enhancement Step-By-Step

Go to Tcode SPRO .Now go to Logistics - General and follow the steps
Here i am taking Vendor as an Example.First Step : Click on Prepare Modification button.

Click on new entries.

Mention your screen group and description.

Select your screen group and click on Label Tab pages folder on the left hand side.

Now click on New Entries

Mention Function Code and Description. The description and icon given here will be shown as the button description and icon on the vendor maintenance.Save the entries and go back the customizing screen. Execute “Business Add-In: Processing of Master Data Enhancements”.

Click on the “Create” button.

Specify an implementation name – Z_VENDOR_ENC and press ok.Enter the short text.Now go to Interface Tab and then go to the method “CHECK_ADD_ON_ACTIVE”.


Now click on create button

Mention the name of your enhancement given before and press on create button.

Now press ok.

Now select your enhancement implementation name and press ok.

Enter the below code as shown below.

if i_screen_group = 'ZH'.
e_add_on_active = 'X'.
endif.

The screen group “ZH” has been specified in the first step of the customizing

Now define i_screen_group and e_add_on_active by double clicking on them.

Entries For i_screen_group.
Entries For e_add_on_active

Check,Activate and go back.
Now activate the entire badi.

Go back to the customizing
Execute “Business Add-In: Customer Sub screens”

Mention your sub screen implementation name “Z_VENDOR_ENC_CS”

Now mention the short text.Here at the bottom specify the screen group created earlier by clicking on the drop down box.


Now go to Interface tab and select the method “GET_TAXI_SCREEN”

Select your sub screen enhancement implementation and press ok.

Enter the following code. Fcode “'ZIDES_V1” is the label tab page created in the customizing. We specify the program and the sub-screen to be called by SAP for the vendor enhancement here.
case i_taxi_fcode.
when 'ZIDES_V1'.
e_screen = '0100'.
e_program = 'Z_VENDOR_ENHANCEMENTS'.
e_headerscreen_layout = ' '.
endcase.

Now again mention the code as earlier by clicking on them.
I_taxi_fcode
E_screen
E_program
E_headerscreen_layout

Give DYNNR in Type Radio Button for the E_screen
Entries For I_taxi_fcode


Entries For E_program

Entries for E_headerscreen_layout

Check and Activate.
Now finally CHECK the badi for sub screen.

Create a program in se80.I have taken “Z_Vendor_Enhancements” which I mention in the above code.

Creation of the sub-screen

  1. Create a module pool program via SE38 “Z_VENDOR_ENHANCEMENTS”.
  2. Activate the module pool program.



  1. Go to transaction SE51
  2. Create a screen “0100” for the above module pool with the following attributes
    1. Screen type – Sub-screen
    2. Other attributes – Screen group ZH – There is a popup which comes up as soon as this entry is made

Mention your screen group name below and the description.

Save and Check.

  1. Specify all the fields from the table LFA1 with the screen flow logic if necessary
  2. Save and activate

Activate the entire program.

Go to tcode XK02

Vendor Enhancement is the button we created.Click on thatThis is what you can see with fields which u selected to view.

The transaction XK01 is now ready for taking in all the necessary inputs for the enhanced fields and updating the table with the values.

No comments: