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.

Similar Messages

  • How to use open data set in SAP

    Hi SAP Gurus,
            Could anyone help, how to use open data set in SAP.
          I need to upload a file from Application server (ZSAPUSAGEDATA) to internal table (IT_FINAL).
    Thanks & Regards,
    Krishnau2026

    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.

  • How to Use CMOD and SMOD in SAP using ABAP Code

    Hello anyone,
      Please help me How to use CMOD and SMOD in SAP using ABAP code.
    Give Me Some Sample Example.
    Mail ID: [email protected]
    Thanks,
    Regards,
    S.Muthu,
    SAP Developer.

    Hi,
    User Exits.
    http://www.erpgenie.com/sap/abap/code/abap26.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    customer exits
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
    Menu Exit.
    http://www.sappoint.com/abap/spmp.pdf
    http://www.sappoint.com/abap/userexit.pdf
    http://www.sapdevelopment.co.uk/enhance/mod_sapmenu.htm
    http://www.sapdevelopment.co.uk/enhance/enhancehome.htm
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html

  • How to use "Open Stream" command?

    How to use "Open Stream" command in the iTunes application.

    File > Open Stream > Enter a URL > Click OK > Listen. Obviously the URL needs be a valid media source like an mp3 file or a streaming radio station.
    tt2

  • How to use Operating System Commands while using define in sqlplus

    How to use Operating System Commands while using define in sqlplus . The Host OS is Linux
    define report_name=PROD_${host date "+%b"}.html
    The above is not working.
    The output should be 
    define report_name=PROD_JAN.html
    Regards,
    DB

    of course I was talking nonsense: the problem here is the mixing of bind variables and DEFINE variables.
    With the following changes the script should work (the conditions for begin_interval_time are perhaps not what you want):
    variable snap1 number
    variable snap2 number
    variable rptname varchar2(20)
    begin
    SELECT min(snap_id) into :snap1 FROM dba_hist_snapshot WHERE CAST(begin_interval_time AS DATE) >= SYSDATE-1;
    SELECT max(snap_id) into :snap2 FROM dba_hist_snapshot WHERE CAST(begin_interval_time AS DATE) >= SYSDATE-1;
    end;
    col file_name_value new_value report_name noprint
    select 'PROD_'|| to_char(sysdate,'MON') || '_' ||  to_char(sysdate,'DD') file_name_value  from dual;
    define  report_type  = 'html'
    define num_days=2
    define begin_snap=:snap1
    define end_snap=:snap2
    @@?/rdbms/admin/awrrpt.sql

  • How to use msword as editor in sap script and smart form..

    how to use msword as text editor in sap scripts and smartforms..

    Hi
    Go through the link given below :
    Saptechnical. com
    tutorials
    smartforms
    you will find solution for how to use MS word as editior.
    Or
    Call transaction I18N
    go to I18N Customizing -> MS Word as Editor.Choose the Help-Button and follow the instructions.
    If transaction I18N is not available in your system yet (see SAP Note 848036), you can also enable this feature via program RSCPINST.
    Call transaction SE38, enter program RSCPINST and press F8. On the next screen,select Goto -> Set MS Word as Editor.
    With Regard
    Nikunj shah

  • How to use ignore=check_min_mem Command

    Hi Guru's,
    I was  trying to install Hana on VMware in laptop. But I am having 8GB ram.
    I heard that ignore=check_min_mem command can be used to skip the check.
    Can anyone tell me how  to use this command
    My installation path is  - ./setup.sh /tmp/hanainstdir /tmp/hana.model
    Pl note - I am installing this for my learning purpose.
    Thanks in advance.
    Saurabh Vaidya.

    Hi Atul,
    I had brought the server on rent to install the hana db, but it could not be completed
    I had followed below  steps, Pl let me know  if  these were right or wrong
    1. I had used hana life cycle management to install, I stuckup at stage "Starting the system" (4th step, sub step 2)
    2. how  much time does hana installation takes? ( it took almost 4 hrs) but could not start the system
    3. When I used "Top" command, I could see processes with something like (hdbindexserver, hdbpageserver......) was it going on well?
    Thanks in Advance
    Saurabh Vaidya

  • How to use do varying command

    Hi all,
    DATA: BEGIN OF i_mgmt OCCURS 0,
           btrtl     TYPE pa0001-btrtl,
           btext     TYPE t001p-btext,
           perm      TYPE pad_amt7s ,
           con       TYPE pad_amt7s ,
           perm2     TYPE pad_amt7s ,
           con2      TYPE pad_amt7s ,
           perm3     TYPE pad_amt7s ,
           con3      TYPE pad_amt7s ,
           tot       TYPE pad_amt7s ,
           avg       TYPE pad_amt7s ,
          END OF i_mgmt.
    This my int. table and i need to calculate tot. row wise How can i use do varying command in this condition. Or any other way to calculate tot. row wise...Plesae help me
    Thanks.

    Hi,
    Check this example program how to use DO VARYING ..
    REPORT ZTEST_NOTEPAD.
    DATA: BEGIN OF text,
            word1 TYPE c LENGTH 4 VALUE 'AAAA',
            word2 TYPE c LENGTH 4 VALUE 'BBBB',
            word3 TYPE c LENGTH 4 VALUE 'CCCC',
            word4 TYPE c LENGTH 4 VALUE 'DDDD',
          END OF text.
    DATA: word  TYPE c LENGTH 4,
          char1 TYPE c LENGTH 1,
          char2 TYPE c LENGTH 1,
          leng TYPE i.
    FIELD-SYMBOLS <word> LIKE text-word1.
    DATA inc TYPE i.
    DESCRIBE FIELD text LENGTH leng IN CHARACTER MODE.
    leng = leng / 2.
    DO leng TIMES VARYING char1 FROM text(1)
                                NEXT text+2(1) RANGE text
                  VARYING char2 FROM text+1(1)
                                NEXT text+3(1) RANGE text.
      WRITE: char1, char2.
      char1 = 'x'.
      char2 = 'y'.
    ENDDO.
    DO 4 TIMES VARYING word FROM text-word1 NEXT text-word2.
      WRITE / word.
    ENDDO.
    DO.
      inc = sy-index  - 1.
      ASSIGN text-word1 INCREMENT inc TO <word> RANGE text.
      IF sy-subrc = 0.
        WRITE / <word>.
      ELSE.
        EXIT.
      ENDIF.
    ENDDO.
    Thanks
    Venkat.O

  • How to use Runtime.getRuntime("command") in win?

    I dont know how to use this method in win entironment, for example about file opertions, where there is some documents on detail about it?

    Huh?
    There is a method called Runtime.getRuntime(). It does not take any parameters. The javadocs describe it.
    Is that what you are asking about?

  • How to Use IDOC and ALE in SAP?

    Hi anybody,
                     I want Use Idoc and ALE in sap ABAP. What is inbound and outbout process of IDOC?
    Please give me sample code for Idoc . and Sample code for ALE.
    anybody Please tell me.
    Thanks
    Regards,
    S.Muthu.
    IT Dept.

    hi,
    Follow the link for step by step ALE/IDOC tutorials.
    http://www.sapmaterial.com/idoc_sample.html
    http://www.****************/Tutorials/ALE/ALEMainPage.htm
    An IDoc is not a process.
    The term IDoc stands for intermediate document. It is simply a data container used to exchange information between any two processes that can understand the syntax and semantics of the data. An IDoc is created as a result of executing an outbound ALE or EDI process. In an inbound ALE or EDI process, an IDoc serves as input to create an application document.
    IDocs are stored in the database.
    In the SAP system, they are stored in database tables. Several utilities are available to display the information contained in an IDoc and present it in different ways. For details, refer to Chapter 11, "Monitoring the Interface."
    Every IDoc has a unique number.
    When an IDoc is generated in the system, a unique number is assigned to it. This number is unique within a client.
    IDocs are independent of the sending and receiving systems. They can be used for SAP-to-SAP and SAP to non-SAP process communication as long as the participating processes can understand the syntax and semantics of the data.
    IDocs are based on EDI standards, ANSI ASC X12 and EDIFACT, but are closer to the EDIFACT standards. The size and format of data elements in an IDoc type are derived from these standards wherever applicable. For example, if a material number is represented by 20 characters in an EDIFACT message, the corresponding data element in the IDoc is also 20 characters. If there is a conflict in data size between standards, the one with greater length is adopted. This approach ensures compatibility with most standards.
    IDocs are independent of the direction of data exchange. An inbound and an outbound process can use an IDoc. For example, the ORDERS01 IDoc is used by the Purchasing module to send a purchase order, and is also used by the Sales and Distribution module to accept a sales order. Using this technique avoids creating redundant IDoc types for the same information.
    IDocs can be viewed in a text editor and do not contain any binary data. Data is stored in character format. When transferred to the operating system, an IDoc is stored in a file in text format and can be viewed using a regular text editor. However, the contents make sense only if you understand the structure and format of the data in that IDoc. In the Appendix, "FAQs, User Exits, and Miscellaneous Resources," you will find an example of an IDoc file.
    Hope this helps, Do reward.
    Edited by: Runal Singh on Mar 5, 2008 6:09 PM

  • How to use External GSSAPI implementation? (SAP's gsskrb5.dll)

    Hi all,
    This is a request for help and/or tips (or any information that might bring me closer to a solution).
    Java has a standards compliant implementation of Kerberos for the GSS (Generic Security Services) API. However, Windows is not standards compliant out of the box, and requires a Registry setting to work ("allowtgtsessionkey"). That Registry setting degrades security.
    Instead of Java's default Kerberos implementation, I am looking into using an Open Source implementation of GSSAPI that talks to Windows in the way Windows expects, through Windows SSPI (Security Support Provider Interface). That implementation is called gsskrb5.dll and is a native Windows library: ftp://ftp.sap.com/pub/ietf-work/gssapi/gsskrb5/
    Does anyone have any tips on how I need to go about getting Java to use the external GSSAPI implementation (gsskrb5.dll) instead of its own internal one?
    So far, I have concluded the following:
    * I create a mechanism like this: Oid mechanism = new Oid("1.2.840.113554.1.2.2"); //specifies Kerberos, and is what gsskrb5.dll's author says is the correct Oid.
    * I call org.ietf.jgss.GSSManager.getInstance().createCredentials() with the above mechanism, but that fails for different reasons.
    * I beleive there is a problem with gsskrb5.dll not being used at all.
    * Just loading gsskrb5.dll with System.load() or System.loadLibrary() is not enough.
    * I think I need to either use one of the following, or create an alternative implementation that wraps gsskrb5.dll:
    ** sun.security.jgss.SunProvider
    ** sun.security.jgss.wrapper.SunNativeProvider
    It would be nice if I don't have to implement a JNI wrapper for gsskrb5.dll (even using JNA which seems good enough). If there is any way I can just "plug in" the correct configuration if Sun's classes are prepared for using an external implementation, would make me happy :))
    What do you guys think??
    Hugo Josefson
    +46 706 902 228
    www.jayway.com/opensource
    Founders of &Ouml;redev and Qi4J

    Hi Maurizio,
    i do it in this way:
    CONSTANTS: CMD_LS(50)   VALUE 'ls -al /transfer/sap'.
      DATA: BEGIN OF ITAB_LS OCCURS 0,
              LINE(200),
            END   OF ITAB_LS.
      CALL 'SYSTEM'
        ID 'COMMAND' FIELD CMD_LS
        ID 'TAB'     FIELD ITAB_LS-SYS.
    How do you write the file, via an UNIX-COMMAND than try the above call
    with your command.
    Another way is to write the file via OPEN DATASET ..., TRANSFER ... TO ..., CLOSE DATASET.
    If you mean this i can give you an example.
    Hope it helps.
    Regards, Dieter

  • How to use two versions routing in SAP on different time period?

    Hi PP experts,
    There is a material Material-100 linked Routing-A and Routing-B. I would like to use Material-100/Routing-A combination during period 29.04.2015-30.05.2015, and using Material-100/Routing-B combination during period 01.06.2015-31.12.9999.
    Could you please kindly guide me how to do it in SAP? Thank you.
    Best Regards,
    Bu Fanchao

    Hi Amit,
    Below is my thinking, please kindly help me check.
    1. Due to routing-A is existed in SAP with period 29.04.2015-31.12.9999. So I need to change the valid-to-date from 31.12.9999 to 30.05.2015 via ECM.
    2. Create routing-B by CA01 with period 01.06.2015-31.12.9999.
    3. Create production-version-1 with routing-A/BOM during 29.04.2015-30.05.2015. And Create production-version-2 with routing-B/BOM during 01.06.2015-31.12.9999.
    My new question: Do I have to create production-version to achieve it? Does SAP system can choose routing automatically without production-version?
    Best Regards,
    Bu Fanchao

  • How to use the memory efficiently in SAP systems?

    Hi All,
    We are using  suse linux X86_64 bit OS
    All the instances are present in distributed environment. Eg we have one DB,1 ASCS(Message server and Enqueue), 1 PAS and 1 AAS
    In CRM there are 100 end users are there.
    Database is also 64 bit (Oracle)
    Ram size is 32 GB.
    CPU is:4
    Theoretically I know that the
    RAM:Virtual memory should be 1:2 ratio
    How to find the Virtual memory size in the existing system If it is a freshly installed means then how can we estimate it?
    How to find the SWAP size allocated in the existing system If it is a freshly installed means then how can we estimate it?
    How to find the size of virtual memory is allocated for the live SAP system and DB? And explain how to calculate if it is a freshly migrated system?
    How to find the size of RAM is assigned to SAP and the same for DB?
    If anything is increased in sap level like work process why should we need to increase the process and sessions in oracle and how?
    Kindly help to me to find the solution for this questions?
    Thanks,
    Priyanga G

    Do you see the search functionality in the upper left of the screen?
    Okay, now type in ecatt, press enter and in the next screen filter on blogs.

  • How to:  using the Place command in an action and remembering the source filename...

    I have a large set of product, architecture, and other subject-specific photos, that I’m preparing for a new website; all to be placed in various galleries.
    For each photo, I want it to have the same background.  If I were doing this manually, I would simply “place” the subject photo into the background, and save it – back to the original photo name.
    In other words, doing this manually, PRODUCT_001.TIF gets placed into STANDARD_BKGRND.TIF, (thereby automatically correctly sizing and centering it), and then saving the result back to PRODUCT_001.TIF; either overwriting the original, or into a new folder.   (I have the original file somewhere else, and am working with an intermediate copy).
    But since I have several hundred photos, how do I create an action (and really – a droplet) that will save the resulting file to the desired name?  Typically placing photo ‘PRODUCT_001’ into photo ‘B’, alters photo ‘STANDARD_BKGRND’, so I can’t save the result back to ‘PRODUCT_001’.  Said differently, in a droplet, each time it's run saves the result back to the same filename 'STANDARD_BKGRND'.
    The end result – I want to apply that droplet to all the PRODUCT_***.TIF files in a given folder, and end up with the same file names as before.
    Thanks in advance for your help!
    Jerry
    PS - I have no scripting experience in PS, but have written code in other applications/scenarios. 

    Actions don't have access to the document name (where the file name is).  Scripts do, however.
    If your products are sequentially numbered, you're in luck.  You can overide the "Save as command" and make sure that your naming uses a sequence which you can set to the same starting number as your product. Here is an example of how to configure File -> Automate -> Batch (assume the set and action are your hand built one)
    Instead of "Document name" you'd type "PRODUCT_" per your example and choose a 3 digit Serial number.
    The "Starting Serial #" is where you can change if your products are numbered say, 101 and up.

  • How to use BAPI_MATERIAL_MAINTAINDATA_RT function module in SAP Reatil?

    Hi,
    I am facing aproblem with BAPI_MATERIAL_MAINTAINDATA_RT function module when i send Article Master data from one SAP Server where all Article Master Data is maintained to another SAP Server where all Transaction Data is maintained.
    how can i use the above Function Module to create or change Articles in Remote Server ( Transactional Data Server) by specifying Destination when calling Function Module so that it can create or change in Remote Server i.e what are the neccessary parameters passed to this function modules.

    thanks

Maybe you are looking for

  • CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.

    Hi, i'm using this in an report. SET PARAMETER ID 'BES' FIELD WA_ITAB-EBELN. SET PARAMETER ID 'BSP' FIELD WA_ITAB-EBELP. CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN. It works OK. Is there any parameter ID to go in a sprecial part of an PO, for exa

  • Questions on Credential Store and Identity Store in 11G

    Hi All, I have two questions Question 1 About the credential store. Can anybody please tell me what information does credential store stores ? I have read that it stores the usernames and passwords for system accounts, now my question is what are tho

  • Change of image in web reports (MIME repository : SE80)

    Hello, i want to replace company logo in web reports. i have changed the logo (image) through MIME repository in SE80 transaction, but i am unable to see the unchanged logo on portal/web reports. What can be the issue. Is there any setting anywhere t

  • Need to restore iPod classic without iTunes

    For some reason my friends iPod will not be recognize by any of the computers we've tried it on. So is there a way to restore it without iTunes?

  • Wda: call method from a component interface definition (cid)

    hello, I created the following scenario: - I have a Main-component "m" - "L" is a component interface definition (cid) which force both cid-L-implementating components  "L1" and "L2" to extend and fill the method "set_COMP_USAGES()". - I have other c