You can use this FI_ITEMS_MASS_CHANGE Function module to change items in FI Doc, This function module is the same as the fb02 transaction code.

Sample code below use FI_ITEMS_MASS_CHANGE to change item text ( BSEG-SGTXT ).

Incoming search terms:

FI_ITEMS_MASS_CHANGE