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

BADI

Hi

Can anyone explain me step by step procedure to create a BADI for me21n.

Like creating enhancement spot and all.

but in all the manuals , it is different.. like there is no updated manual for creating and implementing BADI..

Can anyone ppls help me in creating this..

Cheers

Christina

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 10:55 AM

    This is the general procedure for creating badi's

    1. Goto SE18

    2. Choose the BADIs as our requirement from the SAP Application

    3. Goto SE19 -- > create implementation for BADIs

    4. In SE19, make a duple click on Implementation Class

    5. In SE19, make a duple click on Method.

    6. Write the coding in side the Method.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 10:46 AM

    hi,

    Check out the below related thread

    badi-implementation

    Regards,

    Santosh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2008 at 07:03 AM

    Hi

    can anyone help me in detail how to create a BADI for me21n.

    BADI is ME_PROCESS_PO_CUST

    Iam totally blank in that ..

    All the notes did noit help me out..

    Pls help me ..

    Cheers

    Christina

    Add a comment
    10|10000 characters needed characters exceeded

    • hi,

      check this sample code for

      Purchasing Group Validation Based On Company Code

      for badi ME_PROCESS_PO_CUST method PROCESS_HEADER.

      DATA : header TYPE mepoheader.

      CALL METHOD im_header->get_data

      RECEIVING

      re_data = header.

      IF header-bukrs EQ 'ABCD'.

      IF header-ekgrp(1) EQ 'B' OR header-ekgrp(1) EQ 'C'

      OR header-ekgrp(1) EQ 'D'.

      ELSE.

      MESSAGE 'Enter ABCD PURCHASING GROUP(B/C/D) in Header Org.data' TYPE'E'.

      ENDIF.

      ENDIF.

      IF header-bukrs EQ 'PQRS'.

      IF header-ekgrp(1) EQ 'H' OR header-ekgrp(1) EQ 'R'.

      ELSE.

      MESSAGE 'Enter PQRS PURCHASING GROUP(R/H) in Header Org.data' TYPE'E'.

      ENDIF.

      ENDIF.

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 10:52 AM

    hi check this...

    User Exit for ME21N

    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.