How to use Net use command in SAP

Dear All,
Any one knows how to user Net use command in SAP to connect to other system  i have Created in SM69. when i am executing the program it is asking login Details of other system.
Regards
SNB

Hi,
What is the exact command you exceuting?
Message was edited by:
        Pavel sheynkman

Similar Messages

  • Accessing users home dir from W7 using net use

    Hi!
    Probably I'm doing something wrong. OES11SP1 on SLES11SP2. User home dir accessible using net use from Windows XP, but not from Windows 7. Already tried to change LmCompatibilityLevel in registry (to 1), but didn't help. I recall, some year ago I had same problem from W7 (64bit) and then I installed Novell Client, now I'm trying to wo the client, should be possible?
    More thanks, Alar.

    On 10.10.2013 13:56, NovAlf wrote:
    >
    > Hi!
    > Probably I'm doing something wrong. OES11SP1 on SLES11SP2. User home dir
    > accessible using net use from Windows XP, but not from Windows 7.
    > Already tried to change LmCompatibilityLevel in registry (to 1), but
    > didn't help. I recall, some year ago I had same problem from W7 (64bit)
    > and then I installed Novell Client, now I'm trying to wo the client,
    > should be possible?
    > More thanks, Alar.
    If you can or can't access a share on OES11 without the Novell CLient
    depends on if you have configured and enabled CIFS on the server.
    Note that "Net Use" is an universal command, and uses the Novell CLient
    too *if* it is installed. Many People believe "Net Use" would somehow be
    Microsoft Network specific, but it isn't. It uses whatever network
    client is isnstalled and able to access the resource.
    CU,
    Massimo Rosen
    Novell Knowledge Partner
    No emails please!
    http://www.cfc-it.de

  • How to use ls-l command in SAP ??

    Hi,
    can any one suggest how to use ls-l command of unix in sap to get the details of file like creation date,etc.
    Thanks.

    Hi Krishna.
    These are the steps you need to follow.
    tables: specify the table.
    data: begin of fs_...
            end of fs_    " Structure Field string.
    data: t_table like
            standard table
                      of fs_...
    data:
    w_file TYPE string.
    data:
      fname(10) VALUE '.\xyz.TXT'.
    select-options: if any.
    PARAMETERS:
      p_file LIKE rlgrap-filename.
    w_file = p_file.
    select .... statement
    OPEN DATASET fname FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    *OPEN DATASET fname FOR OUTPUT IN BINARY MODE.
    LOOP AT t_... INTO fs_....
    write:/ .....
    TRANSFER fs_... TO fname.
    or
    TRANSFER t_... TO fname
    ENDLOOP.
    CLOSE DATASET fname.
    Reward points wisely and if you are benefitted or ask for more detailed explanation if problem not solved.
    Regards Harsh.

  • Requirement is to run CMD.EXE under the Local System Account. So that we can map a network drive to be used by a windows service, which will be created by command: - net use z: \\servername\sharedfolder /persistent:yes

    Environment:
    OS:  Windows 7 32/64 bit, Windows 2008 Server 64
    bit/ Windows 2012 Server 64 bit
    Priority:
    - Critical
    Requirement: - Since
    the Windows Service is running under the Local System Account, we would like to emulate this same behaviour.
    Basically, we would like to run CMD.EXE under the Local System Account. So that we can map a network drive to be used by a service using following
    command
    net use z: \\servername\sharedfolder /persistent:yes.
    Already Attempt:
    We tried to launch the CMD.exe using the DOS Task Scheduler AT command.  Here’s a sample command:
    AT 10:36 /interactive cmd.exe
    But I received a warning that “due
    to security enhancements, this task will run at the time excepted but not interactively.”
    It turns out that this approach will work for XP, 2000 and Server 2003 but due to session isolation
    Interactive services no longer work on Windows 7, Windows Server 2008 and above.
      2.  We
    tried to create a secondary Windows Service via the Service Control (sc.exe) which merely launches CMD.exe.
    <Drive>:\sc create RunCMDAsLSA binpath= "cmd" type=own type=interact <Drive>:\sc
    start RunCMDAsLSA
    In this case the service fails to start and results it the following error message:
    FAILED 1053: The service did not respond to the start or control request in a timely fashion.
      3. One
    suggestion, we found to launch CMD.exe via a Scheduled Task, but
    it is not giving any option to launch CMD.exe in interactive mode; so that I can map network drive using net command.
      4. I read an article, which
    demonstrates the use of PSTools from SysInternals. I launched the command line and executed following command
    psexec -i -s cmd.exe
    PSTools worked fine, but It seems that in scope of Sysinternals Software License
    Terms. You may not "use the software for commercial software hosting services."
    Application will deploy on client, which will be like commercial,
    so we are not able to use PSTools.         
    Kindly assist us for achieving the requirement. We have tried all the ways, but nothing is working for us. Kindly suggest.
    I will be really thankful.

    Hi Sir,
    Nothing worked from above for us. You can see our remarks on posted query.
    That’s why, we posted on forum.
    And there will not be any vulnerability, because, if we will use "net
    use ..."
    in network domain; definitely,
    we will provide username and password of mapped drive system.
    And, that system, itself is given by client; so that, there must not be any vulnerability; they are ready to provide user name and password.
    We need a way; by which we can complete the requirement. Kindly assist.
    Regards,
    S. P. Singh

  • Net use map drive is working with built-in admin account only

    I currently have a windows 7 PC that I use
    net use in cmd file to map drive to Windows server 2008. 
    It works if I use built-in admin account/password but I've tried another account that's in the administrator group on the server and I get errors.
    NET USE X: \\IPADD\c$\inetpub\ftproot  password /User:adminuseraccount
    NET USE X: \\IPADD\c$\inetpub\ftproot password /User:server\adminuseraccount
    After tweaking the net use command a number of ways,  the 2 following errors are what I'm getting for the most part:
    System error 1219 has occurred.
    Multiple connections to a server or shared resource by the same user, using more
     than one user name, are not allowed. Disconnect all previous connections to the
     server or shared resource and try again.
    OR
    System error 5 has occurred.
    Access is denied.
    I've looked at many searches on this but can't get this to work. 
    Also,  one thing I'm thinking of doing is changing the built-in admin name and password.  Is this a safe thing to do?
    Thanks,
    Dave

    Hi,
    Can you check this link?
    http://support.microsoft.com/kb/938120
    Thanks,
    Umesh.S.K

  • Question about using net time

    I am trying to synchronize the time of my machine with another machine (target) on the local network by using "net time" command and found something strange for me.
    If I change the local time on my machine and then use "net time" to read or synchronize from the target, the command is successful.
    However, if I changed the time of the target with more than an hour and then use the "net time" on my machine to read or synchronize it with the target, it will fail with "System error 5 has occurred. Access is denied." What is the reason
    for that? Is the "net time" restricted by network time?
    Roy

    It could be a couple of reasons. Firstly it could be a Kerberos issue, authentication is time sensitive to reduce the danger of replay attacks. Can you connect to network shares with the same account? Try using the /setsntp option as this will bypass authentication
    and use just the sntp protocol (I could be wrong on this, its been a while since I touched net time!)
    Time correction works in two ways in Windows. If the time offset is below a certain offset (which I believe is an hour) the time will be skewed to catch up. i.e. time will run faster or slower to make up the difference without a drastic time change. Alternatively
    if the time offset is over that threshold it will be forcibly changed. It could be that your account doesn't have permission to force that change.

  • Vista Net Use printer problem -Strange

    I have 3 Vista Business machine on a customers domain. Two have been set up for up to a year. I have a older dos-based app that doesn't understand usb printers. On both of these machines, I've been able to share the printers and use NET USE LPT to connect them to a psuedo lpt port. They've been working fine. I have a brand new Vista Business box that I'm setting up. In the same domain, using the same software, I can't get this to work!!!! I can print to the printers from the command prompt on the new machine but the app won't print to it. I'm pulling my hair out! It's a simple set up. I can't figure out what I'm missing! Help! I also have another timeclock app that is working fine on the other Vista boxes but won't work on this one, but that's another story. The user has admin privs on the local machine. I've tried compatibility mode and Run as admin. Still no luck. I didn't have to do this on the other machines. - Rob

    Hi,
    Thank you for your detail information.
    Before moving on, I would like to answer your following question:
    Is it a permission issue?
    You mentioned you tried running the application as administrator, so the issue should not be a permission problem.
    Then, I would like to make a summary for current situation:
    1.       The application is Real World accounting.
    2.       The application has its own printer drivers for HP Laserjet.
    3.       You have added the LPT port.
    4.       You can print to them from the command prompt.
    5.       Other 2 Windows Vista computers work fine.
    6.       The machines are in a NT domain.
    According the #4, we know the communication between Windows Vista and printer work fine. We should focus on communication between Windows Vista and Real World accounting.
    Then, could you please confirm the following point?
    1.       We know the Real World accounting cannot print to the printers. Could you please confirm if the application recognizes the printer properly?
    2.       If possible, please plug the printer to the local computer to test the issue again.
    In addition, please understand that this program is not a Microsoft product. Microsoft doesn’t have much information about their product. Given the situation, I suggest you involve Real World support to troubleshoot the problem.
    For your reference:
    RealWorld Corp.
    Support Telephone Number: (800) 678-6336
    This response contains a reference to a third party contact information. Microsoft is providing this information as a convenience to you. Microsoft does not control it.
    Thanks.

  • Schedule and windows 2003 "net use"

    ver 10.2.0.2
    lastest patch 9
    windows 2003
    trying to get the scheduler to work with a batch file that uses NET USE etc..
    for ex
    net use q: \\workstation\sharename mypass /user:domain_admin
    I have tried to put this in a BATCH file
    begin
    dbms_scheduler.drop_job('t1');
    dbms_scheduler.purge_log;
    dbms_scheduler.create_job
    ('t1',
    job_action=>'C:\WINDOWS\system32\cmd.exe',
    number_of_arguments=>3,
    job_type=>'executable',
    enabled=>false,
    auto_drop=>false);
    dbms_scheduler.set_job_argument_value('t1',1,'/q');
    dbms_scheduler.set_job_argument_value('t1',2,'/c');
    dbms_scheduler.set_job_argument_value('t1',3,'e:\move_net\see.bat');
    dbms_scheduler.enable('t1');
    dbms_lock.sleep(3);
    commit;
    end;
    pl/sql procedure successfully completed.
    see.bat
    net use q: \\workstation\sharename mypass /user:domain_admin
    go into OEM
    look at the job status: SUCCEEDED
    look that the history find
    Details     STANDARD_ERROR="System error 1312 has occurred. A specified logon session does not exist. It may already have been terminated. The system cannot find the drive specified."
    now I have look high and low in metalink..really did not see an answer.
    I know what the answer is if I was on unix, but nothing on windows 2003
    I have made sure i got all the rights to extjob.exe etc
    I have change the job to reflect
    1= /q
    2=/c
    3=c:\windows\system32\net.exe use q: \\workstation\share mypass /user:domain_admin
    when i do this,
    I get a new error
    ORA-27369: job of type EXECUTABLE failed with exit code: The system cannot find the file specified. STANDARD_ERROR="System error 1312 has occurred. A specified logon session does not exist. It may already have been terminated. "
    just wonder if anyone has used NET USE...
    thanks
    p-

    Hi,
    Try to start OracleJobScheduler<SID> Windows service and try again.
    Start->Run->services.msc
    (This service is disabled by default)

  • Members of Domain Local Groups not showing up through net group command

    Hello,
    I am trying to get the list of members in a Domain Local Group using "NET GROUP" command, but unable to get the member list.
    I get the message "group not found", whereas members of Global Groups  are visible.
    Thank you in advance !

    Unfortunately your post is off topic here, in the TechNet Site Feedback forum, because it is not Feedback about the TechNet Website or Subscription. 
    This is only one forum among the many that are on the TechNet Discussion Forums, and given your post, you likely chose the wrong forum. 
    This is a standard response I’ve written up in advance to help many people (thousands, really.) who post their question in this forum in error, but please don’t ignore it. 
    The links I share below I’ve collected to help you get right where you need to go with your issue.
    For technical issues with Microsoft products that you would run into as an
    end user of those products, one great source of info and help is
    http://answers.microsoft.com, which has sections for Windows, Hotmail, Office, IE, and other products. Office related forums
    are also here: http://office.microsoft.com/en-us/support/contact-us-FX103894077.aspx
    For Technical issues with Microsoft products that you might have as an
    IT professional (like technical installation issues, or other IT issues), you should head to the TechNet Discussion forums at
    http://social.technet.microsoft.com/forums/en-us, and search for your product name.
    For issues with products you might have as a Developer (like how to talk to APIs, what version of software do what, or other developer issues), you should head to the
    MSDN discussion forums at http://social.msdn.microsoft.com/forums/en-us, and search for your product or issue.
    If you’re asking a question particularly about one of the Microsoft Dynamics products, a great place to start is here:
    http://community.dynamics.com/
    If you really think your issue is related to the subscription or the TechNet Website, and I screwed up, I apologize! 
    Please repost your question to the discussion forum and include much more detail about your problem, that could include screenshots of the issue (do not include subscription information or product keys in your screenshots!), and/or links to the problem
    you’re seeing. 
    If you really had no idea where to post this question but you still posted it here, you still shouldn’t have because we have
    a forum just for you!  It’s called the Where is the forum for…? forum and it’s here:
    http://social.msdn.microsoft.com/forums/en-us/whatforum/
    Moving to off topic. 
    Thanks
    MSDN and TechNet Subscriptions Support
    Did Microsoft call you out of the blue about your computer?
    No, they didn't.

  • Pls Send Usefull UNIX /LiNUX commands in SAP?

    hi,
    pls send me anybody what are the useful UNIX/LINUX  commands in SAP.
    regards,
    reddy

    Hi brother,
      the following commands will help you do it and practice it  give rewards....
    Copy files one system to another system in network
    #mount -t nfs <IPAddress> : /<Source Directory> /<Target Directory>
    To Display Clock
    #xclock
    Check Process Details:
    #top
    #ps -ef | grep user/process/servicename
    Check Memory Size:
    #free
    Check Disk space:
    #df -k (in %)
    #df -h (in GB)
    Check Subdirectory files
    #du /usr

  • How can I use Seeburger java functions on SAP XI's user defined functions?

    Hi All,
    As my title implies; how can I use Seeburger java functions on SAP XI's user defined functions?  I've tried searching over the net in tutorials regarding this topic but I failed to find one; can someone provide me information regarding my question? thanks very much.
    best regards,
    Mike

    Hi Mike !
    You should check your documentation about which java classes you need to reference in the "import" section of your UDF. And also deploy the java classes into the java stack or include them as a imported archive in integration repository...it should be stated in the seeburger documentation.
    What kind of functions are you trying to use?
    Regards,
    Matias.

  • How can I use custom WLST commands for Oracle SOA Suite in Weblogic

    Hi There,
    I'm trying to view and search the weblogic log files using WLST on a Solaris/Unix system.
    I have come across this "custom WLST commands for Oracle SOA Suite" and thought of using the custom logging commands to get my task done.
    However, my WLST shell is not recognizing the commands and giving me the NameError!
    wls:/devDomain1/domainRuntime> listLogs()
    Traceback (innermost last):
    File "<console>", line 1, in ?
    NameError: listLogs
    I tried the commands listLogs, displayLogs, getLogLevel & setLogLevel but in vain!
    I have followed the instructions as per the oracle recommendation of using Custom WLST commands (http://docs.oracle.com/cd/E29597_01/core.1111/e10105/getstart.htm#ASADM10692) as below
    - Launched the WLST shell from Oracle Home.
    cd ORACLE_HOME/common/bin
    ./wlst.sh
    - Tried to run the listLogs command from domainRuntime()
    I would like to know if I need to import any additional libraries to run the custom WLST commands for Oracle SOA Suite in my WLST shell?
    I have only weblogic 10.3.1 server installed on my Solaris 10 machine on which I have deployed the OSB application software.
    There is no SOA Suite installed.
    Or is there any other way I can browse the Server Log file and get the list of log messages? Basically I would like to use this feature in my script to customize it according to my requirement of listing specific error logs which I can work it out if I know how to make these commands work.
    Please advise if this is possible and how?
    Cheers.
    Satish

    I have tried on my OSB installation (no SOA Suite here), the command listLogs() works (I was in online mode, after a connect), and the classpath is:
    CLASSPATH=/opt/oracle/fmw11_1_1_5/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/oracle/fw11_1_1_5/patch_ocp360/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.33.x6_64/lib/tools.jar:/opt/oracle/fmw11_1_1_5/wlserver_10.3/server/lib/weblogic_sp.jar:/opt/oracle/fmw11_1_1_5/wlserver_10./server/lib/weblogic.jar:/opt/oracle/fmw11_1_1_5/modules/features/weblogic.server.modules_10.3.5.0.jar:/opt/oracle/fmw111_1_5/wlserver_10.3/server/lib/webservices.jar:/opt/oracle/fmw11_1_1_5/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/optoracle/fmw11_1_1_5/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/opt/oracle/fmw11_1_1_5/oracle_common/moules/oracle.jrf_11.1.1/jrf-wlstman.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/lib/adfscripting.jar:/opt/oracl/fmw11_1_1_5/oracle_common/common/wlst/lib/adf-share-mbeans-wlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/lb/mdswlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/auditwlst.jar:/opt/oracle/fmw11_1_1_5/oracle_cmmon/common/wlst/resources/igfwlsthelp.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/jps-wlst.jar:/optoracle/fmw11_1_1_5/oracle_common/common/wlst/resources/jrf-wlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/reources/oamap_help.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/oamAuthnProvider.jar:/opt/oracle/fmw111_1_5/oracle_common/common/wlst/resources/ossoiap_help.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/osoiap.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/ovdwlsthelp.jar:/opt/oracle/fmw11_1_1_5/oracle_comon/common/wlst/resources/sslconfigwlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/wsm-wlst.jar:/optoracle/fmw11_1_1_5/utils/config/10.3/config-launch.jar::/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/derby/lib/derbynet.ar:/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/derby/lib/derbyclient.jar:/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/drby/lib/derbytools.jar::
    The wlst.sh I have used is /opt/oracle/fmw11_1_1_5/osb/common/bin/wlst.sh
    I hope this can help

  • How to add a report into the SAP-SCRIPT .using PERFORM ......ENDPERFORM

    My question is that How to add a report into the SAP-SCRIPT .
    by using PERFORM ......ENDPERFORM
    I don't know how to used it .

    Hi Sandeep,
    Please check this link
    http://help.sap.com/saphelp_40b/helpdata/en/d1/803279454211d189710000e8322d00/content.htm
    http://www.allinterview.com/showanswers/37425.html
    Calling ABAP Subroutines: PERFORM
    You can use the PERFORM command to call an ABAP subroutine (form) from any program, subject to the normal ABAP runtime authorization checking. You can use such calls to subroutines for carrying out calculations, for obtaining data from the database that is needed at display or print time, for formatting data, and so on.
    PERFORM commands, like all control commands, are executed when a document is formatted for display or printing. Communication between a subroutine that you call and the document is by way of symbols whose values are set in the subroutine.
    Syntax in a form window:
    /: PERFORM <form> IN PROGRAM <prog>
    /: USING &INVAR1&
    /: USING &INVAR2&
    /: CHANGING &OUTVAR1&
    /: CHANGING &OUTVAR2&
    /: ENDPERFORM
    INVAR1 and INVAR2 are variable symbols and may be of any of the four SAPscript symbol types.
    OUTVAR1 and OUTVAR2 are local text symbols and must therefore be character strings.
    The ABAP subroutine called via the command line stated above must be defined in the ABAP report prog as follows:
    FORM <form> TABLES IN_TAB STRUCTURE ITCSY
    OUT_TAB STRUCTURE ITCSY.
    ENDFORM.
    The values of the SAPscript symbols passed with /: USING... are now stored in the internal table IN_TAB . Note that the system passes the values as character string to the subroutine, since the field Feld VALUE in structure ITCSY has the domain TDSYMVALUE (CHAR 80). See the example below on how to access the variables.
    The internal table OUT_TAB contains names and values of the CHANGING parameters in the PERFORM statement. These parameters are local text symbols, that is, character fields. See the example below on how to return the variables within the subroutine.
    From within a SAPscript form, a subroutine GET_BARCODE in the ABAP program QCJPERFO is called. Then the simple barcode contained there (u2018First pageu2019, u2018Next pageu2019, u2018Last pageu2019) is printed as local variable symbol.
    Definition in the SAPscript form:
    /: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
    /: USING &PAGE&
    /: USING &NEXTPAGE&
    /: CHANGING &BARCODE&
    /: ENDPERFORM
    / &BARCODE&
    Coding of the calling ABAP program:
    REPORT QCJPERFO.
    FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    DATA: PAGNUM LIKE SY-TABIX, "page number
    NEXTPAGE LIKE SY-TABIX. "number of next page
    READ TABLE IN_PAR WITH KEY u2018PAGEu2019.
    CHECK SY-SUBRC = 0.
    PAGNUM = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY u2018NEXTPAGEu2019.
    CHECK SY-SUBRC = 0.
    NEXTPAGE = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY u2018BARCODEu2019.
    CHECK SY-SUBRC = 0.
    IF PAGNUM = 1.
    OUT_PAR-VALUE = u2018|u2019. "First page
    ELSE.
    OUT_PAR-VALUE = u2018||u2019. "Next page
    ENDIF.
    IF NEXTPAGE = 0.
    OUT_PAR-VALUE+2 = u2018Lu2019. "Flag: last page
    ENDIF.
    MODIFY OUT_PAR INDEX SY-TABIX.
    ENDFORM.
    Best regards,
    raam

  • How use Active X object in sap 2005A SP14

    How use Active X object in sap 2005A SP14 with usercontrol in vb.net
    or control in vb.net please show example code
    Thanks for advance

    Hi,
    I try to use this sample too (C# version) but it does not work properly.
    I got two different COMExeptions at line 75:
    fTree = SBO_Application.Forms.AddEx( CP );
    Message: Form - already exists.
    and at line 114:
    AcXTree.ClassID = "MSComctlLib.TreeCtrl.2";
    ErrorCode=-2147417851
    Ausnahme von HRESULT: 0x80010105 (RPC_E_SERVERFAULT)
    I don't know the reason - but i am searching...
    Edited by: David Kostenzer on Feb 20, 2008 4:48 PM

  • How to upload data from excel to SAP and options to be used

    How to upload data from excel to SAP and options to be used
    thank you,
    Regards,
    Jagrut Bharatkumar shukla

    Hi Jagrut,
        You can use gui_upload.
    chk the sample program mentioned below.
    REPORT ZFTP .
    DATA: BEGIN OF I_FILE OCCURS 0,
    DATA(2000) TYPE C,
    END OF I_FILE.
    DATA: BEGIN OF I_FILE2 OCCURS 0,
    DATA(2000) TYPE C,
    END OF I_FILE2.
    DATA: W_COUNT TYPE I.
    PARAMETERS: P_FILEN TYPE STRING,
    P_FILE2 TYPE STRING,
    P_NUM(4) TYPE N..
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILEN.
    PERFORM F_FILE_GET USING P_FILEN TEXT-G01.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE2.
    PERFORM F_FILE_GET USING P_FILE2 TEXT-G01.
    START-OF-SELECTION.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = P_FILEN
    FILETYPE = 'ASC'
    HAS_FIELD_SEPARATOR = 'X'
    HEADER_LENGTH = 0
    READ_BY_LINE = 'X'
    DAT_MODE = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    CHECK_BOM = ' '
    VIRUS_SCAN_PROFILE =
    NO_AUTH_CHECK = ' '
    IMPORTING
    FILELENGTH =
    HEADER =
    tables
    data_tab = I_FILE
    IF SY-SUBRC <> 0.
    MESSAGE E024(Z1).
    ENDIF.
    LOOP AT I_FILE.
    W_COUNT = W_COUNT + 1.
    IF NOT W_COUNT > P_NUM.
    MOVE I_FILE TO I_FILE2.
    APPEND I_FILE2.
    ENDIF.
    ENDLOOP.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE =
    filename = P_FILE2
    FILETYPE = 'ASC'
    APPEND = ' '
    WRITE_FIELD_SEPARATOR = 'X'
    HEADER = '00'
    TRUNC_TRAILING_BLANKS = ' '
    WRITE_LF = 'X'
    COL_SELECT = ' '
    COL_SELECT_MASK = ' '
    DAT_MODE = ' '
    CONFIRM_OVERWRITE = ' '
    NO_AUTH_CHECK = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    WRITE_BOM = ' '
    TRUNC_TRAILING_BLANKS_EOL = 'X'
    WK1_N_FORMAT = ' '
    WK1_N_SIZE = ' '
    WK1_T_FORMAT = ' '
    WK1_T_SIZE = ' '
    IMPORTING
    FILELENGTH =
    tables
    data_tab = I_FILE2
    FIELDNAMES =
    *& Form F_FILE_GET
    text
    -->P_P_FILEN text
    -->P_TEXT_G01 text
    FORM F_FILE_GET USING L_FILENA L_TEXT.
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    DEF_FILENAME = ' '
    DEF_PATH = ' '
    MASK = ',.,*.TXT.'
    MODE = 'O'
    TITLE = L_TEXT
    IMPORTING
    FILENAME = L_FILENA
    rc =
    EXCEPTIONS
    INV_WINSYS = 1
    NO_BATCH = 2
    SELECTION_CANCEL = 3
    SELECTION_ERROR = 4
    OTHERS = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Reward if helpful.
    Regards,
    Harini.S

Maybe you are looking for

  • How much memory does SQL Server 2008R2 Standard use on Windows Server 2008 R2 64-bit?

    Hi, can anyone tell me how much RAM will really be used by SQL Server? 72 GB are currently installed. As Windows is only able to use 32 GB is SQL Server able to use the other 40GB + the unused part of the first 32 GB? Thank you very much! BR Matthias

  • Problem with templates in Dreamweaver...

    I'm using Dreamweaver 8 and here is my dilema... Originally I had my template named something different. I changed the name of the template and now my other pages that run off that template wont work because of this code... <html><!-- InstanceBegin t

  • Facetime verification email not arrivinh

    I am sitting here trying to get Facetime going for my Mother so she can video chat with her grandchildren.  Thusfar all has gone well enough - installed Facetime, got her Apple ID setup, and entered in to Facetime.  However, we appear to be stuck at

  • Problems with export in imovie

    Hi there I created a video on iMovie 11 which is about 45 minutes long. I now exported the project with QuickTimePlayer in various formats (mpeg4, mp4, avi..) but the quality is really bad. I also changed the settings (kbits, datarate etc.) I want to

  • Does the A B C D buttons do anything on the remote?

    #2 When I search for a show, is there a hotkey on the remote to make the numerical keys enter alphas instead of numbers?  (2 = abc) thanks.