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

BADI ME_GUI_PO_CUST

Hello People,

I am using BADI ME_GUI_PO_CUST to create customer fields for transaction ME21N.

This is the code i have for my method 'SUBSCRIBE',

I have designed a custom screen, the program name is

ZSUB_BADI and the subscreen number is '0001'.

I have created a structure called 'ZPOTBL' and the field on my screen is referring to this structure.

I dont know what i could be doing wrong, however i m unable to see the the customer field.

I believe it has to do with the values i m passing, am i using the wrong program name or wrong screen number.

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

CHECK IM_APPLICATION = 'PO'.

  • CHECK im_element = 'HEADER' or im_element = 'ITEM'.

*CHECK im_element = 'ITEM'.

IF IM_ELEMENT = 'ITEM'. " 'Header ' . "

  • 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 = 'ZSUB_BADI'.

  • the dynpro number to use

LS_SUBSCRIBER-DYNPRO = '0001'.

  • the program where the dynpro can be found

LS_SUBSCRIBER-PROGRAM = 'ZSUB_BADI'. "'SAPLMEGUI'.

  • each subscreen needs his own DDIC-Structure

LS_SUBSCRIBER-STRUCT_NAME = 'ZPOTBL'.

  • a label can be defined

LS_SUBSCRIBER-LABEL = 'SANDEEP'.

  • the position within the tabstrib can be defined

LS_SUBSCRIBER-POSITION = 12.

  • 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.

ENDIF.

ENDMETHOD.

any help would be rewarded.

Regards,

Sandeep Salaria

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 24, 2008 at 06:53 AM

    Hi,

    Have you implemented BADI 'ME_PROCESS_PO_CUST' ... This should be implemented to appear your fields on the screen.

    Please check the documentation of this BADI undersatnd what you need to do.

    If it is helpful, Reward Points

    Thanks,

    Prasanna

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 24, 2008 at 07:08 AM

    I have already implemented ME_PROCESS_PO_CUST and its working fine. However i m not able to see the fields in my standard transaction ME21N.

    regards,

    sandeep salaria

    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.