Ordered Qty in Sales order exit USEREXIT_CHECK_VBAP is not working

Hi All,
  In a requirement, I changed the ordered quantity in a Sales order in the exit USEREXIT_CHECK_VBAP to a desired quantity.For eg: Some one has entered a quantity 5 and pressed enter, my program logic in that exit changed that quantity to 10, after saving it get reflected in VBAP-KWMENG as 10, uptill this it fine.
  Now the problem is when I want to see the same saved Sales Order through VA02 its show me the previously entered qty as 5 not 10.
  Kindly let me know if there is anything am missing.
  Kindly help me out.
Thanks
Bhagat

write your code in the below
      FORM USEREXIT_SAVE_DOCUMENT_PREPARE                           *     
      This userexit can be used for changes or checks, before a     *     
FORM userexit_save_document_prepare.                                        
ENDFORM.                    "USEREXIT_SAVE_DOCUMENT_PREPARE

Similar Messages

  • In Report,order by clause is not working

    Hi All,
    For the report i prepared the query in this one am using the order by clause,i run the query in the sql plus working fine am getting the data based on the order by clause.when i use the same query for the report am getting the data but not in the order(i.e order by clause in not working).
    Please help me how to do this one.
    Thanks in Advance.
    Regards,
    Leelakrishna.G

    Hi Dora,
    Data is coming in the proper sequence,but in the first group data is not coming(In first group data first line only displaying,remaining data is not comming).
    My req is:
    The report is executing based on the creation date(i.e.,from creation date to today).
    In this so many Purchase requisitions will be there for this one different approval in different times will be there.
    For Ex:
    we will take 2 PR number only(for the first one 3 approvals,second one 4 levels of approval).
    1. one supplier 1person raised by 1PR submit
    No Action
    Approve
    2. 2Supplier 2personraised by 2PR Submit
    NO Action
    Forword
    Approve
    with ur suggestion am trying data is gettin fine but first group first line is coming remaining data is not coing.
    EX:
    1. one supplier 1person raised by 1PR submit
    No Action
    Approve
    2PR Submit
    NO Action
    Forword
    Approve
    Note:"2. 2Supplier 2personraised by " this kind of lines data is missing.
    Can you pls check and suggest me how i can do this.
    Thanks in Advance.
    Regards,
    Leelakrishna.G

  • All share functions except email are NOT enabled. I can create and print but order prints is also not working. HELP!

    All share functions except email are NOT enabled. I can create and print but order prints is also not working. HELP!

    Hello
    Please see notes and 4 attachments for your reference. Hopefully this information helps.
    Maureen
    what version of iPhoto are you using? 9.5.1
    what system version are you running? OSX 10.9.4
    what happens when you try to order? See attached picture. I want to share pics to FB & FLICKR etc
    did you make sure you've selected the correct Print Products store in iPhoto's Advanced preference pane? YES
    what fixes have you tried? Restarted computer. I'm not very computer savy. I have had no problems with this in the past.
    where is your library located? I have not moved anything for iphoto.
    did you apply any updates or upgrades just prior to the problem occurring? I can't remember
    are you running a "managed" or "referenced" library? Not sure how to find this out
    what type of Mac? iMac 2.5 GHz Intel Core i5
    how much free space on your boot drive? 12 GB 1333 MHz DDR3 - I have an external hard drive 1 TB

  • MSR 2.0 Mobile Sales R/3 Synchronization do not work properly

    Hi to all there,
    we want to use the MSR 2.0 scenario with MI 2.1 SP03 Patch 06. Unfortunately the synchronization with the
    client do not work.
    We made some settings in TCO MSR_SELECT on the R/3
    backend system. The corresponding data reached the
    table merep_207 on the web application server. If we
    do the synchronization not all data appear on the client
    site. For example no sales order reached the client.
    Can anybody help regarding this problem?
    Thanks in advance!

    Hi Jill,
    thank you very much for answering...
    I worked through the trouble shooting guide, but I
    can't solve the problem.
    Can you give me some advice how to reset the
    client database (both on WAS and on the client) in order to start again at the beginning?
    I resetted the RDB tables already with the FB MEREP_RDB_T01_RESET and now no entries in the merep_mon
    existing, when I execute the synchronization today.
    You see, I am a absolute beginner...
    Thanks for your help..
    Best regards,
    Marion

  • In Editable ALV the BACK/CANCEL/EXIT buttons are not working?

    Hello,
    I wrote a editable FM based ALV, working fine that when user changes the data and press SAVE button, values are transfering into prog. But, i need to put a validation that, if user changes the values and press BACK/CANCEL/EXIT button, i need to popup the message that "Do you want to save changes", my PF-STATUS is good(because, SAVE is working).
    But, its not working that when user done changes and press BACK button (forgot to press SAVE button), system taking me to selection screen/screen 0!! I my code is as below,
    FORM pick USING v_ucomm     TYPE syucomm
                                         it_selfield TYPE slis_selfield.
      DATA: v_answer TYPE char1.
      READ TABLE it_z_tbl  INDEX it_selfield-tabindex
       INTO w_z_tbl.
      CASE v_ucomm.
        WHEN '&IC1'.
            " working fine this functionality
          ELSE.
            MESSAGE i000 WITH 'Double click on key field'.
          ENDIF.
        WHEN 'SAVE'.
            " working fine this functionality
        WHEN BACK' " OR 'CANCEL' OR 'EXIT'.
          PERFORM popup_for_user_decision CHANGING v_answer.
          CHECK v_answer = '1'.
          PERFORM now_update.
      ENDCASE.
    ENDFORM.     
    when i put the break point on the first line of this piece of code, its not stopping on pressing BACK/CANCEL/EXIT buttons!! (its stoppig for SAVE press or double click)
    Its stopping at this point,
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'.
    EXPORTING
    i_callback_user_command  = 'PICK'
    IMPORTING
    EXCEPTIONS
    IF sy-subrc <> 0 =================> its stopping at this point!
    ENDIF.           
    Pls. let me know why system is not recognising that i hv a PICK form (SAVE and Double clicks are working fine)?
    Thank you

    Hi,
    Actually BACK is standard user command so it is not stopping and going to selection screen.
    Give some other use command like 'BCK' and try....

  • Exit and Rewind not working in 5.5

    Hello,
    I have an assessment built in v5.5. When the assessment is in the LMS and is exited, it does not rewind. This problem has happened before when I upgraded from 4.0 to 5.0 and the resolution was to replace the default.htm file (located in C:\Program Files\Adobe\Adobe Captivate 5.5\Templates\Publish\SCORM\1_2 and C:\Program Files\Adobe\Adobe Captivate 5.5\Templates\Publish\SCORM\2004) with a default_Intergrity.htm file and replace that with the default.htm files before publishing. Does anyone know of a solution or an updated default_Intergrity.htm to resolve this. Thanks!

    False alarm I hope. 
    Restarted Safari and it now appears to be working correctly.  Fingers crossed.
    I have been running Activity Monitor in the background and it appears the memory issues have been solved.  Safari Web Content is not using a progressivley increasing amount of memory. 

  • Customer exit EXIT_SAPLRSAP_001 is not working

    Hi all,
    Customer exit EXIT_SAPLRSAP_001 for transaction data is not working for
    2LIS_12_VCSCL. But its working for all other datasources.
    This is the new data source we are planning to use. And we have added three new fields to it.To fill up these fields we have write some logic.When extracted data for
    2LIS_12_VCSCL in RSA3 in debug mode.. its not stopping at all.
    I think we have to do some setting..
    Please suggest something..
    Regards,
    Viren.

    Hi ,
    I am using follwing things.
    Exit : EXIT_SAPLRSAP_001
    Include : ZXRSAU01
    TABLES: LIPS,J_3APGEN.
    DATA : LV_J_3ASIZE   TYPE FIELDNAME,
            LV_J_3ABWEL_SIZE  LIKE J_3APGEN-J_3AKORD1,
           LV_FLDNAME    TYPE FIELDNAME,
            LV_Z_BWEL_STYLE  LIKE J_3APGEN-J_3AKORD2.
    FIELD-SYMBOLS: <FS_DATA> TYPE ANY,
                    <FS_J_3ASIZE> TYPE ANY,
                    <FS_J_3ABWEL_SIZE> TYPE ANY,
                    <FS_Z_BWEL_STYLE> TYPE ANY.
    BREAK-POINT.
    CASE I_DATASOURCE.
      WHEN '2LIS_12_VCSCL'.
        LOOP AT C_T_DATA ASSIGNING <FS_DATA>.
          LV_J_3ASIZE = 'J_3ASIZE'.
       ASSIGN COMPONENT LV_J_3ASIZE OF STRUCTURE <FS_DATA> TO <FS_J_3ASIZE>.
       SELECT SINGLE J_3AKORD1 J_3AKORD2 FROM J_3APGEN INTO
                                 (LV_J_3ABWEL_SIZE,LV_Z_BWEL_STYLE)
                                  WHERE J_3AKORDX = <FS_J_3ASIZE>.
      IF SY-SUBRC = 0.
           LV_FLDNAME = 'J_3ABWEL_SIZE'.
        ASSIGN COMPONENT LV_FLDNAME OF STRUCTURE <FS_DATA> TO
                            <FS_J_3ABWEL_SIZE>.
            <FS_J_3ABWEL_SIZE> = LV_J_3ABWEL_SIZE.
           LV_FLDNAME = 'Z_BWEL_STYLE'.
        ASSIGN COMPONENT LV_FLDNAME OF STRUCTURE <FS_DATA> TO
                            <FS_Z_BWEL_STYLE>.
            <FS_Z_BWEL_STYLE> = LV_Z_BWEL_STYLE.
       ENDIF.
       CLEAR <FS_Z_BWEL_STYLE>.
       CLEAR <FS_J_3ABWEL_SIZE>.
       CLEAR LV_J_3ABWEL_SIZE.
       CLEAR LV_Z_BWEL_STYLE.
    ENDLOOP.
    ENDCASE.
    I think it should stop...
    Regards,
    viren.

  • Captivate 7 exit button does not work when published to LMS

    I recently published a course using Captivate 7 and uploaded it to our LMS.  During the review of the course it was noticed that the Close or Exit button on the controller did not work in IE.  However, it did work in Chrome.
    I have looked through this forum and found that there were similar issue with older versions of Captivate.  However, we have course published with Captivate 6 on our LMS in which the Close or Exit button does work.
    Does anybody have a solution for this problem?  Do we know if there is an update scheduled to fix this problem?
    Please let me know
    Dawn

    1.  Create a button in Captivate and assign a javascript call to "MyExit()"
    2.  Create a .js file called CourseExit.js.
    3.  Place the following code into that file.
    function MyExit()
      var SD = window.parent;
    if (blnReachedEnd == false && confirm("Would you like to save your progress to resume later?")){
    SCORM2004_CallSetValue("cmi.exit", "suspend");
    SCORM2004_CallSetValue("adl.nav.request", "suspendAll");
      else{
    SCORM2004_CallSetValue("cmi.exit", "");
    SCORM2004_CallSetValue("adl.nav.request", "exitAll");
    Unload(true);
    4.  Place the CourseExit.js into the "assets/js/" in the published folder
    5.  Add "<script language="JavaScript1.2" src="assets/js/CourseExit.js"></script>" to the html file that was output on the publish.
    I was able to set this up on the set up files on the local hard disk but so all I had to do was create a button and add the "MyExit()" code to the button, but when the next update came out it reset the hard disk files.  So, I have just resorted to updating the output file as seen above.
    Hope this helps.
    Garrett

  • SALES ORDER REASON FOR REJECTION NOT WORKING .

    Hi Friends
    Though user mention reason for rejection in preceding sales orders'  line item s,still  those line items are being copied to subsequent documents ( to another sales order and billing document ) .
    Do you feel  there may be  problem is in  standard SAP functionality or I  have to do something in configuration ( copy control )  to restrict it ?. not one sales order , it's happening for all the sales orders .
    Thanks in advance
    Rusheek

    Please check ur copying requrement routine in VTAA must be "301" and "Pos./neg. quantity" must be "+". Check with this configuration,
    If any query please revert back
    Rgds
    Dhirajjjj

  • Purchase order on Hold is not working from Sales Order document

    Hello gurus,
    I'm detecting a problem that I have.
    I have created a Sales Order and then, this document create a Purchase Requisition in automatic.
    So, when I create the purchase order, adopting the purchase requisition, I want to save this as on Hold.
    The problem is that the button "Hold" is missing.
    But, if I create a purchase requisition and I register the sales order directly (account assignment "E") and then, I create the purchase order, adopting the purchase requisition, the button "Hold" is not missing.
    I have active the BADI to Hold, but, it is only mention restrictions with Third Party and Services, not with Sales Order normal.
    Could you help me please a.s.a.p.?
    Regards,
    Sandra Palomo

    Application component: MM-PUR-PO-GUI                                                                               
    Function group: MEPO                                                                               
    The Business Add-In (BAdI) ME_HOLD_PO enables you to specify whether an    
    Enjoy purchase order can be put on hold or whether this function is to be  
    suppressed in accordance with your requirements.                                                                               
    In the standard system, this function is generally offered during the      
    creation of an Enjoy purchase order (transaction ME21N) and when a PO      
    that is on hold is changed (transaction ME22N).                                                                               
    Note                                                                               
    Enjoy purchase orders cannot be put on hold if any of the following        
    criteria apply:                                                            
    o  The PO contains service items                                           
    o  The PO contains "third-party" items                                     
    o  Commitment errors are involved                                          
    o  Subsequent (period-end volume rebate) settlement is involved                                                                               
    In the case of stock transfers within a company code, the "Hold" function  
      is generally inactive. If an application object contains an error of any   
      kind, the function is likewise inactive.

  • Create Orders of Sale from DIAPI,  Approval Procedures not works

    Hi Experts,
    I generate Orders of sale, from an application for DIAPI, the orders have approval procedures of authorization but they do not apply to the generated orders, which I must do in order that he executes them.
    Thanks,
    Carlos.
    SAP B1 8.8, SQL 2008, WinSvr 2008 x64

    Hi
    If you create sales order through DI API then it will go not for approval. You can try an alternative first create it as a draft , later when the draft is converted to sales order it will go for approval
    Regards
    Arun

  • Tried to pre-order an album but not working. Please help!!!

    I tried to pre-order an album. It was one that came with a song that downloaded immedietly. I clicked pre-order and it said some error and to try again. I went to and realized I was charged for that one song that you can get first. So i thought it went ahead and pre-ordered the album anyway. I looked in my purchased history and saw nothing about the album or that one song, so it charged me for nothing! Any ideas how i can fix this?
    Message was edited by: Twilight♥Dork

    I couldn't find an answer so i just emailed iTunes support and they fixed it for me. Thanks anyway!!!!

  • Stacking order on PrEl 9 not working

    I am trying to change the stacking order on simultaneous multiple video tracks.  I have two tracks on the screen, I select one from the timeline and then right click on it in the monitor panel -- the option of Title>Arrange doesn't come up.  When I go to the options bar at the top of the page and click Title>Arrange, it will not let me select it.  In the help topics, PrEl 7 & 8 are covered with these instructions, but 9 is not.  Any ideas?  Thanks a million if you can solve this!  -JD

    As Steve points out, the "stacking order," or Arrangement is only available for elements in a Title, like Shapes, or Text.
    To change the "stacking order" of elements such as Clips, Still Images, or Titles, they can be Selected, and then dragged to higher (or lower) Video Tracks, that are empty.
    Hope that helps, and good luck,
    Hunt

  • Gwen Stefani Pre-Order single automatic download not working

    Gwen Stefani Pre-Order offers to download a single track now and then the rest later when the album is released.
    Ordered the pre-order but the track didnt download.
    Now on my THIRD reply to try and get apple support to understand what is happening, so far I have a one track credit and told to download the song...only problem...its a pre-order you cannot download the song.
    Why do apple employ people in iTunes support that dont know how iTunes works?
    Why am I on my THIRD reply to explain the same problem?
    Why am I wasting my time?
    Exaspirated at having to fight apple these days, maybe i'll go back to microsoft, it all seems to be much of a muchness at times!
    As you can tell this latest problem is only the tip of the iceberg in recent months and its beginning to wear me down.

    Support appear to have gone into a huddle and promised me a reply once they sort it out.
    Guess we arent the only ones to complain.
    Maybe as this is the international version someone lazily copied the US version of the page and didnt notice that bit of text with the promise and therefore it was never setup in the UK store or elsewhere?
    Just a hunch

  • LOV based on Query - ORDER BY :P_ITEMVALUE does not work

    Hello guys! I have a special request that I'm focussing on. I have a couple of select lists in my application that contain tree species.
    On the first page the user has the opportunity to assign a ranking to the respective tree species. The database column storing that information is named INT_BEDEUTUNG.
    Instead of using that order by clause continously I want to be able to change the order by definition using two buttons. One is used to order alphabetically (column BA_LANG) and one is used to order by the field INT_BEDEUTUNG.
    Hence I tried to bind an item (P6_SORT) via a button, assigning it to either BA_LANG or INT_BEDEUTUNG.
    The tree species select lists in my reports are based on LOVs using the following query:
    SELECT BA_LANG, LNG_BAUMART
    FROM VT_TBL_BAUMART, vt_tbl_BAUMARTENBEDEUTUNG
    where CNT_BAUMART = LNG_BAUMART and
    LNG_GEBIET=:P6_lng_gebiet
    order by :P6_SORTI thought that if :P6_SORT conatins the value BA_LANG or INT_BEDEUTUNG, the selct list would be ordered accordingly. Unfortunately it doesn't, although P6_SORT is not empty?
    Do you have an idea what I am doing wrong or how to change the order by clause for that query for the whole application?
    I'd appreciate your interesting answers and thoughts!
    Best regards,
    Sebastian
    Edited by: skahlert on 17.09.2009 08:52

    @ Roel
    Thanks Roel! I believe your suggestion works! Thanks a lot! Great to get such a rapid solution! :-)
    Nevertheless I have one more question. I am using 2 html buttons on page 1 with URL-redirect in order to set the item on a specific page. This was for testing purposes only.
    Now I just want to set the attribute or value on page one where the respective buttons are placed.
    I have other navigating buttons on the same page, which when clicked, bind items on the target page. These should be used throughout the application to forward the item value for P_SORT.
    Now the question is - how can I bind an item on page 1 without being redirected? Is there a javascript routine or a simple trick that does the trick???
    Thanks again and best regards,
    Sebastian

Maybe you are looking for

  • How to use TRIM  DATA in CFFORM?

    How to use TRIM DATA in CFFORM? when data is retrieving from DATABASE. Wanna rtrim and ltrim while spaces.

  • Query of SRM components landscape

    Hi friends Actually i want to know a scenario where in which EBP,SUS,CCM(as supplier directory replicated from SUS),Strategic sourcing are used in Service Procurement of Extended Classic Scenario thanks regards krishna

  • Picking the last purchase price of the material

    Hi For the purpose of estimating the cost of material presently we are taking the cost of the material from the moving avg. price maintained in the material master. But now the client requirement has come to take the last purchase price and the curre

  • Need Help in Image Conversion

    Hi all I wonder how these image conversion happens when it comes in the point of converting multiple image in to a single TIFF..i am doing it to the extent resulting in the image creation with file size..The Mystery is i dont have any image when i op

  • How can we find size of a table having blob columns

    I have a problem in which i need to get the size of table that ishaving BLOB column in it. How to find the size? for ex: i am having a table DocBlob which is having a BLOB column DocObject. How to get the size of DocBlob table? Also how one can see t