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

Need help on BAPI

Former Member
0 Likes
751

Hi All,

I am using BAPi function BAPI_RPC_CALCULATE_PRICES . I am passing all required values to this function module. It is giving right messages regarding my flat file data. But I am not able to find where exactly the changes will be updates . If any body have solution and suggestions....it will be more help full.

Thanking you...

3 REPLIES 3
Read only

amit_khare
Active Contributor
0 Likes
590

This BAPI, or the CalculatePrices method in the RetailPricing business object, facilitates communication between the sales price calculation function of the SAP System and one or more external systems.

You can use this BAPI to request and adjust calculations in external systems:

Requesting a Pricing Item

Every pricing item required must be requested precisely once using this BAPI. Requesting a pricing item causes the system to suggest all the relevant pricing data (such as markup, margins and sales prices, for example).

Adjusting a Requested Pricing Item

If the pricing items requested do not meet your expectations - for example, if the sales price suggested by the system is either too high or too low, the pricing item can be adjusted using this BAPI.

Depending on whether a calculation is to be requested or whether a requested calculation is to be adjusted, the interface tables CALCITEMIN and CALCITEMINX can be filled in different ways. You will find further information on this in the documentation for the individual tables.

Results of the Calculation

Each time the BAPI is called up, the result of the calculation is entered in the CALCITEMOUT export table. Any errors that may have occured are displayed in the RETURN export table. You will find further information in the interface documentation for the relevant tables.

Customer-Specific Enhancements

Further fields that are not contained in the CALCITEMIN, CALCITEMINX or CALCITEMOUT interface tables can be entered using the enhancement tables EXTENSIONIN and EXTENSIONOUT and the BAPI. You can find further information on this in the interface documentation for the individual tables.

As per Documentation -

Read it for details as everything is clearly mention there.

Regards,

Amit

Read only

ross_goodman
Participant
0 Likes
590

Hi,

I am having trouble witrh this BAPI too, but in my case I wish to change a value in SAP itself. For instance I want to set sales price of an item (FINAL_PRICE in structure CALCITEMIN), so my question is can I use this BAPI to CHANGE the value in SAP or is it simply a recovery BAPI that supplies data but cannot alter existing or create new records?

regards,

Ross Goodman

Read only

Former Member
0 Likes
590

give in the tabel MESSTAB LIKE BDCMSGCOLL and catch the messages in the return-type u will get message ID and Number from that go to se93 and find the description of that.

Regards

shashikant