Release of proccess order with 'BAPI_PROCORD_RELEASE'

I am trying to release a proccess order via the following
method, by calling function odule 'BAPI_PROCORD_RELEASE'.
in debug mode it works, and in runtime mode
it fails to release.
Can sombody help.
METHOD release.
  DATA lt_ordnum TYPE TABLE OF bapi_order_key.
  DATA ls_ordnum TYPE bapi_order_key.
  ls_ordnum-order_number = i_ord_num.
  APPEND ls_ordnum TO lt_ordnum.
  COMMIT WORK AND WAIT.
  DO.
    IF sy-subrc = 0.
      EXIT.
    ENDIF.
  ENDDO.
  CALL FUNCTION 'BAPI_PROCORD_RELEASE'
    IMPORTING
      return = os_return
    TABLES
      orders = lt_ordnum.
ENDMETHOD.
best regards,
Itzik Eshed

Dear Itzik,
I understand that I am really late in replying to this post. Wish I knew ABAP in 2008
Had I known ABAP then, I would have certainly helped you.
Coming to your question, there are two ways of making your BAPI work. I have used it and it works fine for me in real time now.
Method 1:
Method 2:
Please try doing it in one of these ways and I am sure it will work. If it does not, lets make it work
All the very best!!
Regards,
Ram

Similar Messages

  • Any batch process to release the sales order with status profile

    Hi,
    The sales manager need to release the sales order 1 by 1.
    This is very tedious.
    Is there a process for her to release selectively?
    For example,
    if the sales value of the order is visible and within the approval limit or too small,
    she could release, says, more than 10 sales order in a single click.
    Possible?????
    Bye

    Hi,
    I like to perform a mass release of multiple Sales order from the proposed custom report.
    I would like to built the releasing coding into the report.
    I need some references on how to set the release.
    Maybe, there is a standard function for me to pass it in and it would release the sales order status.
    if that the case, it is BONUS.
    Otherwise, there must be some steps that need to be built to set the release.
    what I am asking, is there any such routines that would define the steps to release the sales order in coding?
    I understand there would be a change in status aftef the released and it is also vital to enable the audit log for future investigation.
    Having a BAPI would result the audit issue as the system would have taken care of it.
    I hope it is clearer now as to why I am requesting a sample of the standard routine.
    If there is no such routine, do let me be aware of it.
    Thanks

  • OSSNOTES for releasing process orders with missing parts in background

    Hi All,
    The bapi 'BAPI_PROCORD_RELEASE' is not releasing the process orders
    with missing parts in background.
    Is there any OSSNotes for releasing these process orders in backgound through this bapi.
    Pls help.
    Thanks .

    Hi Suri - Thanks for your response. I tried both with blank(individual and collective) and 2 (collective req. only) but I still get the same result. I found one other setting that can solve this issue and that is checking the activate full confirmation logic at the the MRP group level in OPPR. I will test more and let you know if that works but we dont use MRP groups here at our client and that is why I was little hesistant to set up collective availability check parameters at the MRP group level. But looks like this is the only option that we can use to get this resolved.
    Thanks,
    Bharath

  • Settlement rule mandatory before release of Produciton order

    Dear PP Gurus,
           Will you please inform me the way to configure settlement rule mandatory field before releasing the production order with out material.
    Thanks in advance,
    HT

    Hi Hareesh
    Go to IMG - Controlling - Product cost controlling - cost object controlling - product cost by order - period end closing - settlement - create settlement rule.
    in this select the appropriate settlement rule that u assigned to ur production order type.
    In this, in the block "Valid Receivers" for order , select "2 settlement required".
    If this is done, when u create a production order, it will ask for the settlement rule to be defined.
    Hope this is helpful to u. If so please reward points.
    Chandra

  • Can't release an purchasing order

    Dear experts!
    Thank you for your attention!
    I can't release an purchase order when I processed a " 3rd party order with shipping nocification" .
    The purchase requisitions has been created automantically and been assigned and also been converted to PO.
    However, I can't release the purchase order with no reason.
    hint: the material is not define for the vendor.
    Where did the problem come out?
    Best regard!
    Tangdark

    Hi
    maintain info records in ME11
    and also sourcelist in ME01
    release in Me28 or Me29
    regards

  • Creation of Release order with reference to Contract

    Dear experts,
    We are doing upgradation from 4.6B to ECC6. During testing ,while creating release order with reference to contract,(Contract was created with Account assignment category-K and item category-D),cost center is copied from contract in purchase order in account assignment tab of item details,
    but when i save it window is poping up(account assignment service line item 10-small window) asking to enter cost center again. Even if i enter the same cost center in that window,cost center field,again it is asking same window is poping up for entering cost center.
    Can any body please tell me inspite of cost center is copied,why this window is coming ,please suggest.This problem is not there in 4.6B version
    Advance thanks,
    Regards,
    Dayanand

    Please check to OXK1, and compare it to both system.Or check the config guide in IMGMM-Purchasingacc.assigment--Set subscreen for acc assingment (coding) block.

  • Problem with ATP check in release of process order

    Hi gurus,
    I have next problem in automatic release of process order:
    No checking group is maintained for product 000000000791104015, plant VFMX in matl master.
    Situation:
    I've some materials without MRP views in material master data but apparently this doesn't affect to release order. In this case, this material hasn't this views and it's impossible to release the order. I'm supposing the problem is not related with the fill up of this views or the field in material master data, because for other materials with the same situation the release is running.
    Anybody has any idea?
    Thanks a lot,
    Regards

    Dear ,
    You are facing this error because :
    - you have activated avaialbility check, but checkingb group is not maintained in material master of the component
    - if maintained in material master, in configuraion checking group and checking rule combination is not maintained
    - if above both are maintained then in the checking control for the order type is maintained, but in the control you maintained the setting that - release not possible if no availability, hence change it to user control option.
    *So  Goto MM02- material master -MRP3 view -Maintain the Availability check field as 01/02 as applicable  for components in the production *
    For more clarification , you can investigate the below : For production order avilablity check  and release u have  should  following settings.
    1. Define checking Group - SPRO
    2. Define checking Rule- SPRO.
    3. Define scope of check - OPJJ - Scope of the avilabilty check is defined for the Combination of Checking group and Checking rule. Check contol is defined for each comination of checking group and checking rule.
    4.Define Chek control -OPJK  : Checking rule is linked to Ordertype/Plant combination.
    while releasing the production order system will do avilability check as per the settings In OPJK for ordertype/plant combination.
    Hope this is clear to you
    Regards
    JH
    Edited by: Jiaul Haque on Jun 20, 2010 9:20 AM

  • BLANKET PURCHASE ORDER WITH RELEASE

    HOW TO DO CONVERSION OF BLANKET PURCHASE ORDER WITH RELEASE
    ,PLZ SEND SAMPLE CODE OR UNIT TEST(UT) DOCUMENT.

    Hi Suresh
    you can define the copying rules with the help of following customization.
    SPRO>Purchasing > Purchase Requisitions > Text for Purchase requisitions > define copying rules.
    define text types and linkages.
    SPRO>Purchasing>purchase order>Text for purchase order
    Define copying rules for header and item text for PO as per the requirement.
    Best Regards
    Nishant Shende

  • Authorized Partners for Release Orders with customer hierarchy

    Hello everyone,
          I have created a value contract with order type WK1, in the order type WK1 configuration, choose rule B  for check partner auth. field, namely we want to use
    customer hierarchy to detemine the sold-to-party for the follow-up release order. Also I have created the customer hierarchy with hierarchy type A. There are
    four levels under this hierarchy, it contains four customer nodes and four customers. Every customer is belong to a customer node. The partner determination
    for the customer hierarchy have alredy done, I can see the customer hierarchy "1D" at the partner tab of header in the contract, but when I release the sales
    order against  the contract, input a low-level customer number, still got the message "partner X is not authorized to release from contracts.".
         I want to know if I missed some settings in order type configuration or the copy control from WK1 to OR. If this scenario need integrate with  CRM system?  I
    have found some related information, just list below:
        Partners in the hierarchy (Rule B)
    If the partner who wants to release against the contract is the sold-to party of the contract or at a lower level in customer hierarchy to the sold-to party in the contract, the system accepts the partner as the sold-to party for the release order.
    If rule B is defined for the contract type, you can search for authorized partners for a release order using the contract number. Equally, you can search for the relevant contract for a release order using the partner number. In this case, the partner authorization rule is irrelevant.
    Prerequisites
    If you wish to use group hierarchies other than pricing hierarchies to determine authorized partners, you must have created a hierarchy category and a hierarchy:
    To create the hierarchy category, go to Customizing for CRM under Master Data --> Business Partner-->  Business Partner Group Hierarchy. 
    To create the group hierarchy, go to the SAP Easy Access Menu and choose Master Data --> Business Partners --> Maintain Group Hierarchy.
    Note that you can only create group hierarchies in the SAP GUI and not in the People-Centric user interface.
    You must have activated the necessary settings for the sales contract and the release order in the IMG for CRM. For more information, see Transactions ---> Settings for Contracts -->Define Settings for Authorized Partners.
      Thanks!

    Hi,
    In transcation VTAA at item level have your own cory requirment code which will calcullate net value of the doc, hope this works out
    regards
    sriky

  • Is it possible to release Process Order  with Material Shortage

    Hi All,
    We are using PP-PI & still wants to have behavior of the PP prod order
    i.e. Release Process Order with Material shortage.
    Is it Possible.
    Regards,
    Jatin

    Hi Jatin,
    Go to Transaction OPJK. Select your Plant, order type and Business function as 2-Check availability during order release.
    Under Material Availability tab, maintain '1- User decides on release if parts are missing' if user wants to decide for release of Process order or '2-Release permitted despite missing parts' if you want directly the Process order should be released despite of shortage in Release material field.
    These settings are similar to PP.
    Please check and revert.
    Regards,
    Hiren Ramani

  • Need a function module to create production order with reference

    Hi
    I need a function module to create a production order with reference to an existing order. There is no BAPI available for SAP 4.7 release. I found that the function module CO_ZF_PRODUCTIONORDER_CREATE does not create with reference to an existing order.
    Any help will be rewarded.
    Pavan

    Dear Pavan,
    Unfortunately there is no FM for this..
    Cheers
    Nitesh

  • Error while release of production order u201CNext period is not openu201D

    Hi Experts,
    Need your opinions on this issue where my client is facing a problem while create and release a production Order on the last day of the month (Last day of period change).
    While create and release of production order for Plant xxxx, system uses to give the error; period Next (e.g. 12) is not open. Same thing if I have created the order using T. code CO01; but when I tried to release and save the order through T. code CO02 then it gave me the same error (Next period is not Open), it checks for the next period to open.
    The above scenario happens only on last day of the month. Earlier this kind of error was not there so the question is why the period check is happening while saving the production order.
    After speaking to the user, it is determined that they are facing this problem since upgrade (Since last 8 month). Hence need to check what additional check has been implemented with upgrade from R/3 4.7 to ECC 6.
    Error Message No F5201
    Appreciate your help how to dig up this issue.
    With Regards
    Anant

    Hi Guys,
    Please throw some light why on the last day of the month (Last day of period change) at the time of release the order user is getting error: Period Next (FI Next period) is not open ( message No. F5201).
    My question is why system carried out period checks at the time of release of Production Order.
    With Regards
    Anant

  • Error while releasing the service order .

    Hi,
    After creating sales order from service order (ZOR3), when I am trying to release the service order by clicking on the green flag it is giving me error 'WBS for the Variant Service Line selected does not exist'.
    Kindly advice a solution.
    regards,
    SDG

    What is the error message number ??  If it starts with "Z", then through some user exit, this control is applied which you have to check with your ABAPer on the coding.
    thanks
    G. Lakshmipathi

  • Error  -10  while closing a Production Order with DI API

    Hi,
    I've been trying to close some production orders using this code:
    Dim oProdOrder As SAPbobsCOM.ProductionOrders
            Try
                oProdOrder = Me.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductionOrders)
                If oProdOrder.GetByKey(intDocEntry) Then
                    oProdOrder.ProductionOrderStatus = SAPbobsCOM.BoProductionOrderStatusEnum.boposClosed
                    If oProdOrder.Update <> 0 Then
                        Me.Company.GetLastError(intError, sErrMsg)
                        If (0 <> intError) Then
                            sErrorMsg = sErrorMsg & "Production Order Close Error: " & CStr(intError) & "," & sErrMsg & _
                                ". DocEntry: " & oProdOrder.ProductionOrderOriginEntry & vbCrLf
                        End If
                    End If
                End If
    ...But I keep getting the same error every time I try: -10,Date out of reference date range, '_SYS00000005340'
    The error doesn't show when I close the Order with BO's Form. And I've checked the exchange rate for the posting and due date of the document (and also for my current date) and there seems to be no problem with it.
    I'm currently working with SAP BO 2004A PL 45.
    Anybody has a suggestion? a workaround?
    I'll appreciate any help you can give me.
    Thanks in advance...
    Alfredo

    Alfredo,
    just in case,
    what is the previous state of the production order (planned, released,...)?
    before you try to close the order, update the status to released:
    If oProdOrder.GetByKey(newID) Then
    'Cambio di stato dell'ordine da 'Planned' a 'Released'
                    oProdOrder.ProductionOrderStatus = boposReleased
    oProdOrder.Update
    I found this code in a DI API application written for 2004A. It was commented out so I suspect it didn't work.
    'Chiusura dell 'ordine
            'SelProductionOrder.ProductionOrderStatus = boposClosed
            'ret = SelProductionOrder.Update
            'If ret <> 0 Then
            '    sboCompany.GetLastError nErr, errMsg
            '    MsgBox "Errore " & nErr & " - " & errMsg
            'End If
    Hope this helps

  • Creating sales order with reference to contracts

    Hi Gurus,
    I am creating a sales order with reference to a contract.I am making sales order sold-to-party as release order.
    so my Contract sold-to-party and the sales order sold-to-party are different but both belong to same sales area. In the above case i am able to create sales order.
    In other case though my Contract sold-to-party and the sales order sold-to-party are different but if they both belong to different sales area, i am unable to create a sales order.It says no contracts exits for sold-to-party.
    i made both the customers as partners .
    Any guidance on this is fully rewarded with points.

    Each and everytime your both SOLD-TO should be in same sales area.
    Enhance the  Contract sold-to-party's customers sales area specific data in XD02 so, it could come in to sales area of the Order's Sold-to-party.
    Regards,
    Naimesh Patel

Maybe you are looking for

  • Dunning Letters

    Hi all, I want to have all levels (10) of dunning letters. Where can i find/open it whitout using the Dunning Wizard? Thanks in advance, Chief Edited by: Philip Eller on Jul 4, 2008 10:14 AM

  • Epson 2200 and 2400 and Mountain Lion.

    Today I will buy an iMac with Mountain Lion.  Will I still be able to use my Epson 2400 scanner and 2200 printer?

  • Connect Mini to TV?

    Is there a way to connect my mini to my TV so I can watch streaming video from the internet?

  • Sql delete command

    I have one table emp, here emp having 3 fields, names like empno,ename,job. SQL> select *From emp; EMPNO ENAME JOB 23 SEKHAR JAVA 34 RAVI DBA 12 ramesh testing I want to delete empno column and job column do not use rowid,fields. I want output like t

  • Elements 11 not responding when using "comic" or "graphic novel" filter

    I recently purchased PSE 11 and absolutely LOVE the program. It has worked flawlessly for me for 3 weeks, however, today was the first time I ever tried to use the "comic strip" filter and the "graphic novel" filter and the program stopped responding