How to hard code a records at the end of file

Hello experts,
I am doing IDOC to File scenario,I need to append 4 records at the end of file each time it is created in XI(These four records are need to be hardcode in the o/p file) .
For example with IDOC to File,the o/p file like
1 name number sal
2 name number sal
3 name number sal
But my expected file is
1 name number sal
2 name number sal
3 name number sal
1 abc    123   2345676
2 bdc     234 11111111
3 aaa     123 11111111
4 fffff       567 33333333
Every time these 4 records are common.How can i hard code the last 4 records in XI.
could u plz help me in this.Thanks in advance.
Regards,
KP

Hi,
Hope u are doing File Content Conversion in ur receiver adapter.
Lets assume that u have structure like below
-Record
  -RecordSet
    X
    Y
    Z
Add one more Recordset like for Trailer records
-Record
  -RecordSet
     X
     Y
     Z
  -TrailerRecordSet
     Trailer
In ur mapping hardcode the Trailer node with the four lines (u can use '\n' char to represent nextlines)
In ur Receiver communication channel add the TrailerRecordSet also...
RecordSetStructure:  RecordSet,TrailerRecordSet
TrailerRecordSet.fieldSeparator -
'0'
TrailerRecordSet.endSeparator -
'0'
RecordSet Parameters....
Regards,
Sudharshan

Similar Messages

  • IDoc to file - how to delete a blank record at the end of the file.

    Hi,
    My senario is IDoc to file.  I have successfully implemented this using FCC. But when i checked the flat file, it has a blank record at the end of the file( i think PI adds one blank line/record at the end of the file).  Please suggest me What i need to do, to delete the blank record .
    Thanks & regards
    Sreeni

    Kindly Check below.
    Check whether the problem is at mapping level of  adapter level.. to do this count no. of rows/IDOC before mapping and after mapping in IE and no. of rows in the output file.
    Thnx
    Subbu

  • In SAP Script how to hard code my Company address in footer window

    Hi All ,
    In SAP Script how to hard code my Company address in footer window .
    Ex : in YB_F140_ACC_STAT this script i want to keep my company address, i want to hard coad , i dont want to use any field from table.
    Please give me step by step.
    Thanks
    Sridhar

    Hi,
    You can make use of standard text...
    create a standard text in SO10 with your company address
    and in the footer window of your script.. use include text and provide the name of the standard text you created in SO10.
    In the text editor... goto insert > text> standard
    You get popup give the name of the text name id and language
    regards
    padma

  • How many steps can be recorded in the History panel?

    In Photoshop, 20 steps can be recorded in the Histroy panel with the defult setting, and we can change the setting to record more or less steps by choosing "Edit> Preference".
    In Lightroom, how many steps can be recorded in the History panel with the defult setting? And how can we change the number of step to be recorded?

    I guess since the history is kept in the database (and not only in memory as with PS), there is not so much an issue in limiting them.
    Beat Gossweiler
    Switzerland

  • How to find last inserted record in the table.

    Version: Oracle 10g
    I have a table called "Manufacture" and 3 columns as mfno,itemname,quantity.
    How to find last inserted record in the table "Manufacture".
    As i come to know that Rowid is not result perfect results. Please provide your inputs.

    user13416294 wrote:
    Version: Oracle 10gThat is not a version. That is a product name. A version is 10.1.0.2 or 10.2.0.4, etc.
    I have a table called "Manufacture" and 3 columns as mfno,itemname,quantity.
    How to find last inserted record in the table "Manufacture".Not possible as your data model does not cater for it. That simple.
    If there is a need to determine some order or associate some time to an entity, then that should be part of the data model - and a relationship, or one or more attributes are needed to represent that information. Thus your data model in this case is unable to meet your requirements.
    If the requirements are valid, fix the data model. In other words - your question has nothing to do with Oracle and nothing to do with rowid, rowscn or other pseudo columns in Oracle. It is a pure data modeling issue. Nothing more.

  • How to establish code standards to make the abap code more readability

    Every programmer have their habit to code, but this lead a problem , it is difficult to read other people's code, especially the complex logic.
    So how to establish code standards to make the abap code more readability?
    I came up with this:
    1.Unify the naming rule.
    2.Reduce the nest of 'if' statement. (better in less than 4 if statement in one block )
    3.Use more Perform to replace the big code block.
    Is there any other standards to make our abap code more readability ?  (if we establish the standards, in sap is there any tool to help us to follow the rule we set ?)

    There are a number of things you could do. Some of which are:
    I would recommend creating your own in-house document on Coding standards, some of which you can control with the code inspector.
    It is also possible to set up the transport request in such a way that objects that do not pass the SCI test are not allowed to be released.
    I would also assign a senior developer to act as quality control for all developments. You can have a rotation scenario where this work can be divided by the number of senior developers you have.

  • HT2397 Is region code is recorded in the DVD drive? So, if I have two Apple USB SuperDrive, I can have two separate region code?

    If the region code is recorded in the DVD drive, then I can purchase two Apple USB SuperDrive to play different region DVD ?

    To Apple Discussions!
    It has been reported that VLC overrides the 5 region code option. You will need to read their documention on their website. Otherwise................
    You can change the computers region "only 5 times". Then it's locked in the 5th version/region (until you erase your HD & start all over.).

  • How do a get a record of the apps I have downloaded

    How do a get a record of the apps I have downloaded

    You can view the apps that are still available in your country's app store via the Purchased tab in the App Store app on your phone.
    If you want to view your account's purchase history then log into your account on your computer's iTunes via the Store > View Account menu option, you should then see a Purchase History section with a 'see all' link to the right of it. Click on that and you should then see a list of your purchases. That should show free as well as paid-for items. On your phone you can view the last 90 days purchases via http://reportaproblem.apple.com.
    You can't view a list of actual downloads (e.g. you can't view how many times, and when, you've downloaded a particular app), only what you've purchased (included free items).

  • Can I reimage an external hard drive that is in the windows NT file format?

    can I reimage an external hard drive that is in the windows NT file format?

    With WinClone 3.x $20 for Mac or with Windows imaging - built into Windows.
    Some like Acronis didn't (may now) work on Macs. Many use a linux CD recovery boot..
    You can write to NTFS with a simple NTFS driver. There, I strongly recommend Paragon for OS X
    www.paragon-software.com
    They also have all the program and Apple Boot Camp support
    Image a system or image a hard drive or.... ?

  • Will the informations  be recorded in the alert.log file? -----No.168

    will the informations about the loss of a temporary file be recorded in the alert.log file?

    Yes, because whe your database starts needs to "mount" a tablespace with temporary files (case of tablespace "TEMP"). But don't worry with a loss of this tablespace because doesn't contain nothing when database starts.

  • Format records in the MTA msllog file ?

    Hi, All.
    Where i can read about format records in the MTA msglog file ??
    I need this for parse this log-file.
    Serg

    Greate !
    Thank your !
    Serg
    > Hi Serg.,
    >
    > You might find what you're looking for in "Details of GroupWise Message
    > Log files", document ID = 10087320.
    >
    > Cheers,
    >
    > Andy
    >
    > Serg wrote:
    >
    >> Hi, All.
    >> Where i can read about format records in the MTA msglog file ??
    >
    >> I need this for parse this log-file.
    >
    >> Serg

  • How can I add sales TAX at the end of my calculations?

    How can I add sales TAX at the end of my calculations?

    We currently do not support adding sales tax.
    Randy

  • I made a video in imovie and saved it, now i want to carry on making it from where i left but every time i try to add an image onto the end it just goes tot he wrong part of the movie, how do i just add it onto the end?

    I made a video in imovie and saved it, now i want to carry on making it from where i left but every time i try to add an image onto the end it just goes tot he wrong part of the movie, how do i just add it onto the end?

    Have you seen my User Tipp here
    "Movie Magic" with Stills and Dissolve
    When you 'prep' your stills in any 'picture app', you can do a lot of marvel by simply applying dissolves.
    In your case, I would create a white document (in Pixelmator, Keynote, Photshop, online at pixlr.com, whatever ...) and another with your logo (and further more ones with additional logos). Drag the jpgs into your iMovie Project and apply dissolves  - tadahh! - logos appear on white.

  • How do i launch Adobe Reader,accept the end user agreement,quit,and relaunch the browser?

    How do i launch Adobe Reader.accept the end user agreement,quit,and relaunch the browser?

    Find the Reader application (same place as all your other apps. Not sure where that is since we don't know your OS) and launch it.

  • I really need help asap please..i have deadlines.."the end of file reached"

    im currently running logic pro 7 academic on my g5--"the end of file reached" pop up occured (i think it was error code 43) and it said something about preferences i accidently hit the save button and i guess it saved the preferences(since then it has not popped up again)--i cannot hear anything from any of my files--all i am able to is basically look at the arrange window with 4 audio tracks and tracks from my keyboard---when i try to create audio instruments a pop up says "no more tracks available"--ive reloaded both of the logic discs and still am unable to get anything to work

    OK, that's quite a lot in one go...and you have deadlines..let's see if we can clear things up?
    You say you cannot hear anything...Have you ever had output coming out of Logic or is this your first try? If you can't hear anything, how on earth are you recording?
    (I take it the "end of file" message shows up while recording?)
    Are you using an audio interface or running straight out of the G5's internal audio card?
    I've never had that "end of file" message but I suspect it can have something to do with the maximum recording time.
    You set it under the Audio menue/Set Audio Record Path (Apple/A)
    Now, to the Tracks:
    Have you ever run the Set-Up Assistant (Logic Pro menue/Preferences/Logic Set-Up Assistant)? If not, I recommend you do. Here you can set the framework for your Audio Environment, How many tracks, busses etc.
    Sorry if this is too basic for you, i'ts hard to tell how deep in to the application you are.
    Good Luck,
    Erik

Maybe you are looking for