BAPI_POSRVAPS_CREATESNPORDER to change existing order

Hi Experts,
I am using the following code to change the Deployment results - Confirmed Stock Transfer Requisition (EG and EF).
After SNP heuristics run, the standard SAP deployment run happens. Then, a stock transport order with reference to production order is created without reference to stock transport requisition or confirmed stock transfer requisition. So, to consume or reduce this confirmed STR quantity, I am using the following code. But the issue is, the date of the confirmed stock transfer requisition gets changed after this BAPI FM. I don't want the date to be changed. Does anyone have any idea of how to just change the quantity, but not to change the dates?
CALL FUNCTION 'BAPI_POSRVAPS_CREATESNPORDER'
EXPORTING
logical_system         = 'SAPXXX113'    " My current SAP APO system
APPLICATION            = 'DEP'        " Changing Deployment orders
EXT_NUMBER_ASSIGNMENT  = ' '        " I use ORDERID, instead of the order
COMMIT_CONTROL         = 'E'        " Commit only on successful completion
PLNG_VERSION           = '000'        " Active planning version
change_if_exists       = 'X'        " If it exists, then change the same. If not create it.
EVENT_CONTROL          = '1'        " To update the ERP system too
CHECK_SOURCE_EXISTENCE = 'X' "To check and return error if the source doesn't exist
TABLES
order_data             = lt_order_data    " Data to be updated
return                 = lt_return.    " Return message of BAPI update
For filling the internal table lt_order_data, I am using the function module BAPI_POSRVAPS_GETLIST3.
* Update fields for BAPI Update
ls_order_data-ordid         = ls_requirements-ordid.        " ORDID from BAPI_POSRVAPS_GETLIST3
ls_order_data-schedid       = ls_requirements-schedid.        " SCHEDID from BAPI_POSRVAPS_GETLIST3
ls_order_data-order_number  = ls_requirements-order_number.    " Order number from BAPI_POSRVAPS_GETLIST3
ls_order_data-product       = '4280143180'.            " Part number from BAPI_POSRVAPS_GETLIST3
ls_order_data-location_from = 'HGKG'.                   " From Location number from BAPI_POSRVAPS_GETLIST3
ls_order_data-loctype_from  = '1001'.                     " From location type from BAPI_POSRVAPS_GETLIST3
ls_order_data-location_to   = 'SGPR'.                    " To location number from BAPI_POSRVAPS_GETLIST3
ls_order_data-loctype_to    = '1001'.                      " To location type from BAPI_POSRVAPS_GETLIST3
ls_order_data-ttype         = ls_receipts-ttype.         " TTYPE from BAPI_POSRVAPS_GETLIST3
ls_order_data-unitofmeas    = ls_requirements-unitofmeas.
ls_order_data-unitofmeas_iso = ls_requirements-unitofmeas.
ls_order_data-order_start_date = ls_requirements-requirement_date. "What date to use here? Whatever the date I give it changes the already existing date. I don't want the dates to be changed
ls_order_data-order_end_date   = ls_requirements-requirement_date.
ls_order_data-fixed             = ls_requirements-fixed.
clear: ls_order_data-atpcat_from, ls_order_data-atpcat_to, ls_order_data-trans_priority.
Thanks,
Suresh

Hi Suresh,
I have just come across your query. For your knowledge, I wanted you to know that the bapi 'BAPI_POSRVAPS_CREATESNPORDER' can still be used for your purpose i.e changing the Deployment STR Confirmed  Qty without changing Order Dates.
To acheive this,
1) Pass 'SNP' in the application parameter in the bapi 'BAPI_POSRVAPS_CREATESNPORDER'.
2) Pass the order dates from the bapi 'BAPI_POSRVAPS_GETLIST3', which you wanted to retain, to 'Order_start_date','Order_end_date',of bapi 'BAPI_POSRVAPS_CREATESNPORDER' but with different quantity.
3) However,i suggest you to not to pass ATPCAT_FROM and ATPCAT_TO fields to ORDER_DATA in the bapi 'BAPI_POSRVAPS_CREATESNPORDER'. I found this during debugging the bapi as it is repeatedly failing to update the deployed STR(Confirmed).
Please find attached screenshot of ORDER_DATA structure for your reference.
try these. It does work!!
Thank you,
Santosh KB.

Similar Messages

  • Availability Check Changed on the Material Master Update Existing Orders

    I need to know if there is a way to update existing orders once changes have been made to the material.  Currently the only way that I know of is to go into individual orders change the plant save then change it back to the original plant on the order then the changes take effect.  How can I achieve this without touching every order individually.  Is there something to mass update existing orders to take a new snapshot of the material master settings for a material.

    Try with t.code VA05 - Open sales order list.
    Execute this list. In the output, sort the data by plant. Then go to menu Edit -> mass change -> new plant. Change the plant for group of sales orders that have similar plants. Then again do the same thing to bring the previous plant in the sales orders.
    This can help reduce the time instead of going one by one.
    Regards,

  • In VF02 to change existing Sales order

    Hi Gurus,
        Have Scenrios to change in exsting sales order ,to change the Condtion class based on the line itemwise.
    Please guide how to do it ,have check the sales order  BAPI_SALESORDER_CHANGE but its not working.
    Regards,
    san

    Hi vinod,
         Ve assigned the new condtion class  for new sales order its picking correctly but existing sales order are more than 8000 for that need to change...ve cant create new sales order some of are open sales order.that need to change existing one ,please guide how to achecive/
    Regards,
    san

  • HT1918 how can I change my payment on an existing order?

    how can I change my cc payment on an existing order?

    There's probably nothing you can do about it other than to reimburse your company, but go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store. Perhaps there will be something they can do for you.
    Regards.

  • How to change pricing Conditions in Sales order in change sales order bapi

    Hi Experts,
    How to change pricing Conditions in Sales order in change sales order bapi.
    I have used the 2 function modules bapi-changesalesorder and sd salesdocument change, But it is creating the new record , instead of changing the existing one, Could please assist regarding the same
    Thanks in Advance .
    NLN

    HI NLN
      I have just tried on my system and managed to overwrite the existing price by passing the following parameters.
      <b>Import Paramters:</b>
         SALESDOCUMENT - Sales Document Number
         ORDER_HEADER_INX - UPDATEFLAG as <b>'U'</b>.
         LOGIC_SWITCH - Import Structure - Pass 'X' to LOGIC_SWITCH-COND_HANDL.
      <b>Tables:</b>
         CONDITIONS_IN - ITM_NUMBER,
                         COND_COUNT, -> Condition counter same as KONV-ZAEHK generally it is <b>'01'</b>
                         COND_TYPE,
                         COND_VALUE,
                         CURRENCY.
         CONDITIONS_INX - ITM_NUMBER,
                          COND_COUNT,
                          COND_TYPE,
                          UPDATEFLAG as <b>'U'</b>,
                          CURRENCY.
       Hope i have clarified your query.
    Kind Regards
    Eswar

  • End User Transaction for Mass Change Sales Orders

    Hello,
    Transaction MASS can be used to change sales orders using object type BUS2032, however, end users are not allowed access to MASS.
    In most other cases, the object types can be accessed by individual transactions, for example, MEMASSPO for BUS2012 and XD99 for KNA1.
    But I cannot seem to find a similar transaction for object type BUS2032, does anyone know whether one exists or how to create such a shortcut.
    Thanks,
    Jake.

    Hi
    See SAP Note 483303 - BUS2032: Only sales orders of category VBAK-VBTYP = 'C'
    Regards
    Eduardo

  • Can I change layer order in PDF?

    Acrobat 9 pro: I'm doing a complicated map with layers in PDF format. I found a merge command to merge layers, which is cool. But better option for me is to change layer order, and possibly create new folders within PDF. Is this possible with Acrobat 9 pro?

    You can't, but "sub level layers" don't exist in Acrobat. OCGs exist in a single stack, though their NAMES can be grouped in the sidebar panel to make it appear they're in multiple levels. InDesign can create groups like that, Illustrator cannot, and Acrobat can't create them via the UI - however the names in the sidebar are NOT required to match the layer stack in the file, either in order or structure. You can use JavaScript to build the OCGorder array, including any sub-levels you want, and store it in the file.
    See the Acrobat JavaScript documentation on the setOCGOrder() function for help and a simple example of populating the array. Groups are created by putting an array within an array, just like any other tree of data.

  • How to change the order of entries on the podcast or blog pages?

    Hi,
    I tried to move entries in the entry area on the podcast page to change the existing order but it seems they stay in the way they were created. Is there any opportunity to change the order of entries after they were created?
    Thank you,
    Vlad

    I'm having the same problem. How do I do this? I just
    hit delete entries. So the blog doesn't show up on
    iWeb, but it shows up on my website.
    This is NOT the same problem.
    Clear your browser cache.

  • How to change the order of pages in Pages '09

    What is the most direct (easiest) way to change the order of the pages in an existing ".page" document.
    In QuarkXpress, for example, it was possible to simply drag a page to it's new location in the layout view.
    Thanks

    No, sections and TOC are restricted to Word Processing documents.
    Do note that in WP documents you can move around sections, so if you want to place a page somewhere else, you need to a) make it its own section, and b) put a section break in where you want to insert it.

  • How to get informed when PO / Contract changed to ordered / released status

    Hi,
    I am working on a program which sends SRM PO and Contract data to a non-SAP system, one of the requirements is to send SRM data immediately after PO / Contract's status changed to Ordered / Released ( workflow is used here ).
    I tried to used BBP_DOC_CHANGE_BADI, but noticed throuhg debugger that the last time this BADI get called, I still didn't see Ordered / Released status in the Status table.
    Is any way to know status change for PO / Contract ?
    Thanks a lot,
    Wayne Liu

    Hello Wayne,
    Solution 1:
    You can use the SRM Alert Mangament to know when a contract was released, specifically the following events RELEASED_AGAIN
    RELEASED_NEWLY.
    Check IMG Cross-Application Basic Settings-> Event and Event Schema for Alert Management
    For PO I could not find a similar event, but there is a APPROVAL_PROCESS_DOC_APPROVED event which can be used if the PO was approved after ordering.
    In any case you can create your own events and event handlers using the SRM Alert Management BAdi BBP_ALERTING.
    Solution 2: Only for Contracts
    You can use the existing Distribution mechanism to distribute contracts to Non-SAP systems.
    Distribution of contracts is triggered whenever significant changes are done to the Contract (like Release, Lock, Unlock).
    Implement function module NOR3_CTR_TRANSFER for this purpose.
    Edited by: Sushil Kumar on Mar 22, 2010 9:41 AM

  • Automatic ORDCHG Change Purchase Order after Order response from Vednor

    Hi
    How to trigger Change Purchase Order action after receiving PO Confirmation - Order Response from Vendor.
    The scenario is that Order Confirmation vednors sends contains delivery date or delivery qunatity variance within defined tolerances. In such cases it is acceptable to allow automatic PO change.
    This is an EDI scenario. Idocs ORDRSP and ORDCHG in use.
    Thanks for hints.
    Mariusz

    - For automatic document adjustment, you must make the necessary settings in Customizing (SPRO ->Materials Management->Purchasing->Conditions->Automatic Document Adjustment). The system logs all the relevant purchasing documents and can therefore determine all the documents affected by a change to a condition.                                    
    - This is only possible for purchasing documents for which follow-on documents (goods receipt, invoice receipt) do not exist.           
    - Before you run this report, you must have run report RMEBEIN4 (creation of worklist for automatic document adjustment).

  • Impact of Changing existing system international to Country specific(24)

    Dear Experts,
    Current system has to two company code - A & B with  international payroll.
    Client is adding two more company code say eg. C & D  as roll out process with country specific (24).we are planing to change existing company code(A & B) in to country specfic (24). If change what impact does system have?
    Regards
    Vinodh L K

    If I understand your question correctly, you currently have a web application that uses Classic authentication that you would like to migrate to use Claims (SAML). Are your users still going to use their existing NTLM (Active Directory) accounts to connect
    to SharePoint? If so, you need to follow the steps outlined in the Technet article below:
    http://technet.microsoft.com/en-us/library/gg251984%28v=office.14%29.aspx
    I have migrated web applications from Classic to Claims in the past and it didn't take terribly long (on the order of minutes to hours, not days).
    Danny Jessee
    MCPD - SharePoint Developer 2010
    MCTS - SharePoint 2010, Configuring
    dannyjessee.com/blog

  • Change the order of the preffered networks through ARD

    Is there a command to change the ORDER of the wifi Networks under Network - Wi-fi - Advanced - Wi-fi. I know you can drag them around but I want to do this in an enterprise on many machines where users don't have admin rights. I'd rather not have to touch every machine.
    I've found a few commands to ADD/DELETE connections I just want to rearrange the order of existing connections or to add then prioritize for future use.
    Resources I found
    http://derflounder.wordpress.com/2011/05/17/setting-preferred-wireless-networks- from-the-command-line/
    http://www.cnet.com/news/how-to-adjust-network-settings-in-os-x-via-the-command- line/

    This question is probably not going to get a lot of answers in the Printing Forum. Maybe the "Using Mac OS X Leopard" forum will offer some help.

  • Change Sales order using BAPI

    When trying to change a Sales order using BAPI_SALESORDER_CHANGE, I am getting the following error.
    SD document 15704 is not in the database or has been archived.
    Please let me know what could be the problem

    you have the error message, which is self explanatory.
    SD document 15704 is not in the database or has been archived.
    if you knat that the sales document indeed exists, and the  message is deceiving, then check why are yopu gettign that. maybe you didn;t provide the order# will leading zeros, or you are tryingto change an order immediately after creating, in which case DB commit might not be completed.

  • Change variable order by number

    Working in Teststand 2013 on equipment that is shared by several developers.  It appears that something got changed with the way that variables are ordered in the Variables Pane, but can't identify how to change it back, or who may have changed it.
    I have a list of FileGlobals that are numbered sequentially, (i.e. Test0, Test1, Test2, etc).  Previously, they were displayed in the pane in that same sequential order.  Now, the variables are ordered based on the first digit (i.e. Test0, Test100, Test10, Test11, ... Test18, Test19, Test1, Test20...).  Makes it difficult to go through the list in order when debugging, particularly since there are more than 100 of them.  Any ideas how this could have been changed and how to change it back?  Thanks.
    GSinMN
    Solved!
    Go to Solution.

    Not sure if this is it or not but at the top of your variables pane for each column you can click on the column header.  It will change the ordering.  There are 3 modes.  If you see an up arrow appear that means the column is sorted A-Z.  If you see a down arrow appear that means the column is sorted Z-A.  If you don't see an arrow it means the column is sorted based on the index in which the variable exists within the file.  You can click on the column header to change to each mode.
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

Maybe you are looking for

  • Itunes 9.2 consistently pauses the music when playing from Ipod Touch

    I couldn't find this posted anywhere else so ever since updating itunes and my ipod touch I've been having a problem when playing music on my computer from ipod. About 5-10 times during the song itunes will pause the song and my ipod will say "Syncin

  • More keying help required-and removing someone's neck

    I'm keying out a presenter who's head is pink, which was filmed against green screen. The problem we're having is that there is 'shimmering' around his head when it's cut out, why is this and how do I get rid of it? Also, his neck is in shot which is

  • Oracle 9i (SE) Solaris 9 (Alert.log file)

    Hi Guys, How do I clean up my alert.log file. Do I have to delete it completely or only delete the content of the file. Thank you.

  • Cost Center Restriction - Finance posting/Display

    Hi Experts, Is it possible to restrict the FI document posting/display using cost center? The scenario is users from one cost center should not post/display documents from other cost center. Eagerly waitimng for your inputs. Regards Prasanth

  • Songs in acc need to be mp3/

    Hes the deal.. My brother has an ipod and i'm getting a zen touch for my birthday... also i have a little over 500 songs on itunes... Hes where the problem comes up. since the zen touch doesnt support the ACC format..so I need to find some way of cha