cancel
Showing results for 
Search instead for 
Did you mean: 

changes in standard function module

Former Member
0 Kudos

Hi all,

I have a requirement to add one import parameter to sap standard function module. What is the method available for that ? User exits or Copying the standard function module into other function module and make required changes?

can any one suggest.

Rgds

Ram sri

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Ram,

Apart from some limited extension capability implemented in some BAPIs (for example BAPI_SALESORDER_CREATEFROMDAT2) I have not really seen a userexit approach to changing the parameters passed to/from standard functions.

So, in general, you have to either copy the function to a Z function or modify the function (and every program that calls it). I think this decision depends upon the function in question.

If the function is not accessing global data from the function group, and doesn't call lots of routines from within the function group I would copy it. If, however, the function seems to be tightly integrated with the function group it may be quite difficult to copy it and get it to function correctly, particularly if it relies on other functions being called by the standard program.

So, if you can copy it and get it to work reasonably easily then I would do this, and change the interface to suit your purposes.

Hope that helps.

Brad

Former Member
0 Kudos

BTW Ram, if you need to access data from within the function module that is not available, then you could look at my blog: /people/brad.williams/blog/2005/04/25/userexits--how-do-i-access-inaccessible-data

Maybe that could help.

Brad

Former Member
0 Kudos

Can you tell us which function module it is and what you would like the function module to do with this additional parameter?

Former Member
0 Kudos

Hi,

Check this for Uer exit

http://www.sapdevelopment.co.uk/enhance/uexits/uexits_doc.htm

Thanks & Regards,

Judith.