on 08-31-2010 5:45 PM
Hi,
There is a requirement in which I want to create overwrite exit method of one of the standard web dynpro component which is used in FPM Step.
So I have gone for enhancing the Web Dynpro Component, created Overwite Exit and put the relavent code over there.
But the problem is: the code written in Overwrite Exit is not being called anywhere. Instead it still calling the same old original code.
how to resolve this?
Thanks,
-Haresh
Hi,
You can try these:
- Check if you activate the override exit.
- Put debug in both old code and new code.
- If it does not work, delete the override exit, and re-create it again.
Thanks,
Duy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Duy,
I think you are the right person who can address my issue.
The problem out here is :
1. I have a web dynpro component PRS_GAF_UI, in which is FPM based component.
2. My requiremnet is to show settings link for one of the ALV shown in view V_WIP_TBL.
So I was trying to create overwrite exit code for method INIT_ALV_WIP of COMPONENTCONTROLLER.
after writing code for enabling Settings link, I have put break-point in method INIT_ALV_WIP as well as in overwrite exit of this method.
But to my surprize it has stopped at method INIT_ALV_WIP but not in overwrite exit at all.
it would be great if you can go ahead and try doing same thing.
Thanks,
-Haresh
Hi Haresh,
I did it and it works for me.
I suggest that you create an override exit for the init_alv_wip first. You create another popup to google.com website for example to prove that it works.
Then create another override exit for init method of the component controller, call the method init_alv_wip inside init method
Put debug on it in the debug mode you will see the following code is call in init_alv_wip:
data: called_overwrite type string.
assert fields called_overwrite 'ZTEST_PRS_GAF_UI' condition called_overwrite is initial.
called_overwrite = `ZTEST_PRS_GAF_UI`.
me->f_appl_class->_ovr_4j0o1n9ku2lyw0i2xj6mhbpta(
).
if called_overwrite is initial.
me->f_appl_class->init_alv_wip(
).
endif.
ZTEST_PRS_GAF_UI is the enhancement.
this code is the override exit you created for init_alv_wip
me->f_appl_class->_ovr_4j0o1n9ku2lyw0i2xj6mhbpta(
).
Thanks,
Duy
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.