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

BAPI_OBCL_CHANGE is not comitting database

Former Member
0 Likes
462

Hi all,

Iam using BAPi BAPI_OBCL_CHANGE to update the characteristics value. Iam getting a success message executing the bapi. But the database tables are not updated. I have also used commit bapi.

Please send your suggestions,

Rajesh.

2 REPLIES 2
Read only

Former Member
0 Likes
415

something missing in your function module even you are using bapi_transaction_comitt and did not find fm name in my system 4.6C.

look at ur FM and see is there any update flag parameter and pass the value 'U'.

Reward Points if it is helpful

thanks

Seshu

Read only

Former Member
0 Likes
415

Dear Friend,

Please Look in to the below code.

call function 'BAPI_OBJCL_CHANGE'

exporting

objectkey = <wa_datatab>-col5

objecttable = 'T16FS'

classnum = so_num-low

classtype = '032'

status = '1'

keydate = sy-datum

no_default_values = ' '

  • IMPORTING

  • CLASSIF_STATUS =

tables

allocvaluesnumnew = jtab

allocvaluescharnew = ist_datatab

allocvaluescurrnew = ztab

return = return.

loop at return assigning <bapiret1>.

case <bapiret1>-type.

when 'S'.

call function 'BAPI_TRANSACTION_COMMIT'

exporting

wait = space.

when 'E'.

call function 'BAPI_TRANSACTION_COMMIT'

exporting

wait = space.

move <bapiret1> to bapiret.

move count to bapiret-number.

append bapiret to return1.

when 'I'.

call function 'BAPI_TRANSACTION_COMMIT'

exporting

wait = space.

move <bapiret1> to bapiret.

append bapiret to return1.

when others.

break <bapiret1>-type.

endcase.

endloop.

delete it_datatab where col5 = <wa_datatab>-col5.

clear: wa1_datatab, ist_datatab[].

endloop.

If this help u Plz provide marks

With Regards,

Sumodh.P