cancel
Showing results for 
Search instead for 
Did you mean: 

Enhancing Component which is used in FPM step

former_member196023
Active Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

former_member196023
Active Participant
0 Kudos

Hi Duy,

Thanks for taking interest in this post.

Actually I've tried a lot, but it never get into overwrite exit code.

could you try it creating some custom appl at your end?

Thanks,

Former Member
0 Kudos

Hi Haresh,

I've done quite a lot of customization for SAP web dynpro application in HR and all of them work. I don't find any reason why your is not work. What's the web dynpro component are you customizing?

Thanks,

Duy

former_member196023
Active Participant
0 Kudos

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

Former Member
0 Kudos

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