Réinitialiser le refus d’une commande d’achat

Pour simuler ME29N > Stratégie de lancement > Réinitialiser refus : data(lo_po_handler) = cl_po_handler_mm=>get_instance( ). lo_po_handler->open( exporting im_tcode = ‘ME29N’ im_trtyp = cl_mmpur_constants=>ver im_aktyp = cl_mmpur_constants=>ver im_po_number = lv_po_number importing ex_po_data = data(ls_po_data) ). ls_po_data-data-procstat = ’03’. ls_po_data-datax-procstat = abap_true. lo_po_handler->set_po( ls_po_data ). lo_po_handler->po_process( importing ex_messages = lt_message ). if lt_message is initial. lo_po_handler->po_check( importing …