Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BADI

Former Member
0 Likes
765

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
735

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.

5 REPLIES 5
Read only

Former Member
0 Likes
735

hi,

Check out the below related thread

Regards,

Santosh

Read only

Former Member
0 Likes
735

hi check this...

Read only

Former Member
0 Likes
736

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.

Read only

Former Member
0 Likes
735

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

Read only

0 Likes
735

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.