Help with Replacing text in a file using a vbscript

I have the following script which I am wanting to
1. Take the prf file and read it
2. Edit a line in the  outlook .prf file replacing it with the text I have asked it to replace which is the full name of the user pulled from the currently logged on user
The problem I am seeing is that when the temp file is being generated it is throwing off the formatting of the file hence the script doesn't work. Can anyone help me please.
set objSysInfo = CreateObject("ADSystemInfo")
struser = objSysInfo.Username
set objUser = GetObject("LDAP://" & strUser)
strFullName = objUser.Get("displayName")
Const ForReading=1
Const ForWriting=2
Set objFSO = CreateObject("Scripting.FileSystemObject")
folder = "C:\test"
'filePath = folder & "file.txt"
filePath = "c:\test\test2007_3.prf"
Set myFile = objFSO.OpenTextFile(filePath, ForReading)
Set myTemp= objFSO.OpenTextFile(filePath & ".tmp", ForWriting, True)
Do While Not myFile.AtEndofStream
myLine = myFile.ReadLine
 If InStr(myLine, "MailboxName=%UserName%") Then
  myLine = "&strFullName"
 End If
 myTemp.WriteLine myLine
Loop
myFile.Close
myTemp.Close
objFSO.DeleteFile(filePath)
objFSO.MoveFile filePath& ".tmp", filePath
Christopher

Sorry Irv,
Here is the code I have and then after that is the prf file. I think there is an issue with the file structure because if I take a regular text file and add the lines in there myself it replaces the lines, but with the prf file or even the prf file as a
text file it gives me the invalid argument message
Const filePath = "c:\test\test2007_3.txt"
 Set objFSO = CreateObject("Scripting.FileSystemObject")
 Set myFile = objFSO.OpenTextFile(filePath)
fileText = myFile.ReadAll()
myFile.Close
fileText=Replace(fileText,"%UserName%","THIS_IS_THS_REPLACEMENT_TEXT")
 Set myTemp= objFSO.OpenTextFile(filePath, 2, True)
 myTemp.Write fileText
 myTemp.Close
;Automatically generated PRF file from the Microsoft Office Customization and Installation Wizard
; Section 1 - Profile Defaults
[General]
Custom=1
ProfileName=Somthing
DefaultProfile=Yes
OverwriteProfile=Yes
ModifyDefaultProfileIfPresent=false
DefaultStore=Service1
; Section 2 - Services in Profile
[Service List]
ServiceX=Microsoft Outlook Client
ServiceEGS=Exchange Global Section
Service1=Microsoft Exchange Server
ServiceEGS=Exchange Global Section
; Section 3 - List of internet accounts
[Internet Account List]
; Section 4 - Default values for each service.
[ServiceX]
CachedExchangeMode=0x00000002
CachedExchangeSlowDetect=true
[ServiceEGS]
CachedExchangeConfigFlags=0x00000900
MailboxName=%UserName%
HomeServer=
RPCoverHTTPflags=0x0027
RPCProxyServer=
RPCProxyPrincipalName=
RPCProxyAuthScheme=0x0001
[Service1]
OverwriteExistingService=No
UniqueService=Yes
MailboxName=%UserName%
HomeServer=
OfflineAddressBookPath=%USERPROFILE%\local settings\application data\microsoft\outlook\
OfflineFolderPathAndFilename=%USERPROFILE%\local settings\application data\microsoft\outlook\outlook.ost
AccountName=Microsoft Exchange Server
DefaultAccount=TRUE
;[ServiceX]
;FormDirectoryPage=
;-- The URL of Exchange Web Services Form Directory page used to create Web forms.
;WebServicesLocation=
;-- The URL of Exchange Web Services page used to display unknown forms.
;ComposeWithWebServices=
;-- Set to true to use Exchange Web Services to compose forms.
;PromptWhenUsingWebServices=
;-- Set to true to use Exchange Web Services to display unknown forms.
;OpenWithWebServices=
;-- Set to true to prompt user before opening unknown forms when using Exchange Web Services.
; Section 5 - Values for each internet account.
; Section 6 - Mapping for profile properties
[Microsoft Exchange Server]
ServiceName=MSEMS
MDBGUID=5494A1C0297F101BA58708002B2A2517
MailboxName=PT_STRING8,0x6607
HomeServer=PT_STRING8,0x6608
OfflineAddressBookPath=PT_STRING8,0x660E
OfflineFolderPathAndFilename=PT_STRING8,0x6610
[Exchange Global Section]
SectionGUID=13dbb0c8aa05101a9bb000aa002fc45a
MailboxName=PT_STRING8,0x6607
HomeServer=PT_STRING8,0x6608
RPCoverHTTPflags=PT_LONG,0x6623
RPCProxyServer=PT_UNICODE,0x6622
RPCProxyPrincipalName=PT_UNICODE,0x6625
RPCProxyAuthScheme=PT_LONG,0x6627
CachedExchangeConfigFlags=PT_LONG,0x6629
[Microsoft Mail]
ServiceName=MSFS
ServerPath=PT_STRING8,0x6600
Mailbox=PT_STRING8,0x6601
Password=PT_STRING8,0x67f0
RememberPassword=PT_BOOLEAN,0x6606
ConnectionType=PT_LONG,0x6603
UseSessionLog=PT_BOOLEAN,0x6604
SessionLogPath=PT_STRING8,0x6605
EnableUpload=PT_BOOLEAN,0x6620
EnableDownload=PT_BOOLEAN,0x6621
UploadMask=PT_LONG,0x6622
NetBiosNotification=PT_BOOLEAN,0x6623
NewMailPollInterval=PT_STRING8,0x6624
DisplayGalOnly=PT_BOOLEAN,0x6625
UseHeadersOnLAN=PT_BOOLEAN,0x6630
UseLocalAdressBookOnLAN=PT_BOOLEAN,0x6631
UseExternalToHelpDeliverOnLAN=PT_BOOLEAN,0x6632
UseHeadersOnRAS=PT_BOOLEAN,0x6640
UseLocalAdressBookOnRAS=PT_BOOLEAN,0x6641
UseExternalToHelpDeliverOnRAS=PT_BOOLEAN,0x6639
ConnectOnStartup=PT_BOOLEAN,0x6642
DisconnectAfterRetrieveHeaders=PT_BOOLEAN,0x6643
DisconnectAfterRetrieveMail=PT_BOOLEAN,0x6644
DisconnectOnExit=PT_BOOLEAN,0x6645
DefaultDialupConnectionName=PT_STRING8,0x6646
DialupRetryCount=PT_STRING8,0x6648
DialupRetryDelay=PT_STRING8,0x6649
[Personal Folders]
ServiceName=MSPST MS
Name=PT_STRING8,0x3001
PathAndFilenameToPersonalFolders=PT_STRING8,0x6700 
RememberPassword=PT_BOOLEAN,0x6701
EncryptionType=PT_LONG,0x6702
Password=PT_STRING8,0x6703
[Unicode Personal Folders]
ServiceName=MSUPST MS
Name=PT_UNICODE,0x3001
PathAndFilenameToPersonalFolders=PT_STRING8,0x6700 
RememberPassword=PT_BOOLEAN,0x6701
EncryptionType=PT_LONG,0x6702
Password=PT_STRING8,0x6703
[Outlook Address Book]
ServiceName=CONTAB
[LDAP Directory]
ServiceName=EMABLT
ServerName=PT_STRING8,0x6600
UserName=PT_STRING8,0x6602
UseSSL=PT_BOOLEAN,0x6613
UseSPA=PT_BOOLEAN,0x6615
EnableBrowsing=PT_BOOLEAN,0x6622
DisplayName=PT_STRING8,0x3001
ConnectionPort=PT_STRING8,0x6601
SearchTimeout=PT_STRING8,0x6607
MaxEntriesReturned=PT_STRING8,0x6608
SearchBase=PT_STRING8,0x6603
CheckNames=PT_STRING8,0x6624
DefaultSearch=PT_LONG,0x6623
[Microsoft Outlook Client]
SectionGUID=0a0d020000000000c000000000000046
FormDirectoryPage=PT_STRING8,0x0270
WebServicesLocation=PT_STRING8,0x0271
ComposeWithWebServices=PT_BOOLEAN,0x0272
PromptWhenUsingWebServices=PT_BOOLEAN,0x0273
OpenWithWebServices=PT_BOOLEAN,0x0274
CachedExchangeMode=PT_LONG,0x041f
CachedExchangeSlowDetect=PT_BOOLEAN,0x0420
[Personal Address Book]
ServiceName=MSPST AB
NameOfPAB=PT_STRING8,0x001e3001
PathAndFilename=PT_STRING8,0x001e6600
ShowNamesBy=PT_LONG,0x00036601
; Section 7 - Mapping for internet account properties.  DO NOT MODIFY.
[I_Mail]
AccountType=POP3
;--- POP3 Account Settings ---
AccountName=PT_UNICODE,0x0002
DisplayName=PT_UNICODE,0x000B
EmailAddress=PT_UNICODE,0x000C
;--- POP3 Account Settings ---
POP3Server=PT_UNICODE,0x0100
POP3UserName=PT_UNICODE,0x0101
POP3UseSPA=PT_LONG,0x0108
Organization=PT_UNICODE,0x0107
ReplyEmailAddress=PT_UNICODE,0x0103
POP3Port=PT_LONG,0x0104
POP3UseSSL=PT_LONG,0x0105
; --- SMTP Account Settings ---
SMTPServer=PT_UNICODE,0x0200
SMTPUseAuth=PT_LONG,0x0203
SMTPAuthMethod=PT_LONG,0x0208
SMTPUserName=PT_UNICODE,0x0204
SMTPUseSPA=PT_LONG,0x0207
ConnectionType=PT_LONG,0x000F
ConnectionOID=PT_UNICODE,0x0010
SMTPPort=PT_LONG,0x0201
SMTPSecureConnection=PT_LONG,0x020A
ServerTimeOut=PT_LONG,0x0209
LeaveOnServer=PT_LONG,0x1000
[IMAP_I_Mail]
AccountType=IMAP
;--- IMAP Account Settings ---
AccountName=PT_UNICODE,0x0002
DisplayName=PT_UNICODE,0x000B
EmailAddress=PT_UNICODE,0x000C
;--- IMAP Account Settings ---
IMAPServer=PT_UNICODE,0x0100
IMAPUserName=PT_UNICODE,0x0101
IMAPUseSPA=PT_LONG,0x0108
Organization=PT_UNICODE,0x0107
ReplyEmailAddress=PT_UNICODE,0x0103
IMAPPort=PT_LONG,0x0104
IMAPUseSSL=PT_LONG,0x0105
; --- SMTP Account Settings ---
SMTPServer=PT_UNICODE,0x0200
SMTPUseAuth=PT_LONG,0x0203
SMTPAuthMethod=PT_LONG,0x0208
SMTPUserName=PT_UNICODE,0x0204
SMTPUseSPA=PT_LONG,0x0207
ConnectionType=PT_LONG,0x000F
ConnectionOID=PT_UNICODE,0x0010
SMTPPort=PT_LONG,0x0201
SMTPSecureConnection=PT_LONG,0x020A
ServerTimeOut=PT_LONG,0x0209
CheckNewImap=PT_LONG,0x1100
RootFolder=PT_UNICODE,0x1101
[INET_HTTP]
AccountType=HOTMAIL
Account=PT_UNICODE,0x0002
HttpServer=PT_UNICODE,0x0100
UserName=PT_UNICODE,0x0101
Organization=PT_UNICODE,0x0107
UseSPA=PT_LONG,0x0108
TimeOut=PT_LONG,0x0209
Reply=PT_UNICODE,0x0103
EmailAddress=PT_UNICODE,0x000C
FullName=PT_UNICODE,0x000B
Connection Type=PT_LONG,0x000F
ConnectOID=PT_UNICODE,0x0010
Christopher

Similar Messages

  • I need help with my text tone and I have ring tone. no text tone for the 4s.

    I need help with my text tone. I have ring tone no text tone. I have a 4s.

        Hi Sarar2333!  Let's get your text tones working again!
    Here's a link with instructions how to enable and change your alert sounds for your text/notification settings on your iPhone 4S: http://vz.to/1stiF8a.  You can ensure text tones are enabled by selecting a tone in the "Text Tone" setting.  Let me know how that works out for you.  Thanks!
    AnthonyTa_VZW
    Follow us on Twitter @VZWSupport

  • Problem with replace text in file

    Hi!
    I have some file (*.txt) and I want to replace some strings in this file, which are stay in different positions in the file. How I can do this?
    My code is:
    1String fileName = filePath + File.separator + "text.txt";
    2.FileWriter fileWriter = new FileWriter(fileName, true);
    3 BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);
    4. bufferedWriter.write(replaceString, findPos, replaceString.length());
    5. bufferedWriter.close();
    but it's not work. If I change 4 row to
    bufferedWriter.write(replaceString) the replace string append to end of file.
    Thank you.

    You have to use RandomAccessFile if you want to overwrite some text in a file. With that class you can place the file pointer anywhere you want, and write from there.
    The FileWriter and FileOutputStream can only append to a file.

  • Find & Replace text in html files

    This is my first real attempt at using Automator, and it has become increasingly frustrating for me. I love the idea of Automator, nice interface, and it appears to be so easy to use. But, I can't get it to actually DO anything and I don't understand why.
    Here is my goal:
    to batch process multiple html files to remove certain characters and words (or replace them with empty space).
    I currently open these files in Pages and do 6 separate Find & Replace commands for each file before I continue with my other processing tasks. This is very tedious and I believe the computer should be able to find & replace multiple items at one time. (I have used other utilities to do batch renaming and trimming file names before.)
    All I want to do is select a group of files (usually 25 at a time) and have Automator get rid of all the unwanted words and characters before I open each file for final processing in Pages. I found a set of Automator actions for TextEdit which includes a Find & Replace action, but I've wasted over an hour so far trying to get it to work.
    When I run the workflow, it acts like it's doing something, but the files remain unchanged. I have tried using actions such as Read Text File, Get Contents of TextEdit Document, Set Contents of TextEdit Document, along with 6 instances of Find & Replace, but I cannot get it to work.
    I'm at a point today where I cannot afford to mess around with this anymore. I have to do it the long way in Pages or else I'll never get it done, but I want to get these Automator workflows to work before I have to repeat this task. (I do this at least once a week right now.)
    Any ideas or suggestions? I've tried reading in the help menus and support pages, but perhaps I'm just not understanding something here.

    Any ideas or suggestions?
    You might be interested in using TextWrangler. It can perform batch find-and-replace changes across multiple selected files.
    Good luck!
    Andrew99

  • Need help with cleening text during ExportAllStories (JS-CS4)

    I have altered the ExportAllStories.jsx script for CS4 to export the selected TextFrame(s).
    The main function are the same as in the original.
    It works fine, but I need advice on how to clean the text before it gets exported to a text file.
    I have tried to pass the TextFrame object myStory, as in the original script, to a function like this:
    myStory = cleantext(myStory)
    The function cleantext works with a text string passed to it,like this:
    function cleantext(s) {
    s.replace(/\u2011/g,'-');
    I guess I have to extract the myStory object to a text string but haven’t succeeded yet.
    Maybe the solution is to do some search and replace with GREP or other techniques?
    All tips on how to proceed would be appreciated.

    This is how i solved my problem.
    With the help from Peter Kahrels function
    function replace (f, r)
       app.findGrepPreferences.findWhat = f;
       app.changeGrepPreferences.changeTo =r;
       app.documents[0].changeGrep ()
    And in my script I could easily do this:
    app.findGrepPreferences = app.changeGrepPreferences = null;
    story = app.selection[0].parentStory;
    // Sample: Replace non-breaking hyphen (8209 -> \u2011) with a regular hyphen.
    replace("/\u2011/g",'-');
    app.findGrepPreferences = app.changeGrepPreferences = null;
    And thereafter proceeding with the exporting stuff.
    Thank you all contributors in this forum!

  • Help with editing a template flash file..

    FIRST OFF..please don't shoot the noobee..I know some folks
    don't like the templates and I appreciate that.
    I have done some reading but not a whole lot about Flash. I
    certainly don't want to BUILD a flash (not yet), but want to edit
    one that is included in a template. I only want to edit the header
    that drops down. It says The Web STudio. I, for example, want it to
    say Marks Studio.
    Ok..the temp comes with Flash/non flash.
    I open w/flash and have a 3 folders: flash, psd and html.
    -flash folder has Images, fla doc and one flash html file
    -PSD folder has 3 psd files
    -html folder has flash folder, images folder, css file and
    one single index.html file.
    I opened the flash folder and found the image.jpg I wanted to
    change to Marks studio.
    I opend the PSD and found the slice that is the same as that,
    then edited it like I want it in PSD, then saved to replace the old
    image. top1. jpg
    Still, it is the same ole one that came with the temp.
    as I said, please don't shoot the noobe. I just wanna edit
    the flash file.
    Thanks for any help.
    Mark

    You'd need Flash to edit the FLA file.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "snipingkid" <[email protected]> wrote in
    message
    news:enev5r$p8l$[email protected]..
    > Hey guys,
    >
    > I need some help with editing a flash template, I have
    the .swf, .fla, and
    > .html file of this thing, I would like however to edit
    something on it....
    > Ive
    > tried everything, I have access to photoshop and
    dreamweaver 8... Im not
    > any
    > good at it but with decent help I could get something
    done. What I would
    > like
    > to edit is just text that flies in.... I would like to
    edit the text, how
    > do I
    > do it.... Thanksj
    >

  • Need some help with backing up external hard drive using Time Machine

    Hi all, I'm trying to work out the best way to back up multiple iPhoto libraries using Time Machine.
    At the moment I have got an iMac and Macbook Pro, both of which have an iPhoto library (with different content).  Currently these are not backed up at all.  So what I want to do is back both up to an NAS drive, which I know is straightforward.
    What I also want to do is create one iPhoto library on an external hard drive that I can use with my MBP, and then delete the iPhoto library on my MBP to free up some hard drive space (it's running slower and slower and I'm hoping that this might help it run quicker). 
    So, as I want to have the library on two seperate drives in case one fails, what I want to know is whether I could use Time Machine to back up my external hard drive as well as the internal drive of my MBP?  Also, would I need to have the external drive connected at all times for Time Machine to "see" it?
    I hope that makes sense, all I seem to be doing currently is going round and round and can't work out whether what I want to do is possible or not.
    Thanks in advance

    If I understand your goal correctly, you're considering using Time Machine as external storage, and it doesn't work that way.  Time Machine keeps around what it can, and older stuff gets flushed as the storage available to Time Machine reaches its lower threshold due to the addition of newer stuff.  When the older stuff gets flushed is not predictable.
    It is possible to have several Time Machine backups aimed at the same target (this can be done with Apple Time Capsule, for instance), though you might want to partition the disks to ensure that the intended amount of storage is available.  Different NAS drives have different features here.
    NAS is only as fast as your network connection, and that's almost always much slower than the in-box I/O connections; a local disk will be far faster than a NAS disk, just because of the bottleneck that is wired gigabit Ethernet, and most WiFi is slower and sometimes far slower than wired gigabit Ethernet.  FWIW.
    If your MacBook Pro is old enough and you have $$ but aren't in a position to spend $$$$$ on a newer model, then consider an in-place drive upgrade.
    If your network connection is fast enough to transfer the amount of data you're dealing with in a reasonable time, there are also hosted storage options.
    You can use a NAS drive as storage independent of Time Machine, and relocate stuff there.  (You'll still want to have backups of that data, as NAS drives — even NAS with RAID — can still lose files, become corrupted or otherwise ruin your data day.
    As for your performance, keeping about 10% or so free on the disks is the local preference, but it's worth reviewing the performance of the whole system — Performance Monitor, Console.app, etc — to see if there's something else going on, or if your system load and personal performance expectations are exceeding what your MacBook Pro can provide.

  • Need help with optimizing text appearance when exporting video

    Here's what I'm trying to do:
    1. Convert a Powerpoint presentation to an MP4 (AVC) file, frame rate 30 (actually defaults to 29.97) and video bit rate of 1200kbps,using Wondershare PPT2VideoPro.  (There are no actual video clips contained in the original PPT file).
    2. Import the newly created MP4 video into a new project in Premeire Elements.
    3. Add audio files (WAV) created by Audacity.
    4. Export the final product as a video.
    Here's the problem:
    The text quality in the final exported film is very poor, and the screen occasionally seems to sublty flicker once and a while.  I've tried multiple different settings, but all with the same result.
    Can anyone offer suggestions on optimal settings for exporting the final product such that the text is as clear as possible?  (The text in the MP4 file created by Wondershare looks great.)
    Thanks!
    - Ernest

    One option would be to create the Text Images in Photoshop, and Save_As a PSD.
    For large sets of Titles, I do the text portion in Word/WordPerfect, so I can use Spell-Check. Then in PS, I just Copy/Paste the text into an Image, where I apply all of the PS Styles that I need. Because I use PrPro for most of my NLE work, I will often do the Titles with Layered Text, and Import those as a Sequence, so that the Layers are not Flattened. This allows me to independently animate each Layer, as I need. Unfortunately, PrE does not allow one to Import the Layered PSD's, Unflattened, as it does not have Sequences.
    Also note that PrE's Titler's Styles are just a starting point. Once applied, one can alter most aspects, and when they are satisfied with the changes, they can then Save the new Style and re-use it over and over. Do not forget the ability to modify those Styles.
    From PowerPoint, and this depends on the version, the best that one can usually do is to Export each "slide" as a TIFF, and Import those into the NLE program.
    Good luck,
    Hunt

  • Help with Scrolling Text

    I am a big iMovie fan, but I have just had a problem while attempting to create a video game trailer. I have never experienced this before, and I do not know how to get by it.
    Ok. So I have 20 seconds of scrolling text, and about 28 lines of text. 247 characters with no spaces if you really want to know. I have 20 seconds of video behind it.
    Here's the problem: The last five lines of text are cut off. They are completely normal: Helvectia, Bold, 16 size, Left sided, white. There is no fancy text or images around it besides for the video behind it. (It played fine before with no video behind it).
    I've tried resizing the video, the text length, everything I can think of, and nothing works. Please help ASAP.
    I am running this on a MacBook, iMovie '08, the total time of video is 41 seconds. The video behind the scrolling text is a .mov file.
    Thanks!

    Note: The problem seems to have fixed itself. I do not know what the problem was, but I was messing around with the text and I noticed the missing lines were back. If anybody knows what the problem was, or wants to contribute to this post, please do so.
    Thanks!
    Contact: jomskylark [AT] gmail [DOT] com
    Message was edited by: sky_lark

  • Help with Scrolling Text Item.

    Hi , need help with making a text item scrollable.
    i.e. A field is 30 characters and i can only display 10
    characters, now what I would like is a scroll bar under the text
    item.
    Is this possible. I am using Forms 5.
    Thanx for any help.
    Pankaj Patel.
    null

    Petr Valouch (guest) wrote:
    : Pankaj Patel (guest) wrote:
    : : Hi , need help with making a text item scrollable.
    : : i.e. A field is 30 characters and i can only display 10
    : : characters, now what I would like is a scroll bar under the
    : text
    : : item.
    : : Is this possible. I am using Forms 5.
    : : Thanx for any help.
    : : Pankaj Patel.
    : Hi
    : You need that scrollbar under the item? You can set length
    of
    : text item and its size independently, so you can have text
    item
    : char(30) with size of 10 characters.
    An alternative is to declare the item as a multi-line text item
    with wrap set on. This would give you a vertical scroll bar on
    the item.
    Another option is to programmaticaly pop up an Editor, each time
    focus is moved to the item, or to actually change the width of
    the item when focus moves to it (and shrink it back when focus
    moves away.
    Simon Hedges
    Gloucester
    UK
    null

  • Value help with short text

    Hi gurus,
    I'm trying to create a input value help with the records from my internal table but I woulkd like also to put the short when the popup displays.
    Actually I only have the records.
    SELECTION-SCREEN BEGIN OF BLOCK ref WITH FRAME TITLE text-t03.
    SELECT-OPTIONS:
                    s_kstar FOR i_cska-kstar.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_kstar-low.
      PERFORM search_kstar USING s_kstar-low.
    FORM search_kstar
                     using kstar type cska-kstar.
      SELECT * FROM cska
                   INTO CORRESPONDING FIELDS OF TABLE i_cska
                   WHERE kstar LIKE '08%'
                   OR    kstar LIKE '008%'
                   OR    kstar LIKE '0008%'.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield    = 'KSTAR'
          dynprofield = 's_kstar'
          dynpprog    = sy-cprog
          dynpnr      = sy-dynnr
          value_org   = 'S'
        TABLES
          value_tab   = i_cska.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CALL FUNCTION 'HELP_VALUES_GET'
           EXPORTING
                fieldname        =  'KSTAR'
                tabname          =  'i_cska'
           IMPORTING
                SELECT_VALUE     =   kstar.
    ENDFORM.                    " SEARCH_KSTAR
    Anybody would a solution.
    Thx in advance for your help.
    Mohamed.

    Hi Mohamed,
    Check the Following.
    "  Implement your own search Help as below
    PARAMETERS : carrid TYPE spfli-carrid,
                 connid TYPE spfli-connid,
                 fldate TYPE sflight-fldate.
    DATA : itab TYPE TABLE OF sflight WITH HEADER LINE.
    DATA : fmap TYPE TABLE OF dselc WITH HEADER LINE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR carrid." If it is a selection Screen
    else in PROCESS ON VALUE REQUEST
      SELECT * FROM sflight INTO TABLE itab.
      SORT itab BY carrid connid fldate.
      DELETE ADJACENT DUPLICATES FROM itab
      COMPARING carrid connid fldate.
      fmap-fldname = 'CARRID'.
      fmap-dyfldname = 'CARRID'.
      APPEND fmap.
      fmap-fldname = 'CONNID'.
      fmap-dyfldname = 'CONNID'.
      APPEND fmap.
      fmap-fldname = 'FLDATE'.
      fmap-dyfldname = 'FLDATE'.
      APPEND fmap.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
         ddic_structure         = 'SFLIGHT'
          retfield               = 'CARIID'
    *     PVALKEY                = ' '
         dynpprog               = sy-repid
         dynpnr                 = sy-dynnr
         DYNPROFIELD            = 'CARRID'
    *     STEPL                  = 0
    *     WINDOW_TITLE           =
    *     VALUE                  = ' '
         value_org              = 'S'
    *     MULTIPLE_CHOICE        = ' '
    *     DISPLAY                = ' '
    *     CALLBACK_PROGRAM       = ' '
    *     CALLBACK_FORM          = ' '
    *     MARK_TAB               =
    *   IMPORTING
    *     USER_RESET             =
        TABLES
          value_tab              = itab
    *     FIELD_TAB              =
    *     RETURN_TAB             =
         dynpfld_mapping        = fmap
    *   EXCEPTIONS
    *     PARAMETER_ERROR        = 1
    *     NO_VALUES_FOUND        = 2
    *     OTHERS                 = 3
                ." Just Execute this pilot program and verify
      IF sy-subrc  0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Cheerz
    Ram

  • HELP:Loading XMLtype column from xml file using SQLLOADER

    Hi,
    My table structure is
    crtd_date date,
    xml_doc XMLType
    I have to insert the data dynamically from sqlloader,is it possible? - if it possible please help with controlfile.
    i wrote the controlfile like
    LOAD DATA
    INTO TABLE drvt_xml replace
    XMLType(xmldoc)
    FIELDS TERMINATED BY ',' optionally enclosed by '"'
    crtd_date SYSDATE,
    fname filler char,
    xmldoc lobfile(fname) terminated by eof
    )

    Hi,
    I am having the same issue wer u able to write the control file and did it work?
    If yes pls post ur control file.
    Thanks in advance!!

  • Need help with Premiere Pro 6 media/file management!

    I've been an Avid editor for 20+ years and understand media management in that world. I've recently learned FCP 7 and understand media management in that world. But for the life of me I cannot wrap my head around how Premiere Pro 6 manages media. I am looking for a very straightforward explanation, chart, anything to make sense of this. Thanks in advance for helping an old dog learn new tricks!

    More information needed for someone to help... please click below and provide the requested information
    -Premiere Pro Video Editing Information FAQ http://forums.adobe.com/message/4200840
    Exactly what is INSIDE the video you are editing?
    Codec & Format information, with 2 links inside for you to read http://forums.adobe.com/thread/1270588
    Report back with the codec details of your file, use the programs below... A screen shot works well to SHOW people what you are doing
    http://forums.adobe.com/thread/592070?tstart=30 for screen shot instructions
    Free programs to get file information for PC/Mac http://mediaarea.net/en/MediaInfo/Download

  • Need help with Photoshop text?

    Hi - I have been using Photoshop Elements 10 for about a year.  I use it a lot to add text to images.  For some reason within the last week, I am unable to add any text to images.  When I try to do this (once I click on the 'T' and then click on the image where I want the text to go) Photoshop adds a layer, but will not allow me to add the text.  I do not know if this is a setting, but I don't recall changing anything.  I've tried Googling this but cannot find any solution that works. Everything I've found on the PS website is just how to add text, which I already do. I've also tried reinstalling my software.  At this point, I do not know what else to do.  Can someone help?

    Hi,
    See if the second option going to Edit works.
    http://helpx.adobe.com/photoshop-elements/using/undo-redo-cancel-actions.html#restore_defa ult_preferences
    Restore default preferences
    Preference settings control how Photoshop Elements displays images, cursors, and transparencies, saves files, uses plug‑ins and scratch disks, and so on. If the application exhibits unexpected behavior, the preferences file may be damaged. You can restore all preferences to their defaults.
       Note:
    Deleting the preferences file is an action that cannot be undone.
    Do one of the following:
    Press and hold Alt+Control+Shift (Mac: Option+Command+Shift) immediately after Photoshop Elements begins launching. Click Yes to delete the Adobe Photoshop Elements settings file.
    Go to Edit > Preferences (Mac: Photoshop Elements > Preferences > General), click the Reset Preferences on next launch button, and then click OK. When you restart Adobe Photoshop Elements, all preferences are reset to default settings.
    A new preferences file is created the next time you start  Photoshop Elements. For information on a specific preference option,  search for the preference name in Help.

  • Elements 8 -help with outputting slide shows to File?

    Can anyone help with saving a slide show in created in Elements to a file on my laptop? I know a WMV file is created, which option should I select to save in UK widescreen format 16:9?

    Bob, thanks for prompt answer.
    I am ultimately going to write the file to a DVD using Windows DVD Maker. Is the 16:9 format the DVD-PAL 720x576 option, or the High 1024x768 option?

Maybe you are looking for