11-28-2007 9:36 AM
Hi Friends,
I got a requirement to change contract type(p0016-cttyp) combo box based on some conditions. <u>I want to know if there is any userexit or BADI which we can delete some of the values in the combo box.</u>
Program name: - MP001600
Screen No. : - 2000
You can find contract type combo box. Here I need to delete some of values in combo box. It should be in PBO.
Any help is appreciated.
Regards,
Hari k
11-28-2007 10:01 AM
11-28-2007 10:23 AM
Hi
You can check the exit PBAS0001 in that may be function exit "EXIT_SAPFP50M_001" may serve your purpose.
~ Ranganath
PS : Reward points for all useful answers !
11-28-2007 10:30 AM
Hi Ramesh,
Thanks for your reply.
I checked EXIT_SAPFP50M_001 already. But the problem is that again it is going into the MODULE INIT_COMBOBOX. (Screen: 2000 in PBO) and there u can see the below SAP Code: -
This code is selecting all the values from the T547S and displaying in the combo box before the screen is displayed.
check combo_id is initial.
combo_id = 'P0016-CTTYP'.
Merken des ursprünglichen Inhalts von T547V "XPVN0376106
save_t547v = t547v. "XPVN0376106
select * from t547v.
if sy-subrc = 0.
select * from t547s where sprsl = sy-langu
and cttyp = t547v-cttyp.
endselect.
if sy-subrc ne 0.
clear t547s.
endif.
write t547v-cttyp to item-key left-justified.
item-text = t547s-cttxt.
append item to items.
endif.
endselect.
clear t547s-cttxt.
clear t547v. "XCZK000696
Restaurieren des ursprünglichen Inhalts von T547V "XPVN0376106
t547v = save_t547v. "XPVN0376106
call function 'VRM_SET_VALUES'
exporting
id = combo_id
values = items.
exceptions
id_illegal_name = 1
others = 2.
In the debugging: I kept combo_id some value and tried not executing the above SAP code and then my user exit code is working fine...
How to solve the above problem ?
Regards,
hari