Display errors in a file along with records - IBIP_BATCH_INPUT doesnt do it

Hi,
I am using the function module IBIP_BATCH_INPUT(used in program RIIBIP00) in my custom program to upload maintenance plan data(Transaction IP01) using call transaction method.The data gets successfully uploaded.
However if i send incorrect data, an ALV report gets printed by the above function module that displays the error.
My requirement is to generate a file that displays each record and the corresponding error along with it.
Pls note that the error file obtained(Call transaction) has only the error records but not the errors displayed.
The function moduke returns a internal table of errors as displayed in ALV but how can I relate those errors with the the records in my file?

Hi Rob,
The transaction IBIP does the same as the program RIIBIP00.
My requirement is to customize it.
The legacy system file I obtain is not in the file format IBIPREC(refered documnetation of RIBIP00).
I convert it into a the required file format and use the file in the program or transaction IBIP manually and data gets loaded into the system.
If the file contains errorneos data, then the errors are displayed in a ALV report by the program RIIBIP00 and a a file is generated showing the erroneus record.My requiremnet is to have a audit file of the legacy system format plus a column showing errors.
How can I map the errors obtained from the fn module IBIP_BATCH_INPUT in program RIIBIP00 with the each record and produce an audit file?

Similar Messages

  • I had a drive failure and lost the iWeb file along with other things.   I did manage to save a lot of user file documents but I don't see or   recognize the my iWeb site file. It was on a 15" G4 Titanium pb. I'm trying to find a way, using version 2.0.4

    I had a drive failure and lost the iWeb file along with other things. 
    I did manage to save a lot of user file documents but I don't see or 
    recognize the iWeb site file. It was on a 15" G4 Titanium pb.
    I'm trying to find a way, using version 2.0.4 of iWeb on a different 
    pb to recover the file into the iWeb app or a way to download the site into iWeb.
    There are 6 pages of images and text, and it 
    would be a task for me to recreate the whole thing again. I did 
    download the site but I don't know how or if I can get iWeb to see it and open it.
    Does anyone have any knowledge about this? The link to my site:
    <http://web.mac.com/danauerbach>
    Any suggestions will be most appreciated.
    dan auerbach
    [email protected]

    Unfortunately iWeb cannot read or import previously published files, only generate them.  You'll have to recreate your site from scratch.
    However, Chapter 2.3 on the iWeb FAQ.org site has tips on using some of the existing files, image, audio, video, etc., from the published site in the recreation of the site.
    OT

  • Import WSDL file along with XSD

    Hi,
    I have a WSDL file which has complex Data types (abc.wsdl). This complex data types are defined in the XSD file (abc-data.xsd).
    If I just import WSDL file in ED I am unable to find the Complex Data types in Message Mapping.
    How can I use the XSD file along with the WSDL file? Is there any source path as to give or what?
    Could you please help me out…?

    first i will tell how my wsdl file is defined
    <xs:element name="authInfo" type="<b>xx:AuthInfo</b>">                                   <xs:annotation>                              <xs:documentation xml:lang="en">                                   Authentication information                         </xs:documentation>                    </xs:annotation>                              </xs:element>
    and in my xsd file for xx:AuthInfo
    <xs:complexType name="AuthInfo">
              <xs:sequence>
                   <xs:element name="acctName" type="tns:CustName">
                        <xs:annotation>
                             <xs:documentation xml:lang="en">
                             account name.
                        </xs:documentation>
                        </xs:annotation>
                   </xs:element>
                   <xs:element name="password" type="tns:AcctPswd">
                        <xs:annotation>
                             <xs:documentation xml:lang="en">
                            Specify the password                    </xs:documentation>
                        </xs:annotation>
                   </xs:element>
              </xs:sequence>
         </xs:complexType>
    when i import wsdl file in Ed i will get two inputs there but only one as "AuthInfo"
    but "AuthInfo" has two inputs.
    this is how my Target Message Look like
    Tree          Occurences          Type
    authInfo     1..1                      xx:AuthInfo
    i hope i have cleared u..

  • To Import XSD file along with WSDL file in ED

    Dear All,
    I am doing a scenario web service1 —XI—RFC—web service2. Web service1 sends request to XI and XI sends to RFC and RFC response to web service2 and web service2 response (acknowledge) back to XI and XI sends back to web service1.
    My client (web service2) has given me the web service (WSDL) file along with XSD file.
    In the wsdl file there are number of elements and complex types.
    <xs:element name="GetCustomer">
         <xs:complexType>
              <xs:sequence>
                   <xs:element name="authentication" type="xx:AuthInfo"/>
                   <xs:element name="CompanyName" type=" xx:AuthInfo "/>
              </xs:sequence>
         </xs:complexType>
    </xs:element>
    The type (xx:AuthInfo and xx:AuthInfo) are defined in XSD file.
    My questions are
    1)     Do I have to import the XSD file in ED or not.
    2)     How do I map this XSD
    3)     As WS1, RFC and WS2 all are synchronous MT do I have to use BPM for it.
    4)     Can some one help with any docs please..
    Thanks in advance

    Hi,
    >>Do I have to import the XSD file in ED or not
    If you are having the wSDL files then you can take the structure from there itself. Just import the wsdl files in IR. You can also use XSD.
    >>How do I map this XSD
    XSD are same as Message Types. So create a MM and choose your XSD.
    >>As WS1, RFC and WS2 all are synchronous MT do I have to use BPM for it.
    Yes you have to because you are taking the responce from RFC and going to give it to WS2.
    BPM steps:
    1) receive (open sync bridge)
    2) transformation 1
    3) send (snyc)
    4)transformation 2
    3) send (close sync bridge)
    https://weblogs.sdn.sap.com/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    Regards
    Suraj

  • FM to down load the spool to excel file  along with the deliminator

    hi all,
    this is regarding a downloading of spool to a excel file along with a deliminator.
    Can any one suggest a function module which downloads spool to excel file with a deliminator in a proper way.

    Hi ram,
    You can try using the BAPI_XBP_JOB_SPOOLLIST_READ_20 - to get the list from spool and then do the required formatting. You can use can use the function module mentioned in the other reply to download it into excel file.
    Cheers

  • Cannot sync pacman; error: failed retrieving file, No address record

    Hello,
    As a heads up, I'm trying not to repost
    I've searched the forums but found nothing, I'll keep looking. I've read the front page news about the mirrorlist and tried using the old mirrorlist file. I've been on #archlinux on IRC. Nothing yet.
    Here is an example of what I see:
    root@dungeon pacman.d # pacman -Sy
    :: Synchronizing package databases...
    error: failed retrieving file 'core.db.tar.gz' from ftp.archlinux.org : No address record
    error: failed to update core (No address record)
    error: failed retrieving file 'extra.db.tar.gz' from ftp.archlinux.org : No address record
    error: failed to update extra (No address record)
    error: failed retrieving file 'community.db.tar.gz' from ftp.archlinux.org : No address record
    error: failed to update community (No address record)
    error: failed to synchronize any databases
    I've commented out all but one of the servers in the mirrorlost file to shorten the output.
    Any ideas?

    Snowman wrote:You are trying to fetch non-official dbs which are not on the Arch Linux  mirrors. Are you using Chakra?  Post your pacman.conf
    no I am using normal Arch, and it was working fine until i updated on tuseday. I am using "yaourt -Syu --aur" to update.
    My actual pacman.conf is (changed automaticly to this within unsuccesfull update yesterday):
    # /etc/pacman.conf
    # See the pacman.conf(5) manpage for option and repository directives
    # GENERAL OPTIONS
    [options]
    # The following paths are commented out with their default values listed.
    # If you wish to use different paths, uncomment and update the paths.
    #RootDir = /
    #DBPath = /var/lib/pacman/
    #CacheDir = /var/cache/pacman/pkg/
    #LogFile = /var/log/pacman.log
    HoldPkg = pacman glibc
    # If upgrades are available for these packages they will be asked for first
    SyncFirst = pacman
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    #XferCommand = /usr/bin/curl -C - %u > %o
    #CleanMethod = KeepInstalled
    Architecture = auto
    # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
    #IgnorePkg =
    #IgnoreGroup =
    #NoUpgrade =
    #NoExtract =
    # Misc options (all disabled by default)
    #UseSyslog
    #ShowSize
    #UseDelta
    #TotalDownload
    # REPOSITORIES
    # - can be defined here or included from another file
    # - pacman will search repositories in the order defined here
    # - local/custom mirrors can be added here or in separate files
    # - repositories listed first will take precedence when packages
    # have identical names, regardless of version number
    # - URLs will have $repo replaced by the name of the current repo
    # - URLs will have $arch replaced by the name of the architecture
    # Repository entries are of the format:
    # [repo-name]
    # Server = ServerName
    # Include = IncludePath
    # The header [repo-name] is crucial - it must be present and
    # uncommented to enable the repo.
    # The testing repositories are disabled by default. To enable, uncomment the
    # repo name header and Include lines. You can add preferred servers immediately
    # after the header, and they will be used before the default mirrors.
    [core-testing]
    Include = /etc/pacman.d/mirrorlist
    [desktop]
    Include = /etc/pacman.d/mirrorlist
    #[desktop-testing]
    #Include = /etc/pacman.d/mirrorlist
    [platform-testing]
    Include = /etc/pacman.d/mirrorlist
    [apps]
    Include = /etc/pacman.d/mirrorlist
    #[apps-testing]
    #Include = /etc/pacman.d/mirrorlist
    # An example of a custom package repository. See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #Server = file:///home/custompkgs
    NOW I tried the saved pacman.conf (wich worked fine for months) wich is like this
    # /etc/pacman.conf
    # See the pacman.conf(5) manpage for option and repository directives
    # GENERAL OPTIONS
    [options]
    # The following paths are commented out with their default values listed.
    # If you wish to use different paths, uncomment and update the paths.
    #RootDir = /
    #DBPath = /var/lib/pacman/
    #CacheDir = /var/cache/pacman/pkg/
    #LogFile = /var/log/pacman.log
    HoldPkg = pacman glibc
    # If upgrades are available for these packages they will be asked for first
    SyncFirst = pacman
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    #XferCommand = /usr/bin/curl %u > %o
    #CleanMethod = KeepInstalled
    # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
    #IgnorePkg =
    #IgnoreGroup =
    #NoUpgrade =
    #NoExtract =
    # Misc options (all disabled by default)
    #UseSyslog
    #ShowSize
    #UseDelta
    #TotalDownload
    # REPOSITORIES
    # - can be defined here or included from another file
    # - pacman will search repositories in the order defined here
    # - local/custom mirrors can be added here or in separate files
    # - repositories listed first will take precedence when packages
    # have identical names, regardless of version number
    # - URLs will have $repo replaced by the name of the current repo
    # Repository entries are of the format:
    # [repo-name]
    # Server = ServerName
    # Include = IncludePath
    # The header [repo-name] is crucial - it must be present and
    # uncommented to enable the repo.
    # The testing repositories are disabled by default. To enable, uncomment the
    # repo name header and Include lines. You can add preferred servers immediately
    # after the header, and they will be used before the default mirrors.
    #[testing]
    ## Add your preferred servers here, they will be used first
    #Include = /etc/pacman.d/mirrorlist
    [core]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    [extra]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    #[community-testing]
    ## Add your preferred servers here, they will be used first
    #Include = /etc/pacman.d/mirrorlist
    [community]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    # An example of a custom package repository. See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #Server = file:///home/custompkgs
    #ArchAudio
    # tried and tested packages
    [archaudio-stable]
    Server = http://repos.archaudio.org/stable/x86_64
    #ArchAudio
    # these are..for testing?
    [archaudio-testing]
    Server = http://repos.archaudio.org/testing/x86_64
    #ArchAudio
    # for your pleasure
    [archaudio-experimental]
    Server = http://repos.archaudio.org/experimental/x86_64
    and tried to update with it using pacman, wich doesn't succed also:
    [studio@myhost ~]$ sudo pacman -Syu
    Senha:
    erro: O mirror ftp://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/$arch contém a variável $arch, mas não possui arquitetura definida.
    erro: O mirror ftp://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/$arch contém a variável $arch, mas não possui arquitetura definida.
    erro: O mirror ftp://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/$arch contém a variável $arch, mas não possui arquitetura definida.
    :: Sincronizando a base de dados de pacotes...
    erro: falha ao atualizar core (nenhum servidor configurado para o repositório)
    erro: falha ao atualizar extra (nenhum servidor configurado para o repositório)
    erro: falha ao atualizar community (nenhum servidor configurado para o repositório)
    archaudio-stable está atualizado
    archaudio-testing está atualizado
    archaudio-experimental está atualizado
    :: Iniciando atualização do sistema...
    atenção: bristol: local (0.60.5-1) é mais novo que archaudio-testing (0.40.8-1)
    atenção: fil-plugins: local (0.3.0-4) é mais novo que archaudio-testing (0.3.0-3)
    atenção: guitarix: local (0.11.0-1) é mais novo que archaudio-testing (0.06.0-1)
    atenção: kernel26rt: local (2.6.33.7_rt29-1) é mais novo que archaudio-stable (2.6.31_rt10-4)
    atenção: lash: local (0.6.0~rc2-3) é mais novo que archaudio-testing (0.6.0~rc2-1)
    atenção: ll-plugins: local (0.2.1-4) é mais novo que archaudio-testing (0.2.1-3)
    atenção: lv2-c++-tools: local (1.0.3-1) é mais novo que archaudio-testing (1.0.2-1)
    atenção: lv2vocoder: local (1-4) é mais novo que archaudio-testing (1-3)
    atenção: rakarrack: local (0.5.8-1) é mais novo que archaudio-testing (0.4.2-1)
    atenção: rev-plugins: local (0.3.1-3) é mais novo que archaudio-testing (0.3.1-2)
    atenção: swh-lv2: local (1.0.15-3) é mais novo que archaudio-testing (1.0.15-2)
    não há nada a fazer
    [studio@myhost ~]$
    !!!all messages are in portuguese but I think it is possible to understand them, if not i will translate
    EDIT:
    OK, I undestand the last problem and I changed my mirrolist from
    # 2010-08-11 23:15
    # generated by reflector
    # ranked by rankmirrors
    Server = ftp://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/$arch
    Server = ftp://ftp.gtlib.gatech.edu/pub/linux/distributions/archlinux/$repo/os/$arch
    Server = ftp://mirrors.kernel.org/archlinux/$repo/os/$arch
    Server = http://archlinux.c3sl.ufpr.br/$repo/os/$arch
    Server = http://archlinux.limun.org/$repo/os/$arch
    Server = http://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/$arch
    Server = http://mirrors.kernel.org/archlinux/$repo/os/$arch
    Server = http://www.gtlib.gatech.edu/pub/linux/distributions/archlinux/$repo/os/$arch
    to
    # 2010-08-11 23:15
    # generated by reflector
    # ranked by rankmirrors
    Server = ftp://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/x86_64
    Server = ftp://ftp.gtlib.gatech.edu/pub/linux/distributions/archlinux/$repo/os/x86_64
    Server = ftp://mirrors.kernel.org/archlinux/$repo/os/x86_64
    Server = http://archlinux.c3sl.ufpr.br/$repo/os/x86_64
    Server = http://archlinux.limun.org/$repo/os/x86_64
    Server = http://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/x86_64
    Server = http://mirrors.kernel.org/archlinux/$repo/os/x86_64
    Server = http://www.gtlib.gatech.edu/pub/linux/distributions/archlinux/$repo/os/x86_64
    and now it's working again
    but I don't understand how this all happened
    AND: how can I force reflector to output a correct mirrorlist for 64bit?
    Last edited by capoeira (2010-08-12 15:18:15)

  • Displayed icon for audio files changed with snow install - how to I restore

    After installing 10.6, the icons displayed on audio files (aiff, mp3, etc.) became a black square with a music symbol in it when it should be the default application icon or quicktime icon. The icon in the upper left corner of the info window is correct, but the hideous square displays. How do I restore to the correct icon?

    I have the same problem. I produce a daily podcast ("Mister Ron's Basement") and I have almost 1500 episodes on my hard drives in both the original recordings (aiff files done with Sound Studio) and mp3 versions. They used to have different icons, and even though the aiff files will still open in Sound Studio automatically, they all have the same black square icon. Used to be, at least you'd get an icon that had the word with the file type on it, but no more. I have changed many of the back ones with Candy Bar, after sorting them by file type, but every new file I create, I have to go to get info and change the icon by hand. Not very professional, and a waste of my time. Can I expect sound icon differentiation to be returned to the Macintosh Operating System at some time in the near future?

  • [SOLVED] Pacman error: failed retrieving file : No address record

    I just installed Arch on a x86 laptop using the cd as the package source. I wanted to do a net install, but when I attempted to (regardless of the mirror) I got many responses from pacman in tty7 of "No address record". This happened despite having a network connection and being able to ping any site from the cli.
    After installing, I am still having the same problem. The laptop is plugged in via ethernet, and I can ping any site I want, but a call to pacman -Syyu just returns numerous errors such as
    error: failed retrieving file 'core.db' from mirror.rit.edu : No address record
    And just as a test, I was getting replies when pinging mirror.rit.edu.
    Last edited by process91 (2011-11-18 18:21:17)

    Try the following steps:
    1 - Set the VirtualBox Networking option to NAT
    2 -  Start the arch machine in the VirtualBox
    3 -  Edit /etc/rc.conf as a dynamic IP:
    HOSTNAME="arch"
    interface=eth0
    address=
    netmask=
    broadcast=
    gateway=
    4 - Run dhcpcd
    5 -  Try to ping a couple of sites, or your router
    If you still can't ping or anything, I suggest you start a new thread specifically about your problem. Include the output from "ipconfig -a". You're not going to get much help from posting in a thread marked "[SOLVED]".
    Last edited by process91 (2012-01-18 07:21:14)

  • BUG: error rebuilding SQLJ files along other java files with generic

    I have done a rebuild on a package containing some SQLJ files, and (consistently) got the following error:
    C:\TeleMessage\trunk\src\telemessage\db\impl\dbAdmin.sqlj
        Error(44,18): Java Parsing. Encountered: <
        Expected: <IDENTIFIER> ...; "[" ...; The error at the cursor in the given file is not possible, since there was no '<' there, and besides - if I non-aggresively changed the file, e.g. narrowed imports, changed whitespace or added comments - the error remained in the same location.
    I went and done a search using regex in the package, for a line starting with 17 chars followed by a '<'.
    I found it in one of the normal JAVA files (not-SQLJ), at line 44 (surprise!) - in a Java 5 generics declaration, e.g. Map<String,Integer>. the 18th character was indeed the '<'.
    I'm guessing that the SQLJ translator (accidentally?) parses non-SQLJ files.
    If this cannot be fixed, it is really bad - it is one thing that JDeveloper cannot support Java 5 language features because of its dependancy in the SQLJ translator (which is not known to be upgraded until version 11g if at all), but the inability to compile SQLJ files in a project containing other non-SQLJ java files with Java 5 features is hard.
    I could only workaround this by rebuilding SQLJ files one at a time!
    I also have another type of error, when rebuilding the same project in a higher-level pacakge (root or "Application Sources"):
    C:\TeleMessage\trunk\src\dbtools\CallbackNumberFiller.sqlj
        Error(24,8): Missing semicolon.
        Error(24,8): Unbalanced curly braces.Again, the specified file could not be the one to blame - the location of the error is in the middle of the public modified keyword in a method declaration; nothing is neither missing nor unbalanced.
    This appears to be different, as it pops in the log near the end of the build process, when the JSPs are being built, specfically during the time the message log fills with "writing <...>" lines (after "translating <...>" and "compiling <...>".
    I can consistently reproduce both cases - please advise how I can help you find out what causes this.
    Regards,
    Yaniv Kunda

    First of all, this bug not JDeveloper's problem, but the SQLJ team's.
    You can read more posts about this:
    Re: BUG: Cannot translate SQLJ files with Java5 generics code
    Re: How to use SQLJ with Java 1.4 and 1.5?
    Re: SQLJ discontinued??
    And if we're at it, this is strange - I can't seem to find the oracle doc you quoted...
    SQLJ 11g? The latest release is a part of JPublisher 10.2 available from
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
    I also didn't find anything on google on 11g, nor about the part number you specified.
    Didn't find any Java 1.5 supporting SQLJ translators from other vendors as well.
    Do you have any link to this statement?
    But if we examine this bug again, the problem involves JDeveloper passing Java 5 featured JAVA files to the SQLJ translator.
    Isn't there a way to instruct the translator to use CLASS files compiled by a normal Java 5 compiler, instead of trying to compile the files itself?
    Regards,
    Yaniv Kunda

  • Error displayed in the query output along with the keyfigure value.

    Hi All,
    I am running one query  through BEx .I have key figures netprice,net value .
    when i looked in to output ,it shows key figure with ERROR
    EX.  NET PRICE || NET VALUE
          100ERROR || 20000ERROR
    WHat should i do to remove the ERROR ?
    Regards

    Hi,
    Make a new formula and put net price inside it and use NODIM function like this :
    NODIM(Net price)
    Repeat the same steps for net value and see if this works or not.
    Hope this helps.
    Regards,
    AL

  • Writing time to a file along with data

    Hello,
    I have a vi which I'm using to collect voltages.  From the data collector vi, all 8 channels are output as an array of waveforms which I then split off.  I'm splitting the channels so that I can convert the readings from volts to engineering units (inches, lbs, etc), then merging the signals back as shown in the attached jpg.  My problem is I need to have a time column on the left but I cannot figure out how to do this.  I've tried many different methods, yet as I'm still a novice, I'm sure there is something I have not tried.  I need to be able to get times in milliseconds (relative to the beginning of recording) and possibly 0.000 1 second intervals.
    Thank you in advance,
    Robbie
    Attachments:
    HSS.jpg ‏15 KB

    The time column in the LVM file is more of a convenience to spreadsheet users than anything else.  You can recreate it from the t0,dt of the waveforms the LVM read returns.  You can either use a FOR loop with the t0, dt as inputs or the ramp generation VI.  Add the result to the beginning of the array of waveforms the LVM read returns, and then save.
    If you want to be more efficient and not kill your RAM as bad, try the following method using the LVM data directly;
    Open your new file and write your header
    Open the LVM file as a normal file
    Read the LVM file and toss the data until you get to the end of the header "***End_of_Header***".
    Copy the data from the LVM file to your file directly
    The specification for the LVM file can be found here, if you want to dive into it a bit deeper.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Merging text files along with their filename

    I am looking to merge a whole bunch of text files into one document. I am going to the Insert tab and selecting the drop down menu in Object to select text from file.  All of the text is merging in the one document correctly, but I am not
    getting the title/file name of the document inserted in the document and I would like that to be in there. Is there a way of doing this?

    Try the following macro. It assumes you're working with doc, docx & docm files. If not, change the 'doc' in the '*.doc' reference to whatever file type you're working with.
    Option Explicit
    Public oFolder As Object 'the folder object
    Public i As Long, j As Long
    Public DocTgt As Document
    Sub Main()
    ' Minimise screen flickering
    Application.ScreenUpdating = False
    Dim StrFolder As String
    ' Browse for the starting folder
    StrFolder = GetTopFolder
    If StrFolder = "" Then Exit Sub
    ' Initialize the counters
    i = 0: j = 0
    Set DocTgt = ActiveDocument
    ' Search the top-level folder
    Call GetFolder(StrFolder & "\")
    ' Return control of status bar to Word
    Application.StatusBar = ""
    ' Restore screen updating
    Application.ScreenUpdating = True
    MsgBox i & " of " & j & " files processed.", vbOKOnly
    End Sub
    Function GetTopFolder() As String
    GetTopFolder = ""
    Set oFolder = CreateObject("Shell.Application").BrowseForFolder(0, "Choose a folder", 0)
    If (Not oFolder Is Nothing) Then GetTopFolder = oFolder.Items.Item.Path
    Set oFolder = Nothing
    End Function
    Sub GetFolder(StrFolder As String)
    Dim strFile As String
    strFile = Dir(StrFolder & "*.doc")
    ' Process the files in the folder
    While strFile <> ""
      ' Update the status bar is just to let us know where we are
      Application.StatusBar = StrFolder & strFile
      Call UpdateFile(StrFolder & strFile)
      strFile = Dir()
    Wend
    End Sub
    Sub UpdateFile(strDoc As String)
    Dim Doc As Document
    ' Open the document
    Set Doc = Documents.Open(strDoc, AddToRecentFiles:=False, ReadOnly:=False, Format:=wdOpenFormatAuto, Visible:=False)
    With Doc
      If .ProtectionType = wdNoProtection Then
      With .Range.Sections
        With .First.Footers(wdHeaderFooterPrimary).Range
          .InsertBefore Doc.Name & vbCr
          While .Characters.Last.Previous = vbCr
            .Characters.Last.Previous = vbNullString
          Wend
        End With
        .Add Start:=wdSectionBreakNextPage
      End With
      DocTgt.Characters.Last.FormattedText = .Range.FormattedText
        ' Update the file counter for processed files
        i = i + 1
      End If
      ' Update the main file counter
      j = j + 1
      .Close SaveChanges:=False
    End With
    ' Let Word do its housekeeping
    DoEvents
    Set Doc = Nothing
    End Sub
    With this code, each merged file's name will be added to its footer.
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • Load a XML file 47mbyte (with records data) in the RTF

    I load a XML data in the RTF file, but when I tried generate the EXCEL file, it get a error.
    Can somedy help me?
    Thanks.

    Can you paste the error message here?

  • How to attach PDF file along with mail from SAP to external

    Hi Experts,
          Whenever I am creating PO I should get that creation information ( PO is created & PO no is ‘XXX’….) in the form of PDF file & I have to send this PDF file through mail to external. I have to do all this in one development…How can I proceed …Help me..
    Thanks

    Check this Code>>>>>>>>>>>
          FORM MAIL_OBJECT                                              *
    Compiled: Thomas, Satyam Computers Services Ltd.
          This routine receives OTF data. OTF data is converted to PDF
          format and send to the Partner's email address
    FORM mail_object TABLES otf_data STRUCTURE itcoo .
      DATA: pdf_size TYPE i,                             " PDF Size
            pdf_itab_size TYPE i,                        " Attachment size
            mailtxt_size TYPE i,                         " Text in mail size
            l_vbeln LIKE vbdka-vbeln.                    " Order Doc
      DATA:
      it_mailtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,    " Mail Text
      it_pdf TYPE TABLE OF tline WITH HEADER LINE,           " OTF output
      it_mailpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE, " Dist details
      it_mailhead LIKE solisti1   OCCURS  1 WITH HEADER LINE," Header data
      it_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,   " Rec List
      it_pdfdata LIKE solix OCCURS 0 WITH HEADER LINE.  " Attachment data
      DATA: it_doc_att LIKE sodocchgi1.                 " Attri of new doc
      DATA: BEGIN OF it_pdfout OCCURS 0,                " PDF in 255 length
               tline TYPE char255,
            END OF it_pdfout.
    Sales doc and Customer
      DATA: BEGIN OF i_vbeln OCCURS 0,
              vbeln LIKE vbpa-vbeln,       " Sales Document
              adrnr LIKE vbpa-adrnr,       " Customer
            END   OF i_vbeln.
    Sender Address no and SMTP address
      DATA: BEGIN OF i_addrs OCCURS 0,
              addrnumber LIKE adr6-smtp_addr,
              smtp_addr  LIKE adr6-smtp_addr,
            END   OF i_addrs.
    Convert OTF to PDF
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format       = 'PDF'
        IMPORTING
          bin_filesize = pdf_size
        TABLES
          otf          = otf_data
          lines        = it_pdf.
    Make each line 255 characters
      CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
        TABLES
          content_in  = it_pdf
          content_out = it_pdfout.
    Create the PDF File
      CLEAR it_pdfdata.
      REFRESH it_pdfdata.
    it_pdfdata[] = it_pdfout[].
      LOOP AT it_pdfout.
        MOVE it_pdfout-tline TO it_pdfdata-line.
        APPEND it_pdfdata.
        CLEAR it_pdfdata.
      ENDLOOP.
      DESCRIBE TABLE it_pdfdata LINES pdf_itab_size.
    Text in the mail.
      it_mailtxt-line  = 'ORDER ACKNOWLEDGEMENT'.
      APPEND it_mailtxt.
      it_mailtxt-line  = ' This is a test mail-Thomas, Line Number--1'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail-Thomas, Line Number--2' &
                        ' This is a test mail-Thomas, Line Number--2'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail-Thomas, Line Number--3' &
                        ' This is a test mail-Thomas, Line Number--3' &
                        ' This is a test mail-Thomas, Line Number--3'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail,  Line Number--4' &
                        ' This is a test mail,  Line Number--4' &
                        ' This is a test mail,  Line Number--4' &
                        ' This is a test mail,  Line Number--4'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5'.
      APPEND it_mailtxt.
      DESCRIBE TABLE it_mailtxt LINES mailtxt_size.
    Document Number for Output
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
        EXPORTING
          input  = vbdka-vbeln
        IMPORTING
          output = l_vbeln.
    Attributes of new doc
      CONCATENATE 'Order' space 'Acknowledgement' space l_vbeln
                  INTO it_doc_att-obj_descr SEPARATED BY space.
      it_doc_att-sensitivty = 'F'.
      it_doc_att-doc_size   = mailtxt_size * 255.
    Create Pack to text in mail body.
      CLEAR it_mailpack-transf_bin.
      it_mailpack-head_start   = 1.
      it_mailpack-head_num     = 0.
      it_mailpack-body_start   = 1.
      it_mailpack-body_num     = mailtxt_size.
      it_mailpack-doc_type     = 'RAW'.
      APPEND it_mailpack.
    Create Pack to PDF Attach.
      it_mailpack-transf_bin   = 'X'.
      it_mailpack-head_start   = 1.
      it_mailpack-head_num     = 1.
      it_mailpack-body_start   = 1.
      it_mailpack-body_num     = pdf_itab_size.
      it_mailpack-doc_type     = 'PDF'.
      CONCATENATE l_vbeln '.pdf' INTO it_mailpack-obj_name.
      CONCATENATE 'Order Ack' space l_vbeln INTO it_mailpack-obj_descr.
      it_mailpack-doc_size     = pdf_itab_size * 255.
      APPEND it_mailpack.
    *Get email addresses based on Sales document.
      SELECT vbeln adrnr INTO TABLE i_vbeln
             FROM vbpa
             WHERE vbeln = vbdka-vbeln AND
                   parvw = nast-parvw.
      IF NOT i_vbeln[] IS INITIAL.
        SELECT addrnumber smtp_addr INTO TABLE i_addrs
               FROM adr6 FOR ALL ENTRIES IN i_vbeln
               WHERE addrnumber =  i_vbeln-adrnr AND
                     smtp_addr NE space.
      ENDIF.
      IF i_addrs[] IS NOT INITIAL.
        LOOP AT i_addrs.
          it_reclist-receiver   = i_addrs-smtp_addr.
          it_reclist-express    = 'X'.
          it_reclist-rec_type   = 'U'.
          it_reclist-notif_del  = 'X'. " request delivery notification
          it_reclist-notif_ndel = 'X'. " request not delivered notification
          APPEND it_reclist.
          CLEAR: i_addrs.
        ENDLOOP.
      ENDIF.
    Call FM to send email
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = it_doc_att
          put_in_outbox              = 'X'
        TABLES
          packing_list               = it_mailpack
          object_header              = it_mailhead
          contents_txt               = it_mailtxt
          contents_hex               = it_pdfdata
          receivers                  = it_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorizationfiltered= 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " MAIL_OBJECT
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    -Mohan.
    *Reward if helpful**

  • Error in Flat file loading with different units

    Hi Gurus,
    I have Quantity and its unit (say CS, DZ and KG etc...) fields in source system. when i transfered into psa using infopackage the error was shown as The error in unit CS is not mentioned in English.
    Could you please tell me what have to do for solving the problem.
    Thanks
    Shrinu

    Hi,
    Sorry, I couldn't understand your answer. I have problem with transaction data not the masterdata. could you please expand your answer as iam bit new to these problems.
    Points will be awarded for your reply.
    Thanks
    Shrinu

Maybe you are looking for