on 04-25-2016 1:47 PM
Dear,
I have Implemented a BADI to Hide, And changes some property of UI During Runtime: But the BADI is not getting called even I have passed UI Configuration as my Custom Application Name at Filter value of BADI and Implemented all the methods.
And also Let me know where I have missed out.
Regards,
Riyajuddin
Dear Raghuram/MDG_User,
By using this BADI- USMD_ACC_FLD_PROP_CUST_DEP_SET .
I am able to hide the field and change the property. But My requirement Is Based on Plant entered on first screen I am going to hide some TAB like example PURCHASEING tab.
By this I am not able to hide entire TAB which is not required Plese let me know how its possible.
Regards,
Riyajudddin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Raghuram,
My requirement: To add a custom field on Material First screen Say - External material Group (EXTWG).I Manage to enhance first screen. Based on the value of first screen to hide some UIBBS on second screen.
Eg. If EXTWG = 'HT' Then hide views "SALES VIEW" "PURCHASING VIEW".
By using BADI- I am able to file field and set property not able to hide the entire views.
Regards,
Riyaj
Hi Mohd,
Hope you are using a custom feeder class copied from CL_MDG_BS_MAT_FEEDER_FORM_SET for your initial screen.
Then try redefining method /PLMU/IF_FRW_G_GLOBAL_EVENTS~PROCESS_GLOBAL_EVENT and add below block of code under event 'MDGM_CONTINUE' in your custom feeder class as below. This could work.
DATA: lv_werks TYPE werks_d.
DATA lt_uibbs TYPE if_fpm_ovp=>ty_t_uibb.
DATA lo_cnr_ovp TYPE REF TO if_fpm_cnr_ovp.
DATA ls_uibb TYPE if_fpm_ovp=>ty_s_uibb.
DATA: lo_fpm TYPE REF TO if_fpm,
lo_fpm_ovp TYPE REF TO cl_fpm_ovp.
CASE io_event->mv_event_id.
WHEN cl_mdg_bs_mat_c=>gc_event_continue. " 'MDGM_CONTINUE'
mo_context->get_attribute(
EXPORTING
iv_name = 'YPLANT' " Custom attribute on initial screen
IMPORTING
ev_value = lv_werks ).
IF lv_werks = 'TEST'.
TRY.
lo_cnr_ovp ?= cl_fpm=>get_instance( )->get_service( cl_fpm_service_manager=>gc_key_cnr_ovp ).
lo_cnr_ovp->get_uibbs( IMPORTING et_uibb = lt_uibbs ).
CATCH cx_fpm_floorplan.
ENDTRY.
lo_fpm = cl_fpm_factory=>get_instance( ).
lo_fpm_ovp ?= lo_fpm->get_service('CNR_OVP').
TRY.
LOOP AT lt_uibbs INTO ls_uibb WHERE config_id = 'MDG_BS_MAT_MARA_SALES_05'. " Check for UIBB to hide
ls_uibb-hidden = 'X'.
lo_fpm_ovp->change_uibb(
EXPORTING
is_uibb = ls_uibb " UIBB to be changed
).
ENDLOOP.
CATCH cx_fpm_floorplan.
ENDTRY.
ENDIF.
ENDCASE.
Hey,
I have done this but in just different way,
Enhanced schema BS_MAT, By View cluster (SM34) FPM_VC_ADAPT_SCHEMA. By this I can add my customer defined field at CBA. Now my CBA contains ACTION, CR TYPE, MTART,WORKFLOW STEP, EXTWG.
@ External Material group(EXTWG) Is on my initial screen on Create material screen.
Then I added one entries on Table WDY_APP_PROPERTY, On this table I have added my Application name and EXTWG.
Then by using EXTWG at CBA, I can able to Hide UIBBS. I find this a simple way to do..
Thanks For you support and quick response.
Regards,
Riyajuddin.
Hi,
Is your UI configuration based on USMD_ENTITY_VALUE2 or on USMD_OVP_GEN?
If your using USMD_OVP_GEN , then the BADI is not triggered.
Regards,
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.