BAPI or FM which recalculates the price when saving an order in CRM
Hi,
Is there any BAPI or FM which will actually recalculate the price for an order when saving that particular order?
Or any suggestions on how to achieve this!
Hi Vin,
Can you please let me know if the same function module "PRC_PD_ITEM_UPDATE" is called when data is entered in the usage confirmation screen in CRM. I put a break point in PRC_PD_ITEM_UPDATE but debugger does not stop in it.
Is there any other function module that is called to recalculate the price after usage conformation data is entered ?
Pleads let me know.
Thanks,
Vivek
Similar Messages
-
In VA02 transaction which exit is triggering when saving the data
hi all sap gurus,
In VA02 transaction which exit is triggering when saving the dataHi Reddy,
The <b>user exit</b> and badi tried for this transactions are
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
V46H0001 SD Customer functions for resource-related billing
V45W0001 SD Service Management: Forward Contract Data to Item
V45S0004 Effectivity type in sales order
V45S0003 MRP-relevance for incomplete configuration
V45S0001 Update sales document from configuration
V45P0001 SD customer function for cross-company code sales
V45L0001 SD component supplier processing (customer enhancements)
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45E0001 Update the purchase order from the sales order
V45A0004 Copy packing proposal
V45A0003 Collector for customer function modulpool MV45A
V45A0002 Predefine sold-to party in sales document
V45A0001 Determine alternative materials for product selection
SDTRM001 Reschedule schedule lines without a new ATP check
<b>Business Add-in</b>
BADI_SD_SCH_GETWAGFZ Scheduling Agreement: Read WAGFZ from S073
BADI_SD_V46H0001 SD Customer functions for resource-related billing
<b>Reward pts if found usefull :)</b>
Regards
Sathish -
Willing to buy iPhone 4g or iPhone 3gs asap, i live in india, would it be possible anyway to get the iPhone shipped to India? and if possible would that be an unlocked iPhone? also,can i buy an unlocked iPhone in US? what'll be the price when buying in US, both unlocked and locked..
waiting for answers...
regards.I dont wanna use it, i just need them for some experiments, demonstration..!!!
thats why i am trying to opt for minimal prices..!
so would it possible to get iPhone 4G or iPhone 3GS shipped to India, after we buy them from Apple, i mean at their contract price (49$ and 199$). would it be possible? -
In which table the condition records get stored in sap crm
hi everybody any one can help me in this,
In which table the condition records get stored in sap crm.
Regards,
BabuHi Babu,
The table name depends on the condition table you have chosen while adding a condition record. Like if it is SAP001, the database table will be CNCCRMPRSAP001.
Regards,
Shalini Chauhan
Edited by: Shalini Chauhan on Jun 23, 2008 10:18 AM -
User Exit at the time of saving Prod Order.
Hi All,
I need to know whether there is any exit which gets called when I save the Production Order.
In our project Serial No as well as Production Order gets created when we save the Production Order.
I have to pass "Basic Start Date" to a FM which generates Serial No.I can hit some DB table if i know
Planned Order no at the time of saving of Production Order.So i want the user exit at the time of saving Prod Order
I have also tried one program which gives all the User exits for a certain Transaction.But the user exit mentioned in that is not getting called.
Thanks in Advance,
Saket.hi,
check this exit for production order by placing a break point in it.it will work .
PPCO0007 Exit when saving production order
exit name : EXIT_SAPLCOZV_001 -
I need a Badi that is triggered when saving Sales order in both Va01 and Va
Hi
I need a Badi that is triggered when saving Sales order in both Va01 and Va02
I tried with the following BADI's
BADI : BADI_SD_SALES
Implementation : /BEV1/SR_SALES_ORD_1
Method SAVE_DOCUMENT
Now when i want to put my peice of code in this (SAVE_DOCUMENT) method.
It is asking for Access key. Which i do not have.
Should i create a implementation and then create a method and then put my code there?
Anybody plz help.You will probably not find a BADI to suit your needs. However if you look at include program MV45AFZZ you should find two subroutines: USEREXIT_SAVE_DOCUMENT_PREPARE and USEREXIT_SAVE_DOCUMENT. You can put the code you need directly into these subroutines. If these have not been changed yet on your system, you will need an access key to make these changes.
Please read the documentation in the header of the subroutines for furtner information on when they are called.
Best Regards,
Chris H. -
Update Customer's Credit Exposure amount when saving sales order
Hi All,
My requirement is to update the Credit Exposure amount(KNKK-SKFOR) of the Payer based on the open items for the payer when saving a sales order.
I checked the UserExit USER_CREDIT_CHECK2 however this is not working when I am trying to update the KNKK-SKFOR value in this userexit.
Please help.
Thanks.Dear Debashish
As per my understanding, this is because the credit limit check is always applicable at 2 levels only i.e. Sales Order and Delivery.
u r talking about Open Billing Doc and Open Items, but this is also covered within Open Sales Orders and Deliveries, isn't it?
Hope this will help u. -
What is the BADI while SAVING purchase order using me22n?
what is the BADI while SAVING purchase order using me22n?
while i will save purchase order through me22n, badi should be fire what is badi for that?
regards,
dushyant.Dushyant,
Hopefully you know how to implement the BADI ME_PROCESS_PO_CUST now.
The following are the codes that you can put in the method "Post".
DATA: LW_HEADER TYPE MEPOHEADER,
LW_POSTED_HEADER TYPE MEPOHEADER,
LW_VALID TYPE MMPUR_BOOL,
ITAB_ITEM TYPE PURCHASE_ORDER_ITEMS,
LW_ITEM TYPE MEPOITEM,
ITEM_INTERFACE TYPE PURCHASE_ORDER_ITEM,
ITAB_ACCT TYPE PURCHASE_ORDER_ACCOUNTINGS,
ACCT_INTERFACE TYPE PURCHASE_ORDER_ACCOUNTING,
LW_ACCT TYPE MEPOACCOUNTING,
LW_POSTED_ACCT TYPE MEPOACCOUNTING,
W_ACCT_CHANGED TYPE C,
W_GRANT_AMT TYPE EKPO-NETWR,
W_FINANCE_AMT TYPE EKPO-NETWR,
W_FLAG TYPE C.
Check if PO header data is valid
CLEAR LW_VALID.
CALL METHOD IM_HEADER->IS_VALID
RECEIVING
RE_VALID = LW_VALID.
CHECK LW_VALID = 'X'.
PO header data is valid
Get the newly updated PO header data
CLEAR LW_HEADER.
CALL METHOD IM_HEADER->GET_DATA
RECEIVING
RE_DATA = LW_HEADER.
Get the posted PO header data
CLEAR LW_POSTED_HEADER.
CALL METHOD IM_HEADER->GET_PERSISTENT_DATA
IMPORTING
EX_DATA = LW_POSTED_HEADER
EXCEPTIONS
NO_DATA = 1.
IF SY-SUBRC <> 0.
CLEAR LW_POSTED_HEADER.
ENDIF.
Get PO line items
REFRESH ITAB_ITEM.
CALL METHOD IM_HEADER->GET_ITEMS
RECEIVING
RE_ITEMS = ITAB_ITEM.
LOOP AT ITAB_ITEM INTO ITEM_INTERFACE.
Check if PO line item is valid
CLEAR LW_VALID.
CALL METHOD ITEM_INTERFACE-ITEM->IS_VALID
RECEIVING
RE_VALID = LW_VALID.
IF LW_VALID <> 'X'.
This PO line item is not valid
CLEAR W_ACCT_CHANGED.
EXIT.
ENDIF.
CLEAR LW_ITEM.
CALL METHOD ITEM_INTERFACE-ITEM->GET_DATA
RECEIVING
RE_DATA = LW_ITEM.
Get the account interface
REFRESH ITAB_ACCT.
CALL METHOD ITEM_INTERFACE-ITEM->GET_ACCOUNTINGS
RECEIVING
RE_ACCOUNTINGS = ITAB_ACCT.
LOOP AT ITAB_ACCT INTO ACCT_INTERFACE.
CLEAR LW_ACCT.
Get the newly updated PO item data
CALL METHOD ACCT_INTERFACE-ACCOUNTING->GET_DATA
RECEIVING
RE_DATA = LW_ACCT.
CLEAR LW_POSTED_ACCT.
Get the posted PO item data
CALL METHOD ACCT_INTERFACE-ACCOUNTING->GET_PERSISTENT_DATA
IMPORTING
EX_DATA = LW_POSTED_ACCT
EXCEPTIONS
NO_DATA = 1.
IF SY-SUBRC > 0.
CLEAR LW_POSTED_ACCT.
ENDIF.
IF LW_ACCT-LOEKZ <> LW_POSTED_ACCT-LOEKZ OR
LW_ACCT-KOSTL <> LW_POSTED_ACCT-KOSTL OR
LW_ACCT-PRCTR <> LW_POSTED_ACCT-PRCTR OR
LW_ACCT-PS_PSP_PNR <> LW_POSTED_ACCT-PS_PSP_PNR.
Account assignment was changed
We will force this PO to go through workflow
W_ACCT_CHANGED = 'Y'.
ENDIF.
ENDLOOP.
ENDLOOP. -
Recalculate the Price in SRM once the item is transfer to SRM from SRM MDM
Hi Experts,
I am technical person and am facing one issue,we are using MDM catalog for selecting the product and after selection the product is getting transfer to the SRM.
In SRM we have Quantity field available which is editable(we don't want to make it read only field),everything works fine if no one is changing the Quantity field which is coming from SRM MDM.
But when a requester is changing the quantity field of the product in SRM then the total price is not getting change accordingly in SRM.is there any way to fetch the price field again from SRM MDM once it is transferred to the SRM.
I know that before transferring the field to SRM if we change the quantity field there there is "RECALCULATE" button availabe to change the total price but after transferring the item whats is the procedure to change the Price if quantity is changed in SRM.
Note that Price field depends on the Quantity field in SRM MDM and it is maintained in MDM but not in SRM.
Please Help me friends.Hi ,
I just want to clarify that after the product toSRM it will check data from their price data maintained in SRM.
For yr problem just try these things and get back with yr results
1. whatever quantity you are putting in SRM ,try with same quantity in mdm catalog and check what price is coming
If that is same then not a prob because may bbe for that product multiple price maintained for different quantity
otherwise for sure SRM are fetching the price from their storage.
2. Instead of add an item from catalog add same item from srm using the product id ,supplier part number and other information
may be at srm level they maintain different condition on item level.
Please try at yr end and get back with yr result.
(for validation of price from mdm there is a setting spro that when checked do validate the price from mdm catalog when ypu copy yr product in srm)
Thanks,
Sudhanshu -
Is there a BAPI function module which reverses the sign of an integer
Hi Friends,
Could u plz tell me a BAPI function module which can reverse the
sign of an integer ?
For example:
if i get the integer value in work area as <number> <sign> , i need to change it to <sign><number>.
i.e if i get the integer value in work area as "248-" ("-" indicates minus sign) to " -248 ".
i.e if i get the sign after the value , my requirement is to get the sign before the value.
The actual ABAP query is:
data: QTY_1 TYPE CHAR10,
QTY_2 TYPE CHAR10,
WA_DISTK_PORTLET-QUANTITY TYPE INT4.
QTY_1 = WA_DISTK_PORTLET-QUANTITY.
SEARCH QTY_1 FOR '-'.
IF SY-SUBRC = 0 AND SY-FDPOS <> 0.
SPLIT QTY_1 AT '-' INTO QTY_1 QTY_2.
CONDENSE QTY_1.
CONCATENATE '-' QTY_1 INTO QTY_1.
CONDENSE QTY_1.
ELSE.
CONDENSE QTY_1.
ENDIF.
CLEAR: WA_DISTK_PORTLET-QUANTITY.
MOVE : QTY_1 TO WA_DISTK_PORTLET-QUANTITY.
when i move this QTY_1 to work area quantity field The sign is coming after the numeric value.
Note: There is no possibility to change the datatype of quantity field.
I have tried my level best with 'CLOI_PUT_SIGN_IN_FRONT' function module.
I will assign full points to the correct function module.Hi Ram,
try this ang look into fields.
data: fields type table of SVAL with header line.
fields-tabname = 'MARA'. fields-fieldname = 'MATNR'. append fields.
fields-tabname = 'BKPF'. fields-fieldname = 'BUDAT'. append fields.
CALL FUNCTION 'POPUP_GET_VALUES'
EXPORTING
POPUP_TITLE = 'Value Insert'
TABLES
FIELDS = fields.
Regards, Dieter -
Redetermining a price when opening an order.. pls help
Hi friends,
I have for example created an order with one item, and its price i maintained in condition table is 100 USD.
So now when i create an order with this item the price will be 100 + tax. say total became 110.00USD.
Now i saved the order.
I went and updated the condition record from 100.00 USD to 200.USD.
So now when i open the above created same order, i see the price still 110.00USD, it is not re determining the latest price from all cond records.
I know this is standard out of the box SAP delivered, but i need to redetermine the prices each time when that order gets opened.
I want this only to one specific order type.
I can achieve this in crmd_order, open the order go to conditions, there is a button, UPDATE PRICE -> recalculate all conditions, but techincal how to acheive this.
it wil be great help if you can pass on some inputs to me friends.
I appreicate your help.
thanks,
have a grt day,
RDHi All,
I have a similar requirement, I need to redetermine pricing (Basically need to trigger BADI PRC_DATA_SOURCES) whenever there is change in subtotal 1 value on pricing screen with "Retain Manual Changes" setting .
I have created an event AFTER_CHANGE on PRICING_I and used FM:PRC_PD_ITEM_UPDATE_MULTI but its giving out an error on a condition which is configured as external data source.
Could you please help me or suggest any other approach for this issue.... Appreciate a quick reply..
Thanks,
Vandana -
How can I create an action that dynamically appends the filename, when saving?
I have created a batch file that watches a folder for .jpgs. When a jpg is found, it runs a Photoshop droplet that resizes and exports six different sizes of the same image, then closes the image. This all works fine, however the step I am stuck on is getting Photoshop to dynamically rename the files. What I mean is when I drop in a file named something like filename.jpg, I want the images to be named according to the width of resize. Exported files should be filename-1400.jpg, filename-1200.jpg, filename-800.jpg, etc. filename2.jpg would become filename2-1400.jpg, filename2-1200.jpg, filename-800.jpg. As it is now, Photoshop names the files the same names I saved them as, while creating the actions.
I am using Photoshop CS6.What OS and verson of AI? Along with what Myle said, in the Actions panel is a column which allows the dialogs to be turned on/off. Make sure this is unchecked at all levels of the Action.
-
Missing the content when saving HTML from JEditorPane.write(..)
hi,
i m trying to develop html editor using JEditorPane. the document type used is HTMLDocument and HTMLEditorKit. when I try to save using the following function:
try{
FileWriter w = new FileWriter("doc.html");
//HTMLEditorKit edi = (HTMLEditorKit)editorPane.getEditorKit();
EditorKit edi = editorPane.getEditorKit();
//StyledEditorKit edi = new StyledEditorKit();
//edi.write(w, (StyledDocument)editorPane.getDocument(), 0, editorPane.getDocument().getLength());
editorPane.write(w);
w.close();
}catch(Exception de){System.out.println(de);
}all the contents are missing, only the tags are intact in the output file doc.html. I am using JDK 1.4.2
anybody can help me? thank you very muchhere is the code. hehe sorry lol it took me sometime to take off all the function. please try to type something and then save. only the update is saved but the default heading (well in this case, i have replace them all with a "something must be here". thank you very much
// HTMLEditor.java
import javax.swing.*;
import javax.swing.text.*;
import javax.swing.text.html.*;
import java.awt.event.*;
import java.awt.*;
import java.io.*;
public class HTMLEditor extends JFrame{
private JTextComponent textComp;
public static void main(String[] args) {
HTMLEditor editor = new HTMLEditor();
editor.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
editor.setVisible(true);
public HTMLEditor() {
super("Swing Editor");
textComp = createTextComponent();
Container content = getContentPane();
content.add(textComp, BorderLayout.CENTER);
content.add(createToolBar(), BorderLayout.NORTH);
setSize(320, 240);
Template t = new Template((HTMLDocument)(textComp.getDocument()));
t.setupTemplate();
// Override to create a JEditorPane with the HTMLEditorKit in place
protected JTextComponent createTextComponent() {
JEditorPane jep = new JEditorPane();
jep.setEditorKit(new HTMLEditorKit2());
JEditorPane.registerEditorKitForContentType
("text/html", "HTMLEditorKit2");
return jep;
protected JTextComponent getTextComponent() { return textComp; }
// Add HTML actions to the toolbar
protected JToolBar createToolBar() {
JToolBar bar = new JToolBar();
bar.addSeparator();
bar.add(new StyledEditorKit.BoldAction());
bar.add(new SaveAction());
return bar;
class SaveAction extends AbstractAction {
public SaveAction() {
super("Save", new ImageIcon("icons/save.gif"));
// Query user for a filename and attempt to open and write the text
// components content to the file
public void actionPerformed(ActionEvent ev) {
JFileChooser chooser = new JFileChooser();
if (chooser.showSaveDialog(HTMLEditor.this) !=
JFileChooser.APPROVE_OPTION)
return;
File file = chooser.getSelectedFile();
if (file == null)
return;
FileWriter writer = null;
try {
writer = new FileWriter(file);
textComp.write(writer);
catch (IOException ex) {
JOptionPane.showMessageDialog(HTMLEditor.this,
"File Not Saved", "ERROR", JOptionPane.ERROR_MESSAGE);
finally {
if (writer != null) {
try {
writer.close();
} catch (IOException x) {}
class HTMLEditorKit2 extends HTMLEditorKit{
public Document createDefaultDocument(){
HTMLDocument doc = new HTMLDocument();;
doc.setAsynchronousLoadPriority(-1); // load synchronously
return doc;
class Template{
HTMLDocument doc;
StyleContext styles = new StyleContext();
public Template(HTMLDocument doc){
this.doc= doc;
Style def = styles.getStyle(StyleContext.DEFAULT_STYLE);
Style heading = styles.addStyle("heading", def);
StyleConstants.setFontFamily(heading, "SansSerif");
StyleConstants.setBold(heading, true);
StyleConstants.setAlignment(heading, StyleConstants.ALIGN_CENTER);
StyleConstants.setSpaceAbove(heading, 10);
StyleConstants.setSpaceBelow(heading, 10);
StyleConstants.setFontSize(heading, 18);
public void setupTemplate(){
Style s = styles.getStyle("heading");
try{
doc.insertString(doc.getLength(), "Something must be here", s);
doc.insertString(doc.getLength(), "\n", null);
doc.setLogicalStyle(doc.getLength() - 1, s);
}catch(Exception e){}
} -
What happened to all the compressors when saving a wav file?
When saving a wav file in Soundbooth CS3 you had your choice of 7 different compressors. In Soundbooth CS4 you can only save a wav file uncompressed. My office has to save wav files using the CCITT u-Law compressor for uploading to Verizon's VoIP system when we create auto-attendant messages.
I could download a program that will save audio files into other formats, including the CCITT u-Law format, but I would prefer to just use Soundbooth and copying the CompilerWave.prm file from CS3 into CS4 doesn't work. Is there any way to get these compressors back without having to use another program?Hi,
Several of the WAV compressors available in Soundbooth CS3, including the CCITT u-Law, will be available soon. There were some issues with including them in CS4, but those problems have been resolved. I apologize for the inconvenience. On the upside, the codecs are now faster and several bugs were addressed.
I'll post an announcement here when this is available, and I believe it will show up in the Adobe Updater tool.
Durin -
Error at the time of saving sales order
Hi Sapfans,
at the time of saving the order i am getting the following error
please help me how to solve it
please help me fast
thanks and regards
srinivas
Runtime Errors MESSAGE_TYPE_X
Date and Time 19.11.2007 15:19:18
Short dump has not been completely stored (too big)
Short text
The current application triggered a termination with a short dump.
What happened?
The current application program detected a situation which really
should not occur. Therefore, a termination with a short dump was
triggered on purpose by the key word MESSAGE (type X).
Error analysis
Short text of error message:
Maintain the current CRM release (table CRMPAROLTP)
Long text of error message:
Diagnosis
Various transfer errors occur when transferring SAP sales orders to
CRM or there is no status update or the status update has errors
when transferring from CRM to the SAP system. This is caused by an
incorrect entry for the CRM release in the SAP table CRMPAROLTP, or
no entry is maintained at all.
System Response
To avoid data inconsistencies, this message causes a short dump.
Procedure
Maintain table CRMPAROLTP in your SAP system as is described in SAP
Note 691710 and then repeat the process again.
Procedure for System Administration
Technical information about the message:
Message class....... "V3"
Number.............. 302
Variable 1.......... " "
Variable 2.......... " "
Variable 3.......... " "
Variable 4.......... " "
Trigger Location of Runtime Error
Program SAPMV45A
Include MV45AF0B_BAPIDATEN_ERMITTELN
Row 338
Module type (FORM)
Module Name BAPIDATEN_ERMITTELN
Source Code Extract
Line SourceCde
308 else.
309 *-----Nicht unterstützt, Abbruch
310 message a301(v3).
311 endif.
312 endif.
313
314 *-Szenario A prüfen
315 if lv_scenario_a = 'A'.
316 vbak-vbkla+2(1) = lv_scenario_a.
317 endif.
318
319 *-ermitteln CRM-Release
320 call function func_name
321 exporting
322 i_paraname = 'CRM_RELEASE'
323 importing
324 e_parval1 = lv_parval1.
325 lv_release_crm = lv_parval1+0(3).
326
327 * If lv_release_crm empty => X-message (correct download not possible)
328 if da_download_active = charx.
329 CALL FUNCTION 'CRM_CONNECTED'
330 IMPORTING
331 CRM_CONNECTED = lv_crm_connected
332 EXCEPTIONS
333 NO_CRMRFCPAR = 1
334 OTHERS = 2
335 .
336 IF sy-subrc = 0 and lv_release_crm = space and
337 lv_crm_connected = charx.
>>>>> message x302(v3).
339 ENDIF.
340 endif.
341
342 *-Füllen der View für das Ermitteln der Auftragstabellen
343 da_sales_view-partner = charx.
344 da_sales_view-sdcond = charx.
345 da_sales_view-sdcond_add = charx.
346 da_sales_view-contract = charx.
347 da_sales_view-text = charx.
348 *-bei mehr als 1000 Belegflusssätzen werden Daten nicht ermittelt
349 if lv_tabix_vbfa < 1000.
350 da_sales_view-flow = charx.
351 endif.
352 da_sales_view-billplan = charx.
353 da_sales_view-configure = charx.
354 da_sales_view-credcard = charx.
355
356 *-Im Standardszenario soll eine manuelle Änderung eines CRM Belegs
357 * (ab CRM Release 30A) nicht zurück ins CRM gesendet werden. DasHI,
This error is because of crm release patch.
You can update this patch.
Use Transaction code se16.
Type the table name-CRMPAROLTP
Go in New Entries
Type 'CRM_RELEASE' In First Field(PARNAME)
Type '40A' In Value 1 i.e. 5th Field
Save.
This will solve your problem.
If this is useful please give reward points.
Regards,
Ashok
Maybe you are looking for
-
Nutzung der macbook pro Kamera unter windows 7
Wie nutzt man die eingebaute Kamera des Macbook Pro unter Windows 7?
-
Automatic Metadata addition to PDF documents + XMP Templates in Acrobat 6/7
I am currently looking to info up a large filing structure which currently holds about 10 000 PDFs. Is there anyway to update metadata on multiple PDF files at once? Is there a way to save Metadata templates in Acrobat 6/7? Thanks, Tom
-
BPEL with OracleAS 10.1.2.0.2
OracleAS 10.1.2.0.2 -- aka 10g R2 Phase 2 -- is being made available on OTN, with the Linux version first out. The docs seems to be out for all the platforms, though, and from the Windows Release Notes Chapter 13 (http://download-uk.oracle.com/docs/c
-
When downloading purchased music I get an Error ( -50 )
I tunes will try for a long periodof time to dowload the songs and it will sometimes give an error message about not being able to connect to the music store. the problem is that it just won't download these songs and I don't know how to fix it. I ha
-
I am trying to install Solaris 8 on a Sony Vaio Notebook, all I get is the SunOS Secondary Boot Version screen and it then locks. The disk seems to be okay, as I am able to boot on my desktop system. Does Solaris support Sony products? Any help would