Updating Scheduling data for Purchase Order

Hi,
I need a function module which can update the scheduling data for purchase order in EKET table. Normally we create Purchase Order as a reference from purchase requisition through BAPI_PO_CREATE1. That time it takes care of all the scenarios. But as per the requirement I want to create a PO which is created from more than one Purchase Requistions so I can't use the said BAPI. But still I am using this BAPI and after creation is completed I am updating the Requistions. The same scenario is taken care in ME59N, but I can't copy that code because of some requirements. So could any one please give me the idea to replicate the same functionality with any function module or other ways.
Thanks
Somnath paul

try to pass all u sheduling related fields to POSCHEDULE and make sure u have enabled POSCHEDULEX along with sheduling related fields .....also (if no changes  are there  leave it with space )...
this will definetly update not only eket table ....it will update every table regarding to purchase order,ekpo,ekko,eket ...etc
Example of population of BAPI interface in the Function
Parameter: POHEADER
COMP_CODE            =                    1000
DOC_TYPE             =                    NB
ITEM_INTVL           =                    00001
VENDOR               =                    0000001000
PMNTTRMS             =                     0001
PURCH_ORG            =                     1000
PUR_GROUP            =                     001
CURRENCY             =                     EUR
Parameter: POHEADERX
COMP_CODE            =                     X
DOC_TYPE             =                     X
ITEM_INTVL           =                     X
VENDOR               =                     X
PMNTTRMS             =                     X
PURCH_ORG            =                     X
PUR_GROUP            =                     X
Parameter: POITEM
PO_ITEM              =                     00001
MATERIAL             =                    100-100
PLANT                =                    1000
STGE_LOC             =                    0001
QUANTITY             =                    15.000
TAX_CODE             =                    V0
ITEM_CAT             =                     0
ACCTASSCAT           =                    K
  Parameter: POITEMX
  PO_ITEM              =                    00001
  MATERIAL             =                    X
  PLANT                =                    X
  STGE_LOC             =                    X
  QUANTITY             =                    X
  TAX_CODE             =                    X
  ITEM_CAT             =                    X
  ACCTASSCAT           =                    X
  Parameter: POSCHEDULE
  PO_ITEM              =                    00001
  SCHED_LINE           =                    0001
  DELIVERY_DATE        =                    02.12.2002
  QUANTITY             =                    6.000
  PO_ITEM              =                    00001
  SCHED_LINE           =                    0002
  DELIVERY_DATE        =                    03.12.2002
  QUANTITY             =                    5.000
  PO_ITEM              =                    00001
  SCHED_LINE           =                    0003
  DELIVERY_DATE        =                    04.12.2002
  QUANTITY             =                    4.000
  Parameter: POSCHEDULEX
  PO_ITEM              =                    00001
  SCHED_LINE           =                    0001
  PO_ITEMX             =                    X
  SCHED_LINEX          =                    X
  DELIVERY_DATE        =                    X
  QUANTITY             =                    X
  PO_ITEM              =                    00001
  SCHED_LINE           =                    0002
Parameter: POACCOUNT
PO_ITEM              =                    00001
SERIAL_NO            =                    01
QUANTITY             =                    15.000
GL_ACCOUNT           =                    0000400000
COSTCENTER           =                    0000001000
CO_AREA              =                    1000
Parameter: POACCOUNTX
PO_ITEM              =                    00001
SERIAL_NO            =                    01
QUANTITY             =                    X
GL_ACCOUNT           =                    X
COSTCENTER           =                    X
CO_AREA              =                    X
Parameter: POCOND
ITM_NUMBER           =                    000001
COND_ST_NO           =                    001
COND_TYPE            =                    PB00
COND_VALUE           =                    79.900000000
CURRENCY             =                    EUR
CURRENCY_ISO         =                    EUR
COND_UNIT            =                    KG
COND_P_UNT           =                    1
CHANGE_ID            =                    U
Parameter: POCONDX
ITM_NUMBER           =                    000001
COND_ST_NO           =                    000
ITM_NUMBERX          =                    X
COND_TYPE            =                    X
COND_VALUE           =                    X
CURRENCY             =                    X
CHANGE_ID            =                    X
Parameter: POPARTNER
PARTNERDESC          =                    OA
LANGU                =                    EN
BUSPARTNO            =                    0000001100
PARTNERDESC          =                    GS
LANGU                =                    EN
BUSPARTNO            =                    0000001200
PARTNERDESC          =                    PI
LANGU                =                    EN
BUSPARTNO            =                    0000001000
reward points if helpful....

Similar Messages

  • Inbound idoc for updating delivery date of purchase order

    Hi All,
    Our vendor sends a delivery file consisting of delivery date and quantity(could be partial) for line items of a purchase order.
    I need to update the Purchase order line item with the delivery date and quantity sent from the Vendor. It should add a new confirmation line with custom confirmation category in the confirmation tab of the line item in the Purchase order.
    Each time we get a delivery file we need to add a new confirmation line in the confirmation tab of the purchase order line item.
    How can I get this working using inbound idoc processing? Which Idoc type should I use to solve my issue. Will ORDERSP work for my scenario?
    Thank you,
    Sonali.

    >
    sonali ashi wrote:
    > We have all EDI set up done for ORDERSP idoc in our system. Problem when I use this idoc type by default system is always adding confirmation catgeory 'AB' but we want our custom  category to be added instead of 'AB'.
    > Edited by: sonali ashi on Dec 23, 2010 9:47 PM
    Confirmation category used for order acknowledgement is define in configuation. You can change that from AB to your custom condition and EDI should pickup that.
    SPRO->Material Management->Purchasing->Confirmation->Define Internal Confirmation Category
    >
    sonali ashi wrote:
    > I have also noticed that 'AB' confirmation accepts only full quantity order acknowledgement through Idoc processing.
    > Manually I can add a "AB" confirmation for partial quantity but in the idoc processing it fails.
    > Edited by: sonali ashi on Dec 23, 2010 9:47 PM
    Check tolerance limit defined for confirmation category in 'Conformation Control' Node in SPRO at same level as above.
    Regards,
    Pawan.

  • Updating delivery date on Purchase order line items  Urgent

    Hi,
    I have same problem with update the Delivery date in ME22N transaction. I have used BAPI_PO_CHANGE function module. but it does not working properly. Can anybody please send the sample code.
    my maild id is [email protected]
    it_POSCHDULE-PO_ITEM = '10'. "PO item number
    it_POSCHDULE-DELIVERY_DATE = '08/28/2007'. "changed delivery date
    it_POSCHDULE-SCHED_LINE = '1'.
    append it_POSCHDULE.
    IT_POSCHDULEX-PO_ITEMX = 'X'. "PO item number
    IT_POSCHDULEX-DELIVERY_DATE = 'X'. "changed delivery date
    IT_POSCHDULEX-SCHED_LINEX = 'X'. "schedule line
    append IT_POSCHDULEX.
    CALL FUNCTION 'BAPI_PO_CHANGE'
    EXPORTING
    PURCHASEORDER = '4500232997'
    TABLES
    RETURN = return
    POSCHEDULE = IT_POSCHDULE
    POSCHEDULEX = IT_POSCHDULEX
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    is any more parameters i have to pass for update the delivery date
    Thanks
    Gopal.

    This is my code.
    it_POSCHDULE-PO_ITEM = '00010'. "PO item number
    it_POSCHDULE-DELIVERY_DATE = '08.28.2007'. "changed delivery date
    it_POSCHDULE-SCHED_LINE = '0001'.
    append it_POSCHDULE.
    it_poschdulex-po_item = '00010'.
    IT_POSCHDULEX-SCHED_LINE = '0001'.
    IT_POSCHDULEX-PO_ITEMX = 'X'. "PO item number
    IT_POSCHDULEX-DELIVERY_DATE = 'X'. "changed delivery date
    IT_POSCHDULEX-SCHED_LINEX = 'X'. "schedule line
    append IT_POSCHDULEX.
    CALL FUNCTION 'BAPI_PO_CHANGE'
    EXPORTING
    PURCHASEORDER = '4500002299'
    TABLES
    RETURN = return
    POSCHEDULE = IT_POSCHDULE
    POSCHEDULEX = IT_POSCHDULEX
    commit work.
    and messages in RETURN are
    TYPE     ID     NUMBER     MESSAGE
    I          0     Changing of PO using Enjoy BAPI unsuccessful 
    E     MEPO     0     Purchase order still contains faulty items
    I     VD     345     Date 08.28.2007 period D is not valid
    E     6     70     Enter a quantity
    E     MEPO     43     Please enter an order quantity

  • Delivery Date for Purchase Order

    Experts,
    which table contains the delivery date for a Purchase Order (NB). ?
    Thanks in advance
    Jörg

    Dear
    Try SAP Table : EKET-EINDT
    Check also EKPO , EORD,EKKO
    Regards
    JH
    Edited by: Jiaul Haque on Aug 28, 2010 10:09 AM

  • Updating delivery date on Purchase order line items

    Hi,
    I am using BAPI_PO_CREATE1 to create purchase order. It is creating fine except I want the delivery date on line item to be overwritten instead of system determining from MRP view of material on each line item.
    I am passing delivery date to DELIVERY_DATE parameter of POSCHEDULE  table of the BAPI, but instead of taking the value that I passed it is calculating from material master.
    Is there any other parameter for BAPI that I need to set ?
    Please suggest me a solution.
    Thanks,
    Sonali.

    Thank You!
    My problem is solved regarding DELIVERY_DATE but I am getting new problem .
    I am getting error message
    "Control indicators for controlling area UPS do not exist"
    when I use BAPI BAPI_PO_CREATE1 . 'UPS' is the new controlling area that in which I am creating the Purchase order.
    Please suggest me some solution.
    Thanks,
    Sonali.

  • Issue with update_task API for updating Scheduled Dates for Task..

    Hi All,
    We have a requirement to update the project and task dates to a specified period from the current dates. I dont want to update all the tasks, and hence using the update_task API. The scheduled_finish_Date is the column from "pa_proj_elem_ver_schedule" which we want to update. As, this is the date which is shown on the Workplan tab for the tasks for (Scheduled Start and Scheduled Finish Date). I want to extend this scheduled_finish_Date to some days , say for eg. 60 days.
    To achieve, that update_task api is being used and the parameter for the scheduled_date is : p_scheduled_finish_date, this is passed as call to pa_project_pub.update_task API.
    We are also updating the completion data, which is happening fine and is updating the pa_tasks : completion_date column.
    Problem is with scheduled date, Please let me know how to go about this issue.
    Here is the sample code for calling the API :
    pa_project_pub.update_task
    (p_api_version_number => l_api_version_number_i,
    p_commit => l_commit,
    p_init_msg_list => l_init_msg_list,
    p_msg_count => l_msg_count,
    p_msg_data => l_msg_data,
    p_return_status => lt_return_status,
    p_pm_product_code => l_pm_product_code,
    --p_structure_updates_flag      => g_no,
    p_pm_project_reference => l_proj_reference,
    p_pa_project_id => p_project_id_i,
    p_pm_task_reference => p_pm_task_reference_i,
    p_pa_task_id => p_task_id_i,
    p_task_name => p_task_name_i,
    p_task_number => p_task_number_i,
    p_pa_parent_task_id => p_parent_task_id_i,
    p_task_completion_date => p_tsk_actual_finish_date_i,
    --Transaction Date (shown on the screen)
    p_scheduled_finish_date => p_tsk_sched_end_date_i,
    -- Scheduled Date (shown on the screen)
    p_out_pa_task_id => l_pt_task_id,
    p_out_pm_task_reference => l_pt_task_ref
    I am really not sure if I am missing anything here, please suggest as to how to update the Schedule Start and Finish Dates using the API.
    Waiting in anticipation!
    Thank you
    Anand.

    Hello,
    Make sure the wf is active in QA (re-activate if possible), check the transport for errors, check authorizations for WF-BATCH perhaps delete and recreate via SWU3?), refresh the buffers (SWU_OBUF).
    Please let me know if any of this helps.
    regards
    Rick Bakker
    Hanabi Technology

  • BAPI for updating tax code for purchase order..

    Hi friends,
      I have one requirement to change tax code for multiple Purchase order but the
    thing is they should not go for release.So what should I prefer BDC or BAPI.
      I am thinking to implement it through BAPI, but I don't know what procedure to follow.
    If somebody can provide me a small guiding steps or code then it will be very helpful for me..
    Thnaks in advance..
    Useful answers will be rewarded with points....
    Regards,
    Rajesh Akarte

    Hi Friend,
    BAPI_ACC_PURCHASE_ORDER_CHECK  Accounting: Check Purchase Order                                         
    BAPI_ACC_PURCHASE_ORDER_POST   Accounting: Post Purchase Order  
    MEWP                           BAPIs Purchase order                                                     
    BAPI_PO_CREATE                 Create Purchase Order                                                    
    BAPI_PO_GETDETAIL              Display Purchase Order Details                                           
    BAPI_PO_GETITEMS               List Purchase Order Items                                                
    BAPI_PO_GETITEMSREL            List Purchase Orders for Release (Approval): New as of 4.0A              
    BAPI_PO_GETRELINFO             Display Detailed Release (Approval) Information on Purchase Order        
    BAPI_PO_GET_LIST               List Purchase Orders - Only up to 4.0A                                   
    BAPI_PROCOPERATION_GETCATALOGS Determine Valid Catalogs as Value Help                                   
    BAPI_PROCOPERATION_GETINFO     Analysis of Objects to be Generated in Purchasing                        
    <b>AND</b>
    Use condition type NAVS with access sequence 0003 to default the taxcode in the purchase order item using conditions. Materials Management -> Purchasing -> Purchasing order processing ->define screen layout at document level. Search for the transaction ME21.Double click on ME21. Then search for TaxCode
    Use condition type NAVS with access sequence 0003 to default the taxcode in the purchase order item using conditions.
    A2: Go to IMG.
    Materials Management -> Purchasing -> Purchasing order processing ->define screen layout at document level.
    Search for the transaction ME21.Double click on ME21. Then search for TaxCode. It is advisable to configure also the info record. The tax code should be a required entry, and whatever you specify here will be the default value in the Purchase order.
    Materials Management -> Purchasing -> Purchasing info record -> define screen layout.
    When you get here you search for the transaction ME12 ,double click here; search for Input VAT indicator.
    Regards ,
    Kumar.

  • EXIT/BADI REQUIRED FOR DELIVERY SCHEDULE INSERT FOR PURCHASE ORDER

    We are creating delivery schedule for Purchse Requisition created through MRP in Z-Table , Now we requires this delivery schedule dates to be copied directly in PO while creating a PO.
    We have Tried Exits for the same MM06E004 and MM06E005 but after setting a break points system is not stopping at the required screen (delivery schedule date screen).
    Please provide BADI or exits available for the same.
    Thankx

    Dear Mr.Shan ,
    Thanks for your prompt and valuable reply , I had tried the exits mentioned by you previously and was not upto the expectations ,
    Problem solved using stac technique.
    Thanks
    Ankush

  • Userexit to defualt values for Purchase Order

    Hi,
    My requirement is to defualt Latest GR Date for Purchase Order Items. Can someone tell me which user exit I can use to defualt the value.
    Thanks,
    Viswas

    Transaction Code - VA01                     Create Sales Order
    Exit Name           Description
    SDTRM001            Reschedule schedule lines without a new ATP check
    V45A0001            Determine alternative materials for product selection
    V45A0002            Predefine sold-to party in sales document
    V45A0003            Collector for customer function modulpool MV45A
    V45A0004            Copy packing proposal
    V45E0001            Update the purchase order from the sales order
    V45E0002            Data transfer in procurement elements (PRreq., assembly)
    V45L0001            SD component supplier processing (customer enhancements)
    V45P0001            SD customer function for cross-company code sales
    V45S0001            Update sales document from configuration
    V45S0003            MRP-relevance for incomplete configuration
    V45S0004            Effectivity type in sales order
    V45W0001            SD Service Management: Forward Contract Data to Item
    V46H0001            SD Customer functions for resource-related billing
    V60F0001            SD Billing plan (customer enhancement) diff. to billing plan
    No of Exits:         15
    Rewards if useful.................
    Minal

  • Update scheduling data in material master

    Hi,
    How to update scheduling data from Process order to master recipe in mass. As I can schedule recipe in C202 and update the sceduled data in material master by CA96 & CA97 transactions. But i wants to schedule master recipe in mass. Is there any way to mass update it ?
    Regards
    Amit

    Hello
    I have tested in my internal test systems and system correctly updated the material master using CA97, without aky kind of previous scheduling of the master recipe.
    Can you please provide a more detailed description of the issue? What is happening if you try to run CA97 without running the scheduling of the mater recipe? How are you running CA97?
    You may also try CA97N, which is a newer version of CA97.
    BR
    Caetano

  • Archive details for purchase order

    Hi,
    We have the requirement as below -
    1. The Purchase orders(70 in number) are cancelled by ASCP plan run and the line quantities have become 0 for those lines with closed_reason as 'Close status rolled up'.
    2. Now business wants to reinstate them.
    Need to know :
    1. from where we can get the old line quantities for these purchase orders.
    2. Is there any place from where we can get the archive data for purchase orders.
    Regards.

    You cannot un-cancel a PO.
    But you can find the old quantity from po_line_locations_all table's cancelled_quantity column.
    And then create a new PO.
    Depending on your setup for PO archiving, you will be able to find the old data in the following tables
    po_line_locations_Archive_all
    po_lines_archive_all
    po_headers_archive_all
    Hope this helps,
    Sandeep Gandhi

  • Change Pricing for purchase order

    Hello All,
    FOR STO deliveries, we want to aportionate freight charges in case of multiple POs. Our inbound idoc sends only one order and calls BAPI_PO_CHANGE.
    we are trying to update Pricing condition of other related purchase orders belonging to same delivery in a user exit. User exit is SAPL2012. Is there any function module to update Pricing conditions for purchase orders?
    BAPI_PO_CHANGE would not work here as this userexit is called in this BAPI.
    Any suggestion?

    Any suggestiions?

  • Updating Batch classification data from MIGO for Purchase order

    Hi,
    I need to update batch classification data (in MSC3n) from MIGO for purchase order. The logic needed for this is as below,
    1) Pass material and batch to MCH1 table to get CUOBJ_BM.
    2) Pass CUOBJ_BM to INOB table to get INOB-OBJEK.
    3) Pass INOB-OBJEK to CLAF_CLASSIFICATION_OF_OBJECTS to get class name & characteristic name.
    4) Pass INOB-OBJEK, CLASS name and characteristic name to BAPI_OBJCL_CHANGE to update batch classification data.
    I created implicit enhancement at the bottom of FM "CLVF_VB_INSERT_CLASSIFICATION". But the problem is, the return parameter of BAPI_OBJCL_CHANGE is giving the following error.
    Class type 023, object type MCH1, object RAW-6             0000001151
    Object is currently locked by user
    The assignment was not changed
    Please let me know how to do it. Is there any BADI or User Exit?

    Hi,
    As you said the break point is not triggering did you activate your exit and activated even the project to which your exit is assigned.
    I hope you missed activating your project in CMOD transaction. Please verify it once and if it is not activated then immediately activate it and try debugging again.
    Regards,
    Rafi

  • Goods-Receipt Block for Purchase Order depending on Goods-Receipt Date

    Hi,
    I want to set up the system so it can block the Goods-Receipt for Purchase Order respectively Scheduling Agreement if the Goods Receipt is about to take place 30 days or more before the Desired Delivery Date.
    For Example: If I have a Purchase Order with the desired delivery date 30.09.2008. I want to set up the system so, that it bans (forbids) the Goods Receipt before the 01.09.2008.
    If possible I would want to do that without additional programming. Is it possible to set up the system using only customising settings?
    Thanks for your help
    Bogdan

    Hello Marius-Bodgan,
    as this question is marked answered I assume you have received an solution for your requirement. Could you please share the solution with me by posting it here? I have the same requirement and did not find any possibility to do this in customizing.
    Thanks in advance,
    Emanuel
    Found the solution in thread Re: Goods Receipt
    Edited by: Emanuel Penalver on Jul 15, 2008 11:48 AM

  • BAPI for Purchase Order Confirmation and update EKES table

    Hi all,
    I have a requirement to update the PO confirmation soon after successful creation of PO in an IDOC.
    I have used BAPI_PO_CHANGE function module which didnt serve the purpose as it cannot update confirmations.
    I tried using ME_CONFIRMATION_UPDATE where I was able to add a confirmation entry in EKES table but that is not being reflected in ME23N transaction when I display the PO.
    Please help me out on this.
    Thanks & Regards
    Pavan

    NB: Never use a standard update FM (check attributes of ME_CONFIRMATION_UPDATE) its often only a SQL statement collector without any check, logging of changes or database consistency, if you perform a where-used you should find it is never called alone but with a bunch of other update FM after checks and other update preparation.
    Get back to the BAPI and table parameter POCONFIRMATION, also use BAPI_PO_GETDETAIL1 to get current data for the call of BAPI_PO_CHANGE.
    Regards,
    Raymond
    PS: If it is not in 197958 - BAPIs for purchase orders: Missing functions, you should be able to do it

Maybe you are looking for

  • The crystal touch of my iPad 2 is broken.

    I had an accident and the crystal touch of my iPad 2 was damaged (broken in the corner) what do you recommend me to fix my iPad 2? and where can I send it to replace the cristal Touch, and what happen with my warranty?

  • Memory leaks during child window close

    Hi All,    We have a tool that generates code for WPF application. In one of the applications WPF main window displays a child window in the form of a tab. The main window here can hold multiple child windows. I did a small test. I opened main window

  • VAT Issue with prepayment orders for China !!

    Hi All, The issue is specific with China country ! Today when we  are create a Prepayment  Order the VAT is triggered upon the Prepayment invoice. According to the auditors this is not the correct treatment of VAT. Tax should be triggered at the time

  • Unable to change off-line mode

    I upgraded from LiveCycle Cafe to Enterprise Cafe.  Enterprise Cafe started in off-line mode and I can't find any settings to get online.  How do I fix this? I also get a message Login Error: There is no Internet access.  Please check your network co

  • What's the best IoC Framework for Flex?

    I am looking at Prana at the moment which is actually for Actionscript but may work for my purposes. Anyone care to give an opinion on this I would appreciate the input. -Joe