2.Custom Tab in Delivery (VL01N) - Header - Item Level

18
Custom tab in Delivery (VL01N) - Header / Item Level By Aromal Raveendran, Tata Consultancy Services For Additional tab at Delivery Header level we will use the BADI LE_SHP_TAB_CUST_HEAD, for Item level we will use the BADI,LE_SHP_TAB_CUST_ITEM Following screenshots describes step-by-step method to create additional tab at VL01N (Delivery) header level 1. Go to transaction SE11 2. Give LIKP & Press Display 3. Press the append structure for LIKP.

description

VL01N

Transcript of 2.Custom Tab in Delivery (VL01N) - Header - Item Level

Page 1: 2.Custom Tab in Delivery (VL01N) - Header - Item Level

Custom tab in Delivery (VL01N) - Header / Item Level

By Aromal Raveendran, Tata Consultancy Services

For Additional tab at Delivery Header level we will use the BADI  LE_SHP_TAB_CUST_HEAD, for Item level we will use the BADI,LE_SHP_TAB_CUST_ITEM

Following screenshots describes step-by-step method to create additional tab at VL01N (Delivery) header level

1.     Go to transaction SE11

2.     Give LIKP & Press Display

3.     Press the append structure for LIKP.

Page 2: 2.Custom Tab in Delivery (VL01N) - Header - Item Level

4.     Press Create Button.

5.     Create Structure as per the requirement & activate it.  

6.     You can see the append structure in the LIKP table

Page 3: 2.Custom Tab in Delivery (VL01N) - Header - Item Level

7.     Go to SE80 Transaction  

8.     Select Function group &  give the name for Function group and press enter

9.     Give the Function group name & create it.

Page 4: 2.Custom Tab in Delivery (VL01N) - Header - Item Level

10.  Go to TOP include

Declare the variables at TOP include

FUNCTION-POOL ZSD537_HEAD.                  "MESSAGE-ID ..

DATA: gv_full      TYPE  zzful ,      gv_partial   TYPE  zzpartial ,      gv_veh_no    TYPE  zzveh_no  ,      gv_lr_dkt_no TYPE  zzlr_dkt_no ,      gv_lr_dkt_dt TYPE  zzlr_dkt_dt ,      gv_driver    TYPE  zzdriver  ,      gv_inote_num TYPE  zzinote_num ,      gv_inote_dt  TYPE  zzinote_dt  ,

Page 5: 2.Custom Tab in Delivery (VL01N) - Header - Item Level

      gv_inote_cntr TYPE zz_inote_cntr ,      gv_trnsp      TYPE zztrnsp.

11.  Save & Activate the TOP.

12.  Create the Function Module to get values from screen

13.  Give the Function Group Name & Function Module Name

14.  Give the Export parameter as below  

Page 6: 2.Custom Tab in Delivery (VL01N) - Header - Item Level

15.  In the source code write the code as given below. This Function Module is to get values from the screen.

Code

cs_likp-zzfull     = gv_full.cs_likp-zzpartial  = gv_partial.cs_likp-zzveh_no   = gv_veh_no.cs_likp-zzlr_dkt_no = gv_lr_dkt_no.cs_likp-zzlr_dkt_dt = gv_lr_dkt_dt.cs_likp-zzdriver    = gv_driver.cs_likp-zzinote_num = gv_inote_num .cs_likp-zzinote_dt  = gv_inote_dt.cs_likp-zzinote_cntr = gv_inote_cntr.cs_likp-zztrnsp      = gv_trnsp.

16.

Create another FM to set values to screen  

Page 7: 2.Custom Tab in Delivery (VL01N) - Header - Item Level

16.  This Function Module is to set values to the screen

17.  Write the code as below.

Code

gv_full       = is_likp-zzfull  .gv_partial    = is_likp-zzpartial .gv_veh_no     = is_likp-zzveh_no  .gv_lr_dkt_no  = is_likp-zzlr_dkt_no.gv_lr_dkt_dt  = is_likp-zzlr_dkt_dt .gv_driver     = is_likp-zzdriver .gv_inote_num  = is_likp-zzinote_num .gv_inote_dt   = is_likp-zzinote_dt .gv_inote_cntr = is_likp-zzinote_cntr.gv_trnsp      = is_likp-zztrnsp.

18.  Save & Activate the Function Group.

Page 8: 2.Custom Tab in Delivery (VL01N) - Header - Item Level

  

19.  Create new screen under the function group.

Page 9: 2.Custom Tab in Delivery (VL01N) - Header - Item Level

20.  Give Screen Number

21.  Give Screen description and select it as sub screen

Page 10: 2.Custom Tab in Delivery (VL01N) - Header - Item Level

22.  Go to Layout.

23.  Select the values from Dictionary/Program

24.  Get it from Program

25.  Pull the values to the screen

Page 11: 2.Custom Tab in Delivery (VL01N) - Header - Item Level

26. Create label for each screen fields

27.  Adjust the screen Layout as per the requirement and activate it.

Page 12: 2.Custom Tab in Delivery (VL01N) - Header - Item Level

28.  Go to Transaction SE18.

28. Give the BADI Name LE_SHP_TAB_CUST_HEAD

Page 13: 2.Custom Tab in Delivery (VL01N) - Header - Item Level

29. Create Implementation for the BADI.

30. Give the BADI name

31. Go to Active Tab Page

Page 14: 2.Custom Tab in Delivery (VL01N) - Header - Item Level

32. Put your code.

  

  ef_caption = text-000. “ Screen Caption  ef_program = 'SAPLZSD537_HEAD'.“SAPL Followed by the Function group created ZSD537_HEAD  ef_position = 4. “ Tab Position  ef_dynpro  = '9000'. “ Screen Number  cs_v50agl_cust = 'X'.

33. Text elements

Page 15: 2.Custom Tab in Delivery (VL01N) - Header - Item Level

34. Activate the method.

35. Go to method Transfer Data to Sub screen

36. Call the SET Function Module

Page 16: 2.Custom Tab in Delivery (VL01N) - Header - Item Level

37. Go to method Transfer Data From Sub screen

38. Call the Function Module, Get data from screen

39. Activate BADI Implementation.

Page 17: 2.Custom Tab in Delivery (VL01N) - Header - Item Level

40. Go to Header Details

41. Go to the tab Additional Data.

Page 18: 2.Custom Tab in Delivery (VL01N) - Header - Item Level

Similarly we can use the BADI LE_SHP_TAB_CUST_ITEM & append structure at LIPS item table for item screen tab at Delivery screen.