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 table FMIOI

0 Likes
642

I would like to update field FMIOI-OBJNRZ with internal order number or Cost Center number. because I have been implement use exit after "SAPLFMOI" to transfer objnrz with below code

if I_F_COBL-HKONT+0(4) = '0011'.

CONCATENATE 'OR' I_F_COBL-AUFNR

INTO C_DEFAULT_OBJNRZ.

elseif ( I_F_COBL-HKONT+0(3) = '003'

or I_F_COBL-HKONT+0(3) = '009' ).

CONCATENATE 'KSSGRP' I_F_COBL-KOSTL

INTO C_DEFAULT_OBJNRZ.

else.

C_DEFAULT_OBJNRZ = I_F_FMIOI-OBJNRZ.

endif.

after user sap for 2 year, so document in table FMIOI is not update field "OBJNRZ" .

If you update table "FMIOI" directly with abap coding without bapi or BDC,

Which point to be concern?

Please advise me..

I would like to update field FMIOI-OBJNRZ with internal order number or Cost Center number. because I have been implement use exit after "SAPLFMOI" to transfer objnrz with below code

if I_F_COBL-HKONT+0(4) = '0011'.

CONCATENATE 'OR' I_F_COBL-AUFNR

INTO C_DEFAULT_OBJNRZ.

elseif ( I_F_COBL-HKONT+0(3) = '003'

or I_F_COBL-HKONT+0(3) = '009' ).

CONCATENATE 'KSSGRP' I_F_COBL-KOSTL

INTO C_DEFAULT_OBJNRZ.

else.

C_DEFAULT_OBJNRZ = I_F_FMIOI-OBJNRZ.

endif.

after user sap for 2 year, so document in table FMIOI is not update field "OBJNRZ" .

If you update table "FMIOI" directly with abap coding without bapi or BDC,

Which point to be concern?

Please advise me..

1 REPLY 1
Read only

Former Member
0 Likes
488

I think you are trying to change financial data for periods which are probably closed. Rather than do this, I think you should create adjusting entries.

Rob