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

Re: Automatic filling in PERNR field in Maintenance Orders PM

$
0
0

Hello Adriano

This can be done using exit IWO10009.  Put the code below in the include  ZXWOCU07  of the above exit and the job is done.

IF caufvd_imp-warpl IS NOT INITIAL.

   DATA: lv_parnr TYPE ihpa-parnr.

   CLEAR lv_parnr.

 

   lv_parnr = '2923'.

 

   CALL FUNCTION 'PM_PARTNER_SYNC_OBJECT_ORDER'

     EXPORTING

       objnr    = caufvd_imp-objnr

       auart    = caufvd_imp-auart

       obtyp    = 'ORI'

       parnr_in = lv_parnr

       parvw_in = 'VW'.

ENDIF.

 

  • I gave Line4 different color, to indicate that you are supposed replace this hard-coded line by the logic which retrieves the value for Person Responsible field and stores in the variable lv_parnr . Then it will be automatically filled in the Person Responsible field by the fm used in the code.. (If it is always '2923' then the code is readily fits into use,)
  • As you desired, this automatic filling will happen to Orders created through Maint. plans only.
  • I have tested this.

 

 

Good luck

KJogeswaraRao


Viewing all articles
Browse latest Browse all 2800

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>