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

Update BSID

Former Member
0 Likes
788

Hi all,

I need to do a direct update to table BSID for field zuonr, where i need to replace zuonr with a number.

I coded my logic this way :

select * from bsid into table t_bsid

where zuonr = <itb_bsid>-vbeln.

if sy-subrc = 0.

loop at t_bsid assigning <fs_bsid>.

<fs_bsid>-zuonr = <itb_s3>-zuonr.

endloop.

update bsid from table t_bsid.

if sy-subrc = 0.

commit work.

<itb_s3>-remarks = 'A'.

else.

<itb_s3>-remarks = 'C'.

endif.

- when i select * from bsid, my t_bseg is having the line of recod, and is manage to change the value for zuonr to the new value, but when it try to update bsid from table t_bsid, if return sy-subrc as '4'.

Can anyone help me on this? I'm in urgent to settle this, thanks alot!!

2 REPLIES 2
Read only

Former Member
0 Likes
518

<b>Absolutely do not do this.</b> You can ruin you financial system. Table entries that need to match will not.

You can use transactions FB02 to change individual documents or FBL5N to do many changes.

Rob

Read only

Clemenss
Active Contributor
0 Likes
518

pompougnia,

it is exactly as Rob said. BSID is a secondary index derived from values in related business documents. If the documents are updated through respective standard transactions (as i.e. FB02) alls data get updated properly - including BSID.

If you ask your auditor about this, it might be your last time to ask anything.

Regards,

Clemens