Price Adjustment is not getting updated using OE_ORDER_PUB.PROCESS_ORDER

Hi Gurus,
I am trying to create a price adjsument at line level for SERVICE lines using OE_ORDER_PUB.PROCESS_ORDER, but it does not update/create. Please let me know the key pointers to accomplish this.
OE_ORDER_PUB.PROCESS_ORDER(p_api_version_number => l_api_version_number
,p_header_rec => l_header_rec
,p_line_tbl => l_line_tbl
,p_action_request_tbl => l_action_request_tbl
,p_line_adj_tbl => l_line_adj_tbl --I am passing price adjustment record type here
-- OUT variables
,x_header_rec => l_header_rec_out
,x_header_val_rec => l_header_val_rec_out
,x_header_adj_tbl => l_header_adj_tbl_out
,x_header_adj_val_tbl => l_header_adj_val_tbl_out
,x_header_price_att_tbl => l_header_price_att_tbl_out
,x_header_adj_att_tbl => l_header_adj_att_tbl_out
,x_header_adj_assoc_tbl => l_header_adj_assoc_tbl_out
,x_header_scredit_tbl => l_header_scredit_tbl_out
,x_header_scredit_val_tbl => l_header_scredit_val_tbl_out
,x_line_tbl => l_line_tbl_out
,x_line_val_tbl => l_line_val_tbl_out
,x_line_adj_tbl => l_line_adj_tbl_out
,x_line_adj_val_tbl => l_line_adj_val_tbl_out
,x_line_price_att_tbl => l_line_price_att_tbl_out
,x_line_adj_att_tbl => l_line_adj_att_tbl_out
,x_line_adj_assoc_tbl => l_line_adj_assoc_tbl_out
,x_line_scredit_tbl => l_line_scredit_tbl_out
,x_line_scredit_val_tbl => l_line_scredit_val_tbl_out
,x_lot_serial_tbl => l_lot_serial_tbl_out
,x_lot_serial_val_tbl => l_lot_serial_val_tbl_out
,x_action_request_tbl => l_action_request_tbl_out
,x_return_status => l_return_status
,x_msg_count => l_msg_count
,x_msg_data => l_msg_data);
COMMIT;
Thanks in advance!
Regards,
Sumir

Hi,
The function you are using is not suitable, it is not intended to be used stand-alone without further code to complete the order close process.
The best option would be to use BAPI_ALM_ORDER_MAINTAIN to perform technical completion (Method TECHNICALCOMPLETE). Transaction CO99 could then be used to mass close these orders.
-Paul

Similar Messages

  • Delivery Header Text not getting updated using Inbound DELVRY03 IDOC

    Hello,
    I am using inbound iDOC delivery DELVRY03. I am attempting to populate a text field with segment E1TXTH8, but I can not get it to work properly. The iDOC gets posted successfully in status 53, but text does not get updated.
    Does anyone know what the values for field FUNCTION are supposed to be?
    Any other suggestions?

    Following are the values
    E1TXTH8
    Function             001
    Text Object          VBBK
    Text Name            0080000210
    Text ID              Z112
    Language             EN
    Text format
    LANGUA_ISO           EN
    Item
    E1TXTP8                     * 12343468912334445424
    E1TXTP8                     * 12343468912334445423
    E1TXTP8                     * 12343468912334445422

  • File to JDBC -  JDBC database not getting updated using UPDATE_INSERT

    Hi ,
        I have a done a file to JDBC Scenario.File is successfully picked up by sender file channel and recieved by reciever JDBC channel.There is no error in receiver communication channel.I used UPDATE_INSERT action in mapping which has to update the database with all records it recieve.But,i found there is no update in Database table.I donot have access to database,so i made a sender jdbc channel querying all data in it to see what new value is populated.
    I made a dummy sender jdbc channel to check what are the values updates on the run of above interface.But , i found no update occur.Please help me out of this problem.
    Thanks
    Deepak Jaiswal

    The reason I ask , because you will see whether the message got successfully delivered to the target system.
    I want  to see information like below
    2010-04-14 14:31:35 Success Message successfully received by messaging system. Profile: XI URL: http://server:port/MessagingSystem/receive/AFW/XI Credential (User): PIISUSER
    2010-04-14 14:31:35 Success Using connection JDBC_http://sap.com/xi/XI/System. Trying to put the message into the receive queue.
    2010-04-14 14:31:35 Success Message successfully put into the queue.
    2010-04-14 14:31:35 Success The message was successfully retrieved from the receive queue.
    2010-04-14 14:31:35 Success The message status set to DLNG.
    2010-04-14 14:31:35 Success Delivering to channel: Communuication channel
    2010-04-14 14:31:35 Success MP: Entering module processor
    2010-04-14 14:31:35 Success MP: Processing local module localejbs/CallSapAdapter
    2010-04-14 14:31:35 Success Receiver JDBC adapter: processing started; QoS required: ExactlyOnce
    2010-04-14 14:31:35 Success JDBC adapter receiver channel CC: processing started; party  , service DB_BS
    2010-04-14 14:31:35 Success Database request processed successfully
    2010-04-14 14:31:35 Success MP: Leaving module processor
    2010-04-14 14:31:35 Success The message was successfully delivered to the application using connection JDBC_http://sap.com/xi/XI/System.
    2010-04-14 14:31:35 Success The message status set to DLVD.
    raj.

  • Open PO did not get updated with new price.

    A mass price change was updated in SAP for one of the supplier . All open orders did not get updated with this new prices.
    Can anyone tell me the reason why ?
    -Amol

    hi
    i think u have to do it manually
    logically if u see u can use diffrent prices in diff po
    if ur price is inr 100 in 1st po and u done gr ur rice will get updated in mm suppose it is 105
    next time u create the po of 110 rs  and done gr
    suppose ur price updated is 108 rs inmm
    so it is not happening that 108 is get updated in ur 1st po
    right so i think u have to update pos manually
    if i am wrong plz let me know
    regards
    kunal

  • Moving Average Price does not get updated for Project Stock

    Hello Experts
    We have an Engineer-to-Order implementation for our client. Accordingly procurement is done per project. Each Project issues its PRs which are then converted to POs and recieved into Project Stock.
    While assigning the material to the Network activity in Project (using material component) the system uses the price found in the material master (MAP or STD) as a planned cost appended to the project.
    Problem:
    while procuring the material, when we receive it into Project Stock (Mvt 101 Q + ) the Moving Average Price in the material master does not get updated. this way all newly created material master will never have a moving average price, thus whenever we try to assign them to the project we receive an error message (Cost for Material Component ###Mat.Num### cannot be determined.
    Question:
    How can I get the system to update moving average price (for all types of stock) based on procurement for project stock.???
    Your help is kindly appreciated.

    I'm sorry for the confusion
    Case:
    The T-code is CJ20N Project Builder in PS module
    we are assigning material components to network activities under a certain WBS element in the project.
    there is a function in the Project Builder to calculate the cost of a network. it uses the costing variant assigned to the network which is PS02 (We get the error here)
    The costing variant has a valuation variant which lists a series of strategies  to get the material price. Planned 1 if not then STD if not then MAP. (you can choose between many options via a drop down menu) you can choose 5 consequent options.
    The MAP that the valuation variant is coded to get is the Plant Stock MAP -- Or the Project Stock MAP but only Per WBS element.
    The MAP that the Actual postings update is the Project Stock MAP only Per WBS element.
    This means that if you use a material component to purchase material 123 Acc.As. Q for WBS X for 10 $ then you try to assign a new material component with the same material 123 to WBS Y, the system will not get a MAP. because it's stored in QBEW per WBS element.
    This way the system will never get the MAP right.
    However, we don't always use project stock to procure for projects, for some requirements we can assign and use plant stock as well for Projects. that way we need the MAP from plant stock.
    In the Valuation Variant you can use a User Exit Strategy. The user exit's name is COPCP005
    My Suggestion is:
    Use the User Exit COPCP005 to calculate the { Total value / the total quantity (MAP) from QBEW + Total value / total quantity (MAP) from MBEW } / 2
    which is the MAP for both plant and project stock together, since that we are going to use both.
    Q: Is this correct !?

  • Data is not getting updated in table using RFC

    Hi Experts,
    In my scenario, I am calling one RFC using RFC receiver channel. After running scenario, channel is showing status that RFC executed successfully. But when I am checking tables in R/3 system, data is not getting updated.
    Moreover , when we tried to execute the RFC manually in R/3 system, that time data uploaded into table successfully.
    Could anybody tell me what would the reason that data not uploading into table when we send it through XI.
    Regards,
    Sari

    HI Sari,
    as you have scenario with RFC receiver.. and as you mentioned that it not updating tables when run through PI but when you execute RFC manually tables got updates.. then following are the options you can check..
    -- if you check RFC communication channel and if everything ok on then.. this means that your RFC is getting triggered successfully..but as you said tables are not updated.. for this you can go to SXMB_MONI and check the log take payload after mapping.. and compare it with the input when you try to execute it manually.. I think the input when you try manually and input to RFC when you try through PI is different and that is causing the Problem.. you will be able to see the difference in input then check.. I think the problem is data and not RFC communication channel..so by using this you will come to know difference
    -- else if possible configure your ID in PI in RFC Receiver and then check and put breakpoint on ABAP side.. so that when PI will hit RFC you will get it in debug mode and able to see what is going wrong..
    Thanks,
    Bhupesh

  • Future price is not getting updated as current price when period changed

    Hi all,
    We follow the following procedure to update standard price in material master. Our organization is a manufacturer of pharma products. ( System is not live yet)
    We have BoM's for all FG's and all FG's & SFG's are having Price control indicator as "S". Rest other materials are valuated for Moving Average price.
    > Run T-code CK11n for the FG.
    > Check whether costs of utilities and final product is as per the cost sheets prepared manually (10-20% difference acceptable)
    > Do not save it and goto CK40n tcode. Mark and release price of FG's & SFG's for the current date (eg: 16.01.2008). Now as 10th period of year 2008 was not open at that time and only 9 th period of year 2007 was open, the prices were updated as "FUTURE PRICE" in costing-2 view of material master.
    > Now that when i am opening 10th period (both financial period and inventory period), my future price is not getting updated as my CURRENT PRICE in material master as my standard price.
    Pls. reply to this urgently.

    Hi,
    I am sure about it that when CK40n was done for a future date when some n-1 period was open, the costs released would get updated as future price.
    When the period for which future price was updated is opened as current period, the future price automatically gets updated as current price and is also set as standard price in accounting 1 view.
    But i m unable to identify why is not working.

  • Cred.lim.used  field in FD32 not getting updated

    hi All,
    I have a scenario where my Cred.lim.used field which is a %age value is not getting updated in fd32
    when I go to fd33 for a customer my Credit limit is 1,000,000.00
    and Credit exposure is 1,138.28- but the %age is 0.00 %.
    any suggestions
    thanks,

    Hi
    Think logically how it will show the   credit limit used in percentage just calculate
    credit limit used*100/ total credit limit
    1,138.28*100
    1,000,000.00
    will come to 0.11 % so system wont show it will consider only if it is more than 1%
    regards

  • Activity price not getting updated at Production order

    Hi All,
    I have made activity dependent planning at cost centre and calculated the activity rate. The activity rate is showing correctly for the cost centre in KP26, but while confirming the production order (CO11N) the the activity price is not getting updated in production order. But material price is getting properly updated at production order.
    Plz help me in identifying the possible areas of mistakes.
    Regards,
    BKD

    Hi,
    Please check the Period for which you have created the ht activity price is same as the period in the conformation. In the workcenter in which you are confirming please check whether the activities are assigned to the work center.
    Bye,
    Ramesh

  • Price for I/C (Cost) field in VF03 not getting updated for an Invoice

    hi,
    the amount field (KBETR) for condition type ZR04 in VR03, for a specific invoice generated, is coming out to be 0.00 USD.
    as a result, the condition value is also coming out to be 0.00 and hence, not getting updated.
    can anyone help me out with this?

    Hi Pratima,
    unfortunately i can only write that I am facing the same challenge at the moment. I will update the discussion as soon as I have a solution.
    Best regards
    Bjoern

  • Tax is not getting updated in Sales Order Pricing Conditions

    Hi ,
    Tax is not getting updated in Condition of sales order when creating Sales order but when we click on update button it is calculating correctly.
    Following are the changes for in the standard Pricing:
    1) Created ZPSC condition type to calculate the sur-charge from Z-table
    2) ZPR0 Condition type to calculate the sum of PR00 and ZPSC
    So tax has to be calculated based on the ZPSC value, but it is calculating the tax based on the PR00 base price.
    We implemented the logic for updating values of  Amount and condition values for ZPSC and ZPR0 by creating custom Routine 904 in Calculation types and assigned the routine in Pricing Procedure.The correct values are coming till NET VALUE 3 but tax is calculating based on the PR00 net price.
    I debugged the code for Tax Routine the value for Net value (NETWR) is the base value price but displaying correctly in Net value screen of Conditions tab.
    Please suggest how to update the Tax values correctly without manual update.
    Thanks ,
    Rajesh Sanapala.

    Hi Lakshmi,
    I am using a TAXINN procedure.....to correct my self can u brief me abt the CIN configuration settings required from SD point of view......how many tax codes have to be maintained for capturing the BED,EDCess,SHED cess,VAT,CST and what are the condition types required for capturing the same.....
    I am using JEXQ-A/R BED ......for capturing the BED....and so on ......I feel that i have missed out on some settings ,thats why few conditions are getting captured and some are not.....It would be great if you ca nhelp me on this.
    Thanks
    Ivy

  • Service Number is not getting updated in the Purchase Requisition

    Hi All,
    When i create a Service PR using bapi BAPI_REQUISITION_CREATE FM , service details ( Service number, Qty, Gross price, ) are not getting updated in Service tab of Purchase requisition transaction. I am passing all the services related parameters in the FM.
    Please clarify this.
    Thanks for the help.
    Vinoth

    Hi Vinoth,
    Are you getting any error in the return table?Can you show your coding?
    Regards,
    ravi

  • Service Number is not getting updated in the PR called by BAPI

    Hi ,
    When i create a Service PR using bapi BAPI_REQUISITION_CREATE FM , service details ( Service number, Qty, Gross price, ) are not getting updated in Service tab of Purchase requisition transaction.
    I am passing all the services related parameters in the FM.
    Thanks for the help.
    F.F

    Hi Amar,
    need your help. i am facing the same issue.
    how did you resolved it . please let us know.
    Thanks,
    Santosh

  • Custom fields not getting updated in Mass Maintenance-MM17

    Hi,
    I have created a custom field in MARC table and the data is getting updated to the MARC table through MM01/MM02 but it is not getting updated by MM17.  I have checked the notes 44410, 576160, 414020 and 116311.  I have done the following changes as per the sap notes.
    1. Created a custom segment ZE1MARCM by copying the standard segment E1MARCM and added the custom field in that  
        segment.
    2. I have extended the IDOC 'MATMAS03' and added the custom segment ZE1MARCM to E1MARAM.
    3. Created a new entry in we82 and provided the extension type 'ZMATMAS03' and release '701'.
    4. Adjusted the partner profile in we20 for matmas with port and providing the extension idoc type.
    5. Added the custom field in the table MASSFLDLST.
    6. Implemented the code in BADI 'MG_MASS_NEWSEG' and exits 'EXIT_SAPLMV01_002' , 'EXIT_SAPLMV02_002' as per the 
        sap notes.
    The custom field is not getting updated through mass maintenance.  Please let me know if i have missed anything?
    Thanks,
    Geeta

    I had this same question several years ago. Please check my answer at Initialize MARC Custom Fields Using MM17 Does Not Work

  • Values are not getting updated(urgent)

    Hi,
    Iam trying to change the net-price of outline agreement using BAPI_AGREEMENT_MAINTAIN.The code is as follows.Still the price is not getting updated.The function module which im using is the right one or i have to use another one.
    data: PO_NUMBER like BAPIMEPOHEADER-PO_NUMBER.
    data: PO_HEADER like BAPIMEPOHEADER.
    data: PO_ITEM like BAPIMEPOITEM occurs 0 with header line.
    data: PO_ITEMX like BAPIMEPOITEMX occurs 0 with header line.
    data: RETURN like BAPIRET2 occurs 0 with header line.
    *data: PO_NUMBER like BAPIMEPOHEADER-PO_NUMBER.
    data: IM_AGREEMENT_HEADER like BAPIOAHEAD occurs 0 with header line.
    data: IM_AGREEMENT_HEADER_X like BAPIOAHEAX occurs 0 with header line.
    data: IM_AGREEMENT_ITEMS like BAPIOAITEM occurs 0 with header line.
    data: IM_AGREEMENT_ITEMS_X like BAPIOAITEX occurs 0 with header line.
    data : i_ekko like ekko occurs 0 with header line.
    SELECT * FROM ekko into table i_ekko WHERE ebeln = '4600000633'.
    *endselect.
    IM_AGREEMENT_HEADER-AGMT_NO = i_ekko-ebeln.
    IM_AGREEMENT_HEADER-LANGU = i_ekko-SPRAS. "Language
    IM_AGREEMENT_HEADER-VAT_CNTRY = i_ekko-STCEG_L. "country id code
    IM_AGREEMENT_HEADER-CURRENCY = i_ekko-WAERS. "currency
    IM_AGREEMENT_HEADER-DOC_CAT = i_ekko-bstyp. "Pur doc categary
    IM_AGREEMENT_HEADER-DOC_TYPE = i_ekko-bsart. "Pur doc type
    IM_AGREEMENT_HEADER-TELEPHONE = i_ekko-TELF1.
    Append IM_AGREEMENT_HEADER.
    IM_AGREEMENT_HEADER_X-AGMT_NO = 'X'.
    Append IM_AGREEMENT_HEADER_X.
    IM_AGREEMENT_ITEMS-AGRMT_ITEM = '10001'.
    IM_AGREEMENT_ITEMS-NET_PRICE = '20'.
    Append IM_AGREEMENT_ITEMS.
    IM_AGREEMENT_ITEMS_X-AGRMT_ITEM = '10001'.
    IM_AGREEMENT_ITEMS_X-NET_PRICE = 'X'.
    append IM_AGREEMENT_ITEMS_X.
    CALL FUNCTION 'BAPI_AGREEMENT_MAINTAIN'
    EXPORTING
    IM_AGREEMENT_HEADER = IM_AGREEMENT_HEADER
    TABLES
    EXT_RETURN = RETURN
    IMT_AGREEMENT_ITEMS = IM_AGREEMENT_ITEMS
    IMT_AGREEMENT_ITEMS_X = IM_AGREEMENT_ITEMS_X.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    wait = 'X'.
    LOOP AT RETURN.
    WRITE: RETURN-MESSAGE.
    ENDLOOP.

    Hi,
    do like this:
    CALL FUNCTION 'BAPI_AGREEMENT_MAINTAIN'
    EXPORTING
    IM_AGREEMENT_HEADER = IM_AGREEMENT_HEADER
    TABLES
    EXT_RETURN = RETURN
    IMT_AGREEMENT_ITEMS = IM_AGREEMENT_ITEMS
    IMT_AGREEMENT_ITEMS_X = IM_AGREEMENT_ITEMS_X.
    if sy-subrc = 0.
            read table RETURN
                  into lwa_RETURN
              with key type = 'E'.                                " if there is an error message
            if sy-subrc = 0.
       <b>       do error processing or whatever required.</b>
            else.
              call function 'BAPI_TRANSACTION_COMMIT'
                exporting
                  wait = 'X'.
              if sy-subrc = 0.
              endif.
    endif.
    Regards,
    Sooness

Maybe you are looking for

  • Report for stock in transit datewise

    I need stock in transit datewise. Is there any report possible for that ? Which table and fields should I refer. please revert. Regs, Appie

  • How to get GUID all of user in OU

    I have use exchang svr 2013 . How to get GUID of user all in OU ? currently i use scriptr exchange power shell $username = "username" $guid = (Get-Mailbox $username).ExchangeGUID $upn = (Get-User $username).UserPrincipalName $upnsuffix = $upn.Split("

  • Unbootable Solaris 10 x86 installed on ZFS root file system

    Hi all, I have unbootable Solaris 10 x86 installed on ZFS root file system. on an IDE HDD The bios keep showing the msg DISK BOOT FAILURE , PLEASE INSERT SYSTEM BOOT DISK please note : 1- the HDD is connected properly and recognized by the system 2-

  • Unwanted Contact Requests

    Unwanted Contact Request IS THE REASON I AN QUITTTING SKYPE AND WILL NO LONGER PAY FOR THE SERVICE

  • I accidentally clicked on the 'x' next to the install button in App Store

    That removed the item in my 'purchased' list.. Does anyone know how I can get my purchased item back in my list? Thanks in advance for any help you can offer!