‎2009 Feb 19 4:21 AM
hi experts,
I have a reuqirement to mass change the Voucher text, so I use function 'FI_ITEMS_MASS_CHANGE' do the change. The problem is just part of items changed, If I run again, more items changed. so I wait 1 second, then most of items changed, but I can't ensure all of the items are changed. Is there anyway to make sure the DB submit succeed? BTW, the sy-subrc always be 0, even if the submit failed.
‎2009 Feb 19 4:29 AM
Hi ,
You can check the DBCNT which will give the no of Db records are changed .
Regards
Pinaki
‎2009 Feb 19 4:25 AM
code block as follow:
CALL FUNCTION 'FI_ITEMS_MASS_CHANGE'
EXPORTING
s_bseg = ls_bseg
IMPORTING
errtab = lt_errtab[]
TABLES
it_buztab = lt_buztab
it_fldtab = lt_fldtab
EXCEPTIONS
bdc_errors = 1
OTHERS = 2.
IF sy-subrc NE 0.
.....................
ELSE.
WAIT UP TO 1 SECONDS.
ENDIF.
‎2009 Feb 19 4:29 AM
Hi ,
You can check the DBCNT which will give the no of Db records are changed .
Regards
Pinaki
‎2009 Feb 19 4:30 AM
‎2009 Feb 19 5:58 AM