cancel
Showing results for 
Search instead for 
Did you mean: 

POWL for My Trips and Expenses

Former Member
0 Kudos

Dear Experts.

I have the following doubt with the service My Trips and Expenses, this application use POWL for display the column ie. trip number, Begin Time, End Time, and for this use the clase CL_FITV_POWL_FEEDER_TRIPS.

In this moment the requirement is hide and show several fields of this POWL.

I tested doing an enhancement to the method GET_FIELD_CATALOG of the class CL_FITV_POWL_FEEDER_TRIPS.

Please can anyone help me, for hide/show this columns.

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

dear,

the method GET_FIELD_CATALOG of the class CL_FITV_POWL_FEEDER_TRIPS is the right way.

but after changes in this method please run the report POWL_D01.

it will update the UI.

Best regards,

Rohit

http://wiki.sdn.sap.com/wiki/display/WDABAP/POWL

Former Member
0 Kudos

Dear Rohit.

The wiki is very good.

Regards

Former Member
0 Kudos

thanks dear,

Please update wiki with your experiences and examples so that we can make it better.

thanks,

Rohit

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

In that class, under HANDLE_ACTION method, i have enabled or disabled the buttons, as below.

But you can use POWL_QUERY transaction, if you want to hide it permanently.

data: lr_action_def type ref to powl_actdescr_sty,

l_result_tab type ptrm_powl_web_trips_ext.

if c_selected is not initial and i_actionid = 'POWL_LEAD_SEL'.

  • if one line is selected, we need to check the authorization and disable some actions accordingly

read table c_result_tab index i_action_index into l_result_tab.

loop at c_action_defs reference into lr_action_def.

  • lr_action_def->enabled = 'X'.

case i_type.

when 'FITV_POWL_TRIPS_EXP' or 'FITV_POWL_TRIPS_EXP_ASSISTANT'.

"SOME SELECT STATEMENTS

if sy-subrc eq 0.

IF CONDITIONS.

else.

if ( lr_action_def->actionid = 'CHANGE_EXP' or lr_action_def->actionid = 'DELETE' ).

clear lr_action_def->enabled.

endif.

endif.

endif.

endcase.

e_actions_changed = 'X'.

endloop.

endif.

Regards,

Ani

Pramanan
Active Participant
0 Kudos

Hi anandhi,

Thanks.I also received your replies.

How are you?  Please share your mail id.

Thanks,

Ramanan