‎2007 May 24 1:59 AM
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.
‎2007 May 24 2:53 AM
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
‎2009 Jul 16 10:11 AM
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