Skip to Content
author's profile photo Former Member
Former Member

ME_GUI_PO_CUST Subscreen not displayed

Hi All,

I am just now working on BADI ME_GUI_PO_CUST.

In this I am calling a subscreen following is the code i have written

DATA: ls_subscriber LIKE LINE OF re_subscribers.

  • we want to add a customer subscreen on the item detail tab

CHECK im_application = 'PO'.

CHECK im_element = 'ITEM'.

  • each line in re_subscribers generates a subscreen. We add one subscreen in this example

CLEAR re_subscribers[].

  • the name is a unique identifier for the subscreen and defined in this class definition

ls_subscriber-name = subscreen1.

  • the dynpro number to use

ls_subscriber-dynpro = '9001'.

  • the program where the dynpro can be found

ls_subscriber-program = 'SAPMZEPTP1007_CAPTURE_MAT_NO'. "'SAPLMEPOBADIEX'.

  • each subscreen needs his own DDIC-Structure

ls_subscriber-struct_name = 'ZME_GUI_PO_CUST'.

  • a label can be defined

ls_subscriber-label = text-001.

  • the position within the tabstrib can be defined

ls_subscriber-position = 5.

  • the height of the screen can be defined here. Currently we suport two screen sizes:

  • value <= 7 a sevel line subscreen

  • value > 7 a 16 line subscreen

ls_subscriber-height = 7.

APPEND ls_subscriber TO re_subscribers.

but after doning this the subscreen is not called in Transaction ME21N customer data tab. I have tried with the ls_subscriber-position values as 5/14/15/16.

Can any one guide on this issue???

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jan 28, 2008 at 12:15 PM

    Hi Friend,

    To display these fields in ME21N, track with Metafield, which you are assigning aganist each field. Like '90000001'.

    You have to implement ME_PROCESS_PO_CUST.

    In FIELDSELECTION_HEADER write code to handle metafields. Status will be '+' for showing.

    Sample code pasted.



    constants: wc_status type c value '+'.

    FIELD-SYMBOLS: <mapping> LIKE LINE OF ch_fieldselection.

    LOOP AT ch_fieldselection ASSIGNING <mapping>.

    CASE <mapping>-metafield.

    WHEN '90000001'.

    <mapping>-fieldstatus = wc_status.

    WHEN '90000002'.

    <mapping>-fieldstatus = wc_status.

    WHEN '90000003'.

    <mapping>-fieldstatus = wc_status.

    WHEN '90000004'.

    <mapping>-fieldstatus = wc_status.

    WHEN '90000005'.

    <mapping>-fieldstatus = wc_status.

    WHEN '90000006'.

    <mapping>-fieldstatus = wc_status.

    WHEN '90000007'.

    <mapping>-fieldstatus = wc_status.

    WHEN '90000008'.

    <mapping>-fieldstatus = wc_status.

    WHEN '90000009'.

    <mapping>-fieldstatus = wc_status.



    Hope it will solve the problem.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.