on ‎2012 May 14 3:43 PM
Hello,
i followed below thread:
http://wiki.sdn.sap.com/wiki/display/ABAP/How+to+do+Explicit+Enhancement
Problem is to create enhancement point itself. When i right-click at line where i want to create my enhancement option, i got message "Operation is allowed only for lines ready for input".
Is anybody know what i have to do ?
Thank you for your help.
Regards.
Laurent.
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Hello Laurent,
Are you in change mode?
In what type of object are you trying to create a enhancement point?
Regards,
Sushil.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
i found the reason: you have to put your cursor on the line after where you want to create your enhancement option (this line must be an inserted line area).
But, i am totally surprised: i did not think it was mandatory to insert a line area, as if you were modifying standard code...
Somebody could confirm please ?
Regards.
Laurent.
Hi Laurent
Please can you let me know how did you fix this I am also having a similar issue when trying to include an enhancement not at a point which SAP has suggested but at a some other place ..
how to do so .. Im getting the same error as yours "Operation is allowed only for lines ready for input"
Please confirm and let me know.. How did you insert the line and can it be inserted anywhere is what i am assuming since its an explicit enhancement ..
Regards
Vinita
Hello,
what i wrote previously was wrong.
Find below steps to follow to create explicit enhancement option (Point or Section):
1) be in change mode for object you want to modify,
2) populate access key to register object you want to modify,
3) put your cursor where you want to insert your enhancement (row 75),
4) click onto "Insert" button,
5) to create the extension, put your cursor line below the line area created (row 77), then right-click to get "Enhancements > Create":
6) populate pop-up displayed:
Regards.
Laurent.
Hi Vinita,
Once edit and select all the lines where you want to create the enhancement section/point.
Then give the enhancement section /point name and also the enhancement spot name below,the system allows you to create.Ensure that you have given enhancement spot name as well.
Best Regards,
Vinita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Laurent,
To perform implicit enhancement operation, in class /SAPSRM/CL_CH_WD_DODM_LIMIT
method:/SAPSRM/IF_CLL_MAPPER~UPDATE
Click on Spiral Icon(Enhance) or Ctrl+F4
Then Menu
Edit->Enhancement Operations->Show Implicit enhancement operation.
You can see 2 places where you can do the implicit enhancement (denoted by lines)
1)At the beggining of the data declaration
2)Just before endmethod.
Right click on the line (place for implicit enhancement)and create implementation.
Pop up comes saying Choose Type of enhacement(Declaration or code).
Choose the appropriate one and you can proceed.
For the difference between implicit and explicit enhancement operations please refer
http://help.sap.com/saphelp_nw04s/helpdata/en/29/e59441026aae5fe10000000a1550b0/frameset.htm
Hope this helps.
Regards,
Vinita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinita ,
I think You got us wrong .. we are trying to create enhancement option at a point not suggested by SAP but otherwise ..i.e an explicit enhancement .. . And we are looking for help in that .,
How do enter your code at a point which is not suggested by SAP but elsewhere ..
Incase you are aware please let us know ., So the right link which we need to refer is the Explicit enhancement link in the above link you have shown ..
Hope you understood what we are looking at ..
Hi Vinita,
In case you want to create a explicit enhancement option (and not implicit).
Then
1)Edit the Method.
2)Select the lines of standard SAP code which you want to change.
3)Right click->Enhancements->Create option
4)Select and Enhancement Section(if you want to overwrite the existing SAP logic) or
Enhancement Point(if you want to just add your logic without changing the existing logic).
Hope this helps:)
Regards,
Vinita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.