A FM or BAPI to update the status of a Production Order

Hello, does anybody know if there is an interface FM or BAPI to update the status of a production order. Specifically I want change the status of PP order to LKD (locked). I want to do it programmatically from an external system.
Thank you
Ernesto

Hi,
I believe you can use the FM I_CHANGE_STATUS to update the status..
where JEST-OBJNR = AUFK-OBJNR
Thanks,
Naren

Similar Messages

  • How to change the status of a production order

    Dear All,
    May i know how to change the status of a production order.I want to de-active the status like OPGN (Operation generated).This status is updated as there was no routing assigned to that particular production order during its creation
    Thanks and Regards,
    Varun Siddharth

    Dear,
    When you create a production order, an operation created by the system is generated automatically if no routing is used for the creation. As a result the order header receives the status HOGAN; the operation created automatically also has this status.
    If you delete the operation created automatically and then do not have the status HOGAN.
    To avoid this maintain the Routing for the material or delete the setting of default operation from OPJG.
    Regards,
    R.Brahmankar

  • How to add the long text in Production order through FM

    Hi,
    Iam having custom program which has BAPI (BAPI_PRODORD_CREATE) inside it and this program is used to create Production orders with the details of Sales order Number,Line item,Plant,Order type,Quantity and Start date. This program is scheduled in Background.
    Now client wants to add the Long text (seperate TAB in production order and they want to update the VC details of Sales order in the Long text area).
    One option is after creation of Production order, through BDC(calling CO02 and update the long text) we  can update the long text and client doesn't want this option.
    Another option is after creation of Production order, using Function module SAVE_TEXT, Update the Long text in Production Order and this is not working in Production order (already my ABAP consultant checked it ).
    If any one of you came across this requirement, pl share with me how you addressed it.
    Regards
    A.Sureshbabu

    Hi,
    The method is quite simple, i presume you're quite well versed with doing recording, so the key thing to keep in mind is how to prepare the input file.
    At my end i had about 5 lines of data which needed to be uploaded, hence i had a tab-delimited file with the order nos. in the first column & the five lines of text in five different columns (Refer format below)
    Order No.
    Line - 1
    Line - 2
    Line - 3
    Line - 4
    Line - 5
    12345
    txt - 1
    txt - 2
    txt - 3
    txt - 4
    txt - 5
    67890
    txt - a
    txt - b
    txt - c
    txt - d
    txt - e
    Now provide this input file for your lsmw or bdc program & it will work. You can work with your abaper if you're not so comfortable with LSMW or BDC programming he / she should be able to easily make it work for you.
    Regards,
    Vivek

  • User-exit to update material component in a production order with a batch

    I am looking for a solution to update a production order material component with a batch number what is stored in the configuration of a sales order. The production order is defined for salesorder related production. How can I update the field RESBD-CHARG in the production order.
    Tried already the exits PPCO0001, PPCO0008, PPCO0021. Also looked for a solutions with batch search stratgegies, but I have no idea kind of possiblities I have here. Other problem is that we are stil on release 4.7.
    Hopefully some can help me with a solution.
    Regards,
    Peter Geurts

    Dear
    You have to update the batch in a production order component via RFC Call of BAPI_ALM_ORDER_MAINTAIN.You should also pass operation number to T_COMPONENT and T_COMPONENT_UP
    T_COMPONENT-ACTIVITY = Operation Number
    You need to pass the following tables
    IT_METHODS should have 2 values
    Refnum - '000002'
    Objecttype - 'COMPONENT'
    Method - 'CHANGE'
    Objectkey - 300054 (Prefix the zero's)
    Append IT_METHODS
    Method - 'SAVE'
    Append IT_METHODS
    T_COMPONENT should have the following values
    RESERV_NO - Reservation number ( you can see in production order)
    RES_ITEM - Reservation item ( you can see in production order)
    BATCH - populate the required value
    APPEND T_COMPONENT
    T_COMPONENT_UP should have the following values
    BATCH - 'X'
    APPEND T_COMPONENT_UP
    Or else look at BAPI 'BAPI_MATERIAL_GETBATCHES'. This might help you.....
    CALL FUNCTION 'BAPI_MATERIAL_GETBATCHES'
    EXPORTING
    material = MATERIAL
    BATCHNUMBER =
    plant = PLANT
    expirydatefrom = DATE
    Hope this will be useful
    Regards
    JH
    Edited by: Jiaul Haque on Sep 12, 2010 11:14 PM

  • Is there a BAPI that gives the status information (and possibly more) of a

    Hi All,
    We are using an external document image system where we scan and code vendor invoices. They are send to our SAP system via a BAPI.
    We want to update the status of the invoice in the document image system from the status in the SAP system, so whether it is still open or has been paid and cleared. Is there a BAPI that gives the status information (and possibly more) of a specific vendor open item?
    Regards,
    Gerrit

    Are you sure about that? Several highly regarded, widely downloaded apps, e.g., eReader, have an option to hide the status bar. The developer forums are awash in discussions about the commands to hide the status bar-- it's built in to the SDK.
    I figure someone will have put out a small program that does nothing but hide the status bar or allow its tweaking... much like StatusBar does on the Palm OS 5 PDAs...

  • Error while updating the status record of IDOC in SAP

    Hi All,
    I am facing this problem. I have done outbound processing and IDOC was sent successfully from SAP to EDI system and it was processed in EDI and now EDI system wants to send the status back to SAP with a status message and the status number that we are using is '24' and we have mapped all the fields in the status table EDIDS and made sure that EDI system sends all those and I think Counter field can not be determined by EDI system so EDI system used the counter '1' since it can not determine how many counters are already there in SAP and unless we pass the value to this counter field we were getting the error. After passing all the values the status of the IDOC is updated with the status '00' instead of '24' and we do not know why it is happened and I would like to know how SAP converts the status record that is received from the EDI system.
    Please let me know how the status record will be translated into SAP from EDI system and I ahve followed basically EDIDS structure and the IDOC status is updating in SAP but with wrong status number and the alignemnt also missing in SAP fields like if I give some text in the EDI it is splitting and storing in 2 fields.
    Please help me in this and I think I have explained the problem in a detail manner.
    Thanks,
    Ramesh.

    Hi Naresh,
    Thanks for the reply and my question is since EDI system is able to send the status back to SAP from EDI system and only problem is it is updatinf the status wrong and I have checked the EDIDS table also and the entry is creating with another counter and please confirm me that it is because of EDI does not support the status record update so that I can confirm to the client that there is nothing wrong in the way SAP functions and EDI system can not update the status code in the SAP.
    Thanks,
    Ramesh.

  • BAPI to Update the OA/PO with the new partners from vendor masters

    Hello All,
    We got a requirement to update the Contract or purchase order with new partners from vendor  master.
    In brief the partner information of a  PO when created with reference to a contract  will be reflected from the contract but not from Vendor Master partners .So when the vendor master got changed after the creation of the Contract the partner information in the PO is not in synchronous with Vendor Master partnes.
    Hence please help us with any BAPI to update the PO partners with Vendor masters .
    Regards
    Kalyani

    MAP2e_lfa1_to_bapivendor_04
    MAP2e_lfa1_to_bapivendor_05
    will be helpful

  • Need name of a function module or BAPI to update the Tax Classification val

    Hi Guru's
    Need name of a function module or BAPI to update the Tax Classification value for Material master.
    Thanks in advance.

    Hi
    U can try to use BAPI_MATERIAL_SAVEREPLICA
    Max

  • CLEAN_REQREQ_UP not updating the status of all confirmations.

    Hello All
    We have scheduled the cleaner report as a job running every 2 minutes.
    This job changes the status of the confirmations from 'Approved' to 'Transmit to backend system'.
    However the job doesn't process a few confirmations randomly.
    In such confirmations, the status remains as ' Approved'.
    There is no issue for replication for such confirmations in the backend.
    This happens on 30 % of all confirmations.
    All these confirmations are coming from an interface and the following sequence occurs
    1) MFG Batch user creates Confirmation in SRM
    2) WF Batch user sets the status as Approved
    3) Job Batch user( CLEAN_REQREQ_UP) updates the status to 'Transmit to Backend system'
    I am trying to find out why the job wont process these confirmations.
    Regards
    Kedar

    HI
    for eg,
    when we do confirmations in SRM
    message type MBGMCR and RFC takes GOODS CONFIRMATION / SERVICES  data to .ECC
    and BBP_GET_STATUS_2 job bring the informations of ECC GR status and update in SRM.
    bbp_docuemnt_tab get entries of srm confirmation data and clears clen req up table (po+confirmation number).
    clean job must clean this PO+confirmation line in the bbp_docuemnt_tab table.
    check your PO number in BBP_DOCUMENT_TAB TABLE.
    i need to check it up.
    br
    muthu

  • FM'S or BAPI to update the condition records in VB22 transaction

    Hi,
    I need your help in getting the FM'S or BAPI to update the condition records in sales deal.
    The transaction is VB22.
    If you can send me a smaple code it will be really helpful.
    Regards,
    Sasi

    Check this:
    http://www.sapnet.ru/viewtopic.php?p=1644
    Bapi for VK11 & VK12
    Reddy

  • Is there any standard BAPI to update the standard transaction GS03 ?

    Is there any standard BAPI to update the standard transaction GS03 ?
    Moderator message: please do more research before asking, show what you have done yourself when asking.
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on Jun 16, 2011 2:02 PM

    hi,
    I think this link will help you to find that.
    list of all bapis:
    http://www.planetsap.com/LIST_ALL_BAPIs.htm

  • How to update the status of Outbound IDOC in case of error

    I want to know about how to update the status of Outbound IDOC in case of error.
    I am using message control functionality here.

    HI,
    If u r using the standard message and basic type
    u can do it in the FM attached to the basic and message type.There u need to write ur own message instead of standard SAP message..chek if there r any userexits available in the FM..where u can overwrite ur own message ..
    If u r using the Zmessage and Zbasic type
    then u need to declare an internal table of EDIDS structure and then append ur message to the internal table..
    idoc_status-docnum   = idoc_contrl-docnum.
      idoc_status-msgty    = <message type>
      idoc_status-msgid    = message-id.
      idoc_status-msgno    = message-number.
      idoc_status-msgv1    = message-message_v1.
      idoc_status-repid    = sy-repid.
      idoc_status-status   = <give the error status>.
      APPEND idoc_status.
    Reward if u find useful
    Regards,
    Nagaraj

  • Hi i need help on BAPI to Update the ADRT & ADR6 tables

    hi,
    i need help on BAPI to Update the ADRT & ADR6 tables
    these are the fields to be updated
    ADRT-Remark Table
    ADR6-SMTP_ADDR
    ADR6-DFT_RECEIV
    Please guide me what parameters to be passed to update
    ADR6 & ADRT tables

    Look at this function Group
    <b>BUBA_3                         SAP BP: External BAPI Function Modules     </b>                        
    BAPI_BUPA_ADDRESS_ADD          SAP BP, BAPI: Add Address                                          
    BAPI_BUPA_ADDRESS_CHANGE       SAP BP, BAPI: Change Address                                       
    BAPI_BUPA_ADDRESS_GET_NUMBERS  SAP BP, BAPI: Read Address Numbers                                 
    BAPI_BUPA_ADDRESS_GETDETAIL    SAP BP, BAPI: Read Address                                         
    BAPI_BUPA_ADDRESS_REMOVE       SAP BP, BAPI: Delete Address                                       
    BAPI_BUPA_ADDRESSES_GET        SAP BP, BAPI: Determine All Addresses                              
    BAPI_BUPR_CONTP_ADDR_ADD       SAP BP, BAPI: Add Contact Person Relationship Address              
    BAPI_BUPR_CONTP_ADDR_CHANGE    SAP BP, BAPI: Change Contact Person Relationship Address           
    BAPI_BUPR_CONTP_ADDR_GETDETAIL SAP BP, BAPI: Read Contact Person Relationship Addresses           
    BAPI_BUPR_CONTP_ADDR_REMOVE    SAP BP, BAPI: Delete Contact Person Relationship Address           
    BAPI_BUPR_CONTP_ADDRESSES_GET  SAP BP, BAPI: Read Contact Person Relationship Addresses           
    BAPI_BUPR_EMPLO_ADDR_ADD       SAP BP, BAPI: Add Employee Relationship Address                    
    BAPI_BUPR_EMPLO_ADDR_CHANGE    SAP BP, BAPI: Change Employee Relationship Address                 
    BAPI_BUPR_EMPLO_ADDR_GETDETAIL SAP BP, BAPI: Read Employee Relationship Address                   
    BAPI_BUPR_EMPLO_ADDR_REMOVE    SAP BP, BAPI: Delete Employee Relationship Address                 
    BAPI_BUPR_EMPLO_ADDRESSES_GET  SAP BP, BAPI: Read Contact Person Relationship Addresses           
    Look also at OSS <a href="https://service.sap.com/sap/support/notes/306275">Note 306275 - Transferring address data</a>
    Regards

  • FM or BAPI to update the database table /TDAG/CPT_DEC_IN

    Hi All,
      I need to update a few entries in the database table /TDAG/CPT_DEC_IN (CP: Declarable Substances, Independent attributes). This table contains data for the EHS ( Environment, Health and Safety) Module in SAP.
      Instead of doing a direct database update, I needed a FM or a BAPI to update the same.
    Any pointers towards this will be really useful.
    Thanks and Regards,
    Arti Dohare

    Hi Raymond,
    Thanks for the reply. it seems I was using the wrong BAPI then.
    I actually created the network using the BAPI "BAPI_BUS2002_CREATE".
    This BAPI does not have the field call "Resp. cost cntr" in its input parameters and so I could not pass it there. Now I am trying to find if there is any standard FM or BAPI to maintain this field in the networks.
    I request you to please suggest some FM or BAPI if you know.
    Thanks and Regards.
    Piyush R Sakharkar.

  • Bapi for Updating the confirmation table(EKES)

    Hi,
    Could anyone let me know the BAPI to update the Vendor confirmation table EKES. And also the parameters to be passed to it.
    Thanks.

    Suman:
    After your call to FM ME_UPDATE_DOCUMENT is successful, please perform a explicit COMMIT.
    Umair:
    Use the FM ME_CONFIRMATION_UPDATE to update EKES table.
        CALL FUNCTION 'ME_CONFIRMATION_UPDATE'
          EXPORTING
            i_ebeln = ekko-ebeln
          TABLES
            xekes   = xekes
            yekes   = yekes.
    "yekes contains the EKES table in DB
    "xekes contains the changed values for EKES table
    Hope this helps. Reward points if helpful.
    Thanks
    Balaji
    Edited by: Balaji Ganapathiraman on Mar 20, 2008 1:10 PM

Maybe you are looking for

  • Calling stored procedure in MS SQLServer

    I have created a db connection,conn pools and am able to sucessfuly query the DB in my database control. I need to run a stored procedure. I am using the statement: * @jc:sql statement="EXEC dbo.mi5DSS_D98" where dbo.mi5DSS_D98 is the stored procedur

  • External Mail Problems

    I recently finished installing Messaging Server 6.3 ( 64-bit ) and Communications Suite ( 32-bit ) . Messaging Server seems to handle internal mail perfectly ( from uwc ) , but does not send mail to external domains . I set the SMTP port to 25 and di

  • Transaction to maintain order currency of vendor (LFM1-WAERS)

    Hi, what transaction do we maintain order currency of vendor (LFM1-WAERS)? Thanks a lot!

  • Default the master / detail select lists

    When I load a form that has pre-existing data I need to be able to default the master / detail select lists to the correct values. (so the lists load with the correct values "selected" in each case.) Is it possible to do this and if so, how? Thanks i

  • CS2 - Purchased legal version - Please Insert Disc 2 into Drive

    Hello, I am running Windows XP SP4. I purchased my copy from someone who was selling out their old CS2 Premium version on Ebay. Came with all 6 discs and 2 backup CD's, 2 books, serial numbers, and some old coupons. My old version was Illustrator 8.0