04-28-2016 11:53 AM
Hi Friends,
I have a requirement for the creation of new tab with customer fields in the PO header for me21n transaction using badi.
I have created a badi implementation for ME_GUI_PO_CUST and screen using module pool. I am able to display those new tab with customer fields in me22n and me23n but it is not coming in the ME21N transaction.
How to display that tab with fields in ME21N transaction???Please help me.............
Regards,
Divi
04-28-2016 12:14 PM
04-30-2016 6:54 AM
Hi Ananthachari,
I have checked ME21N screen....But there is no new tab in the header.
Regards,
Divi
04-28-2016 2:44 PM
Hello,
The BADI you are using is not multiple use BADI, so at a time only one active implementation will be active.
Kindly check how many BADI implementations are there for the BADI.
If other active implementation, then check is there any sy-tcode check is there in the method SUBSCRIBE.
Regards,
Syed
04-29-2016 10:10 AM
Hi Syed,
Thank you for the response.
Actually for that badi already one implementation is there to display the new tab in the ITEM. I have done my changes for the header in that implementation.
But there is no sy-tcode in the SUBSCRIBE method....
What are the changes I need to do? Can you please tell me?
This is the code which I have written In the subscribe method....
METHOD if_ex_me_gui_po_cust~subscribe .
DATA: ls_subscriber LIKE LINE OF re_subscribers.
CHECK im_application = 'PO'.
CLEAR re_subscribers[].
IF im_element = 'ITEM'.
ls_subscriber-name = me->subscreen.
ls_subscriber-dynpro = '100'.
ls_subscriber-program = 'SAPLZM_NDM_PO_EXTENSION'.
ls_subscriber-struct_name = 'ZEKPO_EXT1'.
ls_subscriber-label = 'Ref fields'.
ls_subscriber-position = 10.
ls_subscriber-height = 10.
APPEND ls_subscriber TO re_subscribers[].
ENDIF.
IF im_element = 'HEADER'.
ls_subscriber-name = me->subscreen1.
ls_subscriber-dynpro = '0100'.
ls_subscriber-program = 'SAPLZ_PO_HEAD_FIELDS'.
ls_subscriber-struct_name = 'CI_EKKODB'.
ls_subscriber-label = text-001.
ls_subscriber-position = 6.
ls_subscriber-height = 7.
APPEND ls_subscriber TO re_subscribers[].
ENDIF.
ENDMETHOD.
Regards,
Divi
04-29-2016 10:30 AM
Hi Divi,
Check the below link. They implemented your requirement using Screen exit via SMOD and CMOD transactions.
http://freesapabap.blogspot.in/2014/11/customer-exit-screen-exit.html
04-30-2016 6:51 AM
Hi Venkatesh,
Thank you.....
Now I am able to display the new tab in me21n using screen exit............
But my requirement is to display that using Badi implementation.
How to do that using badi? Can you please guide me? This is my first badi implementation......
Regards,
Divi
04-30-2016 11:33 AM
05-03-2016 10:40 AM
Hi Pranay,
Thank you for the answer....
I have written code in the method "FIELDSELECTION_HEADER" of ME_PROCESS_PO_CUST badi and now it is showing the new tab in me21n.
Regards,
Divi
07-24-2020 10:15 AM
Hey Srilaxmi divi..
Hi facing same problem i added custom BADI at ME23N but it wont display at ME21N and ME22N ..could you plz share your code so i can findout what wrong with my code ..
Thanks in advance
Regards
Rushikesh