Changing VA22 using 'BAPI_CUSTOMERQUOTATION_CHANGE'

Hi all,
I have to change the VA22 transaction using afore said BAPI,
a quotation is created with a line item using VA21 transaction,so now i have to reject this line item.this line item can be rejected by adding the reason code as 23,thats all the line item will be rejected...This works fine with BDC recording when i try to use BAPI with the below inputs..I get success message in the return table but it is not updated in the quotation...
Pls suggest me how to reject the line item using BAPI.are the below mentioned inputs sufficient or any inputs need to be added...
ST_QUOT_HEADER_IN-SALES_ORG  = '1100'.
ST_QUOT_HEADER_IN-DISTR_CHAN = '10'.
ST_QUOT_HEADER_IN-DIVISION   = '50'.
ST_QUOT_HEADER_INX-UPDATEFLAG = 'U'.
IT_QUOTATION_ITEM_IN-ITM_NUMBER = '10'.
IT_QUOTATION_ITEM_IN-MATERIAL   = 'Y80885'.
IT_QUOTATION_ITEM_IN-REASON_REJ = '23'.
APPEND IT_QUOTATION_ITEM_IN.
IT_QUOTATION_ITEM_INX-ITM_NUMBER = '10'.
IT_QUOTATION_ITEM_INX-UPDATEFLAG = 'U'.
APPEND IT_QUOTATION_ITEM_INX.
CALL FUNCTION 'BAPI_CUSTOMERQUOTATION_CHANGE'
  EXPORTING
    SALESDOCUMENT                = '0020434795'
    QUOTATION_HEADER_IN          = ST_QUOT_HEADER_IN
    QUOTATION_HEADER_INX         = ST_QUOT_HEADER_INX
  TABLES
    RETURN                       = IT_RETURN
   QUOTATION_ITEM_IN             = IT_QUOTATION_ITEM_IN
   QUOTATION_ITEM_INX            = IT_QUOTATION_ITEM_INX
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' .
Thanks in advance
regards
balaji

Directly i have try many times it is updating.  i have alrready use without i_switch..Please reply ASAP

Similar Messages

  • Change material using BAPI_CUSTOMERQUOTATION_CHANGE

    hi i want to change meterial from exsisting quotation. i.e. i am replacing lineitems 10 material A to B.
    when i am using manuly ,i mean direct run it is working fine. but when i am using to another bapi it is giving error.. that meterial is not defined for plant 2500"
    but directly it is updating.
    my code is
         I_HEADER1X-UPDATEFLAG = 'U'.
          I_HEADER1-QT_VALID_F = V_ANGDT.
          I_HEADER1-QT_VALID_T = SY-DATUM + 90.
          I_HEADER1X-QT_VALID_F = 'X'.
          I_HEADER1X-QT_VALID_T = 'X'.
          WA_ITEM-ITM_NUMBER = WA_VBAP1-POSNR.
          WA_ITEM-MATERIAL   =  MATERIAL_T.
          APPEND WA_ITEM TO I_ITEM.
          CLEAR WA_ITEM.
          WA_ITEMX-ITM_NUMBER = WA_VBAP1-POSNR.
          WA_ITEMX-UPDATEFLAG = 'U'.
          WA_ITEMX-MATERIAL  = 'X'.
          APPEND WA_ITEMX TO I_ITEMX.
          CLEAR WA_ITEMX.
      I_SWITCH-SCHEDULING = 'X'.
    CALL FUNCTION 'BAPI_CUSTOMERQUOTATION_CHANGE'
      EXPORTING
        SALESDOCUMENT                = V_VBELN
        QUOTATION_HEADER_IN          = I_HEADER1
        QUOTATION_HEADER_INX         = I_HEADER1X
       LOGIC_SWITCH                 =   I_SWITCH
      TABLES
        RETURN                       = RETURN
        QUOTATION_ITEM_IN            = I_ITEM
        QUOTATION_ITEM_INX           = I_ITEMX

    Directly i have try many times it is updating.  i have alrready use without i_switch..Please reply ASAP

  • Change in Useful life of asset in mid year, but the previous posted depreciation should not be changed

    Dear Experts,
    I have a requirement in one of my client, We need to extend the useful life of asset in mid of an asset fiscal year and the depreciation which was posted in the previous should not be changed.
    Requirement:
    Useful life of asset  is to be extended after completing depreciation for 4 years and in-between the current asset fiscal year. Provided the present asset value has to be taken as the new book value of the asset and the depreciation posted henceforth to be posted based on the new asset value till the remaining useful life.
    Previously posted depreciation should be unchanged.
    Analysis:
    1.      The fiscal Year followed - October to September.
    2.      The useful life of asset will be changed, and the depreciated value posted till 31/mar 2014 will have the old depreciation value ( based on the original acquisition value)
    3.      The Depreciation key used in of type LINR (linear), depreciation value will be calculated based on the Book value till the asset value becomes ZERO at the end of useful life of the asset.
    4.      We can change the useful life of the asset at the end of a Asset fiscal year say FY- 2014, if this is done the existing configuration will take the Book value of the asset at the end of the Fiscal as the asset value and the new depreciation will be calculated based on the new useful life of the asset. The asset value will become ZERO at the end of the newly changed Useful Life.
    5.      But the requirement is that the useful life of the asset will be changed exactly half way in between existing Asset fiscal (i.e., 31/03/2014), if this is done system will change the depreciation value based on the new useful life ( since the Dep Key is LINR), but the depreciation value will change from the fiscal start say October 2013 to September 2014 ), which will not satisfy the requirement of the client. Since the depreciation which is already posted from October 2013 to March 2014 should not be changed.
    Note:
    1. We are not willing to retire the asset and create a new asset with the remaining book value as asset value and start depreciation.
    Kindly let me know if the requirement can be fulfilled without retiring the asset.

    Dear All,
    This requirement has been completed.
    1. I created New Multi level valuation method with base 26 ( Net book value w/o Revaluation ).
    2. New depreciation key was created and the above method was assigned to it. I never changed the Base method.
    3. new interval was created in the depreciation area, with this created dep key and extended the useful life of the asset. The depreciation was calculated according to the requirement.
    Originally the asset had useful life of  5 Years, I changed the asset useful life to 8 years now with new Depreciation key 2001.
    Depreciation was already posted to the asset till 04- 2013 for an amount of 148.27 SAR.
    Net Book value carried forward to 2013 = 1575.56 SAR
    Depreciation already posted till 4th period =   148.27 SAR
    Current Net book value after useful life extension           = 1427.29 SAR .
    Now the new depreciation key 2001 with Multilevel method 201, will take this Net-book value as Asset value and will depreciate along the useful life of the asset till it becomes zero.
    Planned depreciation of 2013 ( remaining 6 months) = 166.24 SAR
    Planned depreciation of 2014 = 225.96 SAR
    Planned depreciation of 2015 = 225.96 SAR
    Planned depreciation of 2016 = 225.96 SAR
    Planned depreciation of 2017 = 225.96 SAR
    Planned depreciation of 2018 = 225.96 SAR
    Planned depreciation of 2019 = 131.25 SAR
    Total      = 1427.29 SAR ( the Asset value becomes zero at the end of its remaining useful life.
    The previously posted depreciation from 01.01.2013 to 30.04.2013 was untouched.

  • HOW TO CHANGE THE USEFUL LIFE FOR MORE ASSETS AT A TIME FOR ASSET CLASS

    Hi All,
    Asset which is under Asset Class Support system-B700. Here every thing is ok but the problem in USE FULL LIFE which is come by default. It must be 4 instead of  5.   So can any body help me out from this how to change the Useful life in that Asset class.  In that Asset Class we have the morethan 200 Assets. It was happend in Prdocution system so now the problem is where i can change the useful life for the asset class either in DEV or PRD.
           Also i want to know the information of How these assets are Uploaded into the system (Lsmw or etc). this is very urgent for me.
    Thanks in Advance,
    Regards,
    Siva.

    Hi Ashok,
         Can i know the reason how it was happend. i mean instead of 4 years the system showing is 5yesrs any reason is there behind that.
    Thanks in Advance.

  • Changing quantity using bapi_salesorder_change function

    hi ,
    i am changing quantity using 'bapi_salesorder_change' function.what are the minimum parameteres that needs to be passsed to the function.i am not able to change the quantity for some items.also for some sales orders i am not getting any error message but commit work is not working.
    thanks ,
    nitin

    Hi Nitin,
    After you call the BAPI_SALESORDER_CHANGE, specifically call BAPI_TRANSACTION_COMMIT , as BAPI_SALESORDER_CHANGE does not run a database commit.(as per the documentation provided by SAP for BAPI_SALESORDER_CHANGE)
    Thanks
    Lakshman

  • I am no longer able to change songs using my headphones

    After updating to iOS 6.0 on my iphone 4S I am no longer able to change songs using the headphone controls and when i double click on the home button it no longer allows me to turn my music on and off without unlocking the screen and going into the music app on the phone.
    Any ideas why this is?  Is it a known bug?

    Start by opening Disk Utility, from Applications > Utilities, then select the internal storage MacIntosh HD, and then Repair Permissions.  You should see some printer libraries noted as having the wrong permissions, that may be part of the problem.
    Be sure you have the latest printer/scanner drivers installed by going to the Canon site and download the latest available.
    You can also try using the Mac OS X built-in scanning software by going to Applications > Image Capture and see if that handles the scanning for you - works great with my Epson scanner.

  • Look for a progarm that will let me have 2 moniters but one will lock on and will not change when using spaces

    look for a progarm that will let me have 2 moniters but one will lock on and will not change when using spaces

    ok so i have one moniter to the right of me and i want to keep my google chrome on that one but still be abel to use space on the many monter. cuz when you go to spaces it movies both moniter i hope that help and i hope that you can help me.

  • I have iMac osx  version 10.8.5 and i forgot my account login password. i can't change it using my apple ID nor i remember my password.also my fire vault is not on and my keychain won't help. PS i can't also use the terminal idea it always not found.help

    have iMac osx  version 10.8.5 and i forgot my account login password. i can't change it using my apple ID nor i remember my password.also my fire vault is not on and my keychain won't help. PS i can't also use the terminal idea it always not found please help !!

    You need to restart the iMac and hold down the Command and R keys immediately.
    You will then have the utilities drop down and you choose Terminal
    When Terminal opens, type exactly:
    resetpassword
    and press Return.
    When the Reset Password window opens, select the user for which you want to change the password.
    Enter the new password twice, and then click Save.
    Accept the next dialog window,
    And then Apply
    When finished click the apple at the left side of the menu bar, and the Restart.

  • Bambus - A small and simple GTK Gui to change Wallpapers using feh,...

    It is a old project, which I wrote a year ago.
    Bambus - A small and simple GTK Gui to change Wallpapers using feh, Esetroot, hsetroot, habak or any other command tool.
    Aur package: bambus
    To restore a Wallpaper at a WM start-up (Openbox, Awesome,...) execute the command
    bambus -restore
    To restore a Wallpaper randomly execute
    bambus -any
    To restore Wallpapers in a special order execute
    bambus -each
    Screenshots:
    Last edited by ying (2010-11-10 06:35:06)

    Hey thx a lot for your posts.
    @ApotheoZ: Hmm I don't know where I got them from(Take a look at wallbase.com). But I'll load it up for you.
    Last edited by ying (2010-11-10 16:36:26)

  • Change of use of equipment

    Hi Experts
    The structure of our group made ​​up of several companies esr (Technical), each company is composed of several teams assigned to it, if we seek a procedure on SAP to track the change in the allocation of such equipment between companies
    Currently, we modify the plug equipment directly (Changing the Division location, Company, Computer technical and business area) to trace the change of use.
    Thinks in advance

    OK , Let me give an example
    initial state
    Functional Location 1  = Company 1
        The Car 1 is assigned as a Functional Location 1
    Functional Location 2  = Company 2
    Is there a procedure in which SAP can track and trace the change in the allocation of the company to a company without going through two direct editing of the plug equipment??????
    State final
    Functional Location 1  = Company 1
    Functional Location 2  = Company 2
       The Car 1 is assigned as a Functional Location 2
    Thainks

  • Regarding changing and using

    Hello experts:
        First thank you in advance for all your replies.
        would you please explain the difference of changing and using preferably by an example?
        couldn't thank you more.
    Best regards.
    Frank

    Hi,
    USING and CHANGING in PERFORMS means like this.
    USING- Call by value
    CHANGING- Call by reference
    Check the example below.
    PERFORM conv_atinnnam_no USING l_refbatch CHANGING w_refbatch.
    FORM conv_atinnnam_no USING    p_name
                          CHANGING p_no.
      CALL FUNCTION 'CONVERSION_EXIT_ATINN_INPUT'
           EXPORTING
                input  = p_w_name
           IMPORTING
                output = p_w_no.
    ENDFORM.                    " conv_atinnnam_no
    The parameters passing under USING will not change if the corrosponding parameter in the FORM changes unless it is global variable. But in case of parameter under changing what ever changes we are making inside FORM will be reflected to Original variables.
    In case of global variables USING and CHANGING works in
    the same way.
    Thanks,
    Vinod,

  • Is it possible to ignore "Rigid relationships between attributes cannot be changed" when using ProcessUpdate for Dimension?

    As per the title is it possible to ignore "Rigid relationships between attributes cannot be changed" when using ProcessUpdate for Dimension?
    We have a case where very rarely an item might have been miscategorised so the brand is manually changed.  We want this dimension to be rigid to speed up ProcessUpdate.
    We do a ProcessFull each night, so it will get corrected then, but during the hourly updates we would just like to ignore this error if possible?

    Hello,
    The rigid relationship should be defined when the members will not change over time. Here are some threads regarding rigid relationship for your reference, please see:
    Processing OLAP Cube: http://social.technet.microsoft.com/Forums/sqlserver/en-US/17a55593-9543-404e-a579-0a011965585d/processing-olap-cube?forum=sqlanalysisservices
    Flexible and rigid relationship: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/2d8f5443-065d-4485-9385-6f0b5fa417da/flexible-and-rigid-relationship?forum=sqlanalysisservices
    If you have any feedback on our support, please click
    here.
    Regards,
    Elvis Long
    TechNet Community Support

  • I am having a problem changing a color in a selected area. Using the Quick Selection tool I am able to select the area I wish to change. Using the Brush tool, color, color mode and click drag in my selected area, nothing happens, no color changes.   I hav

    I am having a problem changing a color in a selected area. Using the Quick Selection tool I am able to select the area I wish to change. Using the Brush tool, color, color mode and click drag in my selected area, nothing happens, no color changes. I have viewed some videos and read numerous articles but haven't found the one to help me. Please point me in the best direction. Thank you Vincent TC

    For the sake of clarity and to save people time, Todd is asking about the behaviour of the Patch tool when using it to repair the area next to the young lad's head.  Todd gets a blurred dark tone pretty much regardless of the options he uses.
    IMO that's what I would expect to happen because of the close proximity of the other image elements i.e. the lad's neck and the strong lines of his shirt.  I would not choose to use the Patch tool in this situation.  Content Aware Fill makes a better stab at it. 

  • How can I change passwd using CLI

    How can I change userpassword using iPlanet Delegated Administrator v1.1 Command Line Utilities?
    (imadmin user modify ... -A userpassword:MyNewPasswd

    In SIMS 4.0
    1) You know uncrypted password / setup a new one:
    imadmin modify user ... -W user_passwd
    2) You know crypted string:
    imadmin modify user ... -A userpassword:{crypt}a1vDyDPBLgTU2
    For both, you need administrative privileges.
    R.

  • Change pricing using FM

    Hi experts
    I need change the pricing of an exiting order.
    I would do this using the FM CRM_ORDER_MAINTAIN but it doesn't work....
    Can anybody show me the right code for change princing using this FM??
    best regards
    Marco

    Hi try this and let me know if fulfills your needs
      ls_pridoc_tab-stunr = ln_cond-stunr.
    ls_pridoc_tab-zaehk = ln_cond-zaehk.
    ls_pridoc_tab-waers = ln_cond-waers.
    ls_pridoc_tab-kbetr = '70'.
    INSERT ls_pridoc_tab INTO TABLE lt_pridoc_tab.
    ls_pridoc-ref_guid = ln_cond-kposn.
    ls_pridoc-cond_change = lt_pridoc_tab.
    INSERT ls_pridoc INTO TABLE lt_pridoc.
    ls_input_field-ref_guid = ln_cond-kposn.
    ls_input_field-ref_kind = 'B'.
    ls_input_field-objectname = 'PRIDOC_COM'.
    ls_field_name-fieldname = 'KBETR'.
    INSERT ls_field_name INTO TABLE lt_field_name.
    INSERT ls_input_field INTO TABLE lt_input_field.
    REFRESH lt_field_name.
    CALL FUNCTION 'CRM_ORDER_MAINTAIN'
       EXPORTING
         it_pridoc       = lt_pridoc
       CHANGING
         ct_input_fields = lt_input_field.
    IF sy-subrc EQ 0.
       ls_header_guid = guid.
       APPEND ls_header_guid TO lt_header_guid.
       CALL FUNCTION 'CRM_ORDER_SAVE'
         EXPORTING
           it_objects_to_save = lt_header_guid
         IMPORTING
           et_saved_objects   = gt_saved_objects.
       COMMIT WORK.
    ENDIF.
    Bye
    Il gemello disperso

Maybe you are looking for