Function module for Production order update (Table AFKO)

Hello All,
I know similar subject has been posted but please read the following.
SAP 4.6c doesn't provide BAPI for production order update.
We did develop an ABAP program that update production order and schedule it in a job.
We are looking of avoiding direct update in table AFKO which our program do right now.
We looked (with SE37) at either BAPI or FM to pass parameters to a functioin that would perform that update and ensure data integrity.
CO_ZV_ORDER_POST seems interesting but is also using a lot of parameters and we have diffiulties to test it and understand it our dev team being fairly new.
Can somebody tell us how to use this function or tell us another FM that could be used. (ie passing internal table content (New fields values) and a key value (AUFNR)) to update table AFKO and related objects/tables
Regards
Marc

hi,
TABLE IS AFKO
rgds
anver
if hlped mark points

Similar Messages

  • BAPI / Function Module for Sale order updation

    Hi,
         I need to update sale order details(Reason for rejection)..Can you please tell me any of the existing BAPI's / Function modules to do the same.

    hi,
      try bapi_salesorder_change
        <b>allocate points if useful</b>
    regards,
    pavan

  • Function Module for Production order configuration

    Hi,
    I have variant configuration scenario.
    I have to run the transaction CO01 in the background.
    Is there any Function module, by which i can configure the production order in the back ground.
    As of now, when i am doing it manually but not able to find any BAPI for that.
    any help will be highly appreciated !!
    Thnx in Advance
    Ashish

    Hi,
    try BDC
    Pls refer below link
    http://www.sap-img.com/bdc.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/309cb157-738d-2910-7691-b74c4ddba3c7
    Regards,
    Sankaran

  • Functional module for production order operation standard values

    Hi,
    Is there any functional module/BAPI available where I can get the 'Standard Valuse' (Setup/Machine/Labor) from production order operations directly?
    Regards,

    Hi Caetano,
    Thank you for your reply.
    I checked suggested BAPI BAPI_PRODORD_GET_DETAIL, it gives me the operation details like control key, Activity name (like KMCH, KMOD) but not its standard values (values for: Setup/Machine/Labor).
    Could you please check and confirm?
    The FM: PM_ORDER_DATA_READ gives me all details but as name start with PM, I am not sure if its only related to 'Plant maintenance' orders and if its ok to use this FM for PP production orders.
    Please suggest.
    Regards,

  • Function module for Process order status

    Hi techies,
    I want to know the function module for process order status , idoc type is liopro01 and message type is liopro, my requirement is that based on the different status received in IDoc SAP should update the process order status, separate user status will be defined as "MO START" and "MO end" using status profile.also it has change the process order status to "TECO" also it should check the user status for "MO Abort".
    Thanks in Advance

    Hi ross,
    Try this function module.
    STATUS_CHECK_MULTI
    May be helpful.
    Lincon

  • Function Module for .xlsx to Internal table

    Hi Gurus,
    Please let me know if there is any function module for .xlsx to internal table.
    Kind regards,
    Varun

    Hi,
    try the below FM's
    ALSM_EXCEL_TO_INTERNAL_TABLE
    TEXT_CONVERT_XLS_TO_SAP
    Thanks,
    Vinayaka

  • Is there any function module for purchase order change

    Hi Experts,
    Is there any function module for purchase order change or i need to do new recording in me22n.
    Thanks,
    Senthil

    Hi
    Function module <b>BAPI_PO_CHANGE</b> enables you to change purchase orders. The Change method uses the technology behind transaction ME22N.
    Regards,
    Viven

  • Function module for submitting order in CRM B2B

    Hi Experts,
    we are customizing the CRM B2B functionality. as per our reqruirement, we have 3 types of orders (docuemnts) to submit. for each order we have differnt  extra fields data need to be sent to the back end system in the Header level and item level.
    In this case still we  can not use the standard function module to submit the document.
    need to use the same standard functiona module or need to create the z function module for submitting all three orders.
    Please advice.
    I have another question. What the standard functiona module name for submitting the order?
    Adavance Thanks

    HI
    We need not create any custom FM to send in extension data. Just extend the class which is called on save and overirde the
    customer exits available there.
    From the sales document object  get header and itemlist.
    ItemList itemsData                = salesDocument.getItems();
    HeaderData header                = salesDocument.getHeaderData();
    header.addExtensionData();
    ItemSalesDoc[] items = itemsData.toArray();
    for (int k = 0; k < items.length; k++) {
      ItemSalesDoc item = new ItemSalesDoc();
      item = items[k];
      item.addExtensionData();
    The header and item extension datas will be available in the respective place holders in the methods in BADI
    CRM_ISA_BASKET_ITEMS   CHANGEITEMS_BEFORE_ORDER  IT_EXTENSION
    CRM_ISA_BASKET_HEAD    CHANGEHEAD_BEFORE_IL         IT_EXTENSION
    The method name and place holder in backend also given above.
    Hope this helps
    Regards
    Antony

  • Function Module for creating order in CRM

    Hi ,
    I want to create order in crm. i have tried the function module given in SDN but all are for R/3. I have tried BAPI_SALESORDER_CREATEFROMDAT and  CRM_SERVICE_ORDER_CREATE  , L_TO_CREATE_MOVE_SU but all are for R/3. So please tell me function module which create order in CRM.
    Thanks
    Abhiiesh

    Sales Order      
    BAPI_BUSPROCESSND_CREATEMULTI->BAPI_BUSPROCESSND_SAVE and BAPI_TRANSACTION_COMMIT must be used.
    CRM_ORDER_MAINTAIN-> CRM_ORDER_SAVE and COMMIT WORK must be used.
    check this report program in se38
    CRM_TEST_ORDER_MAINTAIN
    Regards,
    Keshav

  • Function Module for PM Order Change?

    Hello Everyone,
    I want to change a plant maintenance Order's Header Data, operations list  and object list.
    Is there any existing function module for this.
    R/3 version which I am using is 4.6c.
    I have found a function module 'ALM_ME_ORDER_CHANGE' but unable to change any of the order's data using this.
    Thanks & Regards,
    Swati

    Hi,
    Here is  the Function Module  :  BAPI_ALM_ORDER_MAINTAIN
    Reward  Points if it is usefull..
    Girish

  • Function module for sales order VC characteristics

    Hi All,
    Is there any function module for fetching sales oder VC characteristics.
    Regards

    Please use FM: VC_I_GET_CONFIGURATION.
    Please pass "VBAP-CUOBJ"  in the exporting parameter INSTANCE and it should return you configuration in the Table parameter 'CONFIGURATION'.
    Let me know if this works.
    Thanks,
    Neeraj

  • Function Modules for System Status update and reservation for service order

    I am sending the service orders data using IDOCS.
    once the IDOC is received successfully i need to do 2 things:
    1. Update the system status of the service order with the status 'SPV2'.
    2.  Create the reservation for the service order.
    Is there any function modules avilable for both of these process.
    If not how i can do these two things in ABAP Code.
    please help me out in it.

    check whether this Fm's helps you
    STATUS_CHANGE_INTERN
    CO_IH_SET_STATUS_EXTERNAL
    CO_IH_STATUS_FM_SET
    BAPI_ORDER_CHANGE_STATUS_GET
    BAPI_APPREQUEST_SETSTATUSVARNT
    BAPI_ALM_ORDER_MAINTAIN
    BAPI_RESERVATION_CREATE
    Edited by: Keshu Thekkillam on Oct 26, 2009 5:10 PM

  • Function Module for Delivery date update

    Hi all,
    Can anybody help me to solve my problem. My requirement is to update order delivery date for a partner. But I am not getting any FM for that and not getting the table name also where I can update delivery date value. If you have any known FM or any suggestion please tell me.
    Thanks in advance
    Chandan

    Hi,
    The function module is
    <b>/1CRMG0/CUST_CHAN_WRT_I01</b>
    Best Regards,
    Johnny.

  • Function module for BOM item update

    Hi,
    Please enlightenn  us, which  FM   is  do  the update  for  BOM item datas. ( current  FM  is  updated  line  item  one item then come out  and log in again  updating  another line item , thus cause  more error are facing.)
    we want a FM to update   one time all the line time and come out from the screen.
    Thx
    Sathiya

    HI
    You Can use function module CSAP_MAT_BOM_MAINTAIN to process simple material BOMs.
    To change BOMs, you can also use the following function modules:
    CSAP_MAT_BOM_OPEN
    CSAP_BOM_ITEM_MAINTAIN
    CSAP_MAT_BOM_CLOSE
    You can use FM CSAP_ORD_BOM_MAINTAIN to Maintain Order BOM.
    With Regards
    Naveen

  • Function module for quotation configuration update

    Hi,
    I am trying to update the configuration data for an item in quotation. This is a new item i am trying to insert in a quotation using BAPI 'BAPI_CUSTOMERQUOTATION_CHANGE' but not able to update/change the configuration data.
    I am able to upload this data in quotation create, is there any specific value I am missing to pss to the above BAPI or is there any other FM to change/update the config data for item in a quotation?

    My first question to you is - Do you have a COMMIT WORK statement in your program after the BAPI is executed.
    Second - the BAPI function module has a RETURN table. What values are returned ?

Maybe you are looking for

  • Transitory account splitted during clearing with FB05

    Hello, I have a problem with the clearing with FB05. When I insert the first item (i.e. bank account -100) and then I process the open items on the transitory account (i.e. 3 items: -50; -20; -30) the system clears these 3 items posting a document li

  • Signal 11 Error in DS 12.2 (3.1)

    Hi, I have DS 12.2 (3.1) installed on AIX 5.3. Everytime I run a dataflow that includes a DQ transform the job fails with an error 170101. On the error log it is saying it is a signal 11 violation. If I totally remove the DQ transform and run the job

  • Weeks in a Year

    Hi guys. Hope you can give me a heads up here. I have the year as the only input, how can I produce all the weeks for that year....lets say for 2007 week 1 = Jan 6 - 12 week 2 = jan 13 - 19 week 3 = jan 20 - 26 week 4 = jan 27 - feb 2 etc...

  • Version 18.0 crashes EVERY TIME I close a tab or the entire page. This is unacceptable. I send the crash reports. Where do I find version 17?

    I have read all the posts on this topic. I have the same issues. I want to go back to version 17 until you fix the problems. Where is that version available for download, since the upgrade wiped it off my system?

  • Problem launching itunes

    I can't seem to open itunes - nothing happens when I click on the icon. It was successfully downloaded and installed, and quicktime works, but not itunes. Whenever I shut down the computer, there is an error message saying that itunes has encountered