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

how to Modify the Std. Include

Former Member
0 Likes
1,331

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

1 ACCEPTED SOLUTION
Read only

SG141
Active Participant
0 Likes
1,221

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

5 REPLIES 5
Read only

Former Member
0 Likes
1,221

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

Read only

SG141
Active Participant
0 Likes
1,222

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

Read only

naimesh_patel
Active Contributor
0 Likes
1,221

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

Read only

0 Likes
1,221

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

Read only

Former Member
0 Likes
1,221

yes..as suggested u need to check for the enhancement spots and u can use the implicit enhancement option.