Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Infotype in PPOME , disable display_period-begda and display_period-endda

0 Kudos

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 !!!!!

3 REPLIES 3

Former Member
0 Kudos

Hi, i'm sorry but it's impossible...

Regards

Former Member
0 Kudos

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

0 Kudos

Hi maorivaden, I'm sorry for answering in late time.... but I would not use the enhancement .... maybe it'll work...