Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Custom tab not seen in me21n after enhancement using ME_GUI_PO_CUST

Hi friends,

I have requirement like this: i need to add two custom tabs in header level of ME21N , so custom tab1 contains 15 fields and tab two contains 15 fields for which i am asked to create a custom table and maintain the values.

So i have fallowed a link from saptechnical and maintained my code like this: in subscribe method

  data ls_subscriber like line of re_subscribers.

    CHECK im_application = 'PO'.

    CHECK im_element     = 'HEADER'.

    CLEAR re_subscribers[].

    ls_subscriber-name = subscreen1. " i have maintained as global attribute of the class.

    ls_subscriber-label = 'TESTING TAB'.

    ls_subscriber-program = 'SAPLZFG_ME21N'. " i have created function group(ZFG_ME21N) with subscreen 9000.

    ls_subscriber-dynpro = '9000'.

    ls_subscriber-struct_name = 'CI_EKKODB'. " as of now i did not create any ztable as i want to display a dummy tab. as already ci_ekkodb is there

                                                                    " present in ekko table so i am passing this structure.

    ls_subscriber-position = 11.

    APPEND ls_subscriber TO re_subscribers.

1. why i am unable to display a dummy tab, i have checked some of the posts in sdn saying that tabs appear in me23n but here also my custom tab does not reflect?

2. how to use my ztable in this scenario to save the data and to push the data on display mode as per "

Step by step guide on adding a new tab in ME21N using a BADI " from saptechnical.

Regards,

Siva

Former Member
Former Member replied

The issue got resolved i had to create a custom include and maintain the code in it, then it worked.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question