Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Help on Database submit when mass document change

Former Member
0 Likes
668

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
628

Hi ,

You can check the DBCNT which will give the no of Db records are changed .

Regards

Pinaki

4 REPLIES 4
Read only

Former Member
0 Likes
628

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.

Read only

Former Member
0 Likes
629

Hi ,

You can check the DBCNT which will give the no of Db records are changed .

Regards

Pinaki

Read only

Former Member
0 Likes
628

hi

try with COMMIT WORK AND WAIT.

Read only

0 Likes
628

it doesn't work.

if there any other method?