How to add Yesteday's date in AL11 File name ?

Hi Experts,
Can anyone please reply to my Query ?
We have to generate the *.TXT file as an output of Open Hub Destination.
For this the File Naming convention should be Yesterday's date + .TXT. ( for example if today's date is 27.07.2011 then the file name should be 20110726.TXT).
Here I could generate the file name using <YYYY><MM><DD> for today's only ( 20110727.TXT). But We need to generate the Yesterday's date here..
I tried to create the Function module ( FILENAME_EXIT_TEST) as suggested in F1 on that Physical Location input area. And I tried to give the Physical location as <F=FILENAME_EXIT_TEST>.TXT.
But I'm getting the error as " The Function Module doesnot exist" or "Function Module FILENAME_EXIT_TEST is unknown".
But I'm sure the FM is available and activated already.
Could you please let me know, How to fix this issue.
NOTE: I have created this Function Module with Export parameter as OUTPUT and DATS Associated type. In the Source code I have written as OUTPUT = SY-DATUM - 1.
Edited by: jayaprakash j on Jul 28, 2011 2:30 PM

Hi All,
I got the solution.
The code which i had written in the FM is wrong.
OUTPUT = SY-DATUM - 1. // Wrong.
The correct one is below :
DATA: Temp TYPE SY-DATUM.
Temp = SY-DATUM - 1.
OUTPUT = Temp.
And after that, in FM's Export tab, it should be Export parameter as OUTPUT and checked the "Pass value" check box.
For the Physical File : <F=TEST>.txt.
Here the FM which i created was FILENAME_EXIT_TEST.
When I am calling the corresponding Logical file in the APD, It is working fine.
Thanks for your inputs.

Similar Messages

  • How to add YYMMDD format date to the file name

    Hi,
    I need genrate the file with date suffixed to its name in YYMMDD format. The add time stamp is adding it till YYYMMDD-HHMMSSS.
    How can I change this format to the required one? Any suggessions.
    Thanks.
    Sri

    hi,
    you can create the whole filename (whatever you need)
    in the mapping (in a UDF) using adapter specific message attributes
    there are many blogs describing how to do that Dynamic Configuration of Some Communication Channel Parameters using Message Mapping
    Regards,
    Michal Krawczyk

  • How to add a new data element for existing table filed(Primary key field)

    Hi Experts,
    How to add a new data element for existing table field(Primary key field)
    For this filed ther is no foreign key relation ships and even check table.
    while activating table it is giving message like below.
    can you help any one to solve this and wil steps to add new dataelement for existing primary key filed of a table.
    Check table (NAMING SPACE/TABLE NAME(EX:/TC/VENDOR)) (username/19.02.10/03:29)           
    Primary key change not permitted for value table /TC/VENDOR
    Check on table  /TC/VENDOR resulted in errors              
    Thanks
    Ravi

    Hi,
    Easiest way is to download the table eg into an Excel table (if possible) or text table. Drop the table from the database. Build your table with the new key field. Build the database table again and fill it.
    You can do it also over the database into a new table. Drop the old one. Build the enhanced one and fill it. Afterwards drop your (temporary) table.
    Maybe there are other ways, but this works.
    Success,
    Rob

  • How to edit line data in AL11 file

    Hi Friends,
    I am facing some problem for below requirement,
    we are uploading data into AL11 files into BW-ODS, but sometimes whiles loading they are facing with error data, now we are trying to edit the particular line, i am able to edit and am able to transferring into same file, but stil old line be there only,
    here how can we delete one line in AL11?
    we have one solution for this we can edit data in PSA first and later upload into target....but in PSA data is complete trucationg...
    That's why we are searching this type of solution..
    Please help me on this...
    I will appreciate your help...
    Regards,
    Sri

    Finally we got 1 solution, please find solution below:
    when we displaying output on screen we used write:/ ltext input on,,
    by with output will display in edit mode, after we change this data, we need to press save button( this save button will be created with PF STATUS), by at user command option, i used below lines if code to save what we edited on output screen.
      line_num = 1.  do a times.,   clear ltext2., READ LINE line_num FIELD VALUE ltext2., if sy-subrc eq 0.  condense ltext2.  concatenate  ltext1 ltext2 into ltext1.  line_num = line_num + 1.  clear ltext2. else.   exit.  endif. enddo.
    here why used 'a', usually in AL11 data line has more than 1000 chars, it is diffcult to display in reading manner on output screen,
    thats wht i splitted line data into some line, each line with 125 chars,
    suppose i have line with 400 chars, i splitted line into 4 lines, so we need to move DO with 4 times...
    after concatecated 4 lines into sinlge line again i transferred into AL11.
    ...This is the solution what we got,
    please share if other solutuon is there..
    And Thank you all of you who shared your thoughts ...
    Sri.
    Edited by: Sri on Nov 5, 2009 2:18 PM

  • I want to add image in column is it possible then how to add image in data base what data type we need to do

    I want to add image in column is it possible then how to add image in data base  what data type we need to give we required any casting  please show me one example
    jitendra

    Hi again,
    Several points that can help more:
    1. If you are working with Dot.Net, then I highly recommend read the first link that you got! This is nice and simple coding. Another option is this link which is even better in my opinion:
    http://www.dotnetgallery.com/kb/resource21-How-to-store-and-retrieve-images-from-SQL-server-database-using-aspnet.aspx
    2. As i mention above both link use the column's type image. There are several other option of working with Files. In most of my applications architecture I find that it is better to use a column which let us use any type of file and not an image column.
    In choosing the right column's type for your needs basically your fist question should be if if you want to store your data inside relational database environment or outside relational environment. It is a good idea to look for blogs on this issue. Next
    if you chose to store your data inside then you need to chose the right column type according to your server version. I highly recommend to look for blogs on the differences between those column's types: IMAGE, 
    Check those links:
    To BLOB or Not To BLOB: Large Object Storage in a Database or a Filesystem
    http://research.microsoft.com/apps/pubs/default.aspx?id=64525
    FILESTREAM feature of SQL Server 2008
    http://msdn.microsoft.com/library/hh461480
    FileTables feature of SQL Server 2012
    http://technet.microsoft.com/en-us/library/ff929144.aspx
    Compare Options for Storing Blobs (SQL Server)
    http://technet.microsoft.com/en-us/library/hh403405.aspx
    Binary Large Object (Blob) Data (SQL Server)
    http://technet.microsoft.com/en-us/library/bb895234.aspx
    Managing BLOBs using SQL Server FileStream via EF and WCF streaming
    * Very nice tutorial!
    http://petermeinl.wordpress.com/2012/02/20/managing-blobs-using-sql-server-filestream-via-ef-and-wcf-streaming/
    [Personal Site] [Blog] [Facebook]

  • How to add new fields to the DME file in F110

    Hi,
    We have a requirement add new fields to the file that is used in  F110.
    .I did go in to DMEE transaction but I hae no idea how to add new fileds to the existing file.
    Can anybody please help me in resolving the issue.
    Thanks
    Venkat
    Edited by: Venkat R on Jun 8, 2009 8:45 AM

    Hi,
    There is no function module for that, We have created our own function module and attached to that field.
    Refer the below code. This will fetch the document number.
    DATA: lwa_item   TYPE dmee_paym_if_type,
            l_fpayp   TYPE fpayp,
            l_fpayhx TYPE fpayhx,
            first_flag TYPE c,
            lv_lifnr   TYPE lifnr,
            voucher_id TYPE string,
            voucher TYPE string,
            invoice_id TYPE belnr_d,
            voucher_len1 TYPE i,
            voucher_len TYPE i.
      TYPES:
      BEGIN OF lt_regup,
            xblnr TYPE xblnr1,
            belnr TYPE belnr_d,
      END OF lt_regup.
      DATA: lt_regup TYPE STANDARD TABLE OF regup,
            lv_regup TYPE regup.
    Hope this helps.
    Raja.A
    Edited by: Raja.A on Feb 16, 2011 7:17 PM

  • In Firefox 4 how can I cause the date on downloaded files to be the current date? (Some are and some are not. In FF3 the dates were ALWAYS the current ones.)

    In Firefox 4 how can I cause the date on downloaded files to be the current date? (Some are and some are not. In FF3 the dates were ALWAYS the current ones.)
    == This happened ==
    Every time Firefox opened
    == I upgraded to Firefox 4 (beta)

    Firefox 3.6.* and earlier set the downloaded file's modification time to the current time. In Firefox 4.0 the behavior has been changed, if a server returns a timestamp telling when the file was last modified (Last-Modified header), it is used instead.
    You can revert to the previous behaviour by using the [https://addons.mozilla.org/en-US/firefox/addon/93121/ Download Timestamp] add-on.

  • How to add more disk space into /   root file system

    Hi All,
    Linux  2.6.18-128
    can anyone please let us know how to add more disk space into "/" root file system.
    i have added new hard disk with space of 20GB, 
    [root@rac2 shm]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/hda1             965M  767M  149M  84% /
    /dev/hda7             1.9G  234M  1.6G  13% /var
    /dev/hda6             2.9G   69M  2.7G   3% /tmp
    /dev/hda3             7.6G  4.2G  3.0G  59% /usr
    /dev/hda2              18G   12G  4.8G  71% /u01
    LABLE=/               2.0G     0  2.0G   0% /dev/shm
    /dev/hdb2             8.9G  149M  8.3G   2% /vm
    [root@rac2 shm]#

    Dude! wrote:
    I would actually question whether or not more disks increase the risk of a disk failure. One disk can break as likely as one of two of more disks.
    Simple stats.  Buying 2 lottery tickets instead of one, gives you 2 chances to win the lottery prize. Not 1. Even though the odds of winning per ticket remains unchanged.
    2 disks buy you 2 tickets in The-Drive-Failure lottery.
    Back in the 90's, BT (British Telecom) had a 80+ node OPS cluster build with Pyramid MPP hardware. They had a dedicated store of scsi disks for replacing failed disks - as there were disk failure fairly often due to the number of disks. (a Pryamid MPP chassis looked like a Xmas tree with all the scsi drive LEDs, and BT had several)
    In my experience - one should rather expect a drive failure sooner, than later. And have some kind of contingency plan in place to recover from the failure.
    The use of symbolic links instead of striping the filesystem protects from the complete loss of the enchilada if a volume member fails, but it does not reduce the risk of loosing data.
    I would rather buy a single ticket for the drive failure lottery for a root drive, than 2 tickets in this case. And using symbolic links to "offload" non-critical files to the 2nd drive means that its lottery ticket prize is not a non-bootable server due to a toasted root drive.

  • HOW CAN U CORRECT THE DATA IN UR FILE WHICH CONTAINS 1 LAKSH RECS

    Hai Frnds,
    i Attend an interview they asked this questions can u know the answeres . tell me .
    In File to file scenario how can we reprocess records which failed records.
    HOW CAN U CORRECT THE DATA IN UR FILE WHICH CONTAINS 1 LAKSH RECS
    Thanks in advance
    thahir

    Hi,
    Refer these links:
    this might help you
    Generic Approach for Validating Incoming Flat File in SAP XI - Part 1
    Generic Approach for Validating Incoming Flat File in SAP XI - Part 1
    validating against schema file for the output XML file
    Informing the sender about bad records
    Regards,
    Nithiyanandam

  • How do I add leading zero(s) to exported files' names?

    I'm using Lightroom 1.4 on an iMac, with OS X 10.4. When I export a batch of photos, they get numbered automatically. For example, if they're pictures of my dog, I'll specify "Dog" as the name to be used and 1 as the starting number. Lightroom will then export them as "Dog-1.tif" and "Dog-2.tif" and so on.
    The problem is that when I then load these files into another application, it thinks that "Dog -1.tif" should be followed by "Dog-11.tif," then "Dog-12.tif," and so on to "Dog-19.tif" and then "Dog-2.tif," "Dog-20.tif," "Dog-21.tif," etc.
    One solution to this would be to have them numbered as 01, 02, 03. . . 09, 10, 11, etc. Rather than add those leading zeros to the file names manually, I'd like to have Lightroom put them in when it exports the files, but I can't figure out how to do that. I've tried entering 01 as the starting number in the "Export" dialogue box, but that doesn't do the trick.
    Can anybody tell me how to get Lightroom to add a leading zero (or zeros, when I export more than 99 files at a time) to the file names?

    >What if I just wanted to name the images 0001, 0002, 0003, etc? Can't seem to figure that out.
    In the Filename Template Editor, simply insert the [Sequence # (0001)] token as the only entry in the template field.

  • How to add norwegian language to my ipa-file in Adobe Flash Professional and Settings for AIR

    Hi,
    How to add Norwegian languages to my ipa-file in Adobe Flash Professional and Settings for AIR?
    The Norwegian users get my apps in english instead of Norweigan. Desperate for help!
    Regards Ylva

    Sorry but you will not get help here for that problem. This forum is about AIR Help, an online help format produced using AIR, it is not about AIR itself.
    I'll see if I can move it.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How to download the script data into pdf file

    how to download the script data into pdf file
    i have one option to download the script data to pdf file --->rstxpdft4 program.
    i have one doubt how to use this proogram.or any function module to download the script data to pdf file.
    Thanks and regards,
    Sri.

    Hi      Sri Sai,
    I know one method to convert the sapscript to pdf file :
    first generate a Spool Request for the required Sapscript
    then goto transaction SP01 and copy the generated Spool Request number
    now execute the SAP report RSTXPDFT4
    here enter the copied Spool request number and the target directory into the parameters
    execute the report
    required pdf file will be generated into the target directory
    i hope it will help you out
    Please refer this simple program:
    http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
    Reward points if found helpful....
    Cheers,
    Eshwar.

  • How to rename the SharePoint Document Library existing file name using Web service

    Hi,
    How to rename the SharePoint Document Library existing file name using SharePoint Web service.
    Is it possible. How could i do it?
    Thanks & Regards
    Poomani Sankaran

    Hi,
    Lists.UpdateListItems Method
    would be helpful for your requirement.
    Here is a blog with code demo for your reference:
    http://blogs.msdn.com/b/knowledgecast/archive/2009/05/20/moss-using-the-list-web-service-to-rename-a-file.aspx
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • How to Make Itunes Recognize Foreign Characters in file names?

    How to Make Itunes Recognize Foreign Characters in file names?
    Any Body, please
    DELL Windows XP Pro

    That's not how it's supposed to work according to this: http://www.griffintechnology.com/support/italkpro/
    By default, a playlist will be created in iTunes called "Voice Memos" and those files will be transferred there automatically. The files themselves can be found on your computer in your iTunes Music folder in Unknown Artist > Unknown Album.
    It may be worth working through any trouble shooting articles on that site.
    Regards,
    Colin R.

  • How I can make actions for write the file name in front image

    Hello All
    How I can make actions for write image(file)  name in front the image automatically in photoshop cs3.
    Thanks

    This script tutorial might be helpful:
    http://av.adobe.com/russellbrown/CaptionMaker_SM.mov

Maybe you are looking for

  • Purchase Order history not updating in my STO

    Dear Experts, We are doing stock transfer order internally for FERT and *BOUGHT OUT * items. Now at the time of delivery through VL10B all bought out items are appear in outbouddelivery but FERT item material is not coming automatically in delivery. 

  • Adding a graphic or photo behind a text frame in InDesign CS

    Hi Everyone, I'm hoping I can get some help please on a problem I'm having. I'm switching from QuarkxPress to InDesign CS -  after having it for nearly six years! - thought it was time learn InDesign. So far, I really like it. But, I've discovered a

  • 4th Gen Drama: won't mount or show up in iTunes, flashing icons

    So my 4th gen ipod was working beautifully until Thursday of this week. I hadn't used it since the weekend, and when I plugged it into my PowerBook, i got the sad ipod pointing me to apple.com/service/ipod. The ipod won't show up in the Finder, itune

  • Crystal Reports - Customer Statements with Ageing

    Hi, I have created a custom accounts receivable statement in Crystal reports 2011. However, I am currently facing some challenges: 1. How can I put a specific date so that the statement will show data upto that date e.g. today is 22/05/2014, but I wa

  • ECCS - deactivate message

    Hi, When posting a document in ECCS I am getting standard SAP yellow message. In the other system I do not get such a message. My quesiton is - Is there any general advise how to find where I can activate/deactivate particular message. It is standard