on 04-20-2009 9:52 AM
Dear All,
Can anyone help me how to restrict expense types based on trip types (Domestic / International).
Regards,
Anl.
Hi,
We have done the same by using customized search help exit for the field PTK03-SPKZL.
Standard search help exit is:PTRV_F4_EXP_TYPE_SH_EXIT, copy this as a Z function module and modify according to your requirement.
Procedure:
Open data element:SPKZL from SE11.
Check the search help name:SH_EXPENSE_TYPES.
Double click on the search help SH_EXPENSE_TYPES.
You can find the search help exit name:PTRV_F4_EXP_TYPE_SH_EXIT
Copy that PTRV_F4_EXP_TYPE_SH_EXIT into a 'Z' function module.
Filter the expense type, in the loop,
loop at spkzls where spkzl in t_spkzl_selopt and sptxt in t_sptxt_selopt.
****write ur logic here to filter the expense types based on the activity
append spkzls to spkzls_help.
endloop.
After activating the above z function module, replace the standard function module with 'z' function module in search help exit filed.
Hope It will be helpful to you.
Thanks and Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
where to go and change to customized webdynpro service. Already through SE11 -> Datatype, i have changed the search help to Z Function module.
And also based on your reply, i try to change the function module to remote enable, then it shows error "Type SHLP_DESCR_T is unknown", which is in the Changing Parameter declaration.
Regards,
Ani
Hi,
Sorry the BADI name is TRIP_WEB_CUSTOMIZING.
Go to SE18, enter the BADI name TRIP_WEB_CUSTOMIZING. and display.
Go to Menu "Implementation" -> Create and enter the Implementation name as Z_*. And enter the Short text and save and activate.
In the Interface Tab of the implementation screen, double click the method USER_EXIT_CUSTOMIZING.
If you don't find the method USER_EXIT_CUSTOMIZING first time, then double click the interface name "IF_EX_TRIP_WEB_CUSTOMIZING".
And it will go to the method IF_EX_TRIP_WEB_CUSTOMIZING~USER_EXIT_CUSTOMIZING. screen, where we can do the codings.
The codings are as follows:
data: wa_schema type PTRV_WEB_T706S.
data: wa_exptype type PTRV_WEB_T706B1
loop at trip_schemas into wa_schema.
if wa_schema-T_SCHEMA = '01'.
loop at EXPENSE_TYPES into wa_exptype.
if wa_exptype-EXP_TYPE+0(1) ne '1'.
delete expense_types.
endif.
endloop.
endif.
endloop.
It depends on your requirement, our requirement was based on schema 01, it has to show those expense type starting with '1'.
Hope the above is clear.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.