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

Re: Equipment determination in service order from sales order

$
0
0

Hello PA,

 

You wrote:

I need a way to force Equipment value at the time service order is created.

This is possible through user-exit IWO10009. You need to tell where from the Equipment number (EQUNR value) to be fetched? After retieving this value to a variable say V_EQUNR, then the code below will do the job.

DATA: V_EQUNR TYPE EQUNR.

CLEAR V_EQUNR.

 

<Your logic here to retrieve EQUNR value and store into V_EQUNR>

 

IF CAUFVD_IMP-AUART = 'SM01'.    "SM01 is your Order type

  CAUFVD_IMP-EQUNR = V_EQUNR.

 

  CALL FUNCTION 'CO_IH_SET_HEADER'

    EXPORTING

      CAUFVD_IMP = CAUFVD_IMP.

 

  PERFORM HEADER_UPDATE(SAPLCOIH).

ENDIF.

 

The above code is to be put in the include ZXWOCU07 (user-exit IWO10009). Then the Order will be created with Equipment value given in this code.

 

 

Good luck

KJogeswaraRao


Viewing all articles
Browse latest Browse all 9236

Trending Articles



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