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

Characteristic Value Change BAPI_CHARACT_CHANGE

Former Member
0 Likes
1,472

Hi,

Has any one used the bapi BAPI_CHARACT_CHANGE?

I am trying to use this BAPI to insert characteristic values and desccriptions? After passing the parameters, the return parameter gives me correct messages that The characteristic has been changed. But there are no changes in the Database.

CALL FUNCTION 'BAPI_CHARACT_CHANGE'

EXPORTING

charactname = 'AMTER'

  • CHANGENUMBER =

keydate = sy-datum

TABLES

charactdetailnew = w1

  • charactdescrnew = charactdescrnew

  • charactvaluesnumnew = charactvaluesnumnew

  • charactvaluescharnew = charactvaluescharnew

charactvaluesdescrnew = charactvaluesdescr

  • charactrestrictions = charactrestrictions

return = return.

Thanks,

Manish

3 REPLIES 3
Read only

Former Member
0 Likes
824

Manish,

You will need to issue a COMMIT. This can be achieved by creating a test sequence in SE37.

Refer to thread:

Cheers,

Brad

Read only

Former Member
0 Likes
824

Hi Brad,

Thanks for the reply. I am using the

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'

  • IMPORTING

  • RETURN =

after calling my BAPI for change. ´But still its not working. I dont get anything in the return parameter of BAPI_TRANSACTION_COMMIT.

Best Regards,

Manish

Read only

0 Likes
824

Hi Manish,

If you are calling these BAPIs via SE37, you will need to create a <b>TEST SEQUENCE</b> (menu Function Module->Test->Test Sequences). This means that you call both BAPI's in the same Logical Unit of Work. Calling them one after the other in SE37 will not work.

Alternatively you could code the calls one after the other in a test ABAP.

Personally, I think the test sequence is easier.

Hope that helps.

Cheers,

Brad