Application Development and Automation 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: 
Read only

me_process_po_cust

Former Member
0 Likes
1,015

Hi Guys,

I have a question, i have added a field in a user and i want to save it in the purchase order.

I thought that the badi that i have to implement is the me_process_pos_cust, but when i try to locate it putting a break point in the method get_instance of th class cl_Exithandler and i push save in the me22n transaction this badis name does not appear.

Is there a new badi?

BEst Regards

Jon

Moved to the right forum

Edited by: kishan P on Sep 1, 2010 2:10 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
795

Hi Jon,

Try to use this badi or this exit.

ME_PURCHDOC_POSTED .

'EXIT_SAPMM06E_013'

Both exits triggers while PO is saved.


IF active NE space.
*-User Exit:
    CALL FUNCTION 'EXIT_SAPMM06E_013'
      EXPORTING
        i_ekko     = ekko
        i_ekko_old = ls_ekko_old
        i_logsy    = ekko-logsy
        i_vorga    = t160-vorga
      TABLES
        xeket      = lt_usr_xeket
        xekkn      = lt_usr_xekkn
        xekpo      = lt_usr_xekpo
        xkomv      = lt_usr_xkomv
        yeket      = lt_usr_yeket
        yekkn      = lt_usr_yekkn
        yekpo      = lt_usr_yekpo
        ykomvi     = lt_usr_ykomv
        xekbes     = lt_usr_xekbes
        xekes      = lt_usr_xekes
        xekeh      = lt_usr_xekeh
        xekek      = lt_usr_xekek
        xeina      = lt_usr_xeina
        xeine      = lt_usr_xeine
        yeina      = lt_usr_yeina
        yeine      = lt_usr_yeine
        yekes      = lt_usr_yekes
        yekeh      = lt_usr_yekeh
        yekek      = lt_usr_yekek
        xbatu      = lt_usr_xbatu
        xekpa      = lt_usr_xekpa
        yekpa      = lt_usr_yekpa
        xekpv      = lt_usr_xekpv
      EXCEPTIONS
        OTHERS     = 0.
  ENDIF.


*- BAdI ME_PURCHDOC_POSTED
  IF NOT badi_purchdoc_inst IS INITIAL.
    CALL METHOD badi_purchdoc_inst->posted
      EXPORTING
        im_vorga    = t160-vorga
        im_ekko     = ekko
        im_ekko_old = ls_ekko_old
        im_ekpo     = lt_usr_xekpo
        im_ekpo_old = lt_usr_yekpo
        im_eket     = lt_usr_xeket
        im_eket_old = lt_usr_yeket
        im_ekkn     = lt_usr_xekkn
        im_ekkn_old = lt_usr_yekkn
        im_komv     = lt_usr_xkomv
        im_komv_old = lt_usr_ykomv
        im_ekbes    = lt_usr_xekbes
        im_ekes     = lt_usr_xekes
        im_ekes_old = lt_usr_yekes
        im_ekeh     = lt_usr_xekeh
        im_ekeh_old = lt_usr_yekeh
        im_ekek     = lt_usr_xekek
        im_ekek_old = lt_usr_yekek
        im_eina     = lt_usr_xeina
        im_eina_old = lt_usr_yeina
        im_eine     = lt_usr_xeine
        im_eine_old = lt_usr_yeine
        im_batu     = lt_usr_xbatu
        im_ekpa     = lt_usr_xekpa
        im_ekpa_old = lt_usr_yekpa
        im_ekpv     = lt_usr_xekpv
      EXCEPTIONS
        OTHERS      = 0.
 
  ENDIF.

I hope this may helpfull.

Thank you,

Thanks,

AMS

Hi Guys,

I have a question, i have added a field in a user and i want to save it in the purchase order.

I thought that the badi that i have to implement is the me_process_pos_cust, but when i try to locate it putting a break point in the method get_instance of th class cl_Exithandler and i push save in the me22n transaction this badis name does not appear.

Is there a new badi?

BEst Regards

Jon

Moved to the right forum

Edited by: kishan P on Sep 1, 2010 2:10 PM

2 REPLIES 2
Read only

Former Member
0 Likes
795

Hi,

try with ME_PROCESS_PO_CUST & ME_GUI_PO_CUST

regs,

raja

Read only

Former Member
0 Likes
796

Hi Jon,

Try to use this badi or this exit.

ME_PURCHDOC_POSTED .

'EXIT_SAPMM06E_013'

Both exits triggers while PO is saved.


IF active NE space.
*-User Exit:
    CALL FUNCTION 'EXIT_SAPMM06E_013'
      EXPORTING
        i_ekko     = ekko
        i_ekko_old = ls_ekko_old
        i_logsy    = ekko-logsy
        i_vorga    = t160-vorga
      TABLES
        xeket      = lt_usr_xeket
        xekkn      = lt_usr_xekkn
        xekpo      = lt_usr_xekpo
        xkomv      = lt_usr_xkomv
        yeket      = lt_usr_yeket
        yekkn      = lt_usr_yekkn
        yekpo      = lt_usr_yekpo
        ykomvi     = lt_usr_ykomv
        xekbes     = lt_usr_xekbes
        xekes      = lt_usr_xekes
        xekeh      = lt_usr_xekeh
        xekek      = lt_usr_xekek
        xeina      = lt_usr_xeina
        xeine      = lt_usr_xeine
        yeina      = lt_usr_yeina
        yeine      = lt_usr_yeine
        yekes      = lt_usr_yekes
        yekeh      = lt_usr_yekeh
        yekek      = lt_usr_yekek
        xbatu      = lt_usr_xbatu
        xekpa      = lt_usr_xekpa
        yekpa      = lt_usr_yekpa
        xekpv      = lt_usr_xekpv
      EXCEPTIONS
        OTHERS     = 0.
  ENDIF.


*- BAdI ME_PURCHDOC_POSTED
  IF NOT badi_purchdoc_inst IS INITIAL.
    CALL METHOD badi_purchdoc_inst->posted
      EXPORTING
        im_vorga    = t160-vorga
        im_ekko     = ekko
        im_ekko_old = ls_ekko_old
        im_ekpo     = lt_usr_xekpo
        im_ekpo_old = lt_usr_yekpo
        im_eket     = lt_usr_xeket
        im_eket_old = lt_usr_yeket
        im_ekkn     = lt_usr_xekkn
        im_ekkn_old = lt_usr_yekkn
        im_komv     = lt_usr_xkomv
        im_komv_old = lt_usr_ykomv
        im_ekbes    = lt_usr_xekbes
        im_ekes     = lt_usr_xekes
        im_ekes_old = lt_usr_yekes
        im_ekeh     = lt_usr_xekeh
        im_ekeh_old = lt_usr_yekeh
        im_ekek     = lt_usr_xekek
        im_ekek_old = lt_usr_yekek
        im_eina     = lt_usr_xeina
        im_eina_old = lt_usr_yeina
        im_eine     = lt_usr_xeine
        im_eine_old = lt_usr_yeine
        im_batu     = lt_usr_xbatu
        im_ekpa     = lt_usr_xekpa
        im_ekpa_old = lt_usr_yekpa
        im_ekpv     = lt_usr_xekpv
      EXCEPTIONS
        OTHERS      = 0.
 
  ENDIF.

I hope this may helpfull.

Thank you,

Thanks,

AMS