02-03-2011 2:40 PM
Hi everyone, i create an infotype custom with subscreen; then create association for infty and type position 'O'.
From subscreen MPXXXX00 subscreen 7000 i have to disable dynpname = 'SAPLRHOMDETAILMANAGER'.
dynpnumb = '0300' fields DISPLAY_PERIOD-BEGDA and DISPLAY_PERIOD-ENDDA.
With f.m. 'DYNP_VALUES_UPDATE' i can change the value , but not the properties.....
How can I do , if is possible ?
Thank' s a lot !!!!!
02-04-2011 9:20 AM
02-04-2011 3:49 PM
Hi Marco.
There is chance to do what you want using implicit enhancements, but you must use it carefully.
In the include LRHOMDETAILMANAGERF01 there is a subroutine named INIT_PERIODS, this subroutine is called from a PBO module of Dynpro 0300, so as you can not modify directly this standard include you must use implicit enhancements.
After you have created the enhancement you will be able to add some code at the end of subroutine.. you can make use of field "act_info-tabtype" to identify the active tab, after that you should perform a loop at screen and change the input field to 0.
the source code looks like this:
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1) Forma INIT_PERIODS, Final A
$$-Start: (1)----
$$
ENHANCEMENT 1 ZHCMOM001. "active version
*
if act_info-tabtype = 'IT9001'.
loop at screen.
if screen-name = 'DISPLAY_PERIOD-BEGDA'.
screen-input = 0. "Inactivate
modify screen.
endif.
endloop.
else.
loop at screen.
if screen-name = 'DISPLAY_PERIOD-BEGDA'.
screen-input = 1. "Activate
modify screen.
endif.
endloop.
endif.
ENDENHANCEMENT.
$$-End: (1)----
$$
Don't forget activate the enhancement.
Let me know if it works.
Regards
02-10-2011 9:10 AM
Hi maorivaden, I'm sorry for answering in late time.... but I would not use the enhancement .... maybe it'll work...