2012 Feb 23 9:35 AM
Hello ,
I am using SEO_CLASS_CREATE_COMPLETE to create class with methods ,In every call I send the new method's
with the respective implementation ,the issue here that I have case where we want to rename some method (during RT),
so how can I do that .how can I inform to the API that the method should be renamed ,I.e. keep the old implementation without add new source code.
or maybe should i use different FM for this issue?
Maybe I can use my own logic but there is option to read some method code in RT?
Thanks,
Joy
Edited by: Joy Stpr on Feb 27, 2012 1:54 PM
Hello ,
I am using SEO_CLASS_CREATE_COMPLETE to create class with methods ,In every call I send the new method's
with the respective implementation ,the issue here that I have case where we want to rename some method (during RT),
so how can I do that .how can I inform to the API that the method should be renamed ,I.e. keep the old implementation without add new source code.
or maybe should i use different FM for this issue?
Maybe I can use my own logic but there is option to read some method code in RT?
Thanks,
Joy
Edited by: Joy Stpr on Feb 27, 2012 1:54 PM
2012 Feb 27 2:21 PM
basically you have to do it in two steps:
1) copy the method into a new one
call function 'SEO_METHOD_COPY'
exporting
mtdkey = mtdkey
new_mtdkey = new_cmpkey
save = seox_false
exceptions
not_existing = 1
deleted = 2
target_not_existing = 3
is_event = 4
is_type = 5
is_attribute = 6
not_copied = 7
db_error = 8
others = 9.2) delete the original
cmpkey-clsname = mtdkey-clsname.
cmpkey-cmpname = mtdkey-cpdname.
call function 'SEO_METHOD_DELETE_W_DEPS'
exporting
mtdkey = cmpkey
save = seox_false
exceptions
not_existing = 1
is_event = 2
is_type = 3
is_attribute = 4
not_deleted = 5
db_error = 6
others = 7.look at standard method PROCESS_OP_RENAME of class CL_OO_CLASS_BUILDER in order to have a sample
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |