How to execute only once the *copy* about LRF1 tcode ?

Hi Experts !
I duplicated the LRF1 tcode by ZLRF1 tcode with the main program SAPLZLRFMON (please see below).
I have an issue with the execution about the ZRLF1 tcode, normally the LRF1 tcode can be execute only once under the same warehouse number, but my transaction ZLRF1 can be execute by more than one user at a time. I debug the execution about the ZLRF1 with a breakpoint set into LZLRFMONF01 include (include test connection) but the system excute the transaction without regard to the breakpoint set into LZLRFMONF01. Did I forget anything ?
thanks in advance for your help.
  System-defined Include-files.                                 *
  INCLUDE LZLRFMONTOP.                        " Global Data
  INCLUDE LZLRFMONUXX.                        " Function Modules
  User-defined Include-files (if necessary).                    *
*Class implementations
INCLUDE LZLRFMONCL2.
*INCLUDE LLRFMONCL2.
INCLUDE LZLRFMONCL3.
*INCLUDE LLRFMONCL3.
INCLUDE LZLRFMONCL4.
*INCLUDE LLRFMONCL4.
INCLUDE LZLRFMONCL5.
*INCLUDE LLRFMONCL5.
INCLUDE LZLRFMONCL6.
*INCLUDE LLRFMONCL6.
INCLUDE LZLRFMONCL7.
*INCLUDE LLRFMONCL7.
INCLUDE LZLRFMONCL8.
*INCLUDE LLRFMONCL8.
INCLUDE LZLRFMONCL9.
*INCLUDE LLRFMONCL9.
INCLUDE LZLRFMONCLA.
*INCLUDE LLRFMONCLA.
*PBO-Modules
INCLUDE LZLRFMONO01.
*INCLUDE LLRFMONO01.
INCLUDE LZLRFMONO03.
*INCLUDE LLRFMONO03.
*PAI-Modules
INCLUDE LZLRFMONI01.
*INCLUDE LLRFMONI01.
INCLUDE LZLRFMONI03.
*INCLUDE LLRFMONI03.
INCLUDE LZLRFMONF01.
*INCLUDE LLRFMONF01.
INCLUDE LZLRFMONF02.
*INCLUDE LLRFMONF02.

CHRISTIAN MEYER wrote:>
>  Did I forget anything ?
Yes - Standard SAP programs quite often check the program name and transaction code being executed. If you look at program SAPLLRFMON, you'll see that it uses both the program name and transaction code (LRF1) in a number of places. You have to go through your copy, looking for these places and add the logic for your trasnaction code an program names.
Rob

Similar Messages

  • Servlet executes only once, the first time???

    Hello evrybody,
    I'll try to be specific regarding the problem. I have an HTML file called Login.html. When I click on this file, a page opens allowing the user to enter his/her username and password. So, I compiled my servlet and I clicked on the Login.html file. I entered some existing username/password combination and the new page opened saying "Login Succesful!". I then close that page and go and click on Login.html again. This time I enter some username/password combination that is not existing in database and according to my servlet a new page is supposed to be opened with a message saying "The username and password you provided are not valid. Please register first!". But, what happenes is that a blank new page is opened with no message (also same thing would happen even if I provided the valid username/password combination). What could cause this? I tried to put rs.close() in the code (rs is reference to a ResultSet object) but it does not make any difference. Can anyone give me a clue about what might be causing this strange behavior? Thanks in advance,Jimmy.
    The code for my servlet is provided below:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.sql.*;
    import java.io.PrintWriter;
    public class LoginServlet extends HttpServlet {
         String jdbcDriver="sun.jdbc.odbc.JdbcOdbcDriver";
         String dbURL="jdbc:odbc:Schedule";
         Connection dbConn=null;
         public void init() throws ServletException {
              try {
                   Class.forName(jdbcDriver).newInstance();
                   dbConn=DriverManager.getConnection(dbURL);
              catch (ClassNotFoundException e) {
                   throw new UnavailableException("JDBC driver not found:"+jdbcDriver);
              catch (SQLException e) {
                   throw new UnavailableException("Unavailable to connect to: "+dbURL);
              catch (Exception e) {
                   throw new UnavailableException("Error: "+e);
         public void doPost(HttpServletRequest request,
                             HttpServletResponse response) throws IOException {
              try {
                        PrintWriter out=response.getWriter();
                        Statement stmt=dbConn.createStatement();
                        String username=request.getParameter("username");
                        String password=request.getParameter("password");
                        String sql="select UserName,Password from Personal_Info where Personal_Info.Username='"+username+"' AND Personal_Info.Password='"+password+"'";
                        ResultSet rs=stmt.executeQuery(sql);
                        if (rs.next()) {
                             out.println("<HTML><HEAD>");
                             out.println("<TITLE>Meeting Scheduling Page</TITLE>");
                             out.println("</HEAD>");
                             out.println("<BODY>");
                             out.println("<H2>Login Succesfull!</H2>");
                             out.println("</BODY></HTML>");
                             out.close();
                             rs.close();
                        else {
                             out.println("<HTML><HEAD>");
                             out.println("<TITLE>Please Register First</TITLE>");
                             out.println("</HEAD>");
                             out.println("<BODY>");
                             out.println("<H2>The username and password that you provided are not valid!</H2>");
                             out.println("<H2>Please enter the valid username and password or register first.</H2>");
                             out.println("</BODY></HTML>");
                             out.close();
                             rs.close();
              catch(Exception e)     {
                        e.printStackTrace();
              finally {
                        try {
                             if (dbConn !=null) {
                             dbConn.close();
                        catch (SQLException ignored) {

    I solved the problem by using destroy() method instead of finally block. Thanks,anyway,Jimmy.

  • How do I uninstall once the trial period has ended?  The instructions say to de-activate the software, but the only option I am given is to enter a serial number.  Thank you

    How do I uninstall once the trial period has ended?  The instructions say to de-activate the software, but the only option I am given is to enter a serial number (I can't get to a place where I can go to help and de-activate)..  Thank you

    Mobriennc which operating system are you using?  Which Adobe software title are you currently evaluating?

  • How can I create a one time cron schedule that would execute only once in C#?

    I have used cron schedule in C# to create an application that should trigger a job only once. This code piece is throwing an exception, An unhandled exception of type 'Quartz.SchedulerException' occurred in Quartz.dll
    Below is my code:
    class Program
    static void Main(string[] args)
    Test();
    public static void Test()
    ISchedulerFactory schedulerFactory = new StdSchedulerFactory();
    IScheduler scheduler = schedulerFactory.GetScheduler();
    IJobDetail jobDetail = JobBuilder.Create<SatellitePaymentGenerationJob>()
    .WithIdentity("TestJob")
    .Build();
    Console.WriteLine(DateBuilder.DateOf(16, 30, 00, 24, 2, 2015));
    //ITrigger trigger = TriggerBuilder.Create()
    // .ForJob(jobDetail)
    // .WithCronSchedule("0 0 12 20 4 ? *")
    // .WithIdentity("TestTrigger")
    // .StartNow()
    // .Build();
    ITrigger trigger = TriggerBuilder.Create()
    .WithDescription("Once")
    .WithSimpleSchedule(x => x.RepeatForever().WithRepeatCount(1))
    .StartAt(DateBuilder.DateOf(12, 43, 00, 26, 2, 2015))
    .Build();
    scheduler.ScheduleJob(jobDetail, trigger);
    scheduler.Start();
    internal class SatellitePaymentGenerationJob : IJob
    public void Execute(IJobExecutionContext context)
    Console.WriteLine("test");
    I believe that the way I have done scheduling to be execute only once is causing the issue. Please advice.
    mayooran99

    Hi mayooran99,
    From the additional information: Repeat Interval cannot be zero. The screenshot
    as below.
    You should specify a repeat interval in seconds. 
    Please try the following code
    ITrigger triggers = TriggerBuilder.Create()
    .WithDescription("Once")
    .WithSimpleSchedule(x => x
    .WithIntervalInSeconds(20)
    .RepeatForever())
    .StartAt(DateBuilder.DateOf(12, 43, 00, 26, 2, 2015))
    .Build();
    Have a nice day!
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I am trying to import photo's on i photo.  It downloads all of the pictures on my camera, how do i only select the photos i want?  Is there a way to do this without selecting one photo at a time? is there a way to select multiple images?  thanks!

    I am trying to import photo's on i photo.  It downloads all of the pictures on my camera, how do i only select the photos i want?  Is there a way to do this without selecting one photo at a time? is there a way to select multiple images?  thanks!

    To select consecutive images click and drag the cursor over multiple thumbnails to select all at once.
    To select multiple images that are randomly located hold down the Command(⌘) key and click on those images you want to select.
    Or to select consecutive images from a list of images that are together hold down the Shift key and and click on the first photo you want to select and the on the last photo you want in the list.
    OT

  • HT3771 I Have a Kyocera FS-C2026MFP printer/scanner. How can I only pint the document in Black. I cannot work out how to not print in colour to save the inks!!

    I Have a Kyocera FS-C2026MFP printer/scanner. How can I only pint the document in Black. I cannot work out how to not print in colour to save the inks!!

    Welcome to Apple Support Communities. We're users here and do not speak for "Apple Inc." or "Kyocera Inc."
    http://usa.kyoceradocumentsolutions.com/americas/jsp/upload/resource/25359/0/Mac Driver3SoftwareGuide1.1.pdf
    On the printer driver documentation, Page 5, in the Imaging setting, although the options are not specifically shown, there should be an option on that screen of the print driver to click and select "B/W" or 'black and white' or 'grayscale' or 'monochrome' as Print Mode rather than the "Full Color" option shown in the illustration below.
    You access these settings once you have selected 'Print' from an app.
    If necessary, you might need to click on the 'Down arrow' button next to the printer name (OS X 10.6), or 'Show Details' button at the bottom of the print dialog box (OS X 10.8) to see additional settings.

  • Strategy plan with package to be executed only once

    Hi All,
    Created a time based maintenance plan with strategy. Included 4 maintenance packages in the strategy. One of the maintenance package should be executed only once upon scheduling the maint. plan and should be due on the date on scheduling.
    What scheduling parameters are to be maintained?
    Regards,
    Abhijit

    Hi Abhijeet,
                      The Functionality of Offset is actually different.
    Suppose you procure a new Equipment, you have erected and comissioned, but the use will anly after 3 months as the predessing and subsequent Equipment needs some time for the Erection and comissioning, in this case, you maintenance plans should start after 3 months only,
    for this reason the Offsetting Field is used.
    that is if you maintain the offseting of 3 months then the cycle will start after 3 months.
    it means that if today is 20th December and you have a cycle frequency of 1 month and you give the offseting for 3 months then your plan will be only activated from 20th march,and the first order will be generated 1 month(cycle period) after that.
    that is 20th April.
    Hope it further clarifies your doubt.
    Regards,
    Yawar Khan

  • How do I only use the wifi internet because I don't want to use my mobile data because I don't have Internet on my price plan?

    How do I only use the wifi internet because I don't want to use my mobile data because I don't have Internet on my price plan and its costing me money?

    Well, if you are running iOS 6.0 or later.
    The option supposed to be in Settings>General>Cellular>Cellular Data---Off & Enable 3G---Off
    I think you'd better check the settings in Privacy>Location Services.
    Some items in it need Cellular data like"setting time zone" and "Find my iPhone'.

  • How do I only sync the last 18 months of emails to my mac mail on the macbook?

    How do I only sync the last 18 months of emails to my mac mail on the macbook? It is currently retrieving all emails from the four accounts I am syncing to and filling up space on my macbook.  I can't work out how to set a limit.
    Any help appreciated!

    Imap is designed to synchronize your mail client with the mail server, this the normal result.
    Switch to POP access if you want it to work asynchronously

  • How to authorize only on the workbook analyse toolbox

    Hi all,
    How to authorize only on the workbook analyse toolbox and not the workbook design toolbox? (in the new bex explorer)
    Is there a specific auth. object?
    Context: For testing purposes users should only be able to create new workbooks en run (display) queries.

    You could use the event structure ("event loop") for this. 
    For any control that you want to protect, you'd create a value change case. Within this case, implement e.g. a pop-up subVI that prompts for a password and returns if the user typed in the correct password. If password is OK, perform the value change or action related to a button pushed, and if password is not OK, do nothing.
    Best regards,
    Jarle Ekanger, MSc, CLD
    Flow Design Bureau AS

  • How do i stop getting the page about syncing, it opens a window everytime for this action

    how do i stop getting the page about syncing, it opens a window everytime I start firefox

    It sounds like it's loading as (part of) your homepage. Have a look in Tools | Options | General.
    See [[How to set the home page]] for more info.

  • HT204150 Help! My iCloud contacts is fine. The contacts in my iPhone are a mess. Tons of dupes, folks long deleted etc...How do I only have the contacts in iCloud sync to my iphone?

    My iCloud contacts is fine. The contacts in my iPhone are a mess. Tons of dupes, folks long deleted etc...How do I only have the contacts in iCloud sync to my iphone?

    Download the free app My Contacts Backup.  Go to Settings>iCloud, turn Contacts to Off, when prompted choose Delete from My iPhone.  Check the contacts on your phone.  If you have any left on your phone, launch My Contacts Backup, tap the gear shaped icon on the bottom right, scroll to the bottom and tap Remove All Contacts.  When finished, go back to Settings>iCloud and turn Contacts back to On to sync the unduplicated contacts back to your phone from iCloud.
    Also, be sure you aren't trying to sync your contacts with both iCloud and iTunes or you will get duplicates.

  • How can I get/Catch the information about Trigger firing?

    How can I get/Catch the information about Trigger firing?

    I am running one application (backend is Oracle) and have written one trigger, which will insert one row in two tables depending on user event (After Update Trigger).
    I want know last fired Trigger Information.
    Thanks

  • How to get a case structure to execute only once in a loop

    I have a while loop that is monitoring temperature. Once the temperature meets or exceeds a given setpoint I want to start a timer. At this point I don't want to monitor the temperature anymore. That is, if the temperature should drop below the setpoint, I don't want to execute the case structure again when the temperture meets or exceeds the setpoint(the temp may oscillate about the setpoint for a given period of time). In any event, I need the case structure to execute only one time, not every iteration of the loop.

    You can put a local Boolean variable "Flag" inside that case structure and
    set "Flag" to False. Outside the case structure, use an "AND" function
    output to control the case structure. The "AND" function has two inputs. One
    goes to the comparison results between real temp and setpoint. The other
    inputs connects to the "Flag" variable. In this way, once you entered that
    case structure, the "Flag" will be turned to False, and then in next
    iteration, you won't get into the case again because the "AND" function will
    be False as your "Flag" is False now.
    Hope this helps.
    Rentian
    1. Inside the case structure, put a
    "BB Herman" wrote in message
    news:[email protected]..
    >I have a while loop that is monitori
    ng temperature. Once the
    > temperature meets or exceeds a given setpoint I want to start a timer.
    > At this point I don't want to monitor the temperature anymore. That
    > is, if the temperature should drop below the setpoint, I don't want to
    > execute the case structure again when the temperture meets or exceeds
    > the setpoint(the temp may oscillate about the setpoint for a given
    > period of time). In any event, I need the case structure to execute
    > only one time, not every iteration of the loop.

  • Execute delay only once the entire time

    I need ideas on how to execute a delay only once after start (and that's it, no more calling the delay ever again after start) in a while loop without affecting other codes in that same loop...
    Something like this http://forums.ni.com/t5/LabVIEW/put-a-delay-for-executing-case-structure/m-p/1095396/highlight/true#... but it is not working

    Why? That makes no sense. You need to change the loop termination inside the subVI as I already mentioned.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    DelayMod.png ‏10 KB

Maybe you are looking for

  • Setup for simple office wireless network.

    I want to set up a small office networked environment. I have a an Airport Extreme Mac OS X Sever running on an iMac A number of Macbook Pro's as client. As I set this up, a quick - newbie - thought. Do I set the server behind the airport extreme (co

  • Displaying HTML page in an application

    Hello all, I want to display an html page in my application. I looked into HotJova HTML Component but Sun doesnt offer this component anymore. Does anyone have any idea of how can I complete this task. Any help will be appreciated. Thank you

  • MB21- Hard Reservation Issue.

    Hi Experts, I have a scenario at my client... We have a stock for the matl A2552A - 200 Qty. Engineering dept creates HARD reservations for material A2552A for 15th Oct'08 using MB21 with mvt type 201 for a cost center for 100 Qty. Now a STO for the

  • How to get start visualization in java

    Hello Multimedia Guru, I just stepped in this field of Java, and actually I have to draw few 3D and 2D Histogram, scatter Plot and surface plot. Please let me know, how to start to get familiar with this part of Java. I would really appreciate any so

  • Surround Sound for Blu Ray

    Wondering how this is done... I take it using the Media Encoder and Encore?  Thanks.