Quantcast
Channel: SCN : Discussion List - SAP CRM: Sales
Viewing all articles
Browse latest Browse all 1559

How to update price before save

$
0
0

To all Professionals,

 

I have to override the item price (condition Z001) during the order creation automatically.

 

I could change the price automaticly from my ABAP coding.
But now i have the following problem:

 

The price (condition Z001) has been changed (see screenshot), but the price on the main screen still
remains the old one.

1.PNG

This is the Main Screen of the Sales Order. The Price from the Second Item is still 19,99. On the next Screen shot you can see the detail from the second item.

2.PNG

The Pricedetails from the second Item. You can see that the Price is changed form 19,99 to 29,99.

Only by pressing the recalculate Button (Preis neu berechnen) the changed price is taken on the main screen.3.PNG

4.PNG

Main screen after pressing the recalculate button.

 

I have already found out by press of the button recalculate the method "RUN_UPDATE" in class CL_CRMCMP_P_PRCITEMCONDEO_IMPL s triggered.

5.PNG

 

 

My question: How can I trigger this update or any other method after i have changed the price. I desperately
need help because I'm still relatively new in Programming and also in the CRM environment.

 

 

Many thanks for your help

 

FYI:

At the point where I want tostart theupdateI have theBolentityBtadmin_hfordisposal

 

Importing Parameter

IO_BTADMIN_H   TYPE REF TO  CL_CRM_BOL_ENTITY.

 

DATA: lo_item_ent   TYPE REF TO cl_crm_bol_entity.

lo_item_ent ?= io_btadmin_h->get_related_entity( 'BTHeaderItemsExt' ).

 


Viewing all articles
Browse latest Browse all 1559

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>