Creating Custom Screen in XD01

Go to Transaction SPRO  Logistics – General  Business Modification  Free enhancement of Customer Master Record. Partner  Customers  Control  Adoption of Customer’s own Master Data fields  Prepare

Following screen appears: Go to CHANGE mode and Click ‘New Entries’ button. Then add a Screen Group (SK here)and meaningful description. Save the entry and then SELECT that entry and Click on ‘Label Tab Pages’.

Add a Label Tab Page i.e. enter a Screen Number, Function Code and Meaningful Description. Save the entry and come back to the SPRO screen. Click Business Add-in: Processing Master Data Enhancements

. ZSURESHKUMAR here). Give meaningful description and press enter. data: l_flg_active type BOOLE-BOOLE. Go to Interface and Click on ‘CHECK_ADD_ON_ACTIVE’ method. Add the following code and save. method IF_EX_CUSTOMER_ADD_DATA~CHECK_ADD_ON_ACTIVE .Create one Implementation by giving implementation name (must start with Z. The following screen appears.

. endmethod. Activate that and come back to SPRO initial screen.if i_screen_group = 'SK'. Create one implementation (ZSURESHKUMAR1 here). endif. e_add_on_active = 'X'. Click Business Add-in: Customer Subscreens The following screen will appear.

Enter a meaningful Description and Screen Group (which we created earlier) as shown below. The following screen will come.Press enter. .

method IF_EX_CUSTOMER_ADD_DATA_CS~GET_TAXI_SCREEN . "Eart + Objekt e_program = 'SAPLZSURESHKUMAR'. endcase. endmethod. (See the code of the program for other details). e_screen = '1111'. when 'SK_TAB'. Create a Screen ‘1111’ with field old Customer Number – screen group PSK (SE51) Click on GET_TAXI_SCREEN method and add the following code.Then go to Interface Create a Function Pool SAPLZSURESHKUMAR. e_headerscreen_layout = ' '. case i_taxi_fcode. .

Now go to XD01 transaction. . Activate the table.Activate and leave the transaction. Go to KNA1 (Customer Master) table and add a custom field as shown below.

The following screen will appear. Click the button.The screen we created will appear as shown in the above screen-shot. .

The value you entered in this screen will appear on there. Until now. . Go to include – LZSURESHKUMARTOP and enter the following code and activate the program. Now we need to disable that field when we are opening the transaction in DISPLAY mode. we have written code for creating the Custom field.Enter a customer number and save the transaction. Now go to KNA1 table and check the value of the Old Customer Number field’s value.

.Now execute the Transaction in display mode and check the output.