Skip to Content
0
Feb 22, 2011 at 10:39 AM

Infotype screen extension

91 Views

Hi everyone,

I extended an infotype. I modified the Structure, and the screen, and everything works perfectly, but there is a problem:

In the standard screen there is a FIeld P0004-SBGRU

I would like to implement a check in the PAI, where I check if the P004-SBGRU = 'H2' then P0004-SBPRO OR P0004-ZZ_SBPRO must be filled.

pseudo code:

IF P0004-SBGRU EQ 'H2'.
  IF P0004-SBPRO IS INITIAL  AND P0004-ZZ_SBPRO IS INITIAL
     MESSAGE e055(00). "one of the field is obligatory
  ENDIF.
ENDIF.

The problemis that in my customer subscreen, I can only acces the Z fields:

CHAIN.
    FIELD P0004-ZZ_SBPRO.
    MODULE INPUT_STATUS_SUBSCREEN ON CHAIN-REQUEST.
    MODULE CHECK_CATEGORY ON CHAIN-REQUEST.
 ENDCHAIN.

My question is:

:Is it possible to check the main screen's field in the subscreen? (without modifying SAP standard screen)

Thanks

N.G.