Application Development 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: 

Userexit or BADI???

Former Member
0 Kudos

Hi,

I need to add my own functionality after I save the Purchase order.Now, what should I use Userexit or BADI???

I heard support for userexits will not be available in future versions.

S, which option i.e., Userexit or BADI...is better to use and why???

Thanks,

Shivaa.

6 REPLIES 6

Former Member
0 Kudos

If user exit and BADI both are available better go with BADI.

0 Kudos

In New versions of SAP, every developments are concerned

with OOPS concepts ( ABAP Objects).

As BADI includes methods and objects,it is better to go for

BADI.

Former Member
0 Kudos

Hi

It should be better to use the BADI (ME_PROCESS_PO_CUST), it's more powerfull than user-exit.

Max

saranwin
Contributor
0 Kudos

Hi,

U try with this BADI which i have written some coding to validate the Document type and Vendor Code. If it's not suit your requirtment. Find the User Exit for PO Creation and with this AMPL0001

LMEDR001

LMELA002

LMELA010

LMEQR001

LMEXF001

LWSUS001

M06B0001

M06B0002

M06B0003

M06B0004

M06B0005

M06E0004

M06E0005

ME590001

MEETA001

MEFLD004

MELAB001

MEQUERY1

MEVME001

MM06E001

MM06E003

MM06E004

MM06E005

MM06E007

MM06E008

Regards,

Saran

saranwin
Contributor
0 Kudos

Hi,

Use this BADI : ME_PROCESS_PO_CUST

Regards,

Saran

Former Member
0 Kudos

Hi,

BADI

______________________

BADIs(Business Add Ins) are enhancements to the standard version of the SAP system. BADIs can be insterd in SAP to accommodate user requirements.

The following enhancements /BADIs are available for lockbox

Enhancement

FEDI005

This is functional exit for EDI IDOCs for lock box.

You can get some more information on this in SMOD transaction

You can view BADI's in the transaction SE18.

You need to take the help of a developer to check whether the enhancement works for you or not.

This is all what I can provide you with, as a novice

USER EXIT

__________________

Please see here:

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement

And also from step 1:

https://forums.sdn.sap.com/search.jspa?

Under clasification

From below i will have to use MRP CONTROLLER

wiase selcection .

-


*

INCLUDE LXM61F01 *

-


-


example coding for User-Exit MRP

-


CLEAR: NO_PLANNING, STOP_PLANNING.

CASE USER_KEY.

-


materials of material type 'FERT' only

-


WHEN '001'.

IF MT61D-MTART 'FERT'.

NO_PLANNING = 'X'.

ENDIF.

-


materials with MRP type 'PD' only

-


WHEN '002'.

IF MT61D-DISMM 'PD'.

NO_PLANNING = 'X'.

ENDIF.

-


reorder-point materials

(any MRP type with MRP procedure 'reorder-point planning')

-


WHEN '003'.

IF T438A-DISVF 'B'.

NO_PLANNING = 'X'.

ENDIF.

-


stop planning after low-level code 03

-


WHEN '004'.

IF MT61D-DISST > '003'.

STOP_PLANNING = 'X'.

ENDIF.

-


select materials for one MRP controller (specified in user_par)

-


WHEN '005'.

UXPAR = USER_PAR.

CONDENSE UXPAR.

WRITE UXPAR+0(3) TO DISPO.

IF DISPO IS INITIAL.

EXIT.

ENDIF.

IF MT61D-DISPO DISPO.

NO_PLANNING = 'X'.

ENDIF.

-


select materials of one material class (specified in user_par)

-


WHEN '006'.

UXPAR = USER_PAR.

CONDENSE UXPAR.

WRITE UXPAR+0(9) TO MATKL.

IF MATKL IS INITIAL.

EXIT.

ENDIF.

IF MT61D-MATKL MATKL.

NO_PLANNING = 'X'.

ENDIF.

ENDCASE.

Thanks&Regards,

Nsaresh