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

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 = 'PARTNER NO'.

 

   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 Line3 different color, to indicate that you are supposed to write here the code to store in lv_parnr variable your desired value to be automatically filled in the Person Responsible field of the Order header.
  • 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 3189

Trending Articles



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