What is command to format variables in script layout?

Hi all,
Can anybody let me know, What is the command we use to format the varialbles in script layouts?
like if i want to delete leading or trailing spaces(condence) from a variable in the layout, there are some command like (c) for condence
But, i dont remember how to use it exactly. Can anybody help me on this?
thanks

Space Compression
The symbol value is viewed as a sequence of u2018wordsu2019, each separated from the next by either one or a string of space characters. The C option has the effect of replacing each string of space characters with a single space and shifting the u2018wordsu2019 to the left as necessary to close up the gaps. Leading spaces are completely removed. The results are the same as those of the ABAP command CONDENSE.
Syntax:
&symbol(C)&
Assuming ' Albert Einstein ' is the symbol value,
&symbol& -> Albert Einstein
&symbol(C)& -> Albert Einstein
Regards,
Joy.

Similar Messages

  • Applescript "go to" command or pull variables from script?

    Is there a "go to line" command in Applescript?  I want to be able to create a dialog box to jump back to the previous box if a mistake was made.  I don't want to do a repeat because that will cause multipule chained repeats and it won't work.  I tried creating seperate scripts and that works fine for jumping around within the program.  But the variables get lost when a new script is ran.  is there a way to bring variables from other scripts into one script?

    This is what I have right now.  as you can see there are 3 variables that carry the needed info.  U
    ltimatley I'd like to have about 8 variables, all with different info. 
    I can do a repeat for each one until something is entered, but I cant do a back command for each entry. 
    That's the purpose for the "run 'script'" line in each section.  I'd have to do a repeat inside of a repeat and then overlapping repeats. 
    It won't let me do overlapping repeats.  what's the solution?
    run script fn
    script fn
              set first_name to ""
              set fName to display dialog "first name" default answer "" buttons {"cancel", "next"} default button "next"
              set first_name to text returned of fName
              if first_name = "" then
      run fn
              end if
    end script
    -- Last Name
    run script ln
    script ln
              set last_name to ""
              set lName to display dialog "last name" default answer "" buttons {"back", "cancel", "next"} default button "next"
              if button returned of lName = "next" then
                        set last_name to text returned of lName
              else if button returned of lName = "back" then
      run fn
              end if
              if last_name = "" then
                        run ln
              end if
    end script
    -- street number
    run script sn
    script sn
              set s_num to ""
              set sNum to display dialog "street number" default answer "" buttons {"back", "cancel", "next"} default button "next"
              if button returned of sNum = "next" then
                        set s_num to text returned of sNum
              else if button returned of sNum = "back" then
                        run ln
              end if
              if s_num = "" then
                        run sn
              end if
    end script
    -- ready steady write!
    display dialog first_name & last_name & s_num

  • What do you think of my Bash Script? What about the error checking?

    Well what do you think of this Bash script
    It works
    I gave it some problems (i.e. unpluged the ethernet, messed up the URL's, uninstaled some programs...) to see if would report errors and stop or just keep going... But it did
    I just kind of thought up a way to do some error checking with the commands that I know.....
    What is a better way to do error checking?
    What do you think I should add/Do to this script?
    #!/bin/bash
    # Shell script to make a USB Tumb Drive for Flashing BIOS on a Lenovo Ideapad Y510.
    # This script needs to be owned and run as ROOT with the "sudo command"
    # i.e. sudo usbbiosflasher
    # If you have anyideas send me a PM on ubuntufourms.org my user name is HunterThomson
    # Name/Rename this script usbbiosflasher and save it to the ~/home directory.
    # Then run the command- chown root:root usbbiosflasher
    # Then run the command- chmod 755 usbbiosflasher
    # Then copy the script to the directory /usr/bin.
    # Run this comand to do that- sudo cp ~/usbbiosflasher /usr/bin
    # You also must have the program "mbr" installed
    # You can install the mbr program by running this comand in the shell on Ubuntu
    # sudo apt-get install mbr
    # In Arch Linux you have to get it from Aur
    # First you will need to know a few things...
    # You will also need to know the Mount Point i.e. /media/disk and the /dev path i.e. /dev/sdb1.
    # You can find these by using the df -T comand.
    # Run df -T in the shell. Then plug in the USB Thumb Drive and run the df -T comand agin.
    # The new listing is the USB Thumb Dirve.
    # Also check to make sure the File System tipe is vFAT or FAT16 or FAT32.
    # If it is not use gparted to format it to FAT32.
    # I am farly certen that all USB Thumb drives come formated with FAT file system out of the BOX.
    # You may want to fromat it anyway just to make sure.
    echo "Interactive Shell Script to Make a USB Thumb Drive \for Flashing BIOS On a Lenovo Ideapad Y510"
    echo ""
    echo "You will need to have the program mbr installed"
    echo "If you are on Ubuntu Linux you can retreve it form the repositories"
    echo "If you are on Arch Linux you will need to get it from the Aur repository"
    echo "Open anuther shell and \do that now..."
    echo ""
    verify="n"
    while [ "$verify" != y ]
    do
    printf "Do you have mbr installed... yes or no?"
    read AN1
    echo ""
    printf "You answered... $AN1 I have installed mbr. Is this correct... y or n?"
    read verify
    done
    echo ""
    if [ "$AN1" == "no" ]
    then
    echo "Install mbr now. Then run this script agin"
    exit
    else
    echo "contunuing script"
    fi
    echo ""
    # The next comand will make a directory to put needed files into. Note this file and everything init will be owned by root.
    mkdir ~/usbbiosfiles && check1="yes"
    if [ "$check1" = "yes" ]
    then
    echo "Made directory usbbiosfiles... OK"
    else
    echo "Could not \make directory usbbiosfiles"
    echo "look above \for \info"
    echo "Fix the problem and run this scrip agin"
    exit
    fi
    # The next two comands will get the FreeDOS file and the .ROM file.
    cd ~/usbbiosfiles && checka="yes"
    if [ "$checka" = "yes" ]
    then
    echo "Changing to the usbbiosfiles directory... OK"
    else
    echo "Could not Change to the usbbiosfiles directory"
    echo "look above \for \info"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    wget "http://www.fdos.org/bootdisks/autogen/FDOEM.144.gz" && check2="yes"
    if [ "$check2" = "yes" ]
    then
    echo "Download of FreeDOS... OK"
    else
    echo "Could not Download FreeDOS"
    echo "look above \for \info"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    wget "http://ubuntuforums.org/attachment.php?attachmentid=78460&d=1216648756" && check3="yes"
    if [ "$check3" = "yes" ]
    then
    echo "Download of the BIOS.ROM \file... OK"
    else
    echo "Could not Downlad the BIOS.ROM \file"
    echo "look above \for \info"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    # The next comand will name the .ROM file to the right name.
    mv ~/usbbiosfiles/attachment.php?attachmentid=78460\&d=1216648756 ~/usbbiosfiles/06CN29WW.bios.update.tar.bz2 && check4="yes"
    if [ "$check4" = "yes" ]
    then
    echo "Renameing of the BIOS.ROM \file... OK"
    else
    echo "Could not rename the BIOS.ROM \file"
    echo "look above \for \info"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    echo ""
    # The next two comands set the variables. DEVX for the path i.e. /dev/xxx and MOUNTX for the mount point i.e. /media/xxx
    verify="n"
    while [ "$verify" != y ]
    do
    echo "You will need to know the Mount Point and the dev Path. You will also need to \make sure the File System \type is vFAT, FAT16 or FAT32."
    echo ""
    echo "With the USB Thumb Drive unpluged, Open another shell and run the comand df -T Then plug \in the USB Thumb Drive and run the comand df -T one \more time. The new device listed is the USB Thumb Drive. Note the Mount Point and The dev Path and the File system Type i.e. vFAT... If the File System \type is not vFAT, FAT16 or FAT32 you will need to fromat it with gparted. You may want to format the USB Thumb Drive anyway just to \make sure. In any \case delete all files and directorys on the USB drive before you go any ferther with this program."
    echo ""
    printf "Enter the dev path the USB Thumb Drive is at?"
    read DEVX
    echo ""
    echo "Are you sure $DEVX is the dev path of the USB Thumb Drive... y or n?"
    read verify
    done
    echo ""
    verify="n"
    while [ "$verify" != y ]
    do
    printf "What is the Mount Point of the USB Thumb Drive?"
    read MOUNTX
    echo ""
    echo "Are you sure $MOUNTX is the Mount Point of the USB Drive... y or n?"
    read verify
    done
    echo ""
    install-mbr --enable A1 --partition 1 --force --timeout 0 $DEVX && check5="yes"
    if [ "$check5" = "yes" ]
    then
    echo "Installing MBR on USB Thumb Dirve... OK"
    else
    echo "Could not install MBR on USB Thumb Drive"
    echo "look above \for \info"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    tar xjf ~/usbbiosfiles/*.tar.bz2 && check7="yes"
    if [ "$check7" = "yes" ]
    then
    echo "Unpacking BIOS.ROM file... OK"
    else
    echo "Could not unpack BIOS.ROM file"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    gunzip ~/usbbiosfiles/FDOEM.144.gz && check8="yes"
    if [ "$check8" = "yes" ]
    then
    echo "Unpacking FreeDOS files... OK"
    else
    echo "Could not unpack FreeDOS files"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    mkdir ~/usbbiosfiles/fdoem144 && check9="yes"
    if [ "$check9" = "yes" ]
    then
    echo "Made directory fdoem144 in direcoty usbbiosfiles... OK"
    echo ""
    echo "Going to \sleep \for 5secs"
    else
    echo "Could not make directory fdoem144 in usbbiosfiles directory"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    modprobe loop && sleep 5 && check0="yes"
    if [ "$check0" = "yes" ]
    then
    echo "Modprobeing loop... OK"
    else
    echo "Could not \modprobe loop"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    mount -o loop ~/usbbiosfiles/FDOEM.144 ~/usbbiosfiles/fdoem144 && check10="yes"
    if [ "$check10" = "yes" ]
    then
    echo "Mounting FreeDOS on the fdoem144 directory... OK"
    else
    echo "Could not \mount FreeDOS on the fdoem144 directory"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    cp ~/usbbiosfiles/fdoem144/* $MOUNTX && check11="yes"
    if [ "$check11" = "yes" ]
    then
    echo "Copying FreeDOS files to $MOUNTX... OK"
    else
    echo "Could not copy FreeDOS files to $MOUNTX"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    cp ~/usbbiosfiles/*.ROM $MOUNTX && check12="yes"
    if [ "$check12" = "yes" ]
    then
    echo "Copying BIOS.ROM files to $MOUNTX... OK"
    else
    echo "Could not copy BIOS.ROM files to $MOUNTX"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    sync && check13="yes"
    if [ "$check13" = "yes" ]
    then
    echo "Runing the syncing command... OK"
    else
    echo "Could not run the syncing command"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    umount ~/usbbiosfiles/fdoem144 && check14="yes"
    if [ "$check14" = "yes" ]
    then
    echo "Unmounting of FreeDOS... OK"
    else
    echo "Could not unmount FreeDOS"
    echo "Look above for errors or problems reported and fix the problem"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this script agin"
    rm -r ~/usbbiosfiles
    exit
    fi
    verify="n"
    while [ "$verify" != y ]
    do
    printf "Do you see any errors... yes or no?"
    read AN2
    echo ""
    printf "You answered... $AN2 to errors. Is this correct... y or n?"
    read verify
    done
    echo ""
    if [ "$AN2" == "yes" ]
    then
    echo "User Repoted... Error"
    echo "Look above for errors or problems reported and fix the problem"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this script agin"
    rm -r ~/usbbiosfiles
    exit
    else
    echo "Success"
    echo "I did a lot of error checking too and didnt find anything"
    echo ""
    echo "Go get a pen and paper to write down these instructions"
    printf "Then hit the Enter to continue"
    read WAIT
    echo ""
    echo "Now leave the USB Thumb Drive pluged into your computer and Reboot. When the Lenovo Logo POST screen appears hit F2 to enter the CMOS setup utility. Go over to BOOT tab and go down to HardDrive \(Not Boot Order) \then \select the USB Thumb Drive as the 1st hard drve. Then F10 and yes to save changes. Your compter will reboot agin. Then when the Lenovo Logo POST Screen appers on reboot hit F4 to enter the BIOS FLASHING program. The USB Thumb Drive will be seen as the C drive \in the list on the Left, Select it. Then \select the .ROM \file \in the list on the Right and start the BIOS FLASH. \(NOTE Your hart may stop beating... This is normal) Pray to any God you know of and your computer should restart just like normal. Hit F2 and the BIOS will now stay it is 06CN29WW. You will need to \set the boot order to the way you like it and other things \if you need to because they have been changed to the default."
    fi
    echo ""
    echo "End of script"
    Last edited by hunterthomson (2008-08-10 11:17:47)

    Personally.....  (this is just how I would have written it - if it works, then it's good enough for me though )
    I would change this whole block:
    verify="n"
    while [ "$verify" != y ]
    do
    printf "Do you have mbr installed... yes or no?"
    read AN1
    echo ""
    printf "You answered... $AN1 I have installed mbr. Is this correct... y or n?"
    read verify
    done
    echo ""
    if [ "$AN1" == "no" ]
    then
    echo "Install mbr now. Then run this script agin"
    exit
    else
    echo "contunuing script"
    fi
    To this much shorter code:
    MBR='/usr/bin/install-mbr' # Or where ever you expect it to be
    if [ ! -x $MBR ] ; then
    echo "mbr doesn't appear to be installed."
    echo "If it is installed, check it's location, make sure it's executable and then make sure the MBR variable in this script is correct"
    exit 1
    fi
    I wouldn't have used the checkXX variables for each stage:
    mkdir ~/usbbiosfiles
    if [ $? != 0 ] ; then
    #failed
    echo "Could not \make directory usbbiosfiles"
    echo "look above \for \info"
    echo "Fix the problem and run this scrip agin"
    exit 1
    else
    echo "Made directory usbbiosfiles... OK"
    fi
    There is an issue with the way you do your verifications - the user can never get out unless they answer 'y' or hit CTRL+C. Something like this gives them options:
    verify="n"
    while [ "$verify" != "y" && "$verify" != "n" ]; do
    echo "You need to answer 'y'es or 'n'o"
    read verify
    echo $verify | tr "[:upper:]" "[:lower:]" # This converts the answer to lowercase so replies entered in upper case will still work
    done
    if [ $verify != 'y' ] ; then
    exit 1
    fi
    One last thing I try to do in scripts... Declare all your binaries as variables at the start of the program, then execute the binary program by using the variable. For example:
    # Binaries
    TAR='/bin/tar'
    CP='/bin/cp'
    CHMOD='/bin/chmod'
    # Execute tar and chmod the created file
    $TAR cvzf /tmp/tarfile.tar.gz /etc/*.conf
    $CHMOD 400 /etc/*.conf
    This way, it's easy to change the path in future without having to hunt through the script if the paths change, and it also ensures you're calling the programs using the full paths to make sure you're not executing some strange variant or alias that someone has setup. If I use `chmod` 30 times in a script, and the path changes in the future or on a different system (`chmod` is a bad example cause it's highly unlikely to change, but you know what I mean), then all you need to do is update the variable at the start of the script, and it all works again without having to script-hunt and change it 30 times.

  • About variables in scripts

    what type of variables used in scripts to out put data

    Hi
    See the script symbols
    A variable in SAPscript is called a symbol. There are the following types.
    • System symbol (e.g. the number of the current page)
    • Standard symbol (usable in any document)
    • Program symbol (value from the print program)
    • Text symbol (“local variable”)
    The value of a symbol is text for using within SAPscript code and is represented by the symbol-name enclosed by ampersands. On seeing the tell-tale ampersands in SAPscript code, you sometimes need to figure out the symbol type.
    goto any PAGEWINDOW's Text elements in Script (SE71)
    from the Menu-> INSERT-> Symbols
    you find all symbols here
    System symbols
    System symbols in a SAPscript form are comparable to system fields like SY-UZEIT in an ABAP program, and include these. The graphical editor offers three types of system symbol.
    1. General system symbols
    See the table TTSXY. PAGE is the most widely used. The list given in our BC460 training manuals is out of date.
    2. SAPscript system symbols
    See the dictionary structure SAPSCRIPT. SAPSCRIPT-FORMPAGES is the most widely used.
    3. ABAP system symbols
    For the ABAP system field SY-UNAME, say, the symbol is SYST-UNAME. [SYST is the dictionary structure for ABAP system fields.]
    Sample code:
    User: &SYST-UNAME&
    Page &PAGE& of &SAPSCRIPT-FORMPAGES(C3)&
    Standard symbols
    Standard symbols are maintained centrally (in the table TTDTG via transaction SE75) for use in any document. Menu path:
    Tools
    Form Printout
    Administration
    Settings
    Some standard symbols are SAP-standard and others are custom. Curiously, table TTDTG is cross-client although SAPscript forms are not.
    The value of a standard symbol has to be defined for each language used. This gives a way to make a single SAPscript form multi-lingual.
    We can take advantage to an extent of the central maintenance, though there is no guarantee that the available standard symbols will used in every appropriate context.
    Standard symbols complicate searching a SAPscript form, since text like ‘Charity registration 211581’ may be hiding in a standard symbol.
    Text symbols
    A text symbol is declared and assigned to within the SAPscript code, and so obviously applies only to the current document. The command DEFINE is used, requiring /: in the tag column, as in the following examples.
    /: DEFINE &COMP_NAME& = ‘University of Warwick’
    /: DEFINE &WS_RATE& = &TAX_SUMM_C&
    SCRIPT COMMANDS
    ADDRESS : Formatting of Address
    BOTTOM, ENDBOTTOM : Define Footer text in a window
    BOX, POSITION, SIZE : Boxes, Lines and Shading
    CASE, ENDCASE : Case Distinction
    DEFINE : Value assignment to text symbols
    HEX, ENDHEX : Hexadecimal values
    IF, ENDIF : Conditional text output
    INCLUDE : Include other texts
    NEW-PAGE : Explicit forms feed
    NEW-WINDOW : Next window main
    PRINT-CONTROL : Insert print control character
    PROTECT...ENDPROTECT : Protect from page break
    RESET : Initialize outline paragraphs
    SET COUNTRY : Country-specific formating
    SET DATE MASK : Formating of date fields
    SET SIGN : Position of +/- sign
    SET TIME MASK : Formating of time fields
    STYLE : Change style
    SUMMING : Summing variables
    TOP : Set header text in window MAIN
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • What hide command will do

    what hide command will do

    Here is the F1 help.....
    <i>HIDE
    Basic form
    HIDE f.
    In an ABAP Objects context, a more severe syntax check is performed that in other ABAP areas. See Constants not allowed in HIDE area.
    Effect
    Retains the contents of f related to the current output line. When the user selects the line from the list f is automatically filled with the retained value.
    The selection can occur in:
    AT LINE-SELECTION
    AT PFx
    AT USER-COMMAND
    READ LINE
    The contents of the field do not have to have been displayed using WRITE in order for you to retain them.
    The HIDE statement does not support deep structures (structures that contain internal tables).
    Useful system fields for interactive reporting are listed in the System Fields for Lists documentation.
    Note
    Lines or components of lines of an internal table that you address using a field symbol (see ASSIGNING addition to the READ and LOOP statements), cannot be retained using HIDE. You can store them using a global variable instead.
    Note
    Runtime errors:
    HIDE_FIELD_TOO_LARGE: The field is too long for HIDE.
    HIDE_ON_EMPTY_PAGE: HIDE not possible on an empty page.
    HIDE_NO_LOCAL: HIDE not possible for a local field.
    HIDE_ILLEGAL_ITAB_SYMBOL: HIDE not possible for a table line or component of a table line.</i>
    and also a sample program.
    report zrich_0003.
    data: begin of itab occurs 0,
          field type c,
          end of itab.
    itab-field = 'A'.  append itab.
    itab-field = 'B'.  append itab.
    itab-field = 'C'.  append itab.
    itab-field = 'D'.  append itab.
    itab-field = 'E'.  append itab.
    loop at itab.
      format hotspot on.
      write:/ itab-field.
      hide itab-field.
      format hotspot off.
    endloop.
    at line-selection.
      write:/ 'You clicked', itab-field.
    It kind of "remembers" what is written, so that when you click on it, it knows what the value is.
    Please remember to award points and mark as solved if  your question has been answered.  Thanks.
    Regards,
    Rich Heilman
    Message was edited by: Rich Heilman

  • What is the minimal Format of an iCal event to attach to an email?

    Hello all!
    I just finished a large order page for a taxi friend. I would like to send the order with an iCal event attached to an email. He should only click on this new file, to enter this pickup order to his iCal ...
    I am struggling with the format. In my CGI script I have the following format, where the $variables are replaced with the convinient strings:
    BEGIN:VCALENDAR
    BEGIN:VEVENT
    DTEND;TZID=Europe/Berlin:$ical_data_end
    SUMMARY:$ical_summary
    DTSTART;TZID=Europe/Berlin:$ical_data_start
    DTSTAMP:$ical_dtstamp
    LOCATION:$ical_location
    SEQUENCE:0
    DESCRIPTION:$ical_comment
    BEGIN:VALARM
    TRIGGER:-PT1H
    DESCRIPTION:Event reminder
    ACTION:DISPLAY
    END:VALARM
    END:VEVENT
    END:VCALENDAR
    Does a time string like "20120608T123500" has to finish with a "Z" ? Do I need additional informations, like "UID:", "X-WR-ALARMUID:" ... In any case my iCal event sent by email is not adding to the iCal saying: "iCal can't read this calendar. No events have been added to your iCal calendar."
    I would be grateful for any hint
    marek

    Surprise Surprise!
    I realized after heavy testing, that a DTSTAMP: is not needed.
    But there is apparently a problem with the DATE-TIME format: Perhaps for other readers, which are in such a desparate situation, as I am since two days now!!! here some explanations:
    The reference about iCal format you find in RFC 5546
    DTSTART; and DTEND; have a time string like follows:
    yyyymmddThhmmss
    In the middle the big letter "T". But you have to add the time zone: for me it is the following:
    DTSTART;TZID=Europe/Berlin:20120608T062500
    Now the big surprise: this time format with an hour over 12 ooops! I tested now once again like follows
    DTEND;TZID=Europe/Berlin:20120608T212500
    DTSTART;TZID=Europe/Berlin:20120608T202500
    changing the hh (hours) with one hour difference up until here. 10 Minutes again, iCal was freezing with hours over 19. I swear!
    Ok to answer my original question: What is the minimal format of an iCal event, which you may attach to an email:
    BEGIN:VCALENDAR
    BEGIN:VEVENT
    DTEND;TZID=Europe/Berlin:20120608T212500
    SUMMARY:Name
    DTSTART;TZID=Europe/Berlin:20120608T202500
    LOCATION:MUC
    SEQUENCE:0
    BEGIN:VALARM
    TRIGGER:-PT1H
    DESCRIPTION:Event reminder
    ACTION:DISPLAY
    END:VALARM
    END:VEVENT
    END:VCALENDAR
    But be aware, that this is buggy. Be carefull and have a nice evening
    marek

  • What are commands in smartforms

    hi gurus
    can anyone suggest me
    what are commands in scripts..
    thank you
    regards
    kals.

    SAPscript Control Commands
    The functionality of the SAPscript editor is made available through a set of commands. These commands give you full editing control over your text. They are executed immediately when called.
    There is, however, another kind of SAPscript command, namely the control commands. The purpose of these is to allow control of the output formatting. These commands are not interpreted by the SAPscript editor, but are passed through to the SAPscript Composer for processing. The Composer is the program that converts text from the form displayed in the editor to the form used for printing. This includes, for example, line and page formatting, the replacement of symbols with their current values and the formatting of text according to the paragraph and character formats specified.
    The SAPscript control commands are described in the following sections.
    Syntax of Control Commands
    Explicit Page Break: NEW-PAGE
    Preventing Page Breaks: PROTECT
    Next Main Window: NEW-WINDOW
    Assigning a Value to a Text Symbol: DEFINE
    Formatting Date Fields: SET DATE MASK
    Formatting Time Fields: SET TIME MASK
    Country-Dependent Formatting: SET COUNTRY
    Position of the Leading Sign: SET SIGN
    Initializing Numbered Paragraphs: RESET
    Including Other Texts: INCLUDE
    Changing the Style: STYLE
    Formatting Addresses: ADDRESS
    Setting a Header Text in the Main Window: TOP
    Setting a Footer Text in the Main Window: BOTTOM
    Conditional Text: IF
    Finding a Match: CASE
    Calling ABAP Subroutines: PERFORM
    Inserting Print Controls: PRINT-CONTROL
    Boxes, Lines, Shading: BOX, POSITION, SIZE
    Hexadecimal Data: HEX, ENDHEX
    Summing a Program Symbol: SUMMING
    Check this link for detail information.
    http://help.sap.com/saphelp_40b/helpdata/en/d1/80318f454211d189710000e8322d00/content.htm

  • How do I show the output of a command called within a gui script

    I'm starting from scratch on a project I've been tasked with.  My intention is a quick down-and-dirty way to apply an image within winPE to apply a windows image to the machine I've booted to a usb drive loaded with winPE.
    Here's my start.  It's rough, but, I have to start somewhere.
    [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
    [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
    $objForm = New-Object System.Windows.Forms.Form
    $objForm.Text = "DISM"
    $objForm.Size = New-Object System.Drawing.Size(600,400)
    $objForm.AutoSizeMode = "GrowAndShrink"
    $objForm.StartPosition = "CenterScreen"
    $objForm.FormBorderStyle = "Fixed3D"
    $objForm.KeyPreview = $True
    Function do_DISM{
    $dism = "dism /apply-image /imagefile:D:\W7x86.wim /index:1 /applydir:C:\"
    Invoke-Expression $dism
    $DISMButton = New-Object System.Windows.Forms.Button
    $DISMButton.BackColor = "ButtonFace"
    $DISMButton.Location = New-Object System.Drawing.Size(12,27)
    $DISMButton.Size = New-Object System.Drawing.Size(120,25)
    $DISMButton.TabIndex = 1
    $DISMButton.Text = “Start DISM”
    $DISMButton.Add_Click({do_DISM})
    $objForm.Controls.Add($DISMButton)
    $objForm.Add_Shown({$objForm.Activate()})
    [void] $objForm.ShowDialog()
    Now, this does work, and it will in fact apply the windows image to c:\ which is what I need it to do.  But, I have a few quesitons.
    Am I correct to use "Invoke-Expression" in the function do_DISM to start the command?  According to technet's articles, yes, but, want to make sure I'm doing this the proper way, since I'm learning that calling Invoke-Expression isn't always
    the way to do things.
    Also, since this will be used by others in my group, I'm going to need to show some sort of progress report on how far along DISM is getting along, otherwise, 5 minutes into DISM running, some people are going to think nothing's happening, and just power
    down the computer no matter what I tell them.  I know that running DISM from the command line, it will show a progress bar that is adequate for what I'm needing.  Running the script above and clicking the button, it does run, but, all in the background
    with no progress indication.  Is there a way I can tell either in the function or when the function calls Invoke-Expression to run DISM, to open in a new command window which shows the live progress of the command running?
    Again, my disclaimer: VERY new to writing bits of code, and am trying my best here, so, thanks in advance for patience with me.

    That's exactly what I was looking for!  Thank you!
    Changed code to:
    $dism = "X:\Windows\System32\Cmd.exe /c start CMD /k dism /apply-image /imagefile:D:\W7x86.wim /index:1 /applydir:C:\"
    And voila, new window opened with the live output of dism.
    new... and have a glazed over look about my eyes to prove it...

  • Preprocessor command, assigned the variable and then compare the variable to int. How can I get around this?

    #define ON 1
    #define OFF 0
    in seperate code
    int variable = ON;
    variable is globally define for that module.
    in seperate code
    if (variable == ON)
    the complier errors off on the if (variable==ON)
    My guess variable is variable in of type int and ON is a preprocessor command. Therefore it is a mismatch and complier doesn't like it. How can I get around this.
    thank
    Mahen

    Mahen
    What is the exact message of the compiler?
    I think the error is, that the compiler does not find the definition of ON
    and OFF. Is it in the same source file?
    If not, try to put it into an .h file and include it where you need it.
    Stephan
    "Mahen" schrieb im Newsbeitrag
    news:[email protected]..
    > Preprocessor command, assigned the variable and then compare the
    > variable to int.
    >
    > How can I get around this?
    >
    > #define ON 1
    > #define OFF 0
    > in seperate code
    >
    > int variable = ON;
    > variable is globally define for that module.
    > in seperate code
    > if (variable == ON)
    > {
    >
    >
    > }
    >
    > the complier errors off on the if (variable==ON)
    > My guess variable is variable in of type int and ON is a preprocessor
    > c
    ommand. Therefore it is a mismatch and complier doesn't like it. How
    > can I get around this.
    > thank
    > Mahen

  • What is difference between local variable and property node ?

    What is difference between local variable and property node ?
    " 一天到晚游泳的鱼"
    [email protected]
    我的个人网站:LabVIEW——北方客栈 http://www.labview365.com
    欢迎加入《LabVIEW编程思想》组——http://decibel.ni.com/content/groups/thinking-in-labview

    To make things clear, here are two small examples that show how nasty locals and value properties can be to the naive programmer.
    - Open the diagram of the race condition.vi before running it and try to predict what will be the values of the two counters after the third run.
    - Use the Compare Locals Properties and Wires.vi to find out how slow locals and value properties can be (times 1000+).
    This being demonstrated, I must add that I use globals and value properties quite often, because they are often very convenient
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Race condition.vi ‏9 KB
    Compare Locals Properties and Wires.vi ‏18 KB

  • What is the next step after editing or triming a video ? What type of file format to save and what to do after that ?

    what is the next step after editing or triming a video?
    what type of file format should be save and what to do after that?

    In the early days of digital video editing, an export render could take hours!  Not many applications are as hard on system resources as video editing, and rendering the final edit is probably the most system intense action of all.  
    Head on over to the Premiere Pro Hardware forum to see what sort of computer hardware the pros use for NLE (non linear editing), or to the PPBM5 site for a better look.
    PPBM5 Benchmark
    Also check out the specs on the Video Guys website

  • What is the best format to use on an external hard drive so I can both back up my Macbook Pro and also put movies on it from another hard drive (PC)?

    I am looking for a solution to whether if it is best to get two hard drives or one that can do two things that I want.
    I am looking for a hard drive format that can both back up my 500GB Macbook Pro but I was also wondering if I could also put movies on it from another hard drive that is PC based. Would partitioning the hard drive work for this? I don't know what are the best formats to use.
    If this is too hard it might just be easier having a separate 500GB hard drive for back up of my Mac and another bigger hard drive for the movies etc (the files are probably bigger than 4GB). Any help would be greatly appreciated as I need to make a decision soon!

    Csound1 wrote:
    Microsoft has not released the official exFAT file system specification, and a restrictive license from Microsoft is required in order to make and distribute exFAT implementations. Microsoft also asserts patents on exFAT which make it impossible to re-implement its functionality in a compatible way without violating a large percentage of them.[13] This renders the implementation, distribution, and use of exFAT as a part of free or open-source operating systems or of commercial software, for which the vendors could not obtain a license from Microsoft, not only technically difficult, but legally impossible in countries that recognize United States software patents.
    Can't help with that, if one is using a Windows machine then they are subjected to their rules and control.
    Limited support outside Windows and Mac OS X operating systems as of 2012, when most consumer electronic devices could only handleFAT12/FAT16/FAT32, rendering exFAT (and flash memory formats using it) impractical as a universal exchange format.
    The OP said they plan to store movies on the external drive.
    Many movies today are well over 4GB in size, thus exFAT has to be used and formatted on the PC, which the Mac can then read.
    Older Windows NT versions up to Windows Vista without Service Pack 1 do not support exFAT.
    Irrelevant, Microsoft provides a free download of exFAT for Windows XP, and Vista shouldn't be running on pre SP1 anyway.
    Some distributions of Linux have begun to include support for exFAT. It is however, only available as a file system in user space, as it's not supported by the kernel.
    Irrelevant, OP is using Windows and OS X, not Linux and if they did Linux can read the files at least and transfer, which is all they care about really.
    Windows Vista is unable to use exFAT drives for ReadyBoost. Windows 7 removes this limitation, enabling ReadyBoost caches larger than 4 GiB.[14]
    Irrelevant, the OP's is intending to use it as transfer drive between Mac's and Windows for movies.
    The standard exFAT implementation only uses a single file allocation table and free space map. FAT file systems instead used alternating tables, as this allowed recovery of the file system if the media was ejected during a write (which occurs frequently in practice with removable media). The optional TexFAT component adds support for additional backup tables and maps, but may not be supported.
    Some relevancy, but only exFAT can handle 4GB+ files between Mac's and PC's, so the need outweighs the possible problem.
    The OP needs to follow the standard Windows practice of "safely removing hardware" before physically disconnecting the external drive. If a write is occurring, it won't allow disconnecting until the write is finished.
    Support for up to 2,796,202 files per subdirectory only.[1][nb 3] Microsoft documents a limit of 65,534 files per sub-directory for their FAT32 implementation, but other operating systems have no special limit for the number of files in a FAT32 directory. FAT32 implementations in other operating systems allow an unlimited number of files up to the number of available clusters (that is, up to 268,304,373 files on volumes without long filenames).[nb 4]
    Not a issue, only in extreme cases of a lot of small files. The OP plans to use it for movies which are usually large and take up a lot of space on the drive.
    IMMO It looks like you just ran off and copied something to argue your point when all the points are basically irrelevant.
    There is only one format that can easily share 4GB sized files between Mac's and PC's without further complications.
    It's ALSO possible to install MacDrive on the PC and format the drive on the Mac HFS+, but I didn't recommend that because I know it's a hassle just like third party NTFS writing software is a hassle on Mac's.
    If you so anti-Microsoft format, then you must know Paragon has to pay a license fee to Microsoft for using the NTFS format.
    At least with exFAT there is no fee to Redmond, at least not yet.

  • Page format for SAP-Script not working in 4.6C

    Hi all,
    I have a problem regarding check printing.
    I am using SAP version 4.6C
    The size of paper for check printing is
              width  = 231 mm
              Height = 304 mm
    So for this I have created a new page format with these details in SPAD.
    Then I assigned this Page format to spool format and assigned that spool format to SAPWIN driver. I have assigned this page format to the SCRIPT that is used for check printing .
    But when I am taking the print out for the check with new page format, the printer don’t print till the end of page, it prints till the total amount on check and then stops there. So this creates an alignment problem when taking printout for multiple checks.
    Please give some solution for this.
    Regards,
    Bharat.

    I guess you are printing on dot matrix printer. If yes, try to do some physical printer settings for the dot matrix printer by following the printer manual. I guess you have to change the page size.. or set default printer settings... it may help you to solve your problem...
    if not goto your device types tab in SPAD and select device types.. select your device from the list (for ex, SAPWIN) click format and goto the format that you have inserted for this device types.. double click on your format, you will see printer Indialization.. try to write code like this
    set page length to 8.5 inch (=52 lines at 6 LPI)
    \e\0x43\0x44
    Note the above hexa decimal value can be obtained by going through the printer manual.
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • What is the export format for Iphone and Android (Premiere Pro CS6)?

    For Iphone, Ipad and Android, what is the export format (Premiere Pro CS6) for watching videos ?

    http://forums.adobe.com/message/5950682#5950682

  • What is command for full screen preview?

    Hello guys,
    could please anyone just remind me? Because I haven't use it for a while, I have completely forget what the command is.
    When I go to
    View>Video Playback>Digital Cinema Desktop Preview
    then there is some command which brings Canvas to full screen. Which one is it?
    Thank you.

    view > external video > all frames
    or
    command + F12

Maybe you are looking for

  • Need help in SQL - subquery

    I have 2 tables. Tbl1 (col1, col2) Tbl2 (col1, col2) all columns are varchar I am writing a sub query like: select * from tbl1 where col1 in (select col1 from tbl2) this works perfectly 1) Now I am writing a function which returns a single value crea

  • ABAP Query - Selection Screen Values Usage

    Hi,    I have created an ABAP Query. For one of the selection-screen fields (CAUFV-FTRMI) which is select-options, I want to use the values during coding (in the where clause of a select query) in Extras section under the event "record processing". P

  • Generic Data Source is calling multiple times in RSA3

    [color:red}<Moderator Message: This topic has alread been discussed a lot of times. Additionally there are weblogs related to it. Please search the forums and/or the blogs for this issue> Hi experts, I have the requirement to get data from Generic Da

  • Accts Pay/Rec and Procure to Pay/Order to Cash Question.

    I have seen different country specific oracle sites list the following courses 1 Procure to Pay Fundamentals Order to Cash Fundamentals 2 Implement and use Payables Implement and use Receivables Are (1) and (2) the same thing. thanks

  • Webservice - XI - File

    Hi Experts, Is it possible to do Webservice -> XI -> File (Synchronous) scenario thro' XI? Regards Sara