Number of times the record to be printed in Oracle reports

I have a requirement to print each record in specified number of times based on one of the field of
the record.
For Ex: Each record has the following fields and I need to print each record based on Quantity
Cust PO Number Item Number Quantity
PO1234          1P1 20
PO3456          1P2 15
I need to print the first record 20 times and second record 15 times.
Can you please suggest if we can set any parameter or printer option before each record to direct it to be printed in specified number of times?
Thanks,
Rakesh

WITH DATA AS (SELECT 'PO1234' CUST_PO_NUMBER, '1P1' ITEM_NUMBER, 20 QUANTITY FROM DUAL
              UNION ALL
              SELECT 'PO3456' CUST_PO_NUMBER, '1P2' ITEM_NUMBER, 15 QUANTITY FROM DUAL
     COUNTER AS (SELECT LEVEL LVL FROM DUAL CONNECT BY LEVEL<1000)
SELECT * FROM DATA, COUNTER WHERE LVL<=QUANTITYreplace the first with-path (data) with your table

Similar Messages

  • Determine the number of times the document has been printed

    Hi all,
    I have a form here ( SAPSCRIPT), there is certain field to show how many times the document
    has been printed, i use NAST-ANZAL, but it seems to display no correct value.
    Am I using the riht field anyway? Or missing something?
    Thanks ,,
    AUD

    Hi,
    Check for the field NAST-VSTAT.
    IF NAST-VSTAT = '1' meaning that document  is printed.
    Refer below example from NAST entries.  4000010000 document is printed 4 times.
    OBJKY                          KSCHL SPRAS PARNR      PARVW USNAM        VSTAT
    4000010000                     ZSGI  E                      XXXXXXX                             1
    4000010000                     ZSGI  E                      XXXXXXX                             1
    4000010000                     ZSGI  E                      XXXXXXX                              1
    4000010000                     ZSGI  E                      XXXXXXX                             1
    Rgds,
    Arun

  • Can I find the number of times the recorded meeting has been viewed?

    In Adobe Connect is it possible to find the number of views after a recorded meeting is made public? Under meeting dashboard it keeps track of these views for 30 days but I can not seem to find anywhere under the reports where this information is located.

    If you move the recordings to the Content Library, then you can pull the standard content reports for it, which will tell you number of views.

  • Need to count the number of times the Basic Finish data chages

    HI Expertes,
    I have a requirement I need to count number of times the Basic finish date chaged for PM work order. I went throug our forums I got some info like using a standard function module
    CHANGEDOCUMENT_READ_HDRS_ONLY
    CHANGEDOCUMENT_READ_HEADERS
    CHANGEDOCUMENT_READ_POSITIONS
    But all the above function module will not be suitable for my requirement since  CHANGEDOCUMENT_READ_HDRS_ONLY it gives whole changes but my requirement is just need number of changes occurred in Basic Finish date but CHANGEDOCUMENT_READ_POSITIONS can give the filed number which has been changed but still I need change id.
    So kindly suggest me wether there is any other Standard FM to get number of changes occurred in Basic Finish date?
    Thanks,
    Rajesh

    Hi Debbie,
         To count the number of groups please try the folling steps:
    1) Create a formula @reset and place this formula in the page header
        whileprintingrecords;
        numbervar i:=0;
    2) Create another formula @evalgroup place this in the group header where you want to count the values.
        whileprintingrecords;
        numbervar i:= i+1;
    3) Create another formula @display and place this in report footer.
        whileprintingrecords;
        numbervar i;
    In order to display the count of details which are printing in the detail section place the eval formula in the detail section and the @display formula in the group footer.
    Hope this helps!!!
    Regards,
    Vinay

  • How to increase the width of a field in oracle reports 6i

    Hello,
    I'm facing a problem related to width of field. I have a table with field abc varchar2(1500) and when I try to show it in report. I'm unable to see complete data because field size in report is 300.
    Kindly guide me to increase the size/width of field in oracle report 6i
    thanks in advance
    sadiq

    Post your question on Reports forum
    Reports

  • IPP printing and Oracle Report

    Hi all,
    I got reports error out when using IPP printer. It bursts out REP-177 and REP-713 errors in fact. Could anybody advice how-to use IPP printer with Oracle Report ?

    10g is not support IPP, this implement on 11g Report

  • Number of Times the table has been accessed

    Hi,
    How to find the number of the times the table has been accessed or read ?
    Regards,

    You can do it with 9i
    http://www.mpi-inf.mpg.de/departments/d5/teaching/ss05/is05/oracle/server.920/a96521/audit.htm
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com

  • How to print the display 2D Barcode details in Oracle Reports

    Hi Experts,
    Can you pleas share the approach to print the 2d Bar code in reports
    we have requirement from our Customer to
    display 2D Barcode details in Oracle Reports (In the Invoice print or in
    Annexure).
    Following are details we have carried out so far :-
    1. We have got JAR file from the Vendor.
    2. We have loaded the JAR File in the FND_TOP.
    3. Then we tried to call the same in the report.
    But we got struck here, didn't know how to proceed further because the
    JAVA Class is not loaded in Oracle Database.
    Kindly help us as to how to achieve the same.

    What jar is it? What is fnd_top? To load java in the database there are several methods. Please use google to find them, or oracle documentation.
    Version of reports?
    Edited by: Lars Sjöström on Nov 25, 2012 11:37 PM

  • Printing forms - Oracle Reports in Oracle apps

    Hi
    I am tring to print the Despatch Order, We have a standard form for this purpose . . . I need to print the data into the right columns. . .
    I am using Oracle Reports to pring these forms . . .Is there a standard way to place these items into correct location, to be able to print a neat form.
    Or do I have to got the trial and error way . .. actually I even tried using the scale on the layout model window . .. did not give you nice result . ..
    Regards
    Jagan.

    You may scan the form and use it as report background. Once you will be able to align the backgroupnd with the real form on printing (by iterations, there is no other way), you may use the backgroupnd to position all the field, and then delete the backgroupnd.
    Another option would be to always use the background and pring on the plain paper.

  • Need help on -- Pre printed stationary. oracle report

    Hi ,
    We have developed new oracle report which prints AR invoices... This is displaying properly from apps.. but when sent to printer .. the first page is printing properly .. from second page onwards .. it is leaving one blank line...
    1 page -- ok..
    2nd page --- 1 line
    3rd page ---- 2 lines ... and so on it is getting incremented one line per page...
    I have checked properties for all the groups and frames .. but no luck..
    Will there be any printer setup causing this problem ... ??
    can throw some light on this ..?
    Thanks in advance ..
    Naveen

    Hello,
    You can take a look to :
    http://www.bizfonts.com/oracle/
    and
    http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b13895/orbr_barcode.htm
    Regards

  • Serial Number generation for the records in a Z-Table

    Hi,
    I have created a Z-Table to store Request Details. User provides the details of the request.
    when ever user saves the Request i will generate the Request Number.
    My Constraint is these Request Numbers must be in serial.
    I don't want to hit the database every time to know what the Latest Request Number is? Because these requests would be in thousands. Please suggest me the better way.
    Thanks,
    Sekhar.J

    u can do this by using Number Range...
    Maintain number range and intervals in transaction code SNUM
    Coding...
    call function 'NUMBER_RANGE_ENQUEUE'
             exporting
                   object              = 'ZOWNNO'   "Create with SNUM
             exceptions
                   foreign_lock        = 1
                   object_not_found    = 2
                   system_failure      = 3
                   others              = 4.
      if sy-subrc ne 0.
    *   message e086 with 'Lock error' sy-subrc.
      endif.
      call function 'NUMBER_GET_NEXT'
             exporting
                   nr_range_nr         = wnorange
                   object              = 'ZOWNNO'
                   subobject           = wsubobj
             importing
                   number                  = wdocno  "Number generated by SAP
             exceptions
                   interval_not_found      = 1
                   number_range_not_intern = 2
                   object_not_found        = 3
                   quantity_is_0           = 4
                   quantity_is_not_1       = 5
                   internal_overflow       = 6
                   others                  = 7.
      if sy-subrc ne 0.
    *   message e086 with 'Number Range' sy-subrc.
      endif.
      call function 'NUMBER_RANGE_DEQUEUE'
        exporting
          object                 = 'ZOWNNO'.
      if sy-subrc <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.

  • How can I run a counter by number of times the script is run

    So I've created a script for disabling exchange mailboxes and moving them to a disabled OU in AD.  I currently have this set to run once a week via scheduled tasks but instead would like to kick it up to nightly and improve on the logging.
    Right now, the only items I record are the name of the person and the OU they were originally in.  I'd also like to include the groups they were a member of.  I could easily enough include all the groups they were a member of in the email but here
    is the twist.
    Since we are going to a nightly run of this script, we would want to keep at least a weeks worth of logs in a text file as a just in case.  After a week, the log would be cleared.  I know that would be a counter but I can't even wrap my mind around
    how that would work.  Is it even possible?
    #Finds all users who have the AD attributes
    # wWWHomePage = Updated_by_GroupID
    # msExchHideFromAddressLists = True
    # msExchHomeServerName not empty
    # emailaddress contains @MyDomain.com
    # useraccountcontrol = 514 (disabled)
    Import-Module ActiveDirectory
    add-pssnapin Microsoft.Exchange.Management.PowerShell.E2010
    #Declare Variables
    $users = $null
    $ADgroups = $null
    $username = $null
    $user = $null
    $LogFile = "C:\Scripts\TerminateUsersLogFile.txt"
    $LogFile2 = "C:\Scripts\UserNamesMovedtoDisabledOU.txt"
    $EmailLogTo = "[email protected]"
    #Generates log file
    Start-Transcript -path $LogFile
    #Performs search for all users in AD filtering only AD user with wWWWHomePage = Updated_by_GroupID, msExchHideFromAddressLists = True, msExchHomeServerName not empty and emailaddress contains @MyDomain.com
    $users = Get-ADUser -properties name, emailaddress -Filter {(HomePage -eq "Updated_by_GroupID") -and (msExchHideFromAddressLists -eq $true) -and (emailaddress -like "*@MyDomain.com") -and (msExchHomeServerName -ne "$null") -and (useraccountcontrol -eq "514")}
    $users.name -Replace '^cn=([^,]+).+$','$1'
    #loops through all users
    foreach ($user in $users){
    $user.name -Replace '^cn=([^,]+).+$','$1'
    #Copies the current OU into the Notes field in the AD User Object.
    $newvar = ($user).distinguishedname
    set-aduser $user -replace @{info="$newvar"}
    # Removes user from all AD groups except Domain Users.
    $ADgroups = Get-ADPrincipalGroupMembership -Identity $user | where {$_.Name -ne "Domain Users"}
    Remove-ADPrincipalGroupMembership -Identity "$($user)" -MemberOf $ADgroups -Confirm:$false
    #Disables their Exchange Mailbox.
    Disable-Mailbox -Identity $user.EmailAddress -Confirm:$False
    #Moves their AD user object to disabled OU.
    Move-ADObject -Identity "$($user.DistinguishedName)" -TargetPath "Disabled Users OU" -Confirm:$false
    Write-Output $user.name >> C:\Scripts\UserNamesMovedtoDisabledOU.txt
    Stop-Transcript
    # Email the log file
    $emailFrom = "[email protected]"
    $emailTo = $EmailLogTo
    $subject = "Terminated Users Cleaned in AD"
    $content = Get-Content $LogFile2 | ForEach-Object {$_.Split("`r`n")}
    $body = [string]::Join("`r`n",$content)
    $smtpServer = "SMTP.MyDomain.com"
    $smtp = new-object Net.Mail.SmtpClient($smtpServer)
    $smtp.Send($emailFrom, $emailTo, $subject, $body)
    clear-content C:\Scripts\UserNamesMovedtoDisabledOU.txt

    I apologize for the long delay in replying.  I thank everyone for their help but I'm still running into issues with the script.  Below is the script as it is right now.  I'm having issues with logging as the groups the associate is a member
    of are not logging correctly.
    #Finds all users who have the AD attributes
    # wWWHomePage = Updated_by_GroupID
    # msExchHideFromAddressLists = True
    # msExchHomeServerName not empty
    # emailaddress contains @MyDomain.com
    # useraccountcontrol = 514 (disabled)
    Import-Module ActiveDirectory
    add-pssnapin Microsoft.Exchange.Management.PowerShell.E2010
    #Declare Variables
    $users = $null
    $ADgroups = $null
    $username = $null
    $user = $null
    $LogFile = "C:\Scripts\CleanUpTermedUsers\TerminateUsersLogFile.log"
    $LogFile2 = "C:\Scripts\CleanUpTermedUsers\UserNamesMovedtoDisabledOU.txt"
    $EmailLogTo = "[email protected]"
    #Generates log file
    Start-Transcript -path $LogFile
    #Performs search for all users in AD filtering only AD user with wWWWHomePage = Updated_by_GroupID, msExchHideFromAddressLists = True, msExchHomeServerName not empty and emailaddress contains @mydomain.com
    $users = Get-ADUser -properties name, emailaddress -Filter {(HomePage -eq "Updated_by_GroupID") -and (msExchHideFromAddressLists -eq $true) -and (emailaddress -like "*@mydomain.com") -and (msExchHomeServerName -ne "$null") -and (useraccountcontrol -eq "514")}
    $users.name -Replace '^cn=([^,]+).+$','$1'
    #loops through all users
    foreach ($user in $users){
    $user.name -Replace '^cn=([^,]+).+$','$1'
    #Copies the current OU into the Notes field in the AD User Object.
    $UserOU = ($user).distinguishedname
    set-aduser $user -replace @{info="$UserOU"}
    # Removes user from all AD groups except Domain Users.
    $ADgroups = Get-ADPrincipalGroupMembership -Identity $user | where {$_.Name -ne "Domain Users"}
    Write-Output $user.name >> C:\Scripts\CleanUpTermedUsers\UserNamesMovedtoDisabledOU.txt
    write-output $ADgroups.name >> C:\Scripts\CleanUpTermedUsers\UserNamesMovedtoDisabledOU.txt
    echo $ADgroups.name
    Remove-ADPrincipalGroupMembership -Identity "$($user)" -MemberOf $ADgroups -Confirm:$false
    #Disables their Exchange Mailbox.
    Disable-Mailbox -Identity $user.EmailAddress -Confirm:$False
    #Moves their AD user object to disabled OU.
    Move-ADObject -Identity "$($user.DistinguishedName)" -TargetPath "Disabled OU" -Confirm:$false
    Stop-Transcript
    # Email the log file
    $emailFrom = "[email protected]"
    $emailTo = $EmailLogTo
    $subject = "Terminated Users Cleaned in AD"
    $content = Get-Content $LogFile2 | ForEach-Object {$_.Split("`r`n")}
    $body = [string]::Join("`r`n",$content)
    $smtpServer = "smtp.mydomain.com"
    $smtp = new-object Net.Mail.SmtpClient($smtpServer)
    $smtp.Send($emailFrom, $emailTo, $subject, $body)
    Get-ChildItem -Path C:\Scripts\CleanUpTermedUsers\* -Include *.log | where-object { $_.LastWriteTime -lt $((Get-date).Adddays(-7))} | clear-content C:\Scripts\CleanUpTermedUsers\TerminateUsersLogFile.log
    Clear-Content c:\Scripts\CleanUpTermedUsers\UserNamesMovedtoDisabledOU.txt

  • Billing Document - Document Number X Time - The last document has the first hour

    Hi All ,
    We have a fail in synchronism between fields VBELN (Billing Document) and ERZET (Creation time) of table VBRK as seen below :
    The document VBELN 0490014130 has ERZET 10:54:28 – 01.03.2014
    The document VBELN 0490014131 has ERZET 10:53:26 – 01.03.2014
    The error occurs between Billing Documents processed by job and Billing Documents processed between dialog users
    Do you know any Note or adjustment Standard for this issue or a note for all Countries ?
    Tks Team ,

    Not sure whether it is for the same customer.  In normal circumstances, it could be due to couple of reasons like one billing document which has generated early would be normal process and the one which takes little bit extra time would involve some customization due to which table updation may take extra time.   Also these types of issues will happen only in batch jobs and if you generate individually, it wont happen.
    G. Lakshmipathi

  • Priority in queue based on the number of times the caller has called

    Hi,
    One of my customer has requirement to to prioritize the call from caller if the same caller has called thrice within 24 hours.
    UCCX version is 7.0. It is standalone.
    Please let me know if it can be achieved?
    Thanks,
    Vinay

    Hi
    Yes - I've done this on CCX7.0.
    I basically just queried the contactcalldetail table after validating the CLI is sensible for calls from the same number in the last few days.
    I added a new DSN to point at the CRA DB. You would need a Premium UCCX license.
    Aaron
    Please rate helpful posts..

  • How to select the Printer in Oracle Reports 6i R2 (Windows 7)

    Hi,
    In a client site they have more than one printer suppose one is dot matrix and other one is laser printer or some other brands.
    They take printouts in both. Recently I installed Oracle Forms & Reports 6i R2 Runtimes in some Windows 7 32 bit PCs. In those PCs, its not allow to choose the printer, it print with windows default printer.
    So Is there any way to give an option to select the printer...??
    Thank You.

    Client/Server version:
    - D2KWUTIL.PLL library provides a 'Select Printer' dialog box to be used in Forms: WIN_API_DIALOG.SELECT_PRINTER
    http://guenter-huerkamp.dyndns.org/oracle-doc/docs/html/d2kwutil.html
    I suggest you to create a form to invoke the report, allowing user to select the printer and then pass it as parameter DESNAME

Maybe you are looking for

  • Rendering / Exporting Animation for FLASH

    Hello Friends, Some time ago I made an animation in After Effects CS3 and either Rendered it or Exported it as an SWF. I then Imported it into my Library in my FLASH CS3 movie and all was terrific. Although I have spent the last four days going throu

  • Regarding columnlevel logic

    Hi Experts, I have one requirement i.e Below mentioned is the cube,query,columnlogic for PP,now my requirement is i need to find out the column logic for remaining modules also like INV,SD,FI,PUR. Is there any best way to find out.Please help me. cub

  • HT1338 cd or dvd are not detected

    no cd or dvd are detected it just spins and is ejected

  • Signatures For All

    Welcome to Signatures For All With the return of signatures to the forum, Signatures For All has also returned. We have changed a lot from previously, except for the one fact that we want everyone to have a decent signature image under their post. An

  • Color Shift During Printing

    Hello Everyone, I've been searching the web and these forums for a while, in hopes of gathering some information as to what may be happening when I attempt to print from Lightroom. I guess I'll start with what's happening and what I've tried. I've be