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: 

hi what is class? what are methods? and how to do modifications?

Former Member
0 Kudos

Hi,

I got one requirement, like SRM, R/3 CONTRACTS AND PROCURI(CONTRACT DETAILS) , should pick contract Number (INFOOBJECT BW) from table called yp2p_psm . we have 2 do enhancements/changes in class somexxxxx

how to do that I don't know ABAP

please explain me indetail:(step by step)

Thanx in advace,

Ravi.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

i am sending materail of it hepls to delvoped the Badis

Suppose you have to activate MB_DOCUMENT_BADI, here are the steps to be followed:

Code:

*Go to SE18

*Enter MB_DOCUMENT_BADI in definition and click display.

*Go to Interface tab and look at the Interface used. The methods

of the interface are given in the table there. Somewhere in MB

transactions, SAP is calling these methods.

*Now go to Menu Implementation and click Create.

*Give name to your implementation. In BADI, you can have any

number of implementations. But in function-exit, you can only

have one in-line code.

*Now go to tab Interface.You will see field called Name of

implementing class.Do not change the name. Implementation of

BADI means actually creating a class!.

*Save implementation.

*Double click on class field and you will go to SE24. See the

method parameters.

*Now what ever you write in method, will be executed by

SAP(provided you active the implementation). This is similar to

function-exit.

thes some links of

BADI Link

http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm

http://support.sas.com/rnd/papers/sugi30/SAP.ppt

http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm

http://members.aol.com/_ht_a/skarkada/sap/

http://www.ct-software.com/reportpool_frame.htm

http://www.saphelp.com/SAP_Technical.htm

http://www.kabai.com/abaps/q.htm

http://www.guidancetech.com/people/holland/sap/abap/

http://www.planetsap.com/download_abap_programs.htm

http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm

/people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series

/people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework

i think it will helps u.

reward is usefull....

thanks

2 REPLIES 2

Former Member
0 Kudos

Hi,

i am sending materail of it hepls to delvoped the Badis

Suppose you have to activate MB_DOCUMENT_BADI, here are the steps to be followed:

Code:

*Go to SE18

*Enter MB_DOCUMENT_BADI in definition and click display.

*Go to Interface tab and look at the Interface used. The methods

of the interface are given in the table there. Somewhere in MB

transactions, SAP is calling these methods.

*Now go to Menu Implementation and click Create.

*Give name to your implementation. In BADI, you can have any

number of implementations. But in function-exit, you can only

have one in-line code.

*Now go to tab Interface.You will see field called Name of

implementing class.Do not change the name. Implementation of

BADI means actually creating a class!.

*Save implementation.

*Double click on class field and you will go to SE24. See the

method parameters.

*Now what ever you write in method, will be executed by

SAP(provided you active the implementation). This is similar to

function-exit.

thes some links of

BADI Link

http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm

http://support.sas.com/rnd/papers/sugi30/SAP.ppt

http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm

http://members.aol.com/_ht_a/skarkada/sap/

http://www.ct-software.com/reportpool_frame.htm

http://www.saphelp.com/SAP_Technical.htm

http://www.kabai.com/abaps/q.htm

http://www.guidancetech.com/people/holland/sap/abap/

http://www.planetsap.com/download_abap_programs.htm

http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm

/people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series

/people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework

i think it will helps u.

reward is usefull....

thanks

Former Member
0 Kudos

Hi nagaraj,

Thanks for your reply,

But i want to knwo something about the class , Do u have any knowledge about calss?

do you know how 2 do modifications in class?

Thanx in advance

Ravi.