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: 

change field value for cost center

Former Member
0 Kudos

hello everyone,

i got a requirement to change a value for the field 'Commitment Update' for cost center.

Cost centers have been uploaded and this field has been marked 'X'.

I need to write a program which will re-run all these cost centers, but the 'Commitment Update' field will be space this time.

I am trying to use BAPI_COSTCENTER_CHANGEMULTIPLE, but it seems there is a problem. The return code is empty and no change is being done.

Can somebody provide me with some input on this issue?

Helpful answers will be very much appreciated and awarded.

Regards,

Fred.

9 REPLIES 9

Former Member
0 Kudos

Have a look at this thread which tells limitation about this BAPI -

ashish

Message was edited by: Ashish Gundawar

Former Member
0 Kudos

Did you run BAPI_TRANSACTION_COMMIT after BAPI_COSTCENTER_CHANGEMULTIPLE?

Rob

0 Kudos

yes i'm running the COMMIT. But even testing the BAPI indivdually in se37 does not make any difference. How do I activate the field?

In the documentation it says:

This module changes one or more of the cost center master records.

The module interface contains fields that you can also fill online. The appropriate field checks are performed.

<b>To initiate a field, only a period (".") must be transferred to the field interface. The appropriate field checks are performed.</b>

If you set the TESTRUN flag, only the checks are made. The subsequent posting is not carried out (check function).

Where do I put the "."?

0 Kudos

any suggestions anyone???

0 Kudos

Hi Fred,

Did you use this field

COSTCENTERLIST-LOCK_IND_COMMITMENT_UPDATE ?

Regards,

Suresh Datti

0 Kudos

Hi Suresh,

While testing the BAPI, I am entering the new information i.e. all information is same except the field value for commitment update. I am not marking it as 'X' since my requirement is to change all entries for cost centers in which commitment update is marked 'X'.

Commitment Items should be 'space'.

can you also please let me know the process of committing work through se37. i just want to be sure if i am doing it right.

regards,

fred.

0 Kudos

hi,

just wanted to inform that i'm open for suggestions. if there is any other way, please do let me know.

thanx in advance.

Regards,

Fred.

0 Kudos

Hi fred,

You cannot COMMIT WORK from SE37. You will have to put the function call in a Program & then put an explicit COMMIT WORK after it.

Regards,

Suresh Datti

0 Kudos

Hi Fred,

Did you solve this lock indicator update issue. I have same requirement now, I am facing same issue.

I cannot blank out the indicators with the CHANGE BAPI.

Can you throw some light if you have solved the probelm.

Thanks In Advance.

Regards,

Yaseen M