Application Development 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: 

Adding custom fields to vl02n / vl03n screen at item level.

Former Member
0 Kudos

I want to add 5 custom fields to the outbound delivery screens (vl02n and vl03n) at the item level.

I have already implemented the BADI : LE_SHP_TAB_CUST_ITEM

In the method: ACTIVATE_TAB_PAGE, I have written the following code:

ef_caption = text-000. " Screen Caption

ef_program = 'SAPLZSD_STUFF'. "SAPL Followed by the Function group created ZSD537_HEAD (created)

  • ef_position = 7. " Tab Position

ef_dynpro = '9000'. " Screen Number

  • cs_v50agl_cust = 'X'.

But custom Tab is not added to vl02n or vl03n at the item level.

I tried adding a custom tab to the header of these transactions in exactly the same way( I used the same function group and the same screen as I used for addition of data to item level), and it worked. But addition to item level does not work.

Any help please??

-Mou.

4 REPLIES 4

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Why do you write as a comment for EF_POSITION? It rules the order(position) for the new tab.

Regards

Eduardo

0 Kudos

Thanks Eduardo,

First I tried with the statement for the tab position. It did not work. Later on I commented it out while experimenting.

Anything else you notice that might have gone wrong?

Regards,

Mou

0 Kudos

Hi Mou,

Have you took into account the value for I_TRTYP?

Regards

Eduardo

madhu_vadlamani
Active Contributor
0 Kudos

Hi Mou,

In this there are four methods

1)ACTIVATE_TAB_PAGE

2)TRANSFER_DATA_TO_SUBSCREEN

3)TRANSFER_DATA_FROM_SUBSCREEN

4)PASS_FCODE_TO_SUBSCREEN

In thw first method pass the tabname,screen no,position all.

fcaption = 'C Form Details'.

fprogram = 'Z_VLO1N_HEAD'.

fdynpro = '0200'. This is the screen created and kept all custom fields

Here you the concept set and get data and move and get the values.

TRANSFER_DATA_TO_SUBSCREEN

set PARAMETER ID 'Z' FIELD f_vbrk-ZCF.

TRANSFER_DATA_FROM_SUBSCREEN

get PARAMETER ID 'Z' FIELD fvbrk-ZCF.

Pass all these parameters it will resolve your issue.Check and post if need help.

Regards,

Madhu.