12-15-2011 12:09 PM
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.
12-15-2011 2:15 PM
Hi
Why do you write as a comment for EF_POSITION? It rules the order(position) for the new tab.
Regards
Eduardo
12-15-2011 7:51 PM
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
12-16-2011 8:28 AM
Hi Mou,
Have you took into account the value for I_TRTYP?
Regards
Eduardo
12-16-2011 9:36 AM
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.