cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_OPPORTUNITY_CHANGEMULTI

Former Member
0 Kudos

Hi,

I have some problems with with BAPI (CRM 3.0). Some basic things like changing the

description or the probability work, but I now encountered some barriers:

1) Change the expected product value of product items

While there does exist a PRICING_ITEM table in the BAPI_OPPORTUNITY_GETDETAILMULTI,

there is nothing like this in the BAPI_OPPORTUNITY_CHANGEMULTI. How can I change

revenue value of the items? Somebody told me that I should try CONDITION_CHANGE.

Is there some documentation about the values of the fields in this table? I cant'

take the GETDETAIL as template as CONDITION_CHANGE does not exist in BAPI_OPPORTUNITY_GETDETAILMULTI,

of course.

2) Create a new product item

I managed to update some fields of existing items (besides the value -> first question)

I also want to add an item to the opportunity. Therefore I add a new entry to the

ITEM table. I do this by cloning an existing item and updating some fields:

GUID -> empty (I don't know in advance)

NUMBER_INT -> to something unique

MODE -> A (should be the code for create)

Unfortunately the item does not show up after calling the BAPI.

I assume I have to create a link to the opportunity somehow. Maybe this has to be done

by setting the appropriate field. Is it PARENT or HEADER??

Again I couldn't find any useful documentation, neither in "se37" nor online.

3) Change the status of an opportunity

At first look this sounds to be trivial, but there is an own table for the status. The

BAPI_OPPORTUNITY_GETDETAILMULTI returns a bunch of entries for one single opportunity. Do I have

to add an entry? I already tried it out with several different combinations of parameters

but it didn't work...

4) A general question: Where can I find online documentation on the BAPIs? I know

this sounds like a typical FAQ and I already searched the Interface Repository

(http://ifr.sap.com/catalog/query.asp?language=EN) but I couldn't find documentation

about this BAPI (maybe I'm too blind to see). Especially it's very hard for me as newbie

to find out which fields of a table have to be set and what the values have to look

like.

5) doing changes with "se37"

I never managed to commit any changes using the se37 transaction. Although the BAPI call

seems to work, the changes never appear in the system. I also do a BAPI_TRANSACTION_COMMIT

manually. Does this not work with se37 at all?

Some examples (Java, ABAP or anything else) would also be a great.

Thanks in advance you for your help. I don't need to mention that these issues

are very time-critical (as usual).

Chris

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Didn't you get any documentation in transaction SE37--> Enter Bapi name and display --> Go To --> Documentation?

Further, Condition Table has to be used for pricing value determination. To get an idea you can check the table KONV ( Condition Table ) through transaction SE11.

You need to know what condition types are applicable for it.

I will suggest, forget BAPI, first have a look on Opportunity created manually ( through transactions )in your SAP system. There you can see these condition records.

These condition records are used to calculate the net value. e.g there might be 3-4 records , one for gross value , another for discount , and then one for tax etc.

Thanks,

Ram

Message was edited by: Ram Manohar Tiwari

Former Member
0 Kudos

Hi!

Did you succeeded to add some info using the bapi BAPI_OPPORTUNITY_CHANGEMULTI?

I need to add some scheduling data but it doesn't seem to be working.

Greetz,

M.

Former Member
0 Kudos

Chris

I'm wondering if you were successful in using this BAPI?

I am trying to use it to update partners and am not having much luck.

I have been able to update the status if this is still relevant.

Thanks

Chuck