cancel
Showing results for 
Search instead for 
Did you mean: 

BAdi to modify PM order at save

marc_marco
Contributor
0 Kudos
4,787

Hi all,

Is there is any BAdi that is triggered before save and can update the PM order header  CAUFVD structure.

I tried  WORKORDER_UPDATE  with no sucsses,my requirement is to add some data to the PM order when release maintenance call from IP10.

Thanks

M

Accepted Solutions (1)

Accepted Solutions (1)

jogeswararao_kavala
Active Contributor

Hello Ziv Markovich,

I use an FM and the following syntax extensively in user-exit IWO10009 to update fields at Order Save event. For example, if I want to update Order Short text then, the code is:


CAUFVD_IMP-KTEXT = 'Your New text is here'.

CALL FUNCTION 'CO_IH_SET_HEADER'

    EXPORTING

      CAUFVD_IMP = CAUFVD_IMP.

  PERFORM HEADER_UPDATE(SAPLCOIH).

This modifies the Order short text to 'Your New text is here'.

Here is another such example in my earlier replies.: Dates in Maintenance Order


Hope this helps you.

Regards

KJogeswaraRao

Answers (2)

Answers (2)

peter_atkin
Active Contributor
0 Kudos

Ziv,

Can you give more details on how you see this working??

It should be possible via one of the methods in WORKORDER_UPDATE.


PeteA

MTerence
Active Contributor
0 Kudos

This message was moderated.