Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Fuction for canceling Orders Confirmation IW45

albertopisa
Discoverer
0 Kudos

Good afternoon,

I need a function or a way to call IW45 (notifications is created at IW41) with a Order Confirmation and Cancel/Reverse (all versions of the notications if any).

Like AUFK wa > Function post canceling > AUFK reversed wa.

We have Z custom fields in IW41 that we need to update, for that, I think is better call reverse notification and create a new one with the new values, isnt it?

Regards!

1 ACCEPTED SOLUTION

albertopisa
Discoverer
0 Kudos

Seems done using (or at least workaround): ZXCOFU05 / EXIT_SAPLCORF_005

Then code is like:

  ASSIGN ('(SAPLZPROGRAM)AFRUD-XXXXXX) TO <field_mptyp>.

....

    

  MODIFY afrud_tab FROM afrud_tab.

CALL FUNCTION 'CO_RU_EDIT_CONF'
  EXPORTING
    afrud_imp            = afrud_tab
    aktyp_imp            = 'V'
    aufvd_imp           = caufvd_tab
  IMPORTING
    afrud_exp            = afrud_tab
    aktyp_exp            = lv_aktyp

Regards.

1 REPLY 1

albertopisa
Discoverer
0 Kudos

Seems done using (or at least workaround): ZXCOFU05 / EXIT_SAPLCORF_005

Then code is like:

  ASSIGN ('(SAPLZPROGRAM)AFRUD-XXXXXX) TO <field_mptyp>.

....

    

  MODIFY afrud_tab FROM afrud_tab.

CALL FUNCTION 'CO_RU_EDIT_CONF'
  EXPORTING
    afrud_imp            = afrud_tab
    aktyp_imp            = 'V'
    aufvd_imp           = caufvd_tab
  IMPORTING
    afrud_exp            = afrud_tab
    aktyp_exp            = lv_aktyp

Regards.