Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Adding custom screen to VL02N

Former Member
0 Likes
4,037

HI ,

I need to add two custom fields to the tcode VL02N.

I have found the BADI

LE_SHP_TAB_CUST_ITEM whose method ACTIVATE_TAB_PAGE needs to be implemented.

However, the procedure is not clear to me as to how to bring the custom fields in display by implementing this BADI.

I am new to BADI....

Please give any suggestion or steps on how to approach.

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,726

Go to se18-> LE_SHP_TAB_CUST_ITEM -> create implementaion

Give an implementation name

now go to Activate_tab_page.

Create a function-Group through Se80.

give a name for eg. ZVL02n_Cust .

Create sreens eg. 9100 .

Will create a program like 'SAPLZVL02N_CUST' .

Now

method IF_EX_LE_SHP_TAB_CUST_ITEM~ACTIVATE_TAB_PAGE.

ef_caption = 'Waybill'.

ef_program = 'SAPLZVL02N_CUST'.

ef_dynpro = '9100'.

endmethod.

Hope it will help u

screen type should be subscreen.

--

Reddy

11 REPLIES 11
Read only

Former Member
0 Likes
2,726

Hi Subhajit,

There is a clear documentation for the BADI in SE18.

you can follow below steps:

1) Create a program with a subscreen on which create whatever fields u want

2) Insert below into ACTIVATE_TAB_PAGE:

ef_caption = 'XXXX'. "Tab title

ef_program = 'XXXX'. "program name u just created

ef_dynpro = 'XXXX'. "the subscreen number

--

Reddy

Read only

Former Member
0 Likes
2,727

Go to se18-> LE_SHP_TAB_CUST_ITEM -> create implementaion

Give an implementation name

now go to Activate_tab_page.

Create a function-Group through Se80.

give a name for eg. ZVL02n_Cust .

Create sreens eg. 9100 .

Will create a program like 'SAPLZVL02N_CUST' .

Now

method IF_EX_LE_SHP_TAB_CUST_ITEM~ACTIVATE_TAB_PAGE.

ef_caption = 'Waybill'.

ef_program = 'SAPLZVL02N_CUST'.

ef_dynpro = '9100'.

endmethod.

Hope it will help u

Read only

0 Likes
2,726

this is the code i have written

method IF_EX_LE_SHP_TAB_CUST_ITEM~ACTIVATE_TAB_PAGE.

ef_caption = 'Custom'.

EF_POSITION = 1.

ef_program = 'SAPLZTEST1234'.

ef_dynpro = '9001'.

endmethod.

However, the new tab is still not coming.......

Can you please suggest where am i going wrong.

I have created the function group and screen in that.

Read only

0 Likes
2,726

FOR TEST PURPOSE JUST COMMENT THE 'EF_POSITION = 1' .

THEN CHECK

Read only

0 Likes
2,726

commenting EF_POSITION = 1 is not making any difference

Read only

0 Likes
2,726

screen type should be subscreen.

--

Reddy

Read only

0 Likes
2,726

it is sub screen.but no new tab is appearing

Read only

0 Likes
2,726

Check the steps:

1) Implement the BADI LE_SHP_TAB_CUST_HEAD as ZMMXE_TAB_CUST_HEAD

2) Create a function group Z_MMX_IBDELIVERY, Add a sub screen 9000 inside it and create screen fields

3) In method ACTIVATE_TAB_PAGE write the following code

ef_caption = 'Customer Data'.

ef_program = 'SAPLZ_MMX_IBDELIVERY'.

ef_dynpro = '9000'.

4) Now Screen is linked, go to VL31N, you will get an addition sub screen tab Customer Data.

Have u activated all the objects?

--

Reddy

Read only

0 Likes
2,726

hi,

my problem is partly solved.....

when i use BADI LE_SHP_TAB_CUST_HEAD, for adding custom tab in header , it works fine.

However, with the same logic and procedure when i use BADI LE_SHP_TAB_CUST_ITEM for item level custom tab, the tab does not appear at the item level.

Does any body have any idea as to why the header tab is getting created but not the item tab

Read only

0 Likes
2,726

Hi,

recheck for ITEM BADI as there is no defference in implementing them.

--

Reddy

Read only

0 Likes
2,726

hi subhajit,

I do have the same requirement for adding a additional screen tab in Vl01n,vl02n and vl03n. I am facing the same issue as yours. I can create the additional screen tab wtih badi LE_SHP_TAB_CUST_HEAD but cannot create additional screen tab with badi LE_SHP_TAB_CUST_ITEM. Did u find solution for this???? If yes do let me know. We have upgraded the system from 5.0 to 6.0.

Thanks in advance

Raj