Open Dataset :  File Not Created In The Directory

Hi Guru's,
I have a small question, I try  trough my code  to create a file but when I use the "open dataset" nothing produces. I have no errors and in the debug mode the sy-subrc is always to "0".
w_locdrive    = 'C:\RECON_SUP\'.
w_rec         = '5499728464709 '.     "AO
w_mess        = 'RECON_SUP'.
SELECT /bic/ricr1_003  /bic/ricr1_061
       /bic/ricr1_010 /bic/ricr1_091 /bic/rikr2_001
      INTO CORRESPONDING FIELDS OF TABLE i_2006 FROM /bic/aro_r200600.
CONCATENATE w_mess '.' w_send '.' w_rec '.' sy-datum sy-uzeit '.txt' INTO w_name.
CONCATENATE w_locdrive w_name INTO w_path.
IF i_2006[] IS NOT INITIAL.
  SORT i_2006 BY /bic/ricr1_003.
*Open my file.
  OPEN DATASET w_path FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
* Put all records in the file output.
  LOOP AT i_2006 INTO wa_2006.
    w_rikr2_001 = wa_2006-/bic/rikr2_001. " Convert the Volume in char Field.
    CONCATENATE wa_2006-/bic/ricr1_003 ';' wa_2006-/bic/ricr1_061 ';' wa_2006-/bic/ricr1_010 ';'
                wa_2006-/bic/ricr1_091 ';' w_rikr2_001
                INTO  w_string.
    IF sy-subrc = 0.
      TRANSFER w_string TO w_path.
      CLEAR w_string.
    ENDIF.
  ENDLOOP.
Thank you in advance for your help,
Mohamed.

Can you try like this
OPEN DATASET w_path FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc = 0."<---Add here
* Put all records in the file output.
  LOOP AT i_2006 INTO wa_2006.
    w_rikr2_001 = wa_2006-/bic/rikr2_001. " Convert the Volume in char Field.
    CONCATENATE wa_2006-/bic/ricr1_003 ';' wa_2006-/bic/ricr1_061 ';' wa_2006-/bic/ricr1_010 ';'
                wa_2006-/bic/ricr1_091 ';' w_rikr2_001
                INTO  w_string.
    IF sy-subrc = 0. "<---Remove here
      TRANSFER w_string TO w_path.
      CLEAR w_string.
    ENDIF."<---Remove here
  ENDLOOP.
endif."<---Add here

Similar Messages

  • Background job finished but flat file not created in the Background

    Dear all,
    ZHR_CSD program is scheduled to run daily at 00:01:00. This program is generating the flat file in the folder CSD/HR.
    when i  schedule this program to run immediately it is generating the flat file.
    But when i schedule this program in Background it is not generating flat file .
    Regards

    Hi,
    As suggested by Eric, your Z Program is probably using GUI_DOWNLOAD Function Module.
    GUI_DOWNLOAD or any other GUI function modules (FM) will only run in foreground, not in Background.
    Ask your developer to code that Z Program with OPEN DATASET logic, if its possible.
    The Reverse situation is well described in [this thread|Background Job assigment with variant in SM37 , for Textfile uploading], please refer it to get some relative information for the same.
    Regards,
    Bhavik G. Shroff

  • Open/Transfer/Close Dataset file not downloading

    Hello people apologies if this running rampant for me. I did post this from an attatched topic of mine but im guessing, due to its number or replies, that many people felt that it was pretty much covered. It was but another problem has riseng during my initial question.
    My plan is to download a report in a file, (hopefully in background), as it is. Obviously WS_Download would not work because (1) it doesnt seem to function in background proccessing and (2) the layout is not aligned properly. After checking this out, in this forums as well as other sits, I realized Open Dataset ought to be the best approach. Im not touching the more complex ones yet you because I plan to take this step by step. 
    So far I have searched the net and stuff and decided that I will use WWW_LIST_TO_HTML since I want to download it the way it is. I am also going to use open/close dataset as many of you have mentioned.
    SO far Im just trying it out with a simple report program to see its funcitonalities. My code goes like this.
    <b>REPORT Z**** NO STANDARD PAGE HEADING LINE-COUNT 100 .
    DATA: IFIELDS TYPE TABLE OF W3FIELDS WITH HEADER LINE.
    *DATA: ihtml TYPE TABLE OF w3html WITH HEADER LINE.
    DATA: IHTML TYPE TABLE OF W3_HTML WITH HEADER LINE.
    DATA: BEGIN OF I_TAB OCCURS 0,
    MATNR LIKE MAKT-MATNR,
    MAKTX LIKE MAKT-MAKTX,
    END OF I_TAB.
    SELECT-OPTIONS: SO_MATNR FOR I_TAB-MATNR.
    SELECT MATNR MAKTX
    FROM MAKT
    INTO TABLE I_TAB
    WHERE MATNR IN SO_MATNR..
    LOOP AT I_TAB.
    WRITE: / I_TAB-MATNR,
    I_TAB-MAKTX.
    ENDLOOP.
    CALL FUNCTION 'WWW_LIST_TO_HTML'
    EXPORTING
    list_index = sy-lsind
    TABLES
    HTML = IHTML.
    DATA: FILE TYPE LOCALFILE.
    FILE = '/usr/test.html'.
    OPEN DATASET FILE FOR OUTPUT IN BINARY MODE.
    LOOP AT IHTML.
    TRANSFER IHTML TO FILE.
    ENDLOOP.
    CLOSE DATASET FILE.</b>
    NOw the problem now though is that the file isnt downloading or saving at all. I cant seem to get what is wrong since the path does exist and the this seems the universal way to implement the program. Im guessing the problem lies in the file name, because everything seems to work fine. Hope to hear again soon. Sorry if people have see this twice. Again my sinceriest apologies.

    for example,  open IE,  in the address bar, I enter
    \SXXXXXX
    ,   SXXXXXX is my host name.  I hit enter.  now i see folders, one of which is USR,  then I click on the usr folder and there is my file that I created with your program. 
    Maybe ask your basis person what the host name is.
    Regards,
    Rich Heilman

  • Tried to open a file I created in Numbers a while ago which I modified on 11/4/13 and got a message that I needed a newer version of Numbers.  When I went to the Mac App Store it shows that the new version is already installed.  Any suggestions?

    Tried to open a file I created in Numbers a while ago, which I modified on 11/4/13, and got a message that I needed a newer version of Numbers.  When I went to the Mac App Store it shows that the new version is already installed and there doesn't seem to be a way to reinstall it.  When I checked "About Numbers" on my MacBook it shows "Numbers '09 version 2.3".  Any suggestions as to how I can get the new version installed?

    Are you launching Pages from an icon in your Dock? Installing the update does not change the Dock icons & it does not remove the older versions. Go to your Applications folder & launch the new Pages from there.

  • The new updated version of iMovie 10 won't let me open my previous files I created before the update today. I have a wedding that I'm trying to finish and deliver and now I can't because that file version won't open. I keep getting an error message

    Hello,
    Please help me figure this out. I'm very unhappy at the moment. I'm fustrated and don't have any idea how to revert to the original version before the update was done on iMovie 10. I NEVER hated APPLE until NOW!! I love APPLE products and apps so please help me stay in that mindset. So I worked on some movie projects when I got my macbook pro 6 months ago. I update reguarly. I saw the update prompt and honestly, I did not think I would have ANY issuess with opening my previous files that I created only a few months ago with this updated version.The new updated version of iMovie 10 won't let me open my previous files I created before the update today. I have a wedding that I'm trying to finish and deliver and now I can't because that file version won't open. I keep getting an error message and the iMovie app closes. Last night I saw the file and tried to open it but no luck. Error message came up again. I reboot and turned off my laptop for the evening and tried again just now but nothing!! I need that video. My job depends on it! I worked so hard on this wedding video and now it's lost and won't open. I work another job and don't have much time. I really don't want to start all over again. Please help me. Thanks so much for your assistance.
    Fustrated APPLE customer
    Jolly A. Rupp

    I also have Jolly's problem. I found the iMovie 9.0.9 folder and tried to launch the older version of iMove. It would not launch. I removed all of the iMovie preferences from the Preferences folder, removed iMove 10 from the applications folder, and restarted my Mac. iMove 9.0.9 still won't launch and I can't access my videos created with the older version of iMovie. Is there a way to uninstall iMovie 10 and reinstall iMovie 9.0.9?
    I am running Yosemitie on a  iMac.
    Paul

  • In Photoshop CC14, can not open any files or create a new file.

    I will open photoshop (recent update and previous), and it will not allow me to open any files or create a new one. The blank screen with the tools just stays the same. Other apps such as Illustrator still work. I'm on Windows 8.1. Please help I need Photoshop for my business.

    I cannot open or create any files. | Mylenium's Error Code Database
    Mylenium

  • When I try to open a file I created in Pages, I get this: "The required index.xml file is missing."  This has happened many times and I have forgotten how I've worked around it.

    When I try to open a file I created in Pages, I get this: "The required index.xml file is missing."
    This has happened many times and I have forgotten how I've worked around it.

    That is wrong advice and you appear to have repeated it all over the forum.
    All Pages files no matter what version have the same file extension, .pages, despite being radically different formats and that is the problem. The System does not distinguish between them when you double click on the file, it opens the first version of Pages it encounters.
    You need to right click on the file and choose the correct App version for the file. Unfortunately there are no clues to tell you which is which.
    If you are unhappy with this and the removal of over 100 features plus the problems with transmitting files across devices, servers and different versions of OS X, rate/review Pages 5.5.2 in the App Store.
    Peter

  • After upgrading to ios6 my iphone will not open .xls files in emails with the default viewer. Is there a fix for this? The same emailed .xls files still open on my ipad using ios5 while viewing email like they did on my iphone prior to upgrading.

    After upgrading to ios6 my iphone will not open .xls files in emails with the default viewer. Is there a fix for this? The same emailed .xls files still open on my ipad using ios5 while viewing email like they did on my iphone prior to upgrading. I have no special software like numbers or anything else installed on either device. Just using the default viewer provided by apple for viewing email.

    The attachment is an .xls excel 97-2003 spreadsheet. I viewed the file in the email and did not edit it with any software. I can forward the file to anyone that is may want to check it out to see if they can help me. I was wondering if there was some way of forcing another ios6 install on my phone and maybe that would solve it.
    Is there anyone out there that is viewing .xls files in email using ios6 w/o any other software installed like numbers or any other add ons? I am not upgrading my ipad from ios5 to ios6 so I can still continue to view the emails on my ipad. Is there an email viewer .xls plug-in that will be availablle in the next ios6 update?

  • File is not creating on the Receiver for File Content Conversion

    Hi,
    i have created a scenario with this blog
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    for sender side i am using File Content Conversion to read .txt file and on receiver side i need xml file i have done that.
    when i placed the file in the sender folder it gets picked up and i checked in Communication Channel monitporing in Runtime WorkBench it is processed Successfully. but no XML File is created on the Receiver side. i am unable to see the messages on SXMB_MONI also.
    Please suggest some ideas to solve this.
    Thanks,
    Giridhar.C

    Hi Giridhar.
    unable to see the messages on SXMB_MONI also
    If the file got picked and in Communication Channel monitoring RWB you can see that it is processed without any errors ,, then i feel it should come in come.Please check the Audit log in RWB, there you can see the error message if any.
    Please check the connection parameters in FTP and make sure that the same sender folder is
    not being used by any other scenario.If you have done any recent changes then do  a cache refresh .
    Please post if you see any error in content conversion.
    Regards
    Srinivas

  • Adobe Acrobat XI Pro. Unable to process the document in the module Save As.File not created

    On the ultrabook Asus (System Settings: WIN 8.1 64-bit, Core I5-3317U CPU @ 1.70 Ghz, Memory 4 Gb), set Adobe Acrobat XI Pro 11.0.09
    When you convert to any format via SaveAs in WORD, EXCEL, or via the Export file in ... throws the error "Unable to process the document in the module Save As. File not created"
    http://youtu.be/l0a0lWexfNQ.

    Hi,
    Please post your query in Adobe Acrobat Thread:Acrobat
    Regards,
    Florence

  • Problem! I just copied my extern hdd to finder and tried to open my files when I get the message: "The Map "Pictures" can not be opened since you don´t have authority to  see it´s contents! What??? No one else has access to my computer....

    Problem! I just copied my extern hdd to finder and tried to open my files when I get the message: "The Map ”Pictures” can not be opened since you don´t have authority to  see it´s contents! What??? No one else has access to my computer....now I can´t open my 300 Gb on my hdd in my Macbook Pro. Help?

    I've had this happen a few times before. What I found works is repairing the permissions. To do so click on go and then to utilities. click disk utilities. In disk utilities select the drive and click repair permissions. It may take a little time but try accessing after that.

  • Flat file not created

    when i run the procedure i created, the flat file is not created in the specified directory....can someone tell me why?
    the procedure is below. thanks
    PROCEDURE po_creation IS
    fHandle UTL_FILE.FILE_TYPE;
    sc_shipcode varchar2(3); -- XX
    sc_po_no varchar2(14);-- orderform.FORMNO VARCHAR2(20)
    sc_po_status varchar2(1);-- orderform.orderformstatus number(1)
    sc_ol_status varchar2(1); -- XX
    sc_vender_no varchar2(10);-- sparetype.makerid number(9)
    sc_credate date; -- orderform.CREATEDDATE DATE
    sc_lastdelivery_date date; --orderform.LATESTDELIVERYDATE date
    sc_gl_acccode varchar2(30); -- XX
    sc_curr_code varchar2(3); -- orderline.CURRENCYCODE CHAR(3)
    sc_freigtt_vendor varchar2(15); -- XX
    sc_orderline_no number(4,0);-- orderline.orderlineno NUMBER(4)
    sc_contact_no varchar2(40); -- XX
    sc_description varchar2(40);-- orderline.NAME VARCHAR2(60)
    sc_price number(12,2);-- orderline.PRICE NUMBER(12,2)
    sc_quantity number(12,2); -- [sparepartlog.quantity NUMBER(9,2)](coded item) OR [orderline.received NUMBER(9,2) - orderline.sapqtyreceived NUMBER(9)](non coded items)
    sc_unit varchar2(15); --unit.name VARCHAR2(15)
    sc_discount_val number(12,2);-- orderform.SHIPPING NUMBER(12,2)
    sc_discount_per number(5,2); -- orderline.DISCOUNT NUMBER(5,2)
    sc_partno varchar2(40); -- sparetype.parttypeno varchar2(30)???
    sc_makerref varchar2(40); -- orderline.MAKERREF VARCHAR2(50)
    sc_po_user varchar2(40); -- orderform.CREATEDBY NUMBER(9)
    sc_order_date date; -- orderform.ORDEREDDATE DATE
    sc_asset_no varchar2(16); --orderline.COMMENT2 VARCHAR2(40)
    sc_receive_date date; --orderform.receiveddate date(coded item) sparepartlog.transdate date (non coded item)
    Cursor my_cursor is
    select substr(a.formno,1,3), substr(a.formno,1,14), a.formstatus, a.formstatus, d.makerid, to_date(a.createddate,'YYYYMMDD'),
    to_date(a.latestdeliverydate,'YYYYMMDD'),b.budgeted ,b.currencycode,substr(b.name,1,15),b.orderlineno ,b.comment1, substr(b.name,1,40),b.price,
    substr(c.quantity,1,12),/*substr( b.received,1,12), substr(b.starcruises_sap_qty_received,1,12),*/e.name , a.shipping , b.discount,
    substr(d.parttypeno,1,40), substr(b.makerref,1,40), to_date(a.createdby,'YYYYMMDD'),to_date(a.ordereddate,'YYYYMMDD'),
    b.comment2,to_date(a.receiveddate,'YYYYMMDD')--, to_date(c.transdate,'YYYYMMDD')
    from orderform a, orderline b, sparepartlog c, sparetype d, unit e
    where a.orderid=b.orderid
    and b.unitid=e.unitid
    and a.orderid=c.orderid
    and e.unitid=d.stockunitid
    and rownum < 10 ;-----------testing purpose
    Begin
    fHandle := UTL_FILE.FOPEN('c:\pete','po.txt','w');
    UTL_FILE.PUT_LINE (fHANDLE,to_char(sysdate,'YYYYMMDD'));
    open my_cursor;
    LOOP
    FETCH my_cursor into sc_shipcode, sc_po_no,sc_po_status ,sc_ol_status ,sc_vender_no,sc_credate, sc_lastdelivery_date,
    sc_gl_acccode,sc_curr_code ,sc_freigtt_vendor,sc_orderline_no ,sc_contact_no,sc_description,
    sc_price,sc_quantity,sc_unit,sc_discount_val,sc_discount_per,sc_partno,sc_makerref,sc_po_user,
    sc_order_date ,sc_asset_no ,sc_receive_date;
    EXIT WHEN
    my_cursor%NOTFOUND;
    /*check the lenght of each colum to be written to text file*/
    sc_shipcode:=RPAD(sc_shipcode,3,'');
    sc_po_no:=RPAD(sc_po_no,14,'');
    sc_po_status:=RPAD(sc_po_status,1,'');
    sc_ol_status:=RPAD(sc_ol_status,1,'');
    sc_vender_no:=RPAD(sc_vender_no,10,'');
    sc_gl_acccode:=RPAD(sc_gl_acccode,30,'');
    sc_curr_code:=RPAD(sc_curr_code,3,'');
    sc_freigtt_vendor:=RPAD(sc_freigtt_vendor,15,'');
    sc_orderline_no:=RPAD(sc_orderline_no,4,'');
    sc_contact_no:=RPAD(sc_contact_no,40,'');
    sc_description:=RPAD(sc_description,40,'');
    sc_price:=RPAD(sc_price,12,'');
    sc_quantity:=RPAD(sc_quantity,12,'');
    sc_unit:=RPAD(sc_unit,15,'');
    sc_discount_val:=RPAD(sc_discount_val,12,'');
    sc_discount_per:=RPAD(sc_discount_per,5,'');
    sc_partno:=RPAD(sc_partno,40,'');
    sc_makerref:=RPAD(sc_makerref,40,'');
    sc_po_user:=RPAD(sc_po_user,40,'');
    sc_asset_no:=RPAD(sc_asset_no,16,'');
    /*write to file */
    UTL_FILE.PUT_LINE( fHandle,sc_shipcode||sc_po_no||sc_po_status||sc_ol_status||sc_vender_no||sc_credate||sc_lastdelivery_date
    ||sc_gl_acccode||sc_curr_code||sc_freigtt_vendor||sc_orderline_no||sc_contact_no||sc_description||sc_price||
    sc_quantity||sc_unit||sc_discount_val||sc_discount_per||sc_partno||sc_makerref||sc_po_user||
    sc_order_date||sc_asset_no||sc_receive_date);
    END LOOP;
    close my_cursor;
    --commit;
    --message('1');pause;
    utl_file.fclose(fHandle);
    --message('2');pause;
    exception
         when no_data_found then
         null;
    when others then
         null;
    --     WHEN UTL_FILE.INVALID_PATH THEN
    -- message('Invalid Path');pause;
    End;

    If you are using 9i then you can Create a Directory instead of setting the ult_file_dir parameter in the init file. The user creating the directory need CREATE DIRECTORY privilege
    Example: Create directory MY_DATA as 'c:\pete' ;
    And here is the list of exceptions (using 9i)
    INVALID_PATH          File location is invalid.
    INVALID_MODE          The open_mode parameter in FOPEN is invalid.
    INVALID_FILEHANDLE          File handle is invalid.
    INVALID_OPERATION          File could not be opened or operated on as requested.
    READ_ERROR          Operating system error occurred during the read operation.
    WRITE_ERROR          Operating system error occurred during the write operation.
    INTERNAL_ERROR          Unspecified PL/SQL error
    CHARSETMISMATCH           A file is opened using FOPEN_NCHAR, but later I/O operations
                   use nonchar functions such as PUTF or GET_LINE.
    FILE_OPEN           The requested operation failed because the file is open.
    INVALID_MAXLINESIZE     The MAX_LINESIZE value for FOPEN() is invalid; it should be
                   within the range 1 to 32767.
    INVALID_FILENAME          The filename parameter is invalid.
    ACCESS_DENIED          Permission to access to the file location is denied.
    INVALID_OFFSET          The ABSOLUTE_OFFSET parameter for FSEEK() is invalid; it
                   should be greater than 0 and less than the total number of bytes
                   in the file.
    DELETE_FAILED          The requested file delete operation failed.
    RENAME_FAILED          The requested file rename operation failed.
    You can also have NO_DATA_FOUND, VALUE_ERROR

  • Retrieve the date a file was created in the background

    EDITED CONTENT----
    Apologies all...I just realized there is a specific forum for this type of question.  I will post it there.
    Thanks Marilyn for point this out>>>>should have read it first as suggested. 
    /message/2572763#2572763 [original link is broken]
    Hi guru's,
    I have a custom application that does some windows directory cleaning based an older than 'X' days setting.  I have to do some calculation to determine if the file being processed is older than that number of day and delete it if it is.  To determine the file created date I use the method DIRECTORY_LIST_FILES from CL_GUI_FRONTEND_SERVICES.  This works great in the foreground but dumps in the background because the handle object reference is not created in the class constructor and subsequently does a call to a "NULL" object.
    My question:
    Does anyone know of a way to get the date a file was created while running in the background?  If not, please read on --- I have another question regarding an alternate approach I am trying.
    I have tried the following approach FM EPS_GET_DIRECTORY_LISTING to return an internal table with all files in a directory.  Works fine in the background, but the created date is not in the return values.  Soooooo I looped at the internal table and called this system function:
            CALL 'C_FILE_ATTRIBUTES'
                ID 'NAME'     FIELD tempfile
                ID 'TYPE'     FIELD singleFile-
                ID 'LEN'      FIELD file-len
                ID 'OWNER'    FIELD file-owner
                ID 'MTIME'    FIELD file-mtime
                ID 'MODE'     FIELD file-mode
                ID 'ERRNO'    FIELD file-errno
                ID 'ERRMSG'   FIELD file-errmsg.
    This returns the MTime, which is the Modified time (in Epoch time format: number of seconds since Midnight 1 January 1970), but no created time.  Does anyone know the ID for the created time?  I tried CTIME but no value is returned. 
    Along with this question: any idea if a FM or Method exists to convert Epoch time to a standard time.  I could do the calculation myself....but it seems someone would have already done this.  No point in re-creating the wheel.
    Thanks so much,
    Quack
    Message was edited by:
            Ryan Quackenboss

    I will be happy to.
    Please post something to this thread. 
    Retrieve the date a file was created in the background
    I UNMARKED this question as a post and reposted in the data transfer forum.
    That post is still open.  Once you post there, I will mark it ANSWERED and award points.
    Thanks for the help
    Quack

  • Open Dataset : File creation in server

    Hi Guys,
    I am trying to use  
    Open dataset dsn for output in text mode encoding default.   " dsn = '
    pt-net\taskout\outfile.txt'.
    loop at itab.
    transfer itab to dsn.
    endloop.
    to write a file at a destination on a windows NT server For eg :
    pt-net\taskout\outfile.txt
    I see sy-subrc = 0 at both open dataset and transfer commands in the debugger. But the file is not written.
    I can manually create files when I access this path in my explorer. So it is not an access issue.
    Also, my SAP application server is a Unix server. But the file I am trying to write is in NT server. THis is for  a 3rd party application. Where am I possibly going wrong ? I am able to write this file to the Unix application server path using the above command. But I need to write this in the Windows server.
    Do I need first write to Unix path and then FTP it to Windows server ? I can manually do this. But since this program is going to run as a job, I want to automate this..
    THanks in advance!!

    Hi,
    This is my advice:
    First write the file in the file system of your application server.
    After that find out, what to do for transport on operation system level.
    Since SAP allows system calls, you can do it in the same way by program.
    I give you some code. Unfortunately it is from Windows to Windows. Nevertheless I hope you can profit by it.
    *&      Form  file_to_l66
    FORM file_to_l66  USING src_fpath
                            dest_fname.
    - src_fpath full path of source file
    - dest_fname intended file name for destination
      DATA:
        parcom(250),
        BEGIN OF tabl OCCURS 0,
          line(200),
        END OF tabl,
        str(250).
    drive y free
      parcom = 'y:'.
      CALL 'SYSTEM' ID 'COMMAND' FIELD parcom
                  ID 'TAB'     FIELD tabl-sys.
      IF sy-subrc IS INITIAL.
        RAISE file_to_l66_err_drive_y.
      ENDIF.
    mapping y
    128.1.123.1 ServerL66
      parcom =
        'net use y:
    128.1.123.1\SAPDATA passwd /user:usr01'.
      CALL 'SYSTEM' ID 'COMMAND' FIELD parcom
                  ID 'TAB'     FIELD tabl-sys.
      IF NOT sy-subrc IS INITIAL.
        RAISE file_to_l66_err_mapping_y.
      ENDIF.
    copying
      CONCATENATE 'copy' src_fpath 'y:\' INTO str SEPARATED BY space.
      CONCATENATE str dest_fname INTO parcom.
    example:
      src_fpath  = 'e:\trans\l66.xml'
      dest_fname = 'l66_20080531235959.xml'
      -> parcom = 'copy e:\trans\l66.xml y:\l66_20080531235959.xml'.
      CALL 'SYSTEM' ID 'COMMAND' FIELD parcom
                  ID 'TAB'     FIELD tabl-sys.
      IF NOT sy-subrc IS INITIAL.
        RAISE file_to_l66_err_copying.
      ENDIF.
    release y
      parcom =
        'net use y: /delete'.
      CALL 'SYSTEM' ID 'COMMAND' FIELD parcom
                    ID 'TAB'     FIELD tabl-sys.
      IF NOT sy-subrc IS INITIAL.
        RAISE file_to_l66_err_unmapping_y.
      ENDIF.
    ENDFORM.                    " file_to_l66
    Edited by: Walter Habich on May 22, 2008 4:24 PM

  • Open dataset is not working in background in PRD

    Dear All,
    Open dataset is not working in background in PRD .
    OPEN DATASET filepath FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    Whike running in foregroundits working dev as well as prd.
    but when i am running in background  its giving error like file not found .
    but al11 is working (i mean my file path is working ).
    Thanks N Regards,
    Srinivasa Reddy

    your authority team shall check the batch user of that abap!
    Could you please tell us the detailed error message?
    grx
    Andreas

Maybe you are looking for

  • Can I use my iPod as a hard drive?

    In addition to listening to music and looking at photos, I would like to use my iPod as a hard drive. I was able to set the switch to do this on my Mac Powerbook in iTunes. But I want to transfer some files to my desktop PC. I don't want to put the s

  • I installed Mountain Lion and now some times when I start my mac it look with a black screen and white text. I'm really worry about it, can somebody help me?

    I installed Mountain Lion in my IMac and now, some times, when I start up my mac it looks with a black screen and white text. I'm really worry about it, can somebody help me?

  • Export to Quicktime 16:9

    I'm trying to export a FCE 16:9 to Quicktime, but everytime I export it it comes out 4:3. I know with Quicktime Pro there is an option in the Inspector to tell Quicktime to recognize it as anamorphic, but I don't have QT Pro at home and when I import

  • Help needed pls!!! GF4 Ti4800 SE 8X on MSI 845 Ultra?

    Hi folks, I just purchased a GF4 Ti4800 SE 128mb 8X. I own a MSI 845 Ultra ARU (6398), I understand this board only supports up to 4X AGP, but the GF4 card should be able to "downgrade" to work with a 4x motherboard, I hope. Booting up is ok, but gra

  • New Muse Contact Form Widget

    I was thrilled to discover that the Muse team has created a contact form widget. finaly!!! (http://tv.adobe.com/watch/cs6-creative-cloud-feature-tour-for-design/creating-contact-form s-in-adobe-muse/) Now I have two questions, in order to get those n