How to Release the order  while creating an order?

Hi
  My requirement is to create an order and release(REL) it immediately upon creation.I have created an RFC FM wherein which I am calling the Bapi 'BAPI_ALM_ORDER_MAINTAIN' to create an order.
Following method I have tried to release the order, but still my purpose not resolved completely.
Creted the 'RELEASE' method in the BAPI call upon creation of order, but it throws a BAPI error.
I tried  with FM 'STATUS_CHANGE_INTERN' in the BADI of an order to release it. It does release the order. But the problem is afer the order is created and released by BAPI & BADI, I could still see the Green Flag(Release) in 'Iw 32' though system status changed to 'REL' Status. on Top of it , I could still observe the Creted Status(CRTD) system status in the order. Actually once the order is Release(REL), created status(CRTD) should not be displayed .
What would be the best approach to acheive the result?.Appreciate your valuable reply on this regards.
Regards
sri-

Hi,
Try this..
Create a new RFC function module in SE37 with the same parameters as the FM ALM_ME_ORDER_RELEASE
In the attributes of the new FM set the radio button "REMOTE ENABLED"
Then call the FM ALM_ME_ORDER_RELEASE inside your new FM..
Generate ..
Then call this new FM in your user exit...with IN BACKGROUND TASK.
  CALL FUNCTION 'Z_ALM_ORDER_RELEASE'
               IN BACKGROUND TASK.
Hope this works..
Thanks,
Naren

Similar Messages

  • How to remove build errors while creating an Order App. for Handhelds

    Hi Friends,
    As per the Tutorial: Developing an Order Application for Handhelds provided at the given link http://help.sap.com/saphelp_nwmobile71/helpdata/en/8F/0B674240449C60E10000000A1550B0/frameset.htm
    I am creating mobile application for PDA . I have finished many steps but at one step I am getting build errors.
    The step is when we create service and paste the code provided in the document.
    public void generateTestData() {
    //@@begin implementation
          if( !(((Order_srvModel)OcaRoot.getInstance().getModel(Order_srvModel.class)).getOrderOrderheaders().size() > 0))
             OrderOrderheader order = ((Order_srvModel)OcaRoot.getInstance().getModel(Order_srvModel.class)).createOrderOrderheader();
             order.setOrderid("0023378");
             order.setLongtext("Repair front door");
             order.setServiceunit("SU01");
             order.setCreatedOn(Date.valueOf("2007-06-30"));
             order.setCreatedAt(Time.valueOf("08:45:00"));
             order = ((Order_srvModel)OcaRoot.getInstance().getModel(Order_srvModel.class)).createOrderOrderheader();
             order.setOrderid("0024897");
             order.setLongtext("Analyse malfunction");
             order.setServiceunit("SU01");
             order.setCreatedOn(Date.valueOf("2007-07-01"));
             order.setCreatedAt(Time.valueOf("09:00:00"));
             order = ((Order_srvModel)OcaRoot.getInstance().getModel(Order_srvModel.class)).createOrderOrderheader();
             order.setOrderid("0034534");
             order.setLongtext("Repair escalator");
             order.setServiceunit("SU03");
             order.setCreatedOn(Date.valueOf("2007-07-03"));
             order.setCreatedAt(Time.valueOf("19:45:00"));
             order = ((Order_srvModel)OcaRoot.getInstance().getModel(Order_srvModel.class)).createOrderOrderheader();
             order.setOrderid("0024589");
             order.setLongtext("Analyse computer problem");
             order.setServiceunit("SU04");
             order.setCreatedOn(Date.valueOf("2007-07-01"));
             order.setCreatedAt(Time.valueOf("15:45:00"));
             order = ((Order_srvModel)OcaRoot.getInstance().getModel(Order_srvModel.class)).createOrderOrderheader();
             order.setOrderid("0027890");
             order.setLongtext("Repair door lock");
             order.setServiceunit("SU03");
             order.setCreatedOn(Date.valueOf("2007-07-05"));
             order.setCreatedAt(Time.valueOf("10:00:00"));
             OcaRoot.getInstance().commit();
    //@@end
    The issue is I am getting a red line below each set methods as I have shown by underlining. I am struggling with how to rectify the error.When I write ORDER and write . after it , it shows only get methods in the popup not the set methods.
    Please suggest .
    It will be a great help.
    Regards,
    Nitesh

    Hi Nitesh
    Check if the data object you created is bi directional in DOE?
    Regards
    Vidyadhar

  • To release credit check while creating sales order

    Hi,
    I have a requirement of releasing credit check for list of open sales orders of a customer while creating a new order in VA01 for a customer.
    E.g in va01,i'm creating sales order for kunnr ABC
    for kunnr ABC, open sales order existing in database are 1,2,3,4
    So i need to release credit check for 1 2 3 4 while creating a new sales order in VA01.
    If i use FM 'SD_ORDER_CREDIT_RELEASE' in VA01 user exits it again call standard program and gives some error.
    I need to know the exact point to implement the code if someone can help and also if there is another way of releasing credit check other than above FM.

    Hello,
    Why don't you use the include MV45AFZZ, userexit USEREXIT_SAVE_DOCUMENT_PREPARE.
    You can write your code to identity all the sales orders that are due to be released for a customer and then release them.
    Edited by: Kanwardeep Singh Gill on Apr 8, 2010 5:28 AM

  • Facing the problem while creating sales order

    Hi,
    I am facing the problem while saving the sales order.
    Error in system  xxx/400 while copying the document
    Message no. CRM_ORDER_MISC 020
    Diagnosis
    Errors occurred while transferring the document into another system. To view the error messages, see the enclosed log.
    Transmission log
    u2022Product  cannot be recoded for ERP System xxx/400(Notification E CRM_ORDER_MISC 015)
    u2022Product  cannot be recoded for ERP System xxx/400 (Notification E CRM_ORDER_MISC 015)
    Kindly assist me.
    Madhu

    Hi Madhusadan,
    Can you check whether the product exists in the ERP System or not? You can take the product names and can check the same using the Tcode: MM03 in ECC System. Also, it would be good if you have a look at the product from the CRM System if there are any errors or the product is already archived.
    Is the Sales Order you are creating from a Preceding Transaction ?
    Hope this helps.
    Thanks,
    Samantak.

  • How to get pricing conditions while creating Sales Order

    Hi Guys,
                When we create sales order using VA01, price is automatically determined using pricing condition configured.
    My requirement is, I need to know what would be the price of a particular item.Say i put one item A with quantity x,can I get which price conditions will be applied and what value will come for them.I need this because I need to validate this price with some other price put in a file .

    I would suggest to use the Exit because that will be less efforts and you can implment and debug it easily. Moreover, you can restrict it by any condition e.g. order type, order reason because all the internal tables are available at that point.
    Whereas, accessing the access sequence is cumbersome process. You need to go to all the combinations (tables) in the access sequcen and try to find out the suitable match .
    Regards,
    Naimesh Patel

  • How to export the customer while creating a new site

    Hi,
    I understand it is no longer correct just to export the new;y setup site from PRD to DEV for further configuration.
    Though site export is still available, it is not coming out with customer/vendor master data.
    In this case, I supposed I will need to do it separately.
    Can some one guide me how to trigger the export of the customer master data(site)?
    I think the IDOC message type is DEBMAS.
    Thanks
    Bye

    Hi there,
    It's quite a simple exercise and you are right, the IDOC type is DEBMAS (Do remember, if you dealing with a Distribution center as Site, than you have to consider sending the CREMAS as well as it is for Vendor).
    Use ALE or other means of sending  IDOCs between the two clients. If you will use ALE, use transaction code BD12 for sending customer and BD14 for sending vendors in the source client.
    I hope your query is reasonably answered, award points accordingly.
    Cheers
    Kunwar

  • Duplication of Purchase Order while creating sales orders for a customer

    when we try to create sales order for one customer it have to create by picking up the purchase order from the table linearly.
    But the problem is that here when we are trying to create multiple sales orders the same purchase order is being picked.
    for example..when we create sales order 1 the purchase order picked is PO1 and
    for creation of sales order 2 the same purchase order PO1 is being picked up instead of PO2.
    No idocs are being generated in this, even to check them..
    How shall i resolve this...? Please help me out ASAP

    Hi Kumar,
    Thanks for the reply. But actually the problem is that this is related to some customized table in the project. When a EDI Batch job runs in the background then automatically the SO is created and the PO is being picked from the table(custom table) and then posted against the respective SO. we are not aware of that job which is triggering this to debug. Once if we can know that particular batch job or pgm or edi or idoc what ever it is then we can debug.
    Do you have any idea how can we find that particular pgm/edi/idoc/job name which triggers this creation of SO?

  • Referance of Original Production Order while creating Rework Order

    Dear Guru,
    We create rework Production Order by T.Code- CO01 with rework order Type. But i want to give the referance of Production Order for which Rework Production is being created.
    Please guide me.
    Regards,
    Sanjay Sahoo

    Dear Sanjay,
    For this you have to create the rework order using CO07 (without material production order).if not using AFS SAP.
    then go to Header and under Settlement rule assign the production order with that rework order.
    Regards
    Nitin

  • Change in logic for selecting the Bin while creating Transfer Order

    Hi ,
    Currently the system follows SAP process of BIN selection which is as mentioned-
    With stock removal strategy Partial Pallet Quantity (A), system follows  below  steps to find the storage bin:
    1.SAP always compares the requested amount from the Transfer Order with the largest bin amount available in the stock.
    2.If the requested quantity of the transfer order is the same as or larger, the system removes the material from the largest bin amount first.
    3.If the requested quantity is smaller, the system removes the material from a storage unit for partial quantities in ascending order.
    Now the customer has requested a change which is -
    It wants to take in BIN in the FIFO order followed by partial pallet .
    Question is - Is this possible ?
    Cheers
    Disha

    Hello,
    May I add something to the discussion.
    If you are calling "OMLJ", you see on the left side the secion "Transfer requirements". If the box for "Manual TO creation not allowed" is ticked, you are not able to create the TO's by the manual transactions. Then only the system is allowed to create the TO's, for instance with the report RLAUTA10.
    I hope this anweres your question.
    Best regards
    Uwe Neuman

  • How to add the Drawings while creating Inspection Plan

    Dear all,
    As we can attach the files in QM01 - Create Notofication thru "Choose an Object" .
    In similiar way can  "Choose an Object" object can be attached to Insp. plan or any other way to attach drawing.

    in case of inspection if want to see the the drawing during Result recording then
    You can create a document in Cv01n & attach  drawing document ........
    then
    1.use it in Inspection Method & attach inspection method in the inspection lot.
    2.use it in PRT as document  & attach it in inspection.
    In case of notification DMS( document mgt system-CV01n) can be used & attached in Notificaton.
    Regards
    Sujit

  • How to rectify the error while creating hierarchy

    Hi
    I am working on creating a hierarchy for an info object IO_SREP.  I am using the book SAP BW - A Step-by-Step guide written by Biao Fu, and Henry Fu.  As mentioned in the book
    1. I double clicked the info object Sales representative ID then I got the screen Change characteristic IO_SREP:Detail. 
    2.     Accordingly as mentioned I selected the Hierarchy tab wherein I clicked the check box with hierarchies and the radio button Hierarchy structure time-dependent.
    3.     I successfully checked and activated the screen and hit the back button which took me to the screen Administrator Workbench: Modelling.
    4.     <b>As mentioned in the book now I right clicked on the info object Sales representative ID and selected Create Hierarchy option. 
    At this stage I am getting the error “The import parameters were not filled correctly.  When I clicked on the question mark for help I got the screen Performance Assistant with the message “The import parameters were not filled correctly” Message no. RH032.</b>
    But as per the book the screen Create Hierarchy should open.  Can anyone please guide me as to where I am going wrong and what should I do to proceed further? 
    Thank you.
    TR.

    Try transaction RSH1 to create the hierarchy. If you are on 3.0A, this might be due to program error (OSS note 511004).

  • Embed the JRE while creating exe file

    I am using jar2exe software to create the exe file from the jar file. The exe is created successfully using this software. However it requires the JRE should be present on the machine where we are going to install the software.
    Is there any body who knows how to embed the JRE while creating the exe so that there should not be any need to have the JRE on the machine?
    Is there any other approach by which we can create the exe file from the jar and JRE should be there in the exe file?
    Thank you.

    All jar2exe does is use a JNI (C to java) wrapper around your call. That means a VM is still required.
    The Sun VM at least requires a number of shared libraries and jar files to run. The shared libraries must either be in the file system or already loaded into the application.
    You could put those as a resource into the shared library but you would then need to figure out, via OS calls (not java) how to load them.
    Is there any other approach by which we can create the exe file from the jar and JRE should be there in the exe file?Options
    1. Find another tool besides jar2exe
    2. Install the VM - it need only be in the exe directory.
    3. Forget the exe idea and just use java.
    4. Figure out, which might be impossible, how to load the shared libraries and jars as resources from the exe. Again this is NOT something you can do in java.

  • How to block the material qty to 1 while creating sales order (VA01)?

    Hi All,
    Scenario :  We have 20 Materials each with 100 qty in Plant. In the sales order we should have all the 20 materials with qty one. The sales order should throw an error if the material qty is more than 1 and should not allow to create a sales order.
    so is there any transaction code where we can block the entire material qty to 1 from the same plant while creating sales order?
    Note: We should not set in MM01 "Minimum order qty". Assume we have 100 material in plant we can't set for each material one by one "minimum order qty".Instead of that is there any option to set the whole material qty to 1 as minimum while creating sales order?
    Kindly guide me how to proceed.
    Thanks,
    Renjith

    If you have access to idoc before calling the processing Function module, Adding header text segments E1EDKT1 and E1EDKT2 to the idoc will create the header text.
    Regards
    Sridhar

  • How can we  prevent the PO while creating the sales order

    Hi All,
    How can we prevent the PO number while creating sales order with existing PO. I have checked the box in sales document type as A but still im able to create sales order with same PO.
    Thanks in advance.
    Naveen

    Hi
    In VOV8 check the box
    Check Purchase Order Number
    The purpose of this field is to check for duplicate
    purchase order (PO) numbers during sales order entry. When you select A in
    this field, SAP gives a warning message during sales order creation if another sales
    document for same customer with the same PO number exists already. Leave this
    field blank if you do not want SAP to check for duplicate PO numbers.
    regards
    Prashanth

  • How to restrict the order reason in Tcode Va01 while creating sales order

    Hi Gurus,
    My requirement is
    while creating sales order in VA01
    if order type is Zvol
    than the list of order reasons has to be restricted.
    Now 15 are coming from OVAU  tcode
    I need only 5 from these.
    Thanks & Reagrds
    kals.

    Hi,
    By doing the user exit in IW32 we achieved the requirement of restriction of maintenance order TECO functionality if any Service Entry sheet pending with reference of maintneance order.
    regards
    JKM

Maybe you are looking for

  • I have a MacBook that is running 10.5.8 and I cannot update it to Snow leopard

    I have a MacBook that is running 10.5.8 and meets the tech specs for Snow Lepoard.  I am attempting to upgrade to SL using a "Mac OS X Install DVD version 10.6.3".  However, when attempting to run the installer from the disc I recieve an error statin

  • Show Character Palette corrupted

    If I choose Show Character Palette from the Menu Bar at the right hand side of the screen, the palette appears but is blank and cycles on and off every few seconds. Before this happened I had been trying to access one of the other tabs in this palett

  • SAP implementation in Utilities Industry

    Hi, What is the major difference while implementing SAP CO for a utilities industry? How does it differ with other industries? Any help is appreciated. Thanks

  • Valuation area 001 posting issue

    HI, I have got this error message. System doesn't post to VA 001 prior to 20.05.2011. How can I resolve this? Business Transaction Cat: Interest on  Position Date: 01.05.2011 is before the initialization key date of valuation area 001 Message no. TPM

  • JS Tree Browser

    I am using a JS Tree Browser in my JSP page. It renders perfectly, but when I click a - to collapse a node with children, nothing happens. It seems to be wanting to invoke some javascript, but beyond that I cannot make out what is happening. Any idea