Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8950

Re: Configure field selection for equipment user-fields

$
0
0

Hello Carlos,

 

It is not possible from here (spro). But these requirements can be well met from within the screen-exit itself. i.e. through codes written in the PBO and PAI modules. I have already touched upon this aspect in the same document after Step4 and below Almost done. I have provided a sample code there to make the fields to Display mode if the tcode is 'IE03' .

  • This Display code can be  extended to other situations also and to individual z-fields through other IF syntaxes.
  • In the same manner simple codes can make all your Zfields Required (means Mandatory), Hide also.


For example a code like:

IF equi-eqtyp = 'A' .
     LOOP AT SCREEN.
       IF screen-name CS 'equi-zzito_zfield'.
         screen-active = '0'.
         MODIFY SCREEN.
       ENDIF.
     ENDLOOP.
   ENDIF.

in PBO Module hides the zfield if the Equipment category is 'A' .

 

 

Similarly a code like

IF equi-eqtyp = 'A' and equi-zzito_zfield IS INITIAL.
     MESSAGE: 'Please fill zfield' TYPE 'E' DISPLAY LIKE 'I'.
   ENDIF.

in PAI Module will make the Zfield mandatory if the Equipment category is 'A'..

 

 

For making zfields (or any standard field of equipment master) mandatory, I recommend user-exit IEQM0003 . Put the following code in include ZXEQMU02:

IF data_equi-eqtyp = 'A' and data_equi-zzito_zfield IS INITIAL.
     MESSAGE: 'Please fill zfield' TYPE 'E' DISPLAY LIKE 'I'.
   ENDIF.

This code makes the Zfield mandatory if the Equipment category is 'A' and stops SAVE event of the Equipment.

 

Please check the syntax of the codes above. I am just giving code hints.

 

 

Regards

KJogeswaraRao


Viewing all articles
Browse latest Browse all 8950

Trending Articles