cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Screen configuration based on field.

Former Member
0 Kudos

Dear Experts,

There is a requirement of displaying data based on field.

Suppose If service order is related to Computer then we need to capture details related to computer and If it is for Laptop then we need to capture details for laptop.

In short screen attributes should get changed based on type of service order.

One methord can be to copy default configuration and create two configuration one with BUS2000116 and other with BUS2000116 and transaction type ZSRV. Can we select configuration during runtime based on attribute in details view for order type?

Or can we hide fields in UI during runtime based on value in attirbute? If yes can you suggest some sample code.

Thanks

View Entire Topic
yevgen_trukhin
Advisor
Advisor
0 Kudos

Hello pankaj,

You can create several configurations of the view and dynamically change configurations using the following method of the controller:

DO_CONFIG_DETERMINATION

with this code:

CALL METHOD me->set_config_keys
    EXPORTING
      iv_object_type          = lv_objstype " your configuration key 
      iv_propagate_2_children = 'X'.

Best Regards,

Yevgen