Application Development 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: 

BAPI test success but not updating

Former Member
0 Kudos

I run SE37, BAPI function module BAPI_fixedasset_change, I want to change description of asset, so i enter below attached, it says asset is changed, but when I go to AS03, the asset description is not changed, anyone can explain, how to run SE37 to make it changed?

1 ACCEPTED SOLUTION

philipdavy
Contributor
0 Kudos
  • You need to have a  BAPI_TRANSACTION_COMMIT (To Commit Work) also .
  • Refer the below link to know, how to execute the two BAPI's in sequence.

Function Module Test Sequence - ABAP Development - SCN Wiki

Regards,

Philip.

10 REPLIES 10

shaik_sajid
Active Contributor
0 Kudos

Hi,

Take SE37-> Goto Menu "Function Module"-> Test->Test Sequences

Give both the function modules.

BAPI_FIXEDASSET_CHANGE and BAPI_TRANSACTION_COMMIT.

and then Execute and it will work.

Regards

Sajid

shaik_sajid
Active Contributor
0 Kudos

Hi,

Attached are the screen shots.

Regards

Shaik

philipdavy
Contributor
0 Kudos
  • You need to have a  BAPI_TRANSACTION_COMMIT (To Commit Work) also .
  • Refer the below link to know, how to execute the two BAPI's in sequence.

Function Module Test Sequence - ABAP Development - SCN Wiki

Regards,

Philip.

0 Kudos

thanks, SE37 works. now I write in SE38 in ECC6

data:

Generaldata like bapi1022_feglg001,

Generaldatax like bapi1022_feglg001x,

return like bapiret2.

Generaldata-descript = 'test9'.

     Generaldata-descript2 ='test10'.

     Generaldatax-descript = 'X'.

     Generaldatax-descript2 = 'X'.

     CALL FUNCTION 'BAPI_FIXEDASSET_CHANGE'

       EXPORTING

         COMPANYCODE = '1000'

         ASSET  = '1000'

         SUBNUMBER  = '0'

         GENERALDATA = generaldata

         GENERALDATAX  = generaldatax

IMPORTING

         RETURN = return.


call function 'BAPI_transaction_commit'.


the program says: asset 1000   0   is not in company code 1000


but i can use se37 to change asset 1000 in company code 1000


it didn't work in SE38, why?

0 Kudos
  • Try giving the asset number with leading zeroes (internal format).

Regards,

Philip.

0 Kudos

Hi,

I believe Asset No is 100058.

Regards

Shaik

0 Kudos

issue closed, point awards

0 Kudos

points award to you also

0 Kudos

Hi experts, additional bug, user don't want to change upload file, they have assets like 1000, 100058, 10101245, I know asset number must be 12 didgits, is there any way we can change in the program?

currently in the program, we use

asset=record-anln1_001

anln1_001 is reading from excel file then populate to internal table/structure record, can we change the coding without modifying upload file?

0 Kudos
  • Use conversion_exit_alpha_input.

Regards,

Philip.