External program to reset release startegy

Hi All,
Can anyone tell me how to reset release startegy from an external program. I understand that there are some exits avaialable to do it. I dont want to add my logic in an exit. Based on my program conditions I need to reset the release startegy of the P.O.
Any Bapi of FM that is available.
Thanks,
Anupma

BAPI_PO_RESET_RELEASE soved the probelm. U need to copy and remove std. check and it will work fine.
Thanks,
Anupma

Similar Messages

  • PR Release startegy

    PR release startegy  should be flexible so that if we add any of the parameters, the program should follow the rules. The parameters that can be changed are:
    1. Document Types
    2. Project Types (We will need a custom table)
    3. Plants Groups
    4. Threshold Amounts
    The routing of the Purchase requisition approval is primarily based on the amount on the requisition, the Plant, and the department the requisitioner belongs to.
    In standard sap we have static parameters for release staregy, but here requiremnet is dynamic, when ever you chnage any of the parameters the syatem should adapt those chnages and the existing rules must apply for new one.

    Why would you change Doc. Type?
    If your requirements are not firmed than you should not raise requisition.
    No matter how dynamic your business is, requisition raised for a particular requirement should not vanish or change in a day or so.
    Practically speaking, it seems your supply chain is not process driven.
    For such scenarios you should allow to create POs directly once the requirements are firmed and aprovals covered for POs only.
    Regards,
    Dakshesh

  • Mass po reset release strategy

    i   want to know transaction or program or function module name or any other ways for performing
    " mass po reset release strategy "  ,  please   help

    Hi Veeru,
    You can release the PO's all at once. Please sit with your technical consultant and ask him/her to write the code which takes the inputs of the Release Codes and the indicator Released and pass this information (PO number, Release Code, Release Indicator etc what ever is required) in the BAPI_PO_RELEASE. Some coding needs to be done to do this.
    Hope this helps.
    Regards,
    Saroopya.

  • Start external program on explizit host

    Hello!
    I have a little problem - I just want to create a RFC destination which execute an external program
    on a different windows server means not the sap application server. All SAP + server are Windows based.
    I define a destination "Start on explicit host".
    Program:
    sap64\rfctest\aec\ALICE_MATHE_RFC.exe
    Target Host: sap64.alice.tld
    Gateway options (Host: sap64, Port: 3301)
    On this server (sap64) only a gateway is running.
    But it don't work.
    Error:
    Logon     Connection Error
    Error Details     Error when opening an RFC connection
    Error Details     ERROR: timeout during allocate
    Error Details     LOCATION: SAP-Gateway on host sap64 / sapgw01
    Error Details     DETAIL: no connect of TP
    sap64\rfctest\aec\ALICE_MATHE_RFC.exe from host sap
    Error Details     COMPONENT: SAP-Gateway
    Error Details     COUNTER: 42
    Error Details     MODULE: gwr3cpic.c
    Error Details     LINE: 1973
    Error Details     RETURN CODE: 242
    Error Details     SUBRC: 0
    Error Details     RELEASE: 700
    Error Details     TIME: Fri Nov 21 11:26:08 2008
    Error Details     VERSION: 2
    If i define the destination as Start on application server there is no
    problem - the exe on sap64 is executed on the application server of the sap system but this should not be....
    Can anybody help me to find a solution to execute the exe on a different server
    than the sap application server?
    Best regards
    Thomas Wassenhoven

    Hi!
    Yes it is possible. I solved this problem by registering the programm on the gateway (Note 63930).
    Best regards
    Thomas

  • Error Message: External program terminated with exit code 2

    Hi ALL
    We are doing REORG tablespace in DB13 and i am getting below error message. Please help us to resolve the issue.
    20100430     113234     DB6PM     000     Reorg_Tbspc:Command DB6CLP failed on server
    20100430 103959 DB6PM 000 Reorg_Tbspc:Exitcode:Error
    20100430 103959 DB6PM 000 Reorg_Tbspc:ERRORMESSAGE: An SQL error occured. Will print output of the command
    20100430 103959 DB6PM 000 Reorg_Tbspc:External program terminated with exit code 2
    20100430 103959 DB6PM 000 REASON=C call failed
    Regards
    K.Gunasekar
    Edited by: KGUNASEKAR on Apr 30, 2010 6:55 AM

    Exitcode 2, if returned from the OS, means "No such file or directory". Note that as of SAP kernel release 7, you usually do not have DB6CLP any more. Can you check if the executable is available in the SAP exe directory ?
    If running SAÜ kernel 700 or higher, I suggest to apply a recent SP level.
    Malte

  • Reset release strategy

    I've added a logic in user exit "ZXM06U22" to reset release strategy once the net price have been changed both increase or deducted. The program source as below, but it can't work. How can i reset the release strategy once the net price deducted. Thanks!
        i_cekko-usrc2 = 'X'.
        loop at it_bekpo into wa_bekpo.
          select single NETPR into lv_netpr from ekpo where ebeln = wa_bekpo-ebeln and
                                                            ebelp = wa_bekpo-ebelp.
          if wa_bekpo-netpr < lv_netpr.
            clear i_cekko-usrc2.
            rel_flag = 'X'.
            exit.
          endif.
        endloop.

    hey did you get the answer for this.... I am having the same problem ...
    If posible could please reply on this as soon as possible... thank you in advance...

  • How can I execute an external program from within a button's event handler?

    I am using Tomcat ApacheTomcat 6.0.16 with Netbeans 6.1 (with the latest JDK/J2EE)
    I need to execute external programs from an event handler for a button on a JSF page (the program is compiled, and extremely fast compared both to plain java and especially stored procedures written in SQL).
    I tried what I'd do in a standalone program (as shown in the appended code), but it didn't work. Instead I received text saying the program couldn't be found. This error message comes even if I try the Windows command "dir". I thought with 'dir' I'd at least get the contents of the current working directory. :-(
    I can probably get by with cgi on Apache's httpd server (or, I understand tomcat supports cgi, but I have yet to get that to work either), but whatever I do I need to be able to do it from within the button's event handler. And if I resort to cgi, I must be able to maintain session jumping from one server to the other and back.
    So, then, how can I do this?
    Thanks
    Ted
    NB: The programs that I need to run do NOT take input from the user. Rather, my code in the web application processes user selections from selection controls, and a couple field controls, sanitizes the inoputs and places clean, safe data in a MySQL database, and then the external program I need to run gets safe data from the database, does some heavy duty number crunching, and puts the output data into the database. They are well insulated from mischeif.
    NB: In the following array_function_test.pl was placed in the same folder as the web application's jsp pages, (and I'd tried WEB-INF - with the same result), and I DID see the file in the application's war file.
            try {
                java.lang.ProcessBuilder pn = new java.lang.ProcessBuilder("array_function_test.pl");
                //pn.directory(new java.io.File("K:\\work"));
                java.lang.Process pr = pn.start();
                java.io.BufferedInputStream bis = (java.io.BufferedInputStream)pr.getInputStream();
                String tmp = new String("");
                byte b[] = new byte[1000];
                int i = 0;
                while (i != -1) {
                    bis.read(b);
                    tmp += new String(b);
                getSelectionsDisplayTextArea().setText(getSelectionsDisplayTextArea().getText() + "\n\n" + tmp);
            } catch (java.io.IOException ex) {
                getSelectionsDisplayTextArea().setText(getSelectionsDisplayTextArea().getText() + "\n\n" + ex.getMessage());
            }

    Hi Fonsi!
    One way to execute an external program is to use the System Exec.vi. You find it in the functions pallet under Communication.
    /Thomas

  • Error while resetting release of segment

    Hi Experts,
    We have one custom IDoc.I am trying to add new field to one of the segment.So i am trying to cancel release status of segment using we31.But i am getting error Error while resetting release of segment  ZXXXXX Message no. EA259 .I checked many of SDN threads but no where exact solution is mentioned for this.Current release for the message type is 701.so we are on same version now also.I put  a break-point in LEDIJF05 in form CHANGE_CLOSE_SEGDEF.i observed it is failing at line 625 and
    can not unclose segment: release of last version is not SAP-version*.Can any body tell me what is the exact issue.
    Thanks in advance,
    Vijay

    Hi Vijay,
    If the SAP version and the version segment released last time is the same, then this problem should not occur. If you are still facing the issue, add a version to the existing segment. You should be able to add the new field then.
    Regards,
    Parthiban

  • System exec, How I say to open one file and make operation in external program?

    Hi,
    I got called an external program with the system exec.vi, but i would like the program open the file saved in the other window, i can get the file path, but how Can I put the file path in the external program and the program open the file and I tell (in this case compile), since i open one file code c and only i must to open and say to the program 'compile' and then close external program.
    Any help?. Thanks.
    Attachments:
    system_exec.GIF ‏8 KB

    Hi Fonsi,
    System Exec.vi will allow you to run commands like launching a program easily but it is difficult and many times not possible to execute commands within an application.
    A better way maybe to approach this though ActiveX. Please look at the following example that uses ActiveX to communicate with Excel.
    Writing Rows to Excel 97 and Excel 2000 Using ActiveX
    If you are not familiar to ActiveX and LabVIEW, please read the document below:
    ActiveX and LabVIEW
    I hope this
    helps.
    Sincerely,
    Feroz
    National Instruments

  • How can I display files in external program like Word?

    Using NetBeans 6.5, IE7, Windows XP
    I have not had any luck attempting to get a PDF file to display in a separate browser window,
    so I thought I might try to combine that with a new issue.
    I have 3 file types - jpg, rtf and pdf that should be able to be displayed in external programs like Word or Adobe.
    Is there a way to start an external application and pass the file name from a backing bean?
    The files would be located on the server in a directory that is mapped to the client and the applications (Word, etc.) would reside on the client.
    Can this be done from within the confines of a JSF application?
    Thanks

    I was kind of hoping that someone could point me to an example of how to do this.
    I've tried the servlet approach, but can't seem to get the file to display in a separate browser window.
    That is why I thought about maybe launching a separate application, if that is possible.

  • How can an add-on like Firesheep access and execute an external program like Winpcap? Is that a security flaw in Firefox?

    I have been reading about the Firesheep add-on that allows the user to hijack sessions of users on the network by stealing the cookie. I understand that to prevent any application from stealing the cookie, the cookie should not be passed by the site without SSL. However, my understanding of how Firesheep works is that it interfaces with Winpcap (a network sniffer). So my question is "How can an add-on execute an external program or operating system command like Winpcap?" Can any add-on do this and should I be extremely afraid of downloading any add-on because of the potential that it could have complete access to my system?

    Hi Scott-L.
    You asked a very good question and it turns out you're right.
    However, one must be aware that download an Addon on another website that Mozilla may be dangerous. Indeed, the Addons found on the Addon Center are checked (roughly).
    In addition, Firefox includes a blacklist that blocks addons identified as malicious.
    More information here: [http://www.computerworld.com/s/article/9193420/Mozilla_No_kill_switch_for_Firesheep_add_on?taxonomyId=17&pageNumber=1]

  • How do I call an external program

    From within my Java program I want to execute an
    external program and dump the output into a string
    or array of strings. In perl this is trivial $a=`dir`.
    How do I do it in Java?
    Thanx,
    Art.

    with Runtime
                try {
                        Process p = Runtime.getRuntime().exec("cmd.exe /c dir");
                        BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
                        String str = "";
                        while((str = in.readLine()) != null)
                            //do what you want to with input
                        in.close();
                    catch(Exception e)
                        e.printStackTrace();
    [/code[                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • When I call an external program from Labview, how can I embed the interface into the front panel?

    I'm running Labiew 6i for Linux. I'm using a system exec.vi to call an external program to do image manipulation (since there is no IMAQ for linux). How can I embed the user interface of the external program into the front panel of Labview?

    As far as I know, the only way to embed other GUIs in LabView is an ActiveX in a container.
    As long as you are using Linux, try to place (moving them on the desktop ) the two windows linked (like those 3 of WinAmp).

  • How can I run an external program without quitting Firefox?

    I want to run an external program from within Firefox, much as Outlook express is run from the email button. How do I set this up?
    Firefox doesn't import my Bookmarks from the listed html file. Any cure for this?

    I don't want to run the mail program, I want to run another program.
    Maxthon allows me to do this using External Tools. Does Firefox allow me to run other programs without leaving Firefox?
    2. Firefox allows me to load an html file which contains my bookmarks, but it doesn't load the bookmarks file. is there a solution?

  • How can I run an external program from a PLSQL procedure?

    Is there a package to run an external program from PLSQL? or is there another way to do that?
    thanks.

    here there is an example about how a PL/SQL procedure can
    work with an external C program.
    http://download-east.oracle.com/docs/cd/A87860_01/doc/appdev.817/a76936/dbms_pi2.htm#1003384
    Apart from that you have Java Stored Procedures option
    to carry out your task.
    Java Stored Procedures Developer's Guide Contents / Search / Index / PDF
    http://download-east.oracle.com/docs/cd/B10501_01/java.920/a96659.pdf
    Joel P�rez

Maybe you are looking for

  • The name "Folder" does not exist in the namespace

     I am trying to learn Wpf and doing some of the examples on the Microsoft site. https://msdn.microsoft.com/en-us/library/vstudio/bb546972(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1 I am using Visual studio 2013. As I work through the exa

  • Naming voice memos on iPhone 3GS not working.

    I have an iPhone 3GS I have many voice memos. I try to name them by pressing 'custom' then naming them, but once I quit the application, it NEVER saves the names. Does anyone know why? I know I'm doing everything 'right'; they appear named after I do

  • How to use a native library packaged in a connector

    Hi, I know how to package a native library into a connector in my app server. But I don't quite know how to use it. Suppose I provide a wrapper java class for the native library, can I use the java class directly in my EJB (since the classloader of t

  • How can I to send an email with a longer than 50 characters subject?

    I'm trying to send an email through an abap program ( report ), but when the email arrives to the SOST transaction the subject is cut to 50 characters. How can I send an email with a longer than 50 characters subject?

  • L2TP over IPSEC Static NAT trouble

    I have a 5510 that i have configured for L2TP over IPSEC, not using AnyConnect.  As of right now i have two open issues that i cannot figure out.  The first, and most prevelant being, VPN clients are unable to ping/access any of the hosts that are as