‎2009 Aug 11 2:14 PM
Hi All,
I am working on a program and in that program there is a include and it says:
include rprapaex_001.
* This include is reserved for user specific routines
* include rprapaex_001.
* This include is reserved for user specific routines
*----------------------------------------------------------------------*
* FORM SET_MC_FIELD_BY_USER
*----------------------------------------------------------------------*
* routine changes the sortfield of the A/P-account
*----------------------------------------------------------------------*
form set_vendor_no_by_user.
* blf00-lifnr = ...
endform.I need to modify this include and need to put my code in here. Can you please tell me how can I do this and what else do I need to do to activate it.
Thanks,
Rajeev
‎2009 Aug 11 2:18 PM
You can enhance/add your own code through Implicit Enhancements which are present at begining and end of form and finally at the end of program
* include rprapaex_001.
* This include is reserved for user specific routines
*----------------------------------------------------------------------*
* FORM SET_MC_FIELD_BY_USER
*----------------------------------------------------------------------*
* routine changes the sortfield of the A/P-account
*----------------------------------------------------------------------*
form set_vendor_no_by_user.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1) Form SET_VENDOR_NO_BY_USER, Start A
* blf00-lifnr = ...
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(2) Form SET_VENDOR_NO_BY_USER, End A
endform.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(3) Include RPRAPAEX_001, End S
‎2009 Aug 11 2:17 PM
hi
every include has some enhacement options
so you can activate that enhacement spot and write your code there.
there are Implicit Enhancement Options At the end of an include. There are some restrictions, for example, not at the end of a method include.
Edited by: mayank jain on Aug 11, 2009 3:21 PM
‎2009 Aug 11 2:18 PM
You can enhance/add your own code through Implicit Enhancements which are present at begining and end of form and finally at the end of program
* include rprapaex_001.
* This include is reserved for user specific routines
*----------------------------------------------------------------------*
* FORM SET_MC_FIELD_BY_USER
*----------------------------------------------------------------------*
* routine changes the sortfield of the A/P-account
*----------------------------------------------------------------------*
form set_vendor_no_by_user.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1) Form SET_VENDOR_NO_BY_USER, Start A
* blf00-lifnr = ...
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(2) Form SET_VENDOR_NO_BY_USER, End A
endform.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(3) Include RPRAPAEX_001, End S
‎2009 Aug 11 2:19 PM
As Mayank suggested, you can implement the Enhancement Spot if you are on the ABAP release 700. If you are on less than that, you need put your code in the user exit subroutine SET_MC_FIELD_BY_USER available in the Include RPRAPAEX_001. You need to have an access key to modify this include.
Regards,
Naimesh Patel
‎2009 Aug 11 2:24 PM
Thanks a lot for the replies... we are on ECC 6.0 and my only worry is I just need to use the implicit enhancement and nothing else right?
Thanks,
Rajeev
‎2009 Aug 11 2:30 PM
yes..as suggested u need to check for the enhancement spots and u can use the implicit enhancement option.