Help needed on UCCX Script

Hi All,
I am adding one new script on IPCCX 7.0. Can some help to understand the function of the following:
DateList=Create File Decument "C:\Program Files\wfavvid\Documents\user\en_US\" + calendar + ".xml")
When I run reactive bedug I can see the following error output:
Can some please help me how this script work.
Apprecaite your quick response.
Regards,
Nirmal

Hi Brian,
This seems to be I am missing Calender string value. If I set this to business, now look good.
Once again thanks for your support.
Regards,
Nirmal

Similar Messages

  • Help needed with UCCX script

    Hi
    I need to create a script that will play back the name of the selected agent to the caller before being connected to the user. I have a simple queueing script setup ,just need the portion to play back the name
    Any help will be appreciated

    Hi,
    Play Prompt Step
    Use the Play Prompt step to play back specified prompts to the caller.
    Note :When any previous escalating prompt in the script enters the Play Prompt step, it is reset to the first
    prompt in its list.
    The customizer window of the Play Prompt step contains three tabs:
    • General tab (Play Prompt step)
    • Prompt tab (Play Prompt step)
    • Input tab (Play Prompt step)
    Prompt tab (Play Prompt step)
    Use the Prompt tab of the Play Prompt customizer window to specify the prompt to be played back, and
    to set the Barge In and Continue on Prompt Errors options.
    Figure 2-99 1Play Prompt Customizer Window—Prompt Tab
    Table 2-83 Play Prompt Properties—Prompt Tab
    Properties / Buttons Description
    Prompt Variable or expression indicating which prompt is to be played.
    Please refer page 129 in the Cisco Unified Contact Center Express Editor Step Reference Guide,
    http://www.cisco.com/en/US/docs/voice_ip_comm/cust_contact/contact_center/crs/express_8_5/programming/guide/uccx851_step_ref.pdf
    Hope it helps.
    Anand
    Please rate helpful posts !!

  • Help needed with rman script

    Hi guys,
    I need you help in creating rman scripts.
    my plan is the following:
    - at night i would like to make a backup of the database, archivelogs, control file and spfile. then delete the archivelogs on disk.
    - during the day i would like to make every hour, a backup level 1, archivelogs and crontrol file.
    my questions are:
    for the night backup is the following script ok?
    run {
    set command id to 'xxx';
    allocate channel t1 type 'SBT_TAPE';
    allocate channel t2 type 'SBT_TAPE';
    BACKUP INCREMENTAL LEVEL 0 DATABASE;
    sql 'ALTER SYSTEM ARCHIVE LOG CURRENT';
    change archivelog all;
    backup archivelog all delete input;
    backup current controlfile;
    BACKUP SPFILE;
    release channel t1;
    release channel t2;
    and for the daily backup (run on every hour) what do you think about this? is it ok?
    run {
    set command id to 'xxx';
    allocate channel t1 type 'SBT_TAPE';
    allocate channel t2 type 'SBT_TAPE';
    BACKUP INCREMENTAL LEVEL 1 CUMULATIVE DATABASE;
    sql 'ALTER SYSTEM ARCHIVE LOG CURRENT';
    backup archivelog all not backed up 1 times;
    backup current controlfile;
    release channel t1;
    release channel t2;
    please help.
    Message was edited.

    Hi Alanm,
    Right now the DB is generating many archives, that doesn't mean that we cant adapt the script in the future if less archives are generated.
    By saying "You don't have to make the archive log script an incremental 1 backup" you mean that, since we are already making a backup at night to the archives, theres no need to make them also during the incremental 1?
    and for the rest, do you thing the script is ok?

  • Help Needed with Apple Script

    I need a little help with Apple Script. I have been using a script for several months now, and all of a sudden it just stopped working. Here's the script"
    ============
    with timeout of 9999 seconds
    tell application "Finder"
    activate
    (* copy target file to another disk - to create a backup *)
    duplicate file "Daily.dmg" of folder "File Backups" of disk "HD Mirror" to folder "Data Backup-Daily" of disk "MacHD 1" replacing yes
    (* copy a 2nd target file to another disk - to create a backup *)
    duplicate file "Personal.dmg" of folder "File Backups" of disk "HD Mirror" to folder "Data Backup-Daily" of disk "MacHD 1" replacing yes
    (* now copy the 2nd target file to my iDisk *)
    duplicate file "Personal.dmg" of folder "Data Backup-Daily" of disk "MacHD 1" to folder "Documents" of disk "xxxxxx" replacing yes
    end tell
    end timeout
    ============
    In the above script, xxxxxx represents the name of my iDisk that is mounted in the Finder.
    Here's my issue - the above script worked fine until just recently. However, now the first two steps work fine, but I get this error message while trying to copy the file to my iDisk:
    "The operation could not be completed because some items had to be skipped. 'Personal.dmg'"
    Does anyone have any ideas on how I can fix this? I'm wondering if Mac OS 10.4.5 might be the culprit since this problem seems to have occurred shortly after I upgraded???
    Thanks,
    -AstraPoint

    Hi,
    Assumptions :-
    uuencode command exits
    mailx command exits
    File name is "vas.txt".
    Mail id is "[email protected]"
    # START OF SCRIPT
    #!/bin/ksh
    vasFileName="$1"
    vasRecordsDirFile=/etl/dev/work/wellness/enrl_rej/records/${vasFileName}
    vasMetatdataDirFile=/etl/dev/work/wellness/enrl_rej/metadata/${vasFileName}
    vasHeaderDirFile=/etl/dev/work/wellness/enrl_rej/header/${vasFileName}
    vasHeaderRejDirFile=/etl/dev/work/wellness/enrl_rej/hdrrej/${vasFileName}
    vasFieldsDirFile=/etl/dev/work/wellness/enrl_rej/fields/${vasFileName}
    if [[ -e ${vasRecordsDirFile} ]]
    then
    uuencode ${vasRecordsDirFile} ${vasRecordsDirFile} | mailx -s "process complete and attached are the rejected records" [email protected]
    elif [[ -e ${vasMetatdataDirFile} ]]
    then
    uuencode ${vasMetatdataDirFile} ${vasMetatdataDirFile} | mailx -s "Metadata Mismatch no of fields in detail didn't match" [email protected]
    elif [[ -e ${vasHeaderDirFile} ]]
    then
    uuencode ${vasHeaderDirFile} ${vasHeaderDirFile} | mailx -s "Problem with header file - File Rejected" [email protected]
    elif [[ -e ${vasHeaderRejDirFile} ]]
    then
    uuencode ${vasHeaderRejDirFile} ${vasHeaderRejDirFile} | mailx -s "the Percentage of rejects more than 3 percent File rejected" [email protected]
    elif [[ -e ${vasFieldsDirFile} ]]
    then
    uuencode ${vasFieldsDirFile} ${vasFieldsDirFile} | mailx -s "The header and detail count didn't match File rejected" [email protected]
    else
    echo "File doesn't exist in any of the directories mentioned."
    fi
    # END
    Vijay Bheemineni.

  • Help needed with the script

    Hi all, I am a novice in scripting...
    Could someone help me writing script for the following....
    Assume that there are 5 folders
    1 /etl/dev/work/wellness/enrl_rej/records
    2 /etl/dev/work/wellness/enrl_rej/metadata
    3 /etl/dev/work/wellness/enrl_rej/header
    4 /etl/dev/work/wellness/enrl_rej/hdrrej
    5 /etl/dev/work/wellness/enrl_rej/fields
    need to check if there is a file created in any of the above five locations,
    If the file Exists in Location 1 then
    send message with Subject 'process complete and attached are the rejected records' with the file in that folder as attachemt
    if file exists in Location 2 then
    send message with Subject 'Metadata Mismatch no of fields in detail didn't match' With the file in that folder as attachment
    If file exists in 3 then
    send message with Subject 'Problem with header file - File Rejected' With the file in that folder as attachment
    If file exists in 4 then
    Send message with subject 'the Percentage of rejects more than 3 percent File rejected' With the file in that folder as attachment
    If file exists in 5 then
    Send message with subject 'The header and detail count didn't match File rejected' With the file in that folder as attachment
    Thanks in advance !!!

    Hi,
    Assumptions :-
    uuencode command exits
    mailx command exits
    File name is "vas.txt".
    Mail id is "[email protected]"
    # START OF SCRIPT
    #!/bin/ksh
    vasFileName="$1"
    vasRecordsDirFile=/etl/dev/work/wellness/enrl_rej/records/${vasFileName}
    vasMetatdataDirFile=/etl/dev/work/wellness/enrl_rej/metadata/${vasFileName}
    vasHeaderDirFile=/etl/dev/work/wellness/enrl_rej/header/${vasFileName}
    vasHeaderRejDirFile=/etl/dev/work/wellness/enrl_rej/hdrrej/${vasFileName}
    vasFieldsDirFile=/etl/dev/work/wellness/enrl_rej/fields/${vasFileName}
    if [[ -e ${vasRecordsDirFile} ]]
    then
    uuencode ${vasRecordsDirFile} ${vasRecordsDirFile} | mailx -s "process complete and attached are the rejected records" [email protected]
    elif [[ -e ${vasMetatdataDirFile} ]]
    then
    uuencode ${vasMetatdataDirFile} ${vasMetatdataDirFile} | mailx -s "Metadata Mismatch no of fields in detail didn't match" [email protected]
    elif [[ -e ${vasHeaderDirFile} ]]
    then
    uuencode ${vasHeaderDirFile} ${vasHeaderDirFile} | mailx -s "Problem with header file - File Rejected" [email protected]
    elif [[ -e ${vasHeaderRejDirFile} ]]
    then
    uuencode ${vasHeaderRejDirFile} ${vasHeaderRejDirFile} | mailx -s "the Percentage of rejects more than 3 percent File rejected" [email protected]
    elif [[ -e ${vasFieldsDirFile} ]]
    then
    uuencode ${vasFieldsDirFile} ${vasFieldsDirFile} | mailx -s "The header and detail count didn't match File rejected" [email protected]
    else
    echo "File doesn't exist in any of the directories mentioned."
    fi
    # END
    Vijay Bheemineni.

  • Help needed with diskpart script

    Hello all,
    I'm in the process of writing a diskpart script for formatting and partition a harddrive outside of the standard method provided with SCCM.
    The reason why I'm doing this as we need to create the following disk layout: as Bitlocker is used a partition has to be foreseen with 350MB. Next to that we want to offer to our users a data partition of 40GB. The system partition can then take up the rest
    of the diskspace.
    We partition the disks as follows:
    - Partition 1: 350MB
    - Partition 2: 40GB
    - Partition 3: Rest of the disk (system drive)
    The script is as here below:
    SELECT DISK 0
    CLEAN
    CREATE PART PRI SIZE=350
    SELECT PART 1
    FORMAT FS=NTFS LABEL=<"System Reserved"> QUICK
    CREATE PART PRI SIZE=40960
    SELECT PART 2
    FORMAT FS=NTFS LABEL=<"Data"> QUICK
    ASSIGN Letter=d
    CREATE PART PRI
    SELECT PART 3
    FORMAT FS=NTFS LABEL=<"Windows"> QUICK
    ASSIGN Letter=c
    ACTIVE
    EXIT
    The problem is that eventough we don't assign a drive letter to the system reserved partition, it gets assigned the next available drive letter automatically and is shown to the users.
    How can I make sure that the system reserved partition remains hidden and doesn't receive a drive letter?
    Thanks!
    Filip

    In addition to what Peter has said which i agreed with, SCCM is not very good at assigning drive letters - At least, it doesn't behave the same as Windows.
    This article explains in detail, and gives solutions/workarounds.
    Since using method 3 from this article, we get consistent and reliable behaviour and has resolved drive letter assignment issues. It might be useful in your case (after you use the built in SCCM step for the partitioning of course!).
    http://blogs.technet.com/b/system_center_configuration_manager_operating_system_deployment_support_blog/archive/2014/04/28/how-to-ensure-that-windows-installs-on-c-during-a-system-center-2012-configuration-manager-osd-task-sequence.aspx
    Hope this helps!

  • Help needed in Unix script for oracle 9i

    Hi gurus,
    I'm working on oracle 9i in solaris, i would like to calculate the amount of archived logs generate per day. Can anyone please help me to find that.
    Thanks

    Put the following lines in a script and it should work for you.
    SET feedback off
    SET line 200
    COL NAME FOR a100
    -- counts the no of archives generated today
    select count(*) "No. of Logs for today" from v$archived_log where to_char(completion_time,'DD-MON-YY')=to_char(sysdate,'DD-MON-YY');
    -- lists all archive generated for the day
    select name,blocks*block_size as "Size in KB" from v$archived_log
    where to_char(completion_time,'DD-MON-YY')=to_char(sysdate,'DD-MON-YY');
    -- shows total size in KB
    select sum(blocks*block_size) "Total Log Size for day in KB" from v$archived_log
    where to_char(completion_time,'DD-MON-YY')=to_char(sysdate,'DD-MON-YY');
    Hope this helps.
    Thanks
    Siba

  • Help needed in BPC Script

    Hello Experts,
    I have a requirement to migrate the BPC 7.5MS version scripts to BPC 10 NW Script.
    When I try to copy the existing working BPC 7.5 MS script to NW Script, I get validation error as BPC 10 script doesn't understand few lines.
    Below are the lines which are getting errors.Could you please help in giving me the equivalent BPC 10 NW commands for below lines
    1)*MEMBERSET (%ACT%,"Descendants([ACCOUNT].[H1].[PNC_GPW],999,leaves)")
    2)*Calculate_Difference = 0
    3) Will BPC 10 accept time=next(11) command? It is not giving any validation error
    I am also attaching the existing BPC 7.5MS script in this thread as below.
    Thanks,
    Senoy

    Hi Senoy,
    It's practically impossible to "migrate" MS scripts to NW - so many differences, each script have to be rewritten with understanding of business logic (not just script translation).
    1)*MEMBERSET (%ACT%,"Descendants([ACCOUNT].[H1].[PNC_GPW],999,leaves)")
    Something like:
    *XDIM_MEMBERSET ACCOUNT AS %ACT%=BAS(PNC_GPW)
    2)*Calculate_Difference = 0
    Not supported, always full value is send but delta is written
    3) Will BPC 10 accept time=next(11) command? It is not giving any validation error
    next is not supported, TMVL(11,%TIME_SET%) can be used in some cases.
    And please, read the standard help for script logic in BPC NW 10. All supported keywords are mentioned here:
    Logic Keyword Reference
    Vadim

  • Help needed in sap script

    Hi friends,
    I`ve assigned the script name and driver program in NACE tcode for ME21N transaction.
    When I print preview from ME21N tcode and keep script debugging active it goes into debugging mode ...Here it shows script name same as what has been assigned in NACE but the contents which are being debugged are different than the actual script contents .. means the code which we can see while debugging the script are not matching with the code of the same named script in SE71.
    Can anybody help me out regarding this issue .. ?
    thanks .

    Hi,
    I think this is because your the transaction ME21N is calling the language version of the script based on the language maitained in the communication tab(header) of the document. To ensure this, when your script is going into debugging mode just check whther it is calling the same language version of script that you are intending.
    Regards,
    KK

  • Urgent help need on  eCATT script

    Hi
    How to use eCATT script tool with transaction SECATT.
    urgent please help.
    regards,
    R K

    Hello Rao
    If you are using a "normal" transaction without any controls (like ALV lists, trees) then you can use the recording pattern <b>TCD REC</b> <i>(TCD (Record)</i>).
    In transaction SECATT give a name for your test script (e.g. Z_XD01 or Z_CREATE_CUSTOMER). Within the test script choose pattern TCD REC and enter the transaction you want to record (e.g. XD01).
    After finishing the recording you will see the following line in the eCATT editor:
    <b>TCD ( XD01 , XD01_1 ).</b>
    Meaning:
    - TCD = recording pattern
    - XD01 = recorded transaction
    - XD01_1 = eCATT interface for the transaction
    Next double-click on the eCATT interface name (here: XD01_1). Next to the editor you will see the interface displayed as tree and as ALV list. Here you can parameterize your transaction.
    Please note that you should preferably <b>use the highest available SAP release for eCATT recording</b>. If, for example, your business system has release 6.20 and you have a 6.40 system available record the eCATT on the 6.40 system via RFC.
    Regards
      Uwe

  • Help needed on SAP Scripts

    Hi
      This is Lahari...Iam going to attend interviews...cud u pls give real time questions n answers on SAP Scripts? i didn't attend interviews before...I'd be thankful to u guys.
    My id is [email protected]
    Lahari.

    Hi Lahari,
    Check these links.
    http://www.sappoint.com/abap/ssintro.pdf
    http://www.sappoint.com/abap/sscript.pdf
    http://www.sappoint.com/abap/sscript.pdf
    http://www.sappoint.com/abap/lsetssap.pdf
    http://www.sappoint.com/abap/sscrtpex1.pdf
    http://www.sap-img.com/sapscripts.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRRDI/BCSRVSCRRDI.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCREDIT/BCSRVSCREDIT.pdf
    http://www.henrikfrank.dk/abapuk.html
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    http://www.sap-img.com/sapscripts.htm
    http://sappoint.com/abap/
    http://www.henrikfrank.dk/abapuk.html
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
    http://www.sap-basis-abap.com/sapabap01.htm
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html
    http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303
    http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
    http://www.sap-basis-abap.com/sapabap01.htm
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html
    http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303
    http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • Help needed- Debug the script.

    Hi Experts,
    Can any one help me in debug the below script.
    Basically, i am trying to check date range from a coulmn DATE_NAME and if its between the selected range i am assiging some number.
    select DATE_NAME,CASE
    WHEN
    TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('15-DEC', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('10-JAN', 'DD-MON'),'DD-MON')) THEN 1
    WHEN
    TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('11-JAN', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('07-FEB', 'DD-MON'),'DD-MON')) THEN 2
    WHEN
    TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('08-FEB', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('07-MAR', 'DD-MON'),'DD-MON')) THEN 3
    WHEN
    TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('08-MAR', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('04-APR', 'DD-MON'),'DD-MON')) THEN 4
    WHEN
    TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('05-APR', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('02-MAY', 'DD-MON'),'DD-MON')) THEN 5
    WHEN
    TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('03-MAY', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('30-MAY', 'DD-MON'),'DD-MON')) THEN 6
    WHEN
    TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('31-MAY', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('27-JUN', 'DD-MON'),'DD-MON')) THEN 7
    WHEN
    TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('28-JUN', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('25-JUL', 'DD-MON'),'DD-MON')) THEN 8
    WHEN
    TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('26-JUL', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('22-AUG', 'DD-MON'),'DD-MON')) THEN 9
    WHEN
    TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('23-AUG', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('19-SEP', 'DD-MON'),'DD-MON')) THEN 10
    WHEN
    TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('20-SEP', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('17-OCT', 'DD-MON'),'DD-MON')) THEN 11
    WHEN
    TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('18-OCT', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('14-NOV', 'DD-MON'),'DD-MON')) THEN 12
    WHEN
    TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('15-NOV', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('12-DEC', 'DD-MON'),'DD-MON')) THEN 13
    ELSE 0
    END AS PERIOD FROM D_TIME;
    Any help will be appreciated.
    PS: DATE_NAME is of DATE datatype.
    Thanks,
    G
    Edited by: Gurusank on Jun 24, 2009 3:53 PM

    Don't convert date to string for comparison. For instance your following snippet:
    TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN
         TRIM(TO_CHAR(to_DATE('15-DEC', 'DD-MON'),'DD-MON') )
          AND
         TRIM(TO_CHAR(to_DATE('10-JAN', 'DD-MON'),'DD-MON')) should be written as
    DATE_NAME BETWEEN to_DATE('15-DEC', 'DD-MON')
    and to_DATE('10-JAN', 'DD-MON')Are you sure in avoiding year (YYYY) in your format mask for to_date. This will assign current year to the date
    In that case something like
    TO_DATE(TO_CHAR(DATE_NAME,'DD-MON')), 'DD-MON') BETWEEN
       to_DATE('15-DEC', 'DD-MON')
       AND
       to_DATE('10-JAN', 'DD-MON')(There might be an efficient way to do this part. Nothing is striking to me as of now.)
    Hope this helps.
    Regards,
    Jo

  • Help needed in SAP script....urg pleaseee

    Hello Experts,
    I am working on a script. The script has two pages page1 and page2. Both of them have main windows. I have added a new page (page3) with 3 windows and only constant text in them. This should be printed at the last. But I am unable to call the new page.
    Can you please suggest me some thing here..
    Thankyou...

    Hi..,
    At the end of the Second page i.e after all the data has been output in the second page write in the script editor as
    /: NEW-PAGE <PAGE-NAME>.
    Then it triggers the page <PAGE-NAME> SAY LAST..
    ( /: NEW-PAGE LAST )..
    thats it !! it triggers the new page as LAST here !!
    reward if it helps u,
    sai ramesh

  • Help need to write script min and group by

     I want to see min  first print date on last column  for instance Wild Attire INc  there should be 5/30/2014 for all records and for clear vision optical 2013/11/13 for all records belongs to clear vision optical integration name if only
    one record then keep same like Qball 12/1/2014
    select ISNULL(RQPPrintAmountQpYTD,0)+ISNULL(VLQPPrintAmountQpYTD,0) as [Qualified Volume 2014],isnull(PrintamountallYtd,0)+ISNULL(VLQPPrintamountALLYTD,0) as [Total Volume 2014], integration_id as [Integration ID], integration_name as [Integration Name], left([First Print Date],10) as [First Print Date] from #Po
    Qualified Volume 2014
    Total Volume 2014
    Integration Name
    First Print Date
    0
    1.93
    Qball
    12/1/2014
    34446.98
    277285.35
    Wild Attire, Inc.
    5/30/2013
    522236.08
    530125.78
    Wild Attire, Inc.
    8/22/2013
    3861.06
    40820.82
    Wild Attire, Inc.
    10/24/2014
    2087.14
    20783.46
    Wild Attire, Inc.
    10/30/2014
    1296.95
    24272.81
    Wild Attire, Inc.
    11/26/2014
    1457.96
    1512.71
    Jackeez.com LLC
    12/14/2013
    15.27
    37206.62
    PrintingforLess.com
    4/3/2014
    9109.85
    20631.28
    M.A.I.L., Inc
    12/16/2013
    294.59
    2278.32
    B2SIGN, Inc.
    11/17/2014
    37.71
    151.48
    SpiralScout LLC
    11/25/2014
    93960.2
    94110.38
    Clear Vision Optical
    11/13/2013
    140349.03
    140445.65
    Clear Vision Optical
    1/31/2014
    14898.35
    14898.35
    Clear Vision Optical
    3/18/2014
    790.59
    790.59
    Clear Vision Optical
    5/9/2014

    Hi MarkSubedi,
    Your requirement has been extracted and formatted as below, correct me if there's anything wrong.
    I want to see min first print date on last column. For instance Wild Attire INc,there should be 5/30/2014. And 2013/11/13 for all records belongs to clear vision optical integration name.If only one record then keep same like Qball 12/1/2014.
    Based on my understanding, the below code can help to achieve your requirement.
    DECLARE @Table TABLE
    ([Qualified Volume 2014] NUMERIC(18,2),
    [Total Volume 2014] NUMERIC(18,2),
    [Integration Name] VARCHAR(99),
    [First Print Date] DATE
    INSERT INTO @TABLE VALUES (0,1.93,'Qball','12/1/2014');
    INSERT INTO @TABLE VALUES (34446.98,277285.35,'Wild Attire, Inc.','5/30/2013');
    INSERT INTO @TABLE VALUES (522236.08,530125.78,'Wild Attire, Inc.','8/22/2013');
    INSERT INTO @TABLE VALUES (3861.06,40820.82,'Wild Attire, Inc.','10/24/2014');
    INSERT INTO @TABLE VALUES (2087.14,20783.46,'Wild Attire, Inc.','10/30/2014');
    INSERT INTO @TABLE VALUES (1296.95,24272.81,'Wild Attire, Inc.','11/26/2014');
    INSERT INTO @TABLE VALUES (1457.96,1512.71,'Jackeez.com LLC','12/14/2013');
    INSERT INTO @TABLE VALUES (15.27,37206.62,'PrintingforLess.com','4/3/2014');
    INSERT INTO @TABLE VALUES (9109.85,20631.28,'M.A.I.L., Inc','12/16/2013');
    INSERT INTO @TABLE VALUES (294.59,2278.32,'B2SIGN, Inc.','11/17/2014');
    INSERT INTO @TABLE VALUES (37.71,151.48,'SpiralScout LLC','11/25/2014');
    INSERT INTO @TABLE VALUES (93960.2,94110.38,'Clear Vision Optical','11/13/2013');
    INSERT INTO @TABLE VALUES (140349.03,140445.65,'Clear Vision Optical','1/31/2014');
    INSERT INTO @TABLE VALUES (14898.35,14898.35,'Clear Vision Optical','3/18/2014');
    INSERT INTO @TABLE VALUES (790.59,790.59,'Clear Vision Optical','5/9/2014');
    ;WITH CTE AS
    SELECT [Integration Name],MIN([First Print Date]) [Min First Print Date],COUNT(1) cnt FROM @Table GROUP BY [Integration Name]
    SELECT [Integration Name],CASE WHEN CNT=1 THEN T.[Qball Min First Print Date] ELSE [Min First Print Date] END [Min First Print Date] FROM CTE
    CROSS APPLY (SELECT [Min First Print Date] AS [Qball Min First Print Date] FROM CTE WHERE [Integration Name]=N'Qball') AS T
    ORDER BY CNT,[Integration Name]
    In your case, the data seems from the the statement query in your post. If the statement is fine, the below query can be ready to use.
    ;WITH DataSrc AS
    SELECT ISNULL(RQPPrintAmountQpYTD,0)+ISNULL(VLQPPrintAmountQpYTD,0) as [Qualified Volume 2014],isnull(PrintamountallYtd,0)+ISNULL(VLQPPrintamountALLYTD,0) as [Total Volume 2014], integration_id as [Integration ID], integration_name as [Integration Name], left([First Print Date],10) as [First Print Date] from #Po
    CTE AS
    SELECT [Integration Name],MIN([First Print Date]) [Min First Print Date],COUNT(1) cnt FROM DataSrc GROUP BY [Integration Name]
    SELECT [Integration Name],CASE WHEN CNT=1 THEN T.[Qball Min First Print Date] ELSE [Min First Print Date] END [Min First Print Date] FROM CTE
    CROSS APPLY (SELECT [Min First Print Date] AS [Qball Min First Print Date] FROM CTE WHERE [Integration Name]=N'Qball') AS T
    ORDER BY CNT,[Integration Name]
    By the way, there're some columns don't make any sense if what you'd like is just the min(First Print Date), you can remove them.
    If you have any question, feel free to let me know.
    Best regards,
    Eric Zhang
    TechNet Community Support

  • Help needed in SAP Scripts

    Hello all,
    I am trying to learn SAP Scripts. I have created one form named as 'zfm1' using SE71.
    Using SE 38 I have created a PRINT PROGRAM also which contains FM's like Open_form,Start_form,Write_form etc. When activated it is not displaying any error.
    But in o/p it is asking for a device and by def.it is showing LP01 in o/p device.
    Can anybody please guide me in this ahead?
    How can I see the Windows created by me?
    Thanks and regards,
    Harish

    hi,
    just give device as LP01 and press print preview.

Maybe you are looking for

  • Shuts Off with No Warning

    I've had my MacBook plugged in and turned on pretty much steadily for the past month or so (something I've done before with no problems). In the past few days, it has just suddenly shut off -- instantly -- a number of time. Doesn't go to sleep -- jus

  • Stability of pdf bookmark structure from InDesign

    I have been struggling in InDesign and Acrobat with a fairly complex pdf. I use CS2 Suite. I have built 6 books in ID each with TOC and bookmarks. I have created a TOC nav document to go to any book. Individually the pdf works fine in Acrobat. Clicki

  • Flex in WebDynpro Abap

    Hi All,                I am planning to create the application which has the flex fetures. I have installed GUI 7.10. But i couldnot find the Flex components in MIME repository.and the Swap element menu is missing in GUI. I think its a version proble

  • GI slip print out

    Hi Gurus Whats the procedure to get print out of goods issuance and goods transfer  document in SAP Regards Vivek Edited by: Supergene on Aug 29, 2008 9:30 PM

  • How to use the BreadCrumb control

    Hi everyone, I'm trying to understand the use of BreadCrumb in NWs. I'd like to show the name of the current showed view in the step of BreadCrumb; I have 3 linked views in this sequence: 1 -2 -3; I select the view n.1, than view n.2 and finally the