cancel
Showing results for 
Search instead for 
Did you mean: 

Return PO box ticked for return PO document type

madhu_vadlamani
Active Contributor
0 Kudos

HI All,

There is a help need for Badi. While creating a return PO in T Code ME21N, i want to get return PO field ( EKPO-RETPO) box ticked for Return PO document type. I found one BADI for ME_COMMITMENT_RETURN. I need help to use this badi.

Regards,

Madhu.

Accepted Solutions (0)

Answers (2)

Answers (2)

madhu_vadlamani
Active Contributor
0 Kudos

Answered.

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Why don't use the BADI ME_PROCESS_PO_CUST, method PROCESS_ITEM? You have a demo. The idea is:


  data: ls_mepoitem type mepoitem,
        ls_header type ref to if_purchase_order_mm,
        ls_data_header type mepoheader.

  ls_mepoitem = im_item->get_data( ).
  ls_header = im_item->get_header( ).
  ls_data_header = ls_header->get_data( ).

  IF condition IS TRUE.    "with LS_MEPOITEM, LS_DATA_HEADER
    ls_mepoitem-retpo = 'X'.
  ENDIF.

  im_item->set_data( ls_mepoitem ).

I hope this helps you

Regards

Eduardo

madhu_vadlamani
Active Contributor
0 Kudos

HI E_Hinojosa,

Thanks for your reply. I will check and tell you. Second time i got a good answer form you. Thank you.

Regards,

Madhu.