cancel
Showing results for 
Search instead for 
Did you mean: 

SAP SRM - FM to update the FINAL_INV flag indicator directly

navdeep_malik
Explorer
0 Kudos

Hi All,

Is there any FM to update the FINAL_INV flag indicator directly for Purchase Order? (Instead of using FM BBP_PD_PO_UPDATE)

Thanks and Regards,

Navdeep Malik

Accepted Solutions (0)

Answers (1)

Answers (1)

michael_saulo2
Discoverer
0 Kudos

Use FM BBP_PD_PO_UPDATE.

Make sure to pass in an 'S' for the value for final_inv flag on your items table. Sending an 'X' in for that value will not set it, b/c of the following logic that the BBP_PD_PO_UPDATE hits in include LBBP_PDIGPF14:

  • mix up final entry/ invoice ind for change versions (very complicated)

IF p_object_type EQ c_po.

CASE new_itmigp-final_inv.

WHEN c_on OR c_off.

new_itmigp-final_inv = old_itmigp-final_inv.

WHEN gc_unchecked_manually OR gc_checked_manually.

  • keep it

WHEN gc_to_set.

new_itmigp-final_inv = c_on.

WHEN gc_to_delete.

new_itmigp-final_inv = c_off.

WHEN OTHERS.

PERFORM abort.

ENDCASE.

ENDIF.

If you want to set the Final_Inv flag, you need to send 'S' in as the value to set the switch on the item level.

I realize this forum is pretty old, but in case anybody else comes across this issue of setting this flag I thought I could help.