BAPI_CUSTOMERQUOTATION_CHANGE - error while changing a condition value

Hallo Gurus,
I am trying to use tshi BAPI BAPI_CUSTOMERQUOTATION_CHANGE to change a condition value of a condition record of a quotation.
Every time I execute the BAPI, instead of the condition tyoe being changed, a new record is added to the list of conditions!
Can someone please help!
Thsi is my piece of code::
itab_BAPISDH1X-UPDATEFLAG = 'U'.
append itab_BAPISDH1X.
itab_BAPICOND-ITM_NUMBER = '10'.
itab_BAPICOND-COND_ST_NO = '31'.
itab_BAPICOND-COND_COUNT = '00'.
itab_BAPICOND-COND_TYPE = 'ZST3'.
itab_BAPICOND-COND_VALUE = '15.00'.
itab_BAPICOND-COND_UPDAT = 'X'.
append itab_BAPICOND.
itab_BAPICONDX-ITM_NUMBER = '10'.
itab_BAPICOND-COND_ST_NO = '31'.
itab_BAPICOND-COND_COUNT = '00'.
itab_BAPICONDX-COND_TYPE = 'ZST3'.
itab_BAPICONDX-UPDATEFLAG = 'X'.
itab_BAPICONDX-COND_VALUE = 'X'.
append itab_BAPICONDX.
CALL FUNCTION 'BAPI_CUSTOMERQUOTATION_CHANGE'
  EXPORTING
    salesdocument                = p_vbeln
  QUOTATION_HEADER_IN          =
    quotation_header_inx         = itab_BAPISDH1X
  tables
    return                       = itab_BAPIRET2
   CONDITIONS_IN                =  itab_BAPICOND
   CONDITIONS_INX               =  itab_BAPICONDX
Thanks!
Mukta

Hmm...
Change the following....and check..
itab_BAPICONDX-ITM_NUMBER = '10'.
itab_BAPICOND-COND_ST_NO = '31'.
itab_BAPICOND-COND_COUNT = '00'.
itab_BAPICONDX-COND_TYPE = 'ZST3'.
itab_BAPICONDX-UPDATEFLAG = 'X'.
itab_BAPICONDX-COND_VALUE = 'X'.
append itab_BAPICONDX.
"change the above to.....
ab_BAPICONDX-COND_TYPE = 'X'.
append itab_BAPICONDX.
The BAPICONDX.. should contain only X.. in the fields which you want to update.. try this change..and let us know if it works.
Also have a look at the FUNCTION MODULE DOCUMENTATION for this bapi in SM37.
Cheers...

Similar Messages

  • Budget Exceeded error while changing in Account Assignment

    Hi,
    The user is facing an error while changing the Accounts assignment category to "Assets" in a PR. The PR was created with AAC as "U" for all the line items. The user is changing that to "A". After that he provides the asset number then the error is coming as below:
    Item 010 Order 0809/A15 budget exceeded
    Message no. BP604
    Diagnosis
    In document item 010 Order 0809/A15, budget for fiscal year 2010 was exceeded by 6,630.00 INR.
    The valuation price for that particular line item is Rs 6630.00. I have not changed the other line items.
    Need the suggestion.
    JK

    I think there some settings in Budgeting, n Finance people are more familiar with those settings. Normally, if u craete a Purchasing doc. PR or PO or GR/ IR from MM side, with account assnt., the relevant budget()which is created for that commitment item) will updated with the document value. There may be settings with delivery date or so. check with your FI guys
    umakanth

  • Crm_order_maintain ,changing pricing condition value at item level

    Hi,
    I am trying to change the pricing condition value at item level while creating sales order through CRM_ORDER_MAINTAIN.
    I am not able to change the condition value.
    Code is below.
          wa_inputfields-ref_guid   = wa_orderi-guid.
          wa_inputfields-ref_kind   = 'B'.
          wa_inputfields-objectname = 'PRIDOC'.
          wa_fieldname-fieldname    = 'KBETR'.
          append wa_fieldname to wa_inputfields-FIELD_NAMES.
          wa_fieldname-fieldname    = 'KMEIN'.
          append wa_fieldname to wa_inputfields-FIELD_NAMES.
          wa_fieldname-fieldname    = 'KPEIN'.
          append wa_fieldname to wa_inputfields-FIELD_NAMES.
          wa_fieldname-fieldname    = 'KSCHL'.
          append wa_fieldname to wa_inputfields-FIELD_NAMES.
          wa_fieldname-fieldname    = 'WAERS'.
          append wa_fieldname to wa_inputfields-FIELD_NAMES.
          INSERT wa_inputfields INTO TABLE it_inputfields.
    wa_pricing_add-KSCHL  = 'ZP06'.
    wa_pricing_add-WAERS  = 'USD'.
    wa_pricing_add-KBETR = '10'.
    wa_pricing_add-KPEIN = '1'.
    wa_pricing_add-KMEIN = 'ST'.
    INSERT wa_pricing_add INTO table it_pricing_add .
    wa_pricing-REF_GUID     = wa_orderi-guid.
    wa_pricing-REF_KIND      = 'B'.
    wa_pricing-PRICING_TYPE  = 'A'.
    wa_pricing-COND_ADD = it_pricing_add.
    wa_pricing-PRICING_PROCEDURE = 'ZVDSP'.
    append wa_pricing to it_pricing.
    Can you tell me how to overwrite the condition value while creating sales order using crm_order_maintain.?
    Regards,
    Indhra.E

    Hello Indhra,
    Check the CT_INPUT_FIELDS table, in the OBJECTNAME field you will find all the tables that are filled during the function call. Check those tables mentioned in the OBJECTNAME to look for any pricing related data.
    When your order is in change mode and you activate debug <b>just before you make the change</b>, the CRM_ORDER_MAINTAIN FM call contains <b>data only relevant for the change you just made</b>. In other words, you need to fill exactly the same tables as CRMD_ORDER does.
    E.g. You just change the pricing procedure and you see in debug that 5 tables are filled, you must do exactly the same in your code! It's quite anoying but you're using a low-level API FM that can handle ANY transaction type in CRM!
    Check it, it works!!
    <b>Reward points if useful!</b>
    Regards,
    Joost

  • I get an error while changing modules pop up when opening Lr. There is no import button to use and if I try to load the default catalog I get the error message again essentially making Lr completely unusable for me! please help

    When launching Lr i get the initial screen to come up followed by an "error while changing modules" pop up. I have uninstalled and re-downloaded, followed all the suggested trouble shooting fixes and still nothing. When the app starts it has the basic info boxes but without any options in them (i.e. no import button or any buttons at all for that matter).All my other creative cloud apps seem to be working fine but Lr won't. Please help

    Ah, see, you said you had done it differently before.
    > and I tried to add a toolbox button by navigating to AcroPDF.dll.
    You'll need to reinstall Reader if the libraries aren't registered. You can't register them manually.
    Perhaps if you posted some of your code (where it creates the objects, etc.) we might be able to give you some more advice. You're sure you aren't trying to use anything outside of the AxAcroPDFLib.AxAcroPDF class?

  • Problem changing the Condition Value in Po using BAPI_PO_CHANGE

    Hi Experts,
    My issue is BAPI_PO_CHANGE is not changing the Condition value. and giving message in bapi return as 'cannot be processed manually'.
    Can anybody please help me on this.
    Thanks & Regards,
    Sudheer

    Check this link http://forums.sdn.sap.com/thread.jspa?threadID=652278
    Regards,

  • Change of Condition Value in PO after MIGO

    Hi Gurus!
    I want to change the condition value after migo. I have a scenario in which we have lots of purchase orders which are received.
    Unfortunately user has mentioned a wrong value in the tax. We want to change the value of tax in the purchase order after cancelling the MIGO document. But the system is not allowing me to do the changes. I also deactivate the release as well through ME29N.
    Regards
    Imran

    Hi,
    For changing the tax value, you need to change the tax code to the one that has the correct tax % configured. You can use transaction FTXP to find out the tax rates assigned to tax codes. For changing tax code it it not necessary to cancel already posted GRs
    Ramesh

  • Changing the Condition value in Quatation only and not in Order

    Hi Gurus,
    We have a Requirement from Client in which the Client should be Able to change the condition Value PR00 in the Quotation and not in Sales order......can someone please let me know how's that possible?
    Because if we try to make Changes in Condition Type in V/06 it will also allow changes in Sales Order....

    Hi
    You can use user-exit USEREXIT_PRICING_PREPARE_TKOMP in the include MV45AFZZ.
    IF VBAK-AUART = (Your quotation type)
    LOOP AT XKOMV.
    IF XKOMV-KSCHL = 'PR00'.
    SELECT * FROM T685A INTO TABLE I_T685A WHERE KSCHL = 'PR00'.
    READ TABLE I_T685A WITH KEY KSCHL = XKOMV-KSCHL.
    I_T685A-KMANU = 'C'.
    MODIFY I_T685A INDEX SY-TABIX.
    MODIFY T685A FROM TABLE I_T685A.
    REFRESH I_T685A.
    ENDIF.
    ENDLOOP.
    like this discuss with your abapper and build the logic
    regards
    Prashanth

  • Error while changing modules

    On a Mac, did digital download from B&H. Has never worked because error while changing modules. Did EVERY step in forums. Nothing. Still under manufacturers warranty, need to talk to actual customer rep but only gives me option to post question on forum. So far this is more than annoying to have to deal with.

    Hi Atul Saini.
    It is unbelievable how miserable the ADOBE support is.
    Iam sorry - but Iam awaiting answers, as we are paying
    since nearly a month and Lightroom does not work at all.
    Can you help or what is happening?
    Thanks.
    Really angry.
    Julia Ufer
    2014-09-05 21:50 GMT+02:00 Jeff A Wright <[email protected]>:
        Error while changing between modules
    Jeff A Wright
    <https://forums.adobe.com/people/JeffAWright?et=watches.email.outcome>
    marked Atul_saini123
    <https://forums.adobe.com/people/Atul_saini123?et=watches.email.outcome>'s
    reply on Error while changing between modules
    <https://forums.adobe.com/thread/1566317?et=watches.email.outcome> as
    helpful. View the full reply
    <https://forums.adobe.com/message/6703771?et=watches.email.outcome#6703771>

  • Error while changing between modules

    Dear Know-it-All out there.
    Iam a Newbie - Middlebie Photosop User , so to keep it short.
    We just installed CC with Lightroom & PS. The problem „Error while changing between modules“.
    is occurring while starting Lightroom and the program cannot be used properly.
    There seems no chance to create a catalog properly, the Library just
    does not open any menu which it should do.
    Adobe Support could not work it out either so roar, their suggestions was
    to restart in safety mode / deleting library 5plist / plus many more
    little stuff which actually did not help.  This is already the second installation ,
    same problem as with the first. We are working on a IMac 2.9GHz, i5, 8GB 1600Mh, OSX 10.9
    Any ideas? Thank you so much and kind regards.
    Julia

    Hi Atul Saini.
    It is unbelievable how miserable the ADOBE support is.
    Iam sorry - but Iam awaiting answers, as we are paying
    since nearly a month and Lightroom does not work at all.
    Can you help or what is happening?
    Thanks.
    Really angry.
    Julia Ufer
    2014-09-05 21:50 GMT+02:00 Jeff A Wright <[email protected]>:
        Error while changing between modules
    Jeff A Wright
    <https://forums.adobe.com/people/JeffAWright?et=watches.email.outcome>
    marked Atul_saini123
    <https://forums.adobe.com/people/Atul_saini123?et=watches.email.outcome>'s
    reply on Error while changing between modules
    <https://forums.adobe.com/thread/1566317?et=watches.email.outcome> as
    helpful. View the full reply
    <https://forums.adobe.com/message/6703771?et=watches.email.outcome#6703771>

  • Error while Changing Vendor

    Dear all
            I am getting the below error while changing the vendor master.
    "Tax code 1 must be numerical
    Message no.AR144  "

    go to XK02 and check what tax maintained in Tax Number 1 field of Tax Information tab in Control Data Screen for the Vendor..
    Thx
    Raju

  • Change in Condition value

    Hi all,
        Can you please let me know whether the currency of the condition value in the purchase order can be changed. In my scenario, we have document currency as USD. But certain conditions like freight, customs are invoiced in local currency (XOF). Now the condition amount is appearing with currency in XOF, but we need the condition value also has this same currency(XOF).
    thanks & regards
    Chaitanya Rayaprolu

    Yaa you can assign vendor to these condition type (freight, customs etc) whose currency is XOF.
    You can enter values in PO against these condition as XOF.
    While doing MIRO for this vendor, please change the curreny from USD to XOF.
    Regards
    Bhavesh Mistry

  • Sales Order - Error while changing using BAPI

    Hi,
    I would want to compare the system price and the expected price for a sales order and in case of any discrepancy, set a 'reason for rejection' code. I'm using the bapi 'BAPI_SALESORDER_CHANGE' to make changes to the sales order (setting the rejection code). This is working fine in cases where there is some value for both the prices but is throwing an error while the system price is null.
    Is there any way to overcome this error and still set the rejection code or should we make any changes in the config to let the system allow to save changes when the system price is null.
    Thanks in advance.

    The message you mention - ZZ054 - seems to be a non-standard one - it may be generated by some of your user-exits. Check this in SE91-> "Where-used list" (standard system should allow saving the document in case of incimplete pricing - that's why you may have an exit which prevents this).
    If so, you might modify your user-exits accordingly - to allow saving the document in cases defined by you.
    Another approach (not sure if this will be a solution in this case but you may check): see parameter BEHAVE_WHEN_ERROR of fm BAPI_SALESORDER_CHANGE.
    regards

  • Error while changing PO in SRM extended classic Version 5.0

    Hi Guys,
    we are facing issue while changing PO in SRM , this is extended classic with version 5.0.
    The system status is active() is error message and PO remains unchanged. Kindly help to resolve this issue. we have an approval for even PO if a user changes the qty in the PO then it calls the approval WF logic.
    Thanks
    Srujank

    Hello Srujan,
    Go through the following thread:
    Re: PO status change
    Hope it helps.
    Thanks,
    Neelima

  • Error while Changing IO group

    HI Gurus
    I facing problem while changing IO group using T code KOH2
    some of the IO are gray out ,while selecting such IOs for changing its IO group System is not allowing me to select these IO and giving error  'Position cursor correctly' .
    Is there is any resion that IO got gray out ?
    Thanks
    Avadhut

    Hi,
    Go to KOH2
    Select the order by pressing F9. Now place the cursor where you want to put the order group. i.e on same level or Lower level.
    Regards,
    Jigar

  • Error while changing the physical IP address of SOA related datasource

    Hello Everyone!!!
    I am facing a problem while changing the ip address of my SOA related datasource in weblogic 10.3,Below is a brief description about my prb:
    I have created a domain in weblogic 10.3 and have configured a datasource to it and its working fine initially.
    But i had to change the ip address of my datasource(i.e Edit the existing the setting of my domain) as my database was migrated to another m/c.The changes that i did was,I changed the url in the connectionpool tab of each of the datasource's listed in admin console(Please let me know if i have left out any other important place in which i had to make this change).
    After making this change my ManagedServer starts but my Enterprise Application named soa-infra doesnt start and when i checked the log to find out the error,this is what i came across:
    B2B-50025: Repository error: Error -: B2B-51572: Error reading input stream.: java.io.IOException: Stream closed
         at oracle.tip.b2b.init.Repository.initExchange(Repository.java:658)
         at oracle.tip.b2b.init.Repository.initialize(Repository.java:764)
         at oracle.tip.b2b.init.B2BServer.readRepository(B2BServer.java:509)
         at oracle.tip.b2b.init.B2BServer.initialize(B2BServer.java:212)
         at oracle.tip.b2b.engine.ThreadWorkExecutor.startB2B(ThreadWorkExecutor.java:345)
         at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:203)
         at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:105)
         at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:183)
         at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    Caused by: Error -: B2B-51572: Error reading input stream.: java.io.IOException: Stream closed
    Any suggestion would be of great help.
    Thks in advance!!!

    Hey thks for the reply,
    We were able to solve the problem by just restarting our database,
    i got some reference from the below link(pls refer to this topic:Changing the IP Address of a Metadata Repository Installation):
    [http://download.oracle.com/docs/cd/E12839_01/core.1111/e10105/host.htm#CHDHAEFE]
    but m still confused do i have to restart my database server each time i change the DB server that m pointing to in my weblogic console and if yes can you pls help me understand what change happens when the database restarts that makes this work.
    Another issue that m facing now is that after solving the above prb(by restarting the DB) m not able to deploy process's on to my server.
    The Exception that appears in the log file is as follows:
    [2011-02-08T13:03:33.220+05:30] [soa_server1] [ERROR] [] [oracle.soa.bpel.engine.compiler] [tid: [ACTIVE].ExecuteThread: '17' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 0000Is4C5SLBLA1LzuP5iW1DKEXf000d33,0] [APP: soa-infra] [dcid: d61ccdb1526887f2:678e40b9:12e040e4cba:-7ffd-000000000000290f] <BPEL1Processor::generateProcessClass> MerchantSales_BPELProcess.bpel(line 228): invalid query[[
    query "/EmailPayload/ns3:FromAccountName" is invalid, because java.lang.IllegalArgumentException: null schema location for ns=http://xmlns.oracle.com/ias/pcbpel/NotificationService [Cause=null schema location for ns=http://xmlns.oracle.com/ias/pcbpel/NotificationService]
    Check the XML schema and make sure your query string is valid
    [2011-02-08T13:03:33.448+05:30] [soa_server1] [ERROR] [] [oracle.soa.bpel.engine.deployment] [tid: [ACTIVE].ExecuteThread: '17' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 0000Is4C5SLBLA1LzuP5iW1DKEXf000d33,0] [APP: soa-infra] [dcid: d61ccdb1526887f2:678e40b9:12e040e4cba:-7ffd-000000000000290f] <CubeProcessLoader::create> [[
    java.lang.Exception: BPEL compilation failed
         at com.collaxa.cube.lang.compiler.BPEL1Processor.generateProcessClass(BPEL1Processor.java:529)
         at com.collaxa.cube.lang.compiler.BPEL1Processor.loadProcess(BPEL1Processor.java:495)
         at com.collaxa.cube.lang.compiler.BPEL1Processor.loadProcess(BPEL1Processor.java:438)
         at com.collaxa.cube.lang.compiler.BPEL1Processor.createCubeProcess(BPEL1Processor.java:396)
         at com.collaxa.cube.engine.deployment.CubeProcessFactory.create(CubeProcessFactory.java:61)
         at com.collaxa.cube.engine.deployment.CubeProcessLoader.create(CubeProcessLoader.java:112)
         at com.collaxa.cube.engine.deployment.DeploymentManager.deployProcess(DeploymentManager.java:238)
         at com.collaxa.cube.engine.deployment.DeploymentManager.deployComponent(DeploymentManager.java:182)
         at com.collaxa.cube.ejb.impl.CubeServerManagerBean._deployOrLoadComponent(CubeServerManagerBean.java:726)
         at com.collaxa.cube.ejb.impl.CubeServerManagerBean.deployComponent(CubeServerManagerBean.java:114)
         at com.collaxa.cube.ejb.impl.bpel.BPELServerManagerBean.deployComponent(BPELServerManagerBean.java:85)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)

Maybe you are looking for

  • Running oracle database xe (express edition) on windows server 2008 r2

    Is it supported to run Oracle Database XE on Windows Server 2008 R2? Database XE is only supported as 32-bit. Current builds of Windows Server 2008 only come in x64 configurations. Here are the Database XE system requirements for windows: [http://doc

  • Questions about Indexing and Using an Indexing POA

    Although I have only about 50 users, at least 15 of them have in excess of 100,000 messages in their accounts and the POA (version 7.0.2) is regularly slowing to a crawl. (I just know that plans for revolution are fomenting!) I have embarked on a cam

  • Problem with Query when I try to do more than one group

    Hi Sap Experts, Hopefully somebody can suggest a way to make my query work a bit better. I have built a stock warehouse query which prompt for item groupcode see below SELECT T1.[ItemCode] AS 'Item No.', T1.[ItemName] AS 'Item Description', T1.[BuyUn

  • IE7 says version 8 or 9 needed to view pdfs in a browser

    I have new sony vaio and whenever i click on a 'pdf file the browser says "the adobe acrobat/reader that is running can not be used to view pdf files in a web browser.  adobe acrobat/reader version 8 or 9 is required" I do have ver 9 installed.  This

  • First client crashs

    Hello, I have a problem with the first RMI client: Starting RMI communication. Solving name: Sun Jun 12 11:00:39 CEST 2005 (RMI)Error retrieving object reference: aaa Stack trace: java.rmi.NotBoundException: aaa      at sun.rmi.registry.RegistryImpl.