cancel
Showing results for 
Search instead for 
Did you mean: 

POWL enhancement - how to make it?

former_member627003
Participant
0 Kudos

Hello all,

I am a webdynpro developer and have a task to modify the name of the header descriptions on the main screen (see "selected" below):

For example, I want to modify the header name "Risk / Oportunnity" to "Risk".

I got the name of the Component (POWL_UI_COMP) and oppened in the SE80 editor, but I can't see where I can enhance this screen.

Could someone help me giving some idea?

Thanks,

Ricardo

Accepted Solutions (1)

Accepted Solutions (1)

alex_cook
Active Participant
0 Kudos

Hi Ricardo,

You don't need to make changes to the POWL component.

The POWL is sent data via the Feeder Class.  You need to determine which feeder class is supporting the POWL.

From transaction POWL_TYPE you can find the entry for your powl, double click and get the feeder class.

Then you can go to SE24 and enter the feeder class name.  The method you need to modify is IF_POWL_FEEDER~GET_FIELD_CATALOG, as this supplies the field catalog (and therefore the header names) to the POWL.

So if the feeder class is custom you can change it, or if it is standard you can do an enhancement.

Cheers

Alex

former_member627003
Participant
0 Kudos

Hello Alex,

Very good tip!

Some of the screens, I found the POWL_TYPE corresponding... but some of them not.

Normally, all of those screen are simple to find in this POWL_TYPE transaction?

Thanks,

Ricardo

alex_cook
Active Participant
0 Kudos

Howdy,

I wouldn't say simple! I'm not really a POWL expert as I have just been dabbling in it.

But if you go to class CL_POWL_MODEL method FEEDER_GET_OBJECT_DEF there is a line of code:

CREATE OBJECT <fs_type>-instance type (<fs_type>-feeder).

Here <fs_type> will be the POWL_TYPE and <fs_type>-feeder is the feeder class name.

So if you put a breakpoint in that line of code and run your POWL then you'll get the name of the feeder class that you need to enhance.

Cheers

Alex

former_member627003
Participant
0 Kudos

Hey Alex,

It was a very good tip. I got the feeder class of the main screen doing what you said.

But, for the others screens, it didn't work

I will try researching more... because some of the screens I couldn't get by the POWL_TYPE.

I tried each one on there and put a break point but anybody stopped when I made a test.

Cheers,

Ricardo

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ric,

     Try Using the following code in Feeder class of the powl.

Method : IF_POWL_FEEDER~GET_FIELD_CATALOG

FIELD-SYMBOLS: <fs_fieldcat> LIKE ls_fieldcat.

READ TABLE c_fieldcat
  ASSIGNING <fs_fieldcat>
  WITH KEY colid = 'Your Column'.
IF sy-subrc = 0.
  <fs_fieldcat>-header = 'Name to be changed'.
ENDIF.

Regards

Rajashiva

former_member627003
Participant
0 Kudos

Hello Rajashiva,

The coding wasn't a problem for me, but your suggestion will be helpful to other person who would like to learn this.

Regards,

Ricardo