Output file updation

Hi I need some clarification on the below code …..The input file is P_FILE1 .
I need to add one validation – like
If input file name is ABC_A then output file should be ABC_A_Current date.
If input file name is XYZ_X then output file should be XYZ_X _Current date .
Please suggest how I will do it .
CONCATENATE P_PATH1 P_FILE1 INTO PATH_FILE1.
CONCATENATE P_PATH2 P_FILE2 SY_DATUM INTO PATH_FILE2.
OPEN DATASET PATH_FILE2 FOR OUTPUT IN TEXT MODE.
OPEN DATASET PATH_FILE1 FOR INPUT IN TEXT MODE.
IF SY-SUBRC <> 0.
WRITE:/ 'UNABLE TO OPEN EXTRACT FILE'.
EXIT.
ELSE.
DO.
READ DATASET PATH_FILE1 INTO ITAB.
IF SY-SUBRC <> 0.
EXIT.
ELSE.
ADD 1 TO INPUT_CNT.
SPLIT ITAB AT SV_DELIMIT
INTO ITAB- EBELN .

try this code..
data path_file(255) type c.
data p_path(200) type c value 'D:\file\'.
data p_file(30) type c value 'ABC_A'.
concatenate p_path p_file '_' sy-datum into path_file.
condense path_file no-gaps.
the date will be printed in YYYYMMDD format..
if u want in DDMMYYYY format..
p_date(8).
p_date(2) = sy-datum+6(2).
p_date2(2) = sy-datum4(2).
p_date+4(4) = sy-datum(4).
concatenate p_path p_file '_' p_date into path_file.
condense path_file no-gaps.
reward if it helps u..
sai ramesh

Similar Messages

  • I just tried to update Firefox to version 9.0.1. It got to 13% extracting, then I got an error message, Cannot Open Output File. Can you please help me?

    I just tried to update Firefox to version 9.0.1. It got to 13% extracting, then I got the error message, Cannot Open Output File.

    The file could be downloaded incorrectly. Could you redownload it again from [http://getfirefox.com http://getfirefox.com]?

  • URGENT : Updating Saudi Payment Output File

    Dear Fellow Boarders,
    We had an urgent requirement to add a new line at the end of "Saudi Payment Output File"
    I had created the formula for same and attached at the "Organizational Payment Method" Level, via "Further Information" in "Other" Tab.
    However when I run the Saudi Payment Output File , nothing is changed.
    I have a feeling that I am missing some step.
    Any assistance will be highly appreciated.
    Regards
    Shah Alam , Jeddah

    Thanks Vignesh,
    This issue is resolved now. We had a Sev 1 SR and got the resolution.
    They provided script to update seeded balance "Total Pay" it was not considering one element's classification.
    Thanks,
    Avinash

  • How can I have a custom output file destination for each different preset?

    Hey guys,
    I have a bunch of presets in AME but I need to have each preset export to it's own folder. How can I do that? This was a really simple thing to do in Compressor but in Media Encoder is seems like I can only specify one output file destination for the whole application in general and everything gets exported to that folder. Can anyone help me with that please?

    This is a user to user forum. It is not staffed by Adobe employees so you will not always get a direct response from Adobe.
    That being said, the output destination is not tied to the presets so this is not possible without a little extra work. You can change multiple output destinations by selecting multiple jobs and then clicking on one of the output locations to update them all. Another way to set this up would be to use watch folders.
    This is a feature request are aware of but if you would like to add your vote for it, please add that request here: Adobe - Feature Request/Bug Report Form

  • Setting output file name in export transaction data package

    Hi all,
    I am running an "export transaction data" package in the data manager. I wanted to set the output file name so that it will be a constant value. I wrote the following in the package editor:
    INFO(%FILE%,\ROOT\WEBFOLDERS\COLMOBIL\VEHICLES1\DATAMANGER\DATAFILES\vehicles_to_pca2.txt)
    TASK(/CPMB/TD_FILE_TARGET,FULLFILENAME,%FILE%)
    The system run the package and reported success but the file was not created. When i did the same with an existing file name, it was not updated.
    When I run the same package with the following PROMPT command instead of the INFO command:
    PROMPT(OUTFILE,,"Please enter an output file",Data files (*.txt)|*.txt|All files(*.*)|*.*)
    The system works fine.
    Any ideas?
    TIA
    Avihay

    I am sad to report that apparently Adobe does not do a very good job with the PDF printer. I have just spent over an hour with support to get the answer we can not help you. I guess I will have to spend $50 for NovaPDF to handle my problem. It's a shame when a superior overall product like Acrobat is not able to keep up with the knockoffs on the small things.

  • EDIFECS Mapping not found in the X12 Output file in Oracle B2B 11g

    Hi,
    We are using Oracle SOA suite 11g, we have created a outbound process for EDI 855 which is PO Acknowledgement.
    We are using a XML Gateway for the outbound and consuming the message in BPEL. We are mapping the OAG xml to EDIFECS xml to be consumed by Oracle B2B. We had created the EDIFECS xsd and ecs file using Oracle B2B editor and got it validated.
    Now the issue is we have mapped few elements in BPEL and the same data is found in the payload message in Oracle B2B, but we are unable to see the data in the X12 output file.
    Any thoughts will be hightly appreciated.
    Thanks
    Sathish

    Hi,
    Thanks for your update.
    The following were the elements missing in the native X12 flat file. I verified these elements present in ecs using oracle b2b document editor.
    <ns0:Segment-PO1>
    <ns0:Element-355>EA</ns0:Element-355>
    <ns0:Element-235>UI</ns0:Element-235>
    <ns0:Element-234>UPCXREF</ns0:Element-234>
    </ns0:Segment-PO1>
    <ns0:Segment-ACK>
    <ns0:Element-355 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="">EA</ns0:Element-355>
    <ns0:Element-373>20100318</ns0:Element-373>
    </ns0:Segment-ACK>
    Thanks
    Sathish

  • How to programmatically disable prompts for output file names in Acrobat X

    My code to programmatically disable output file names (below) is not working on a Windows 7 64-bit machine using Acrobat Distiller X.  It works perfectly on a Windows XP machine with Acrobat Distiller 8.
    The latest API Reference I was able to find is dated June 2008.  My logic follows this convention.
    I have confirmed that the registry key is updated as specified below.  I have also confirmed that I am able to write to the directory indicated.
    Please provide any suggestions to resolve. 
    Thank You!
    ~Lori
    'Create the Registry Key where Acrobat looks for a file name
            CreateNewRegistryKey HKEY_CURRENT_USER, _
                         "Software\Adobe\Acrobat Distiller\PrinterJobControl"
    'Put the output filename (FilePath) where Acrobat could find it
            SetRegistryValue HKEY_CURRENT_USER, _
                     "Software\Adobe\Acrobat Distiller\PrinterJobControl", _
                     C:\Program Files (x86)\Microsoft Office\Office12\MSACCESS.EXE, _
                     T:\PDF Files\Current Week\NFS_Lori,Test.pdf

    I remember seeing that the problem is thunking. A little more specifically, because it's a 32-bit driver but a 64-bit executable, there's a 32-bit system spooler process which will always show up as the EXE name.

  • Java application export output file of Crystal Report in .TXT format

    Hi,
    I have a Java application which is able to export the output file of Crystal Report in PDF format. But I'm trying to change the export file to .TXT format. Is this possible? I'm using Crystal Report XI. Is there any available updates or fixes to solve this? Please advice.
    Thank you

    I've tried, but I have an error
    frm-40735: when button-pressed trigger raised unhandled exception ORA-06502
    ORA-06502 when I try write a text field to the file the text field in question is a date.
    Did a similar problem ever occured to you?

  • How to change output file setting?

    Everytime I export a project in Premiere Pro CS5 to Media Encoder the output file setting is always the same... a location for a project I did ages ago. I would prefer it to be saved in either the folder where the current edited project is, or a general output video file on my drive.
    Now before you think I'm a total noob, please be aware that I have gone into the ME preferences and changed the output file location, but believe it or not this did not work. Files are still being saved to the old location. Next, I turned off the "Place output files in" option thinking that files would go to the project folder as Adobe Help says, but nope, they still go into the old project file. I've done all of these actions and re-launched ME several times with the same results.
    Of course I can always click on the output file in ME and manually change it but for the life of me I don't understand why its always defaulting to a project I did long ago. I'm about ready to uninstall and reinstall ME but thought I'd take one last shot and ask here if anyone else has encountered this problem.

    Note that the export path is controlled by the app that initiates the job.
    when you export a job from Premiere, the initial export path is controlled by Premiere, which uses the last path that you manually set*; if you never set a path on export, then it defaults to the folder where the PPRO project is saved.
    *PPRO updates this path only if you change it in the Export Settings dialog that is invoked by Premiere; if you wait until the job is in AME's queue, then PPRO is unaware that you changed the output path. I suspect this is the crux of the issue you're having with PPRO setting the path to a folder you exported to ages ago.
    When you start in AME and import a job, the Specify Output File Destination preference is applied if that option is enabled; if it's not, then the path defaults to the path of the source.

  • When I try to download firefox I get this error "cannot open output file". I had firefox once but uninstalled it now I cant' reinstall. Why?

    I had firefox but uninstalled it because of problems with add on Recipefox. Now when I try to reinstall it I get and error message "cannot open output file". I really liked firefox, How do I get it back?

    When you click the download link on [http://getfirefox.com GetFirefox.com], you should be asked if you wish to Run or Save the file. If the described situation happens when trying to Run the download, try instead to Save it and put the file on your Desktop or a similar place where you are certain that you can find it again.
    When the download is complete, try double-clicking the downloaded file in the normal Windows Explorer (browse your way to the file from My Computer). This should start the installation.
    If you notice in the Explorer window that the file seems to be lacking the Firefox orange/blue icon, rightclick the file and select Properties. The picture should look somewhat like the attached picture (except that mine's in danish, but that is irrelevant) if saved correctly - if it does NOT look like this, please describe the contents or attach a screenshot of the box. Especially what it says under "File type" - it should be "Program"; if it's not, we'll have to look into what the problem could be here.
    Slightly off-topic, your Internet Explorer seems to be quite a bit out of date (IE 6, where current version is IE 8), so I would strongly recommend that you try to run Windows Update to get your system updated. If this is a company system (like a Terminal Server thin client machine), this may not be possible, and your system administrator will most likely have to help you.

  • Intrastat Output File doesnot contain VAT number and Document Number

    Hi experts,
    While creating a output file from Intrastat Dispacth, I am not getting Document number and VAT number in output file.
    I can see the Document number in Display of selection log.
    Can someone help me?
    Thanks
    Arpit

    Hi,
    Try the enhancement FTGOVSEL.
    In the userexit EXIT_SAPLV50G_002, in the include ZX50GU02, write this coding (for the VAT number)
    if c_record_intrastat-kundeuinr is initial.
       select single * from kna1
         where kunnr = c_record_intrastat-kunnr.
         if sy-subrc = 0.
            c_record_intrastat-kundeuinr = kna1-stceg.
         endif.
    endif.
    Remember update the VAT number in the customer (in this case).
    I hope this help you
    Regards,
    Eduardo

  • I can't install Firefox. Get a message saying "can not open output file" Firefox version 3.6.6

    Firefox stopped working after updating. I uninstalled it and downloaded latest version 3.6.6. Before that 3.6.3.
    When I try to install, I get a message "Extraction Failed.. Can not open output file" . I trie d former versions, all with the same result. I've already ran several antivirus and anti-malware, spyware.. etc.
    Everything else works fine, except for Firefox...
    == This happened ==
    Every time Firefox opened
    == after update ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.86 Safari/533.4

    Do a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    If you keep having problems then disable your security software (anti-virus) during the download and installation of Firefox.
    You can skip the step to create a new profile, that is not necessary for this issue.
    See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • When I try to install Firefox, I get a "can not open output file" error. I was using Firefox before and it stopped working, so I uninstalled. Cannot re-install now.

    When I try to install Firefox, I get a "can not open output file" error. I was using Firefox before and it stopped working, so I uninstalled. Cannot re-install now.
    == This happened ==
    Every time Firefox opened
    == I tried to download firefox. ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; AntivirXP08; GTB6.3; .NET CLR 2.0.50727; MS-RTC LM 8)

    When you click the download link on [http://getfirefox.com GetFirefox.com], you should be asked if you wish to Run or Save the file. If the described situation happens when trying to Run the download, try instead to Save it and put the file on your Desktop or a similar place where you are certain that you can find it again.
    When the download is complete, try double-clicking the downloaded file in the normal Windows Explorer (browse your way to the file from My Computer). This should start the installation.
    If you notice in the Explorer window that the file seems to be lacking the Firefox orange/blue icon, rightclick the file and select Properties. The picture should look somewhat like the attached picture (except that mine's in danish, but that is irrelevant) if saved correctly - if it does NOT look like this, please describe the contents or attach a screenshot of the box. Especially what it says under "File type" - it should be "Program"; if it's not, we'll have to look into what the problem could be here.
    Slightly off-topic, your Internet Explorer seems to be quite a bit out of date (IE 6, where current version is IE 8), so I would strongly recommend that you try to run Windows Update to get your system updated. If this is a company system (like a Terminal Server thin client machine), this may not be possible, and your system administrator will most likely have to help you.

  • A sporadic compile error vbc : error BC31019: Unable to write to output file 'D:\Revit\Dev32\RevitAdditions\Source\..\Intermediate\ReleaseWin32\VBNETSnippets\VBNETSnippets.dll': The specified image file did not contain a resource section.

    Hi,
    This is developer from Autodesk. We get this compile error from time to time. This is a sporadic failure. We can't find any issue in our own project.
    vbc : error BC31019: Unable to write to output file 'D:\Revit\Dev32\RevitAdditions\Source\..\Intermediate\ReleaseWin32\VBNETSnippets\VBNETSnippets.dll': The specified image file did not contain a resource section.
    I find a help doc from the website to try some steps to solve this issue.
    Error ID: BC31019
    To correct this error
    Compile the program again to      see if the error recurs.
    If the error continues, save      your work and restart Visual Studio.
    If the error continues, restart      the computer.
    If the error recurs, reinstall      Visual Basic.
    If the error persists after      reinstallation, notify Microsoft Product Support Services.
    My question is what the root cause for this issue. Could you please give us some explanation where the issue should be,  VB compiler? .Net Framework?
    Visual Studio? Operating system?
    Thanks
    Wilson

    Hi hitzwx,
    Thank you for posting in MSDN forum.
    Since this forum is to discuss: Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help
    System, and Visual Studio Editor.
    Based on your issue, I am not sure what the root cause for this issue. But I suggest you can try some suggestions so that narrow down this issue.
    (1) I suggest you try to create a new simple VB project and then check this issue.
    (2) In addition, maybe you see the document about your issue. If possible, I suggest you can try these suggestions to troubleshooting this issue.
    https://msdn.microsoft.com/en-us/library/85s7w197.aspx
    >>Unable to write to output file 'D:\Revit\Dev32\RevitAdditions\Source\..\Intermediate\ReleaseWin32\VBNETSnippets\VBNETSnippets.dll': The specified image file did not contain a resource section.
    In addition, I suggest you can check if the specified image file in the output folder or you can try to click your image file in the Solution Explorer-> select the Copy to Output Directly properties->Copy always check this issue again.
    If you have any update message about your issue, please tell me.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do you configure AME CS5.5 to overwrite existing output files?

    How do you configure AME CS5.5 to overwrite existing output files?  So far the only options I have found are to increment the output file name or fail.  From the explaination of file increment I would have expected overwrite to be the alternative.  We work daily with the same file(s) on an hourly basis and convert via watch folder to over a dozen file types and network mapped destinations.  Re-using the same file name is critical to the final project (updating website content). Does anyone have any suggestions?

    Has there been any updates on overwriting output files in CS6? This would be extremely helpful.

Maybe you are looking for