Label printing should be only once for a material doc number

Hi,
we have a tcode in which if we provide a material doc no. and number of prints..but once we print the labels,
then again if we have to print for the same material doc no..it should not print..instead it should ask for permission to print that number again..is there any option available in scripts to do like this?

try to maintain ztable
                 ztable fields document no , printed...
  such that to identify the docu no has been printed previously r not...
select single printed  from ztable into printed where  docu no = p_document.
    if printed = X
      if it is printed then try to pop up a screen such thst to approve it ....
       else.
     print it strightly.....

Similar Messages

  • Print should come only once per document number

    Hi All,
    I have done a script for the WC Document,
    But now the client requires it to print it only once for a particular document number,
    How can we do. Is there any such coding to restrict the print only once per document.
    If anyone knows the solution please post it

    hi
    check the entry in nast table if you find more than 1 enrty that is repeated print .....
    select objky
             kschl
             erdat
             eruhr
             vstat from nast into table gt_date
             where objky eq gv_del_num. ---> document number
      if sy-subrc eq 0.
        sort gt_date by objky erdat descending .
        describe table gt_date lines lv_n.
        if lv_n gt 1.
          gv_repeat = lc_x.
        endif.

  • How to set a payload field value only once for multiple instances selected?

    The user needs to set a payload field value and then he can approve the task so the task can continue through the process, that's fine when the user selects one instance and sets the value in the task details section and then clicks the approve button, but how do we achieve the same behavior in a multiple way?, I mean the user can select multiple tasks in the workspace (in this case the details task page is not available and instead the following label appear "Multiple tasks selected") then if the user clicks the Actions drop down -> APPROVE he only gets the message "your request was processed successfully", so how can the user modify the payload field value only once for all the selected tasks so when he clicks APPROVE the value is populated in all the instances selected.
    Thanks,
    Carlos.

    In the action which displays the edit page just set the form idx value before displaying the jsp.

  • Need to display records only once for that particular group

    Hi,
    I have a requirement like displaying repeated records only once for that particular group.
    For eg, in the emp table, I need to display repeated deptno only once for the particular group of job.
    And for the above requirement I have used the below query,
    SELECT empno, DECODE (LAG (job, 1) OVER (ORDER BY job), job, NULL, job),
    DECODE (LAG (deptno, 1) OVER (ORDER BY deptno), deptno, NULL, deptno)
    FROM emp;
    Output:
    EMPNO     JOB     DEPTNO
    7782          10
    7934     CLERK     
    7839     PRESIDENT     
    7876          20
    7788          
    7902     ANALYST     
    7566     MANAGER     
    7844          30
    7900          
    7654     SALESMAN     
    7698          
    But in the above output you can find that, say deptno 10 is getting displayed only once, whereas I want that deptno 10 to be checked whether it is getting repeated within the group of JOB and than hide the deptno 10 only if it is repeated within that job group. If not, deptno 10 should be displayed again.
    Please help me in this.
    Regards,
    Shiva

    Hi,
    Hope the below helps.
    SELECT emp_id, job, deptno,
           CASE WHEN LAG(deptno, 1) OVER (partition by job order by deptno) = deptno THEN null else deptno end
      FROM empRegards
    Ameya

  • Why java allow start() method only once for a thread

    Hi ,
    Why java allows start method only once for thread . suppose
    Thread t = new Thread();
    t.start();
    say at later stage if again we call t.start() IllegalStateException is thrown , even though isAlive method returns false.
    Hence the question , why start() method is allowed only once.If you need start a thread , we need to create a new instance.

    Really. Why do you think that? Do you have any evidence? It is one of the first things I would think of, personally.Considering that the Thread API doesn't allow you to specify a stack address (only stack size), I think it demonstrates they wanted to remove that capability from their Thread API all together. That missing "capability" makes me believe they want me to believe it's not something I need to worry about when using their API... I think the exact semantics of the Thread class and its methods were driven by how to make it most understandable and usable for their customers. I'm certain this issue was one of many that was given considerable thought during the design and implementation of the JVM and the underlying runtime classes.
    Do I have any evidence? No. But if you can point me at some first-hand information on this, I'd love to read it. Most of what I've found is second or third hand accounts. (and I mean that sincerely, not as a smart-ass remark or rebuke of your comments).
    On the one hand you seem to think the Java API designers are idiots, on the other hand you think that they should be. I can't make it out.I thought my position was that the Java developers were talented enough to implement platform in whatever way their API called for; hence, the designers made a choice about how they wanted their API to be used by their customers. They decided which capabilities they wanted to include or exclude, and created an API that was consistent with their vision for this technology. While I'm certain technical limitations had an effect on the API design, I certainly don't think the API was dictated by the them.
    I think the current design of the Java Thread API was a reflection of their vision to make Threading easier and more accessible to Joe Programmer, not limitations in the implementation. I never said it was wrong or that I could do better... I just said I think they could have done something different if they decided it would have made for a better customer experience. But hey, maybe I'm wrong.

  • Redirected printers using Remote Desktop Easy Print driver work only once during session

    Hello all
    We are running Windows Server 2012 R2 Remote Desktop Services Sessions hosts with printer redirection allowed using only the Easy Print Driver, we have no other drivers installed on the servers. All client printers are redirected and can print fine, but
    only once per session! We have tested with several different client printers and they all work a single time in each session. After that the user needs to log off and then back on again to be able to print once again, but only once. Needless to say, our users
    are annoyed. If I look at the c:\windows\system32\spool\printers folder while jobs are printing, but failing, I can see the spool files appearing and disappearing as jobs are spooled. No errors in the event logs accompany the behaviour. Our clients are running
    Windows 7, 8 and 8.1. All exhibit the same problem. The error looks a little like what is described here:
    http://support.microsoft.com/kb/2925429
    While similar, this problem describes a scenario where Easy Print is not used, but XPS is, and since Easy Print is based on XPS and the behaviour is very similar, I am tempted to make a connection.
    I have checked all the usual stuff with permissions etc, and no manufacturer provided drivers are present. The problem appears on newly installed systems as well as one that have been running for some time. Restarting the spooler services does not resolve
    the problem. Actually I do not think it is related to the spooler service or driver framework at all, but rather is an Easy Print driver issue that is occurring much later in the process, if not I would see some errors in the logs and no jobs would print at
    all.
    Anyone ever heard of something like this?
    Thanks
    Morgan

    Hi Morgan,
    Based from your description, users can only print once during single RDP session, I suggest you check if this issue also happens locally.
    In addition, after the first print attempt, does any other issue exist on the RDP session?
    Is the server fully patched? If there are any available driver updates, please also apply them. If there are any third party software installed, try disable/uninstall them to see if the issue persists.
    You can also enable print auditing to get more detailed information about this issue.
    More information for you:
    Auditing Printing Events
    https://technet.microsoft.com/en-us/library/cc976774.aspx
    Logging Spooler Events
    https://technet.microsoft.com/en-us/library/cc976746.aspx
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]

  • Popup with window.open should arise only once onclick

    i want a popup that should arise only once onclick but i am getting that popup how many times i am clicking

    That's a JavaScript problem. This forum is about Java. Java and JavaScript don't have anything in common apart from the first 4 letters of the name and a superficial similarity in syntax.
    You'll get better help in a JavaScript forum.

  • Printing portfolio - but only document for document ...

    Hi there,
    I am suffering the following difficulty: I received a pdf-portfolio which contains 10 different documents. For an unknown reason there is for me no possibility given to print them all at once. So I do have to initiate printing for every single document and sort it afterwords -- which isn't funny at all ...
    In the online-help from Adobe I found the hint, that I should mark all the documents in the side bar at the left. But this doesn't work either. There doesn't appear the promised windows that asks if I want to print a single document or all that are marked.
    Who can give me the answer what I am doing wrong?
    Thanks a lot in advance!
    schungala

    Well then, it took a little while but eventually the problem has been solved!
    I deinstalled the newest version of the reader and
    installed the version 9.0.0.
    The print-dialogue from now on appears exactly as should be, I can decide eather to print some or to print all of the included documents.
    So it seams as if there exists a bug which does't cause trouble for numerically enough people to become mentioned.
    Who found out this solution?: http://www.m-dv.de/
    schungala

  • The bidder should quote only once in LAC

    Dear Experts,
    We have a special requirement in LAC.
    The bider should be able to quote only once in the LAC. Can there be any BADI to achieve this?
    The exact details of the business requirement is as below:
    We would like to have 2 document types of Auction. One is "Preliminary auction". Other is "Final Auction".
    We need above correction in the document type viz "preliminary auction", the other document type "final auction" should work as it is in standard SAP.
    Kindly suggest.
    GH

    My suggestion would be the same as Masa's. RFP is the right venue for your "preliminary" type of price quote. Except for the "Live" feature, other requirements, such as driving down price could be achieved. An example would be the following:
    1. Define a custom field for RFx that essentially stores the latest bidder price quote
    2. When a bidder responds, in BBP_DOC_SAVE_BADI for BUS2202 (response), update that custom field with the response item price
    3. In BBP_DOC_CHANGE_BADI for BUS2202 (response), check the bid price against the preceding RFx's item custom field mentioned above and throw error message if the quoted price is higher.

  • Help: I want to auto schedule a load using file watcher but it runs only once for the first time and after that it is not running at all

    Hi All,
    I am trying  to execute the below code as provided from one of the blogs. i am able to run the job only once based on a file watcher object(i.e. for very first time) and after that the job is not running at all and if  i schedule the job to run automatically based on interval of 10 or more minutes it is executing properly). Please let me know or guide me if i have missed any step or configuration.that is needed.
    Version of Oracle 11.2.0.1.0
    OS : Windows 7 Prof
    Given all the necessary privileges
    BEGIN
      DBMS_SCHEDULER.CREATE_CREDENTIAL(
         credential_name => 'cred',
         username        => 'XXXX',
         password        => 'XXXX');
    END;
    CREATE TABLE ZZZZ (WHEN timestamp, file_name varchar2(100),
       file_size number, processed char(1));
    CREATE OR REPLACE PROCEDURE YYYY
      (payload IN sys.scheduler_filewatcher_result) AS
    BEGIN
      INSERT INTO ZZZZ VALUES
         (payload.file_timestamp,
          payload.directory_path || '/' || payload.actual_file_name,
          payload.file_size,
          'N');
    END;
    BEGIN
      DBMS_SCHEDULER.CREATE_PROGRAM(
        program_name        => 'prog1',
        program_type        => 'stored_procedure',
        program_action      => 'YYYY',
        number_of_arguments => 1,
        enabled             => FALSE);
      DBMS_SCHEDULER.DEFINE_METADATA_ARGUMENT(
        program_name        => 'prog1',
        metadata_attribute  => 'event_message',
        argument_position   => 1);
      DBMS_SCHEDULER.ENABLE('prog1');
    END;
    BEGIN
      DBMS_SCHEDULER.CREATE_FILE_WATCHER(
        file_watcher_name => 'file_watcher1',
        directory_path    => 'D:\AAAA',
        file_name         => '*.txt',
        credential_name   => 'cred',
        destination       => NULL,
        enabled           => FALSE);
    END;
    BEGIN
      DBMS_SCHEDULER.CREATE_JOB(
        job_name        => 'job1',
        program_name    => 'prog1',
        queue_spec      => 'file_watcher1',
        auto_drop       => FALSE,
        enabled         => FALSE);
      DBMS_SCHEDULER.SET_ATTRIBUTE('job1','PARALLEL_INSTANCES',TRUE);
    END;
    EXEC DBMS_SCHEDULER.ENABLE('file_watcher1,job1');
    Regards,
    kumar.

    Please post a copy and paste of a complete run of a test case, similar to what I have shown below.
    SCOTT@orcl12c> SELECT banner FROM v$version
      2  /
    BANNER
    Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
    PL/SQL Release 12.1.0.1.0 - Production
    CORE    12.1.0.1.0    Production
    TNS for 64-bit Windows: Version 12.1.0.1.0 - Production
    NLSRTL Version 12.1.0.1.0 - Production
    5 rows selected.
    SCOTT@orcl12c> CONN / AS SYSDBA
    Connected.
    SYS@orcl12c> -- set file watcher interval to one minute:
    SYS@orcl12c> BEGIN
      2    DBMS_SCHEDULER.SET_ATTRIBUTE
      3       ('file_watcher_schedule',
      4        'repeat_interval',
      5        'freq=minutely; interval=1');
      6  END;
      7  /
    PL/SQL procedure successfully completed.
    SYS@orcl12c> CONNECT scott/tiger
    Connected.
    SCOTT@orcl12c> BEGIN
      2    -- create credential using operating system user and password (fill in your own):
      3    DBMS_SCHEDULER.CREATE_CREDENTIAL
      4       (credential_name     => 'cred',
      5        username          => '...',
      6        password          => '...');
      7  END;
      8  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- create table to insert results into:
    SCOTT@orcl12c> CREATE TABLE ZZZZ
      2    (WHEN      timestamp,
      3      file_name varchar2(100),
      4      file_size number,
      5      processed char(1))
      6  /
    Table created.
    SCOTT@orcl12c> -- create procedure to insert results:
    SCOTT@orcl12c> CREATE OR REPLACE PROCEDURE YYYY
      2    (payload IN sys.scheduler_filewatcher_result)
      3  AS
      4  BEGIN
      5    INSERT INTO ZZZZ VALUES
      6        (payload.file_timestamp,
      7         payload.directory_path || '/' || payload.actual_file_name,
      8         payload.file_size,
      9         'N');
    10  END;
    11  /
    Procedure created.
    SCOTT@orcl12c> -- create program, define metadata, and enable:
    SCOTT@orcl12c> BEGIN
      2    DBMS_SCHEDULER.CREATE_PROGRAM
      3       (program_name          => 'prog1',
      4        program_type          => 'stored_procedure',
      5        program_action      => 'YYYY',
      6        number_of_arguments => 1,
      7        enabled          => FALSE);
      8    DBMS_SCHEDULER.DEFINE_METADATA_ARGUMENT(
      9       program_name         => 'prog1',
    10       metadata_attribute  => 'event_message',
    11       argument_position   => 1);
    12    DBMS_SCHEDULER.ENABLE ('prog1');
    13  END;
    14  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> BEGIN
      2    -- create file watcher:
      3    DBMS_SCHEDULER.CREATE_FILE_WATCHER
      4       (file_watcher_name   => 'file_watcher1',
      5        directory_path      => 'c:\my_oracle_files',
      6        file_name          => 'f*.txt',
      7        credential_name     => 'cred',
      8        destination          => NULL,
      9        enabled          => FALSE);
    10  END;
    11  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> BEGIN
      2    -- create job:
      3    DBMS_SCHEDULER.CREATE_JOB
      4       (job_name          => 'job1',
      5        program_name          => 'prog1',
      6        queue_spec          => 'file_watcher1',
      7        auto_drop          => FALSE,
      8        enabled          => FALSE);
      9    -- set attributes:
    10    DBMS_SCHEDULER.SET_ATTRIBUTE ('job1', 'PARALLEL_INSTANCES', TRUE);
    11  END;
    12  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- enable:
    SCOTT@orcl12c> EXEC DBMS_SCHEDULER.enable ('file_watcher1, job1');
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- write file (file must not exist previously):
    SCOTT@orcl12c> CREATE OR REPLACE DIRECTORY upncommon_dir AS 'c:\my_oracle_files'
      2  /
    Directory created.
    SCOTT@orcl12c> declare
      2    filtyp utl_file.file_type;
      3  begin
      4    filtyp := utl_file.fopen ('UPNCOMMON_DIR', 'file1.txt', 'W', NULL);
      5    utl_file.put_line (filtyp, 'File has arrived ' || SYSTIMESTAMP, TRUE);
      6    utl_file.fclose (filtyp);
      7  end;
      8  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- wait long enough (may take more than one minute) for job to run:
    SCOTT@orcl12c> EXEC DBMS_LOCK.SLEEP (100)
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- check for results:
    SCOTT@orcl12c> SELECT * FROM zzzz
      2  /
    WHEN
    FILE_NAME
    FILE_SIZE P
    22-OCT-13 10.12.28.309000 PM
    c:\my_oracle_files/file1.txt
            57 N
    1 row selected.
    SCOTT@orcl12c> declare
      2    filtyp utl_file.file_type;
      3  begin
      4    filtyp := utl_file.fopen ('UPNCOMMON_DIR', 'file2.txt', 'W', NULL);
      5    utl_file.put_line (filtyp, 'File has arrived ' || SYSTIMESTAMP, TRUE);
      6    utl_file.fclose (filtyp);
      7  end;
      8  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- wait long enough (may take more than one minute) for job to run:
    SCOTT@orcl12c> EXEC DBMS_LOCK.SLEEP (100)
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- check for results:
    SCOTT@orcl12c> SELECT * FROM zzzz
      2  /
    WHEN
    FILE_NAME
    FILE_SIZE P
    22-OCT-13 10.12.28.309000 PM
    c:\my_oracle_files/file1.txt
            57 N
    22-OCT-13 10.14.08.580000 PM
    c:\my_oracle_files/file2.txt
            57 N
    2 rows selected.

  • Need to populate value for a KF only once for a combination of characterist

    Hello All,
    We had a requirement for a report. wherein we need to consolidate the data of the 0FI_GL_4 datasource and a custom table.
    both these sources have only 4 fields in common i.e Fiscal Year/Period; Company Code and Pool
    in the custom table, for each fiscal yr/period & Pool combination, there is a unique Plan value available.
    To consolidate the data, I wrote a routine in the transformation to extract data from the custom table based n the combination of Fisc yr Period, Comp Code & Pool.
    However, since 0FI_GL_4 has more than 1 entry for the above mentioned combination  that is GL_accounts, document number, etc; during extraction, my plan value is being extracted multiple times to the cube and hence for a fiscal yr/period, cube shows a summation value.
    I want the plan value to be picked only once.. please advice

    Hi Sneha,
    As I understand in your infocube along with the primary key of custom table one more field exists e.g. Document number and due to which the value is getting repeated over multiple lines.
    Though all these records are valid but when you are running report on this cube without document number all the plan values are getting aggregated, again this behaviour is also correct.
    For your reporting purpost I feel that you need to extract data from the custom table in other data target and then do the reporting on that, wherein the plan value will not be repeated.
    Regards,
    Durgesh.

  • Running a query only once for a report in Reports 6i in a BEFORE REPORT trigger.

    Hello all -
    I am using Oracle Reports 6i on Windows NT 4.0 SP 6.0.
    The report I am converting from Access to Oracle Reports is
    rather complex, and features detail by decile (a rank) within
    territory (geographical sales area). Also it features a summary
    at the bottom of each territory/decile combination which
    summarizes not only the territory information, but goes above
    that to higher levels like district, region, and national.
    With the help of a consultant, we have managed to get the report
    almost finished. However, we are running into a snag with the
    summary. While my two main queries need to run in the data
    model as normal, I would like to run the summary query _only
    once_ during the entire cycle of the report, and have the report
    fields populated once for the entire report. This is possible
    because for a district, the summary numbers are the same on
    every page of the report, only the territory information
    changes. So by only having the query run once and fill the
    report values once, this would save considerably on the report
    runtime.
    However, I have tried a few different methods but cannot get the
    report to recognize the fields in the query, most likely because
    they are out of scope at report creation. Does anyone have any
    ideas on how I can accomplish this in Reports? Any help would
    be appreciated - I hope my question was clear, if not please let
    me know.
    Thanks,
    -Jennifer Prichard

    Hello!
    You can place in the data model editor formula and placeholder
    columns outside of any groups. I think you need for each of your
    summary-attibutes a placeholder column and one formula column.
    Use the formula column to populate the placeholders via PL/SQL.
    Afterwords you can reference the placeholders anywhere you want.
    Regards,
    Hajo Winkler

  • Read config file only once for beans

    I want to read onfiguration file Myconfig.cfg with many global values (server IP, port, database URL, pages, etc) I'm using a bean but every time a JSP or servlet create an instance of that bean all the data has to be read form disk...
    I know that if I put the code for reading the file in the init() method in a servlet it is called only once, but how do I read those values from another servlet or JSP, ???
    What is the best solution...

    You can put initiation parameters in your web.xml file and write a servlet that is called on startup. Once the values are read you can put them into the application scope. (i.e. application.setAttribute("jdbcUrl", jdbcUr); )
    Then in your JSP pages you can take them out by using the application.getAttribute("jdbcUrl"); method.

  • Mass activity running only once for custom parallel object

    Hi
    I have created custom parallel object EXT_UI and created mass activity for this but the report in triggered only once and not going for second interval .
    Can any one help me out in this.
    Thanks in advance.
    Chetan
    Message was edited by: CHETAN N P
    Mass activity is running fine for standard object ANLAGE but not for custom one
    Please share me steps to be followed in creating custom parallel object.
    Regards,
    Chetan

    Hi Chetan,
    I think you need to make changes in the Events which gets triggered by the mass activity.
    Can you let me know the mass transaction code for which you have customised the activity,
    Thanks,
    Amlan

  • Asking only once for a parameter...

    Post Author: Nightcrawler
    CA Forum: Data Connectivity and SQL
    Hi,
    I have a report which need to select a list of items for a dynamic lookup for the report. I have created two stored procedure in SQL which work in QA. When I link them to a report I get asked for the date range twice. This is because the two stored procedures ask for the date range for them to select data. The parameter names are the same in each stored procedure. Basically I want the screen to ask me for the date range then give me a popup list based on the items. Then pass this to the second stored procedure to run for the report ??
    How is best to do this ?
    Thanks
    Ed

    Post Author: Nightcrawler
    CA Forum: Data Connectivity and SQL
    Hi,
    No there are no refs in the section expert. Not sure what you mean by in and out but ? The date is passed to the sp but not returned.
    It seems everytime I want to do a dynamic pararmeters for the first sp. It asks me for the varaibles but not the ones listed in field explorer.... IE if I link the field explorer fields for the first sp to the subreport it asks for the date twice ?? Once for the first sp ( I can tell this as it has the name of one of the sp fields in the top right of each question) and then again for the paremeters that are in the field explorer - which I have given a description, thus I can tell there the next set.
    Surely thou these first parameters are the same ?? Is there a way of changing the priority...
    It seems a complex system for something that should be very simple.
    All I want is to pass two date values to have a dynamic list of rooms wchih are valid. Then pass the same date variable and the chosen room to the next sp... but prefrable without the duplicate date asking .....
    I've just read the subreport linking docs but its doesnt help as everytime you refernace the parameters from the first sp that are shown in field explorer, it asks duplicate questions.
    Just to make this clearer - when I say duplicate questions I mean it is obiviously runs the sp first then for those variables. Then it runs the report and asks for the field explorer variables which it has created when I first referanced the sp. Does this make sense ???
    Thanks
    Ed

Maybe you are looking for

  • Performance Financial Reporting 11.1.2.1 vs 11.1.2.2

    Dear HFM Admins, We have migrated to the new HFM 11.1.2.2.302 version. The reports were exported and then imported into the new version from 11.1.2.1. The performance differences are quite substantial. A report which ran 2 minutes in the old 11.1.2.2

  • Just got a macbook pro won't let me screenshot help?

    Just got my Macbook pro yesterday, and its been letting me screenshot, Ive done the command plus shirt key plus the F3 key, it was working, and now whenever I do that it keeps dragging the page up, and I have no idea why? help would be much appreciat

  • PM-Work order execution start and finish date

    Hi, I'm looking for the SAP PM standard datasources which includes the fields ISDD,ISDZ,IEDD and IEDZ. Upon investigation i could find a data structure DIAFRU which includes these fields. Can we create a generic datasource on top it and extract the d

  • Login Fails

    Hi, I created new user through shared service in Essbase 11.1.1.3. But when i want to login through the same credential it fails to login. What could be the reason. Thanks

  • Outlook 2007 SP3 can't connect to Exchange 2013

    Outlok 2007 with latest hotfixes Freshly migrated mailboxes Gives the error  Can't open outlook-The set of folders cannot be opened Cert has internal FQDN name. Encryption is disabled Any pointers?