To create folder in Application server

hi,
How to create folder in application server from presentation server??
how is the program it??
reply me soon...
thx,
s.suresh.

hi Suresh
Hope u r having nice day
here i am sending a sample report which can upload the file to Application Server which inturn automatically create folder .
REPORT  ZSHR_UPLOAD_TO_APPLICATION              .
DATA : BEGIN OF IT_MAT OCCURS 0,
          MBRSH LIKE MARA-MBRSH,
          MTART LIKE MARA-MTART,
          MAKTX LIKE MAKT-MAKTX,
          MEINS LIKE MARA-MEINS,
       END OF IT_MAT.
DATA : W_DIR(40).
MOVE 'D:\usr\sap\DEV\DVEBMGS00\work\SHR' TO W_DIR.
"SHR" IS A FOLDER NAME TO BE CREATED
START-OF-SELECTION.
CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
    FILENAME                     = 'C:\MAT.TXT'
   FILETYPE                      = 'ASC'
   HAS_FIELD_SEPARATOR           = 'X'
  TABLES
    DATA_TAB                      = IT_MAT
EXCEPTIONS
   FILE_OPEN_ERROR               = 1
   FILE_READ_ERROR               = 2
   NO_BATCH                      = 3
   GUI_REFUSE_FILETRANSFER       = 4
   INVALID_TYPE                  = 5
   NO_AUTHORITY                  = 6
   UNKNOWN_ERROR                 = 7
   BAD_DATA_FORMAT               = 8
   HEADER_NOT_ALLOWED            = 9
   SEPARATOR_NOT_ALLOWED         = 10
   HEADER_TOO_LONG               = 11
   UNKNOWN_DP_ERROR              = 12
   ACCESS_DENIED                 = 13
   DP_OUT_OF_MEMORY              = 14
   DISK_FULL                     = 15
   DP_TIMEOUT                    = 16
   OTHERS                        = 17.
OPEN DATASET W_DIR FOR OUTPUT IN TEXT MODE ENCODING UTF-8.
  IF SY-SUBRC EQ 0.
    LOOP AT IT_MAT.
       TRANSFER IT_MAT TO W_DIR.
    ENDLOOP.
  ENDIF.
CLOSE DATASET W_DIR.
IF USEFUL AWARD POINTS.
REGARDS
HEMASEKHARA REDDY S

Similar Messages

  • Creating a folder in application server in background.

    Hi experts,
    Is it possible to Creating a folder in application server in background.?
    My requirement is like this , every time a PO is created it has to be saved locally.
    When atlast i manged to do this, i get stuck again by this CR ,
    The PO has to be saved in a folder with the same name as PO number,
    I do not know if it is possible.
    So as always I am looking for inputs/suggestions or knowledge if you had come across scenario like this one.
    Thanks and Regards,
    K

    Hi,
    You could create a system command in SM69 to create a directory and then use the function module SXPG_CALL_SYSTEM to invoke the command and pass in the directory name as a parameter at run time.
    Darren

  • How to create file on application server?

    how to create file on application server?

    Hi,
    The following program illustrates the creation of ifle in app server and reading the file from appli server:
    DATA: ITAB LIKE vbakOCCURS 0 WITH HEADER LINE.
    PARAMETERS: P_VBELN LIKE VBAP-VBELN.
    START-OF-SELECTION.
      SELECT *
        FROM VBAP
        INTO TABLE ITAB
    WHERE VBELN = P_VBELN
        PERFORM WRITE_DATA.
        PERFORM READ_DATA.
    *&      Form  WRITE_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM WRITE_DATA.
    OPEN DATASET 'VBAP_DATA' FOR OUTPUT IN TEXT MODE.
    LOOP AT ITAB.
    TRANSFER ITAB TO 'VBAP_DATA'.
    ENDLOOP.
    CLOSE DATASET 'VBAP_DATA'.
    CLEAR: ITAB, ITAB[].
    ENDFORM.                    " WRITE_DATA
    *&      Form  READ_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM READ_DATA.
    OPEN DATASET 'VBAP_DATA' FOR INPUT IN TEXT MODE.
    DO.
    READ DATASET 'VBAP_DATA' INTO ITAB.
    IF SY-SUBRC <> 0.
    EXIT.
    ENDIF.
    APPEND ITAB.
    ENDDO.
    CLOSE DATASET 'VBAP_DATA'.
    LOOP AT ITAB.
    WRITE:/ ITAB-VBELN,
            ITAB-POSNR.
    ENDLOOP.
    ENDFORM.                    " READ_DATA
    If it is helpful rewards points
    Regards
    Pratap.M

  • How to zip the folder in application server?

    how to zip the folder in application server?

    You can use
    open dataset with filter
    link:[http://help.sap.com/abapdocu_70/en/ABAPOPEN_DATASET_OS_ADDITION.htm#!ABAP_ADDITION_2@2@]

  • All files in folder of Application server.

    Hi Frnds,
    how to get the all files from a folder of application server. I have to get the all files in internal table when i selecting only folder?
    thanks in advance.
    regards,
    Balu

    Here is an example program, which acts like an application server file browser.
    report zrich_0001 .
    data: begin of itab occurs 0,
          rec(1000) type c,
          end of itab.
    data: wa(1000) type c.
    data: p_file type localfile.
    data: ifile type table of  salfldir with header line.
    parameters: p_path type salfile-longname
                        default '/usr/sap/TST/DVEBMGS01/data/'.
    call function 'RZL_READ_DIR_LOCAL'
         exporting
              name           = p_path
         tables
              file_tbl       = ifile
         exceptions
              argument_error = 1
              not_found      = 2
              others         = 3.
    loop at ifile.
      format hotspot on.
      write:/ ifile-name.
      hide ifile-name.
      format hotspot off.
    endloop.
    at line-selection.
      concatenate p_path ifile-name into p_file.
      clear itab.  refresh itab.
      open dataset p_file for input in text mode.
      if sy-subrc = 0.
        do.
          read dataset p_file into wa.
          if sy-subrc <> 0.
            exit.
          endif.
          itab-rec = wa.
          append itab.
        enddo.
      endif.
      close dataset p_file.
      loop at itab.
        write:/ itab.
      endloop.
    Regards,
    Rich Heilman

  • How to read list of all files in folder on application server?

    How to read list of all files in folder on application server?

    Hi,
    First get the files in application server using the following function module.
        CALL FUNCTION 'RZL_READ_DIR_LOCAL'
          EXPORTING
            name     = loc_fdir
          TABLES
            file_tbl = int_filedir.
    Here loc_fdir contains the application server path.
    int_filedir contains all the file names in that particular path.
    Now loop at int_filedir.
    OPEN DATASET int_filedir-name FOR INPUT IN TEXT MODE ENCODING  DEFAULT MESSAGE wf_mess.
    MESSAGE wf_mess.
        IF sy-subrc = 0.
          DO.
            READ DATASET pa_sfile INTO wf_string.
            IF sy-subrc <> 0.
              EXIT.
    endif.
    close datset int_filedir-name.
    endloop.

  • Smartform into PDF and store in folder of  application server

    Hi Gurus,
         I have to solve this issue please help meu2026
    1.Convert Smartform into PDF and store in folder of  application server
    2.print the PDF stored in folder(Application Server) automatically
    Please give suggestion for the above..
    Moderator message: "spec dumping", please work yourself first on your requirement.
    Edited by: Thomas Zloch on Oct 7, 2011 10:39 AM

    hi uma,
    http://www.kodyaz.com/articles/sap-smartforms-download-as-smartform-pdf-using-ws_download-and-cl_gui_frontend_services.aspx
    check this out...
    thanks,
    ram

  • Unable to create connection to Application Server Control from JDev

    Hi All,
    I am unable to create connection to Application Server Control of SOA Suite from JDeveloper and getting following error:
    Error getting OC4J Process for: opmn-home+oc4j-<hostname>-<OPMN Port>-default:
    Error connecting to OPMN (is it running?): Connection refused: connect
    I restarted all OPMN processes...still getting the same error.
    Thanks
    Krrish

    Hi.
    I got a similar error sometime ago.
    It was related to OPMN not getting bound to the correct server IP. It happened because my SOA Suite was installed in one machine that does not have a fixed IP (or uses loopback adapter) and then I tried to connect to this SOA Suite from another machine, using JDev.
    I checked this by running "opmnctl debug". then you can see on what IP the opmn is listening on.
    Didn't know how to solve this.

  • Webservice not created in oracle application server after deployment

    Hi,
    I just tried to deploy fulfillmentESB project(SOADemo Projects) from Jdev to Oracle App server control. But there was no webservice created in Oracle application server control under webservices link....plz help me...
    Actually the steps which i had followed to deploy that fulfillment project are:
    * right-click fulfillmentESB
    * select Register with ESB, Integration connection
    after which the fulfillment webservice can be seen in ESB control as well as application server control. But i could not able to see webservice created in application server control.
    Also i tried deploying the fulfillmentESB using EAR file - no use
    So kindly give me some steps to solve this issue...
    -Indhu

    I can see you also posted in the (proper) SOA Suite forum.
    Please do not cross-post unless you really have to (for example when in the other forum no one seems to have the answer).
    Jan Kettenis

  • Creating Directory in Application Server

    Hi Friends,
    Can anyone help me on,
    How to create directory in application server.
    Also, I need to create one file in this directory with fixed name, how do we do that?
    Also, tell me how to use transaction FILE in detail...
    I am working on CRM and there is no transaction CB3Z ...
    Kindly help.
    Good answers will be rewarded...
    Cheers!
    Pradeep

    Hi Pradeep
    Refer the Links:
    <b>Creating a directory & subdirectory on Application Server
    API for creating a directory in the application server
    Regards,
    Sree

  • Define install folder for Application server

    Hi,
    in TOOLS 8.50 I'm creating an AS domain. But it is created in C:\Documents and Settings\Adm
    inistrateur\psft\pt\8.50\appserv\ :
    Creating domain...
    Copying application server configuration files...
    Copying [F:\psoft50\PSPT850\appserv\small.cfx] to [C:\Documents and Settings\Adm
    inistrateur\psft\pt\8.50\appserv\ALHR9050\psappsrv.cfg]
    Stripping Annotations...
    Copying [F:\psoft50\PSPT850\appserv\small.cfx] to [C:\Documents and Settings\Adm
    inistrateur\psft\pt\8.50\appserv\ALHR9050\psappsrv.cfx]
    Copying Jolt repository file...
    Domain created.Why ? How can I define install folder ?
    Thanks.

    That's because you did not set the environment variable PS_CFG_HOME.
    It is new from PT8.50, when this is not set, the domain configuration files are going into the user's folder.
    If you ever want to find your domains under PS_HOME as before, you should set this variable equal to the PS_HOME it should go to.
    Nicolas.

  • Delete folder from application server

    Hy folks i'm been reading many topics about creating and deleting a folder ( entire folder) from application file.
    i successufuly create a file by using command and  SM69   cmd /c   mkdir,
    and that's ok, what i'm unable to do is to delete a directory.
    witch command should i use?
    is it all possible to zip a folder?
    Regards.

    Hi,
    you have to delete all files in your directory before deleting the directory. Otherwise, it is not possible.
    The command is: rmdir -p
    CALL 'SYSTEM' ID 'COMMAND' FIELD 'rmdir -p'
                                  ID 'TAB'     FIELD tabl-*sys*
    Afterwards, to Zip a folder, refer to the class CL_ABAP_ZIP.
    Rachid.

  • File copy from SHARED folder to Application server

    Hi
    I have a file which is in a shared folder. My requirement is to copy this file into the application server.
    The function module C13Z_FILE_UPLOAD_BINARY is working fine with local files. But I could not use it to copy the file in shared folder.
    Please help me out.
    Points will be awarded for sure !!
    Thanks

    hi,
    use OPEN DATASET ... TRANSFER ... CLOSE DATASET to transfter the data on to the required file path ... else use transaction
    CG3Z - to upload file from presentation server to application server.
    Regards,
    Santosh

  • Error while creating connection for Application server in Jdeveloper

    Hi,
    I am trying to create a new connection for my weblogic server from JDeveloper
    I am using weblogic 6.1
    The error is :javax.naming.AuthenticationException [Root exception is java.lang.SecurityException : attemting to add an object which is not an instance 0f java.security.Principal to a subject's Principal set
    I am currectly passing my userID and password. but still it is giving the above exception.
    Please advise me.
    With thanks
    Murthy
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    HI
    In JDeveloper 10.1.3.1.0,
    1. Click on the tab for the Connections navigator.
    2. Right click on Application Server and select New Application Server Connection.
    3. Enter a descriptive name for the new connection, and select the appropriate connection type from the drop down list. Click Next.
    4. Specify oc4jadmin for User Name, then enter the oc4jadmin password. Click Next.
    5. Select Single Instance for Connect To, then provide the host name where BPEL is installed, the OPMN port number, and the OC4J instance name (the default for 10.1.3.1 is oc4j_soa). Click Next.
    6. Click Test Connection. If you have been successful, you should see "Success!"
    7. Now, right click on Integration Server and select New Integration Server Connection.
    8. Specify a connection name and click Next.
    9. In the drop down list by Application Server, select the Application Server Connection you just created. Again, specify the host name where BPEL is installed and the port number. This port number will be the same that you specified for the Integration Server Connection to the home OC4J container. Click Next.
    10. Test the connection. You should see something like:
    Application Server: OK
    BPEL Process Manager Server: OK
    ESB Server: OK
    11. Now, return to the Applications navigator, and try to redeploy your process using the Integration Server Connection just created. (It is possible that you will have to close JDeveloper and then reopen it for this to work.)
    Cheers
    Anirudh Pucha

  • Oracle 10g - Creating a new Application Server using standalone OC4J 10g

    I have some issues in creating a new app. server using standalone oc4j 10g 10.1.3 instance. After I created the app. server instance, I tested the connection and it says connection refused. I used the userid as oc4jadmin and the password as welcome. I am getting a message connection refused. For connection, I used the default hostname "localhost" and I didn't mention anything in the URL path.

    Thanks Steve..
    Here is what I am trying to do.. I want to create a new app server instance (i.e.) stand alone oc4j server, where I can deploy my web service and run a test.
    Oracle JDeveloper 10g:
    Under Connection Navigator, Application Server --
    1) Right click to 'Create New Application Server Connection'
    2) Connection type as 'Standalone OC4J 10 g 10.1.3',
    3) Username ==> oc4jadmin, Password ==>welcome, checked the Deploy password.
    4) Hostname: localhost RMI Port: 23791
    URL path: <<blank>>
    5) Test Connection ==> getting a error message...
    Error while getting remote MBeanServer for url: ormi://localhost:23791/default:
    Error reading application-client descriptor: Error communicating with server: Connection refused: connect; nested exception is:
         javax.naming.CommunicationException: Connection refused: connect [Root exception is java.net.ConnectException: Connection refused: connect]
    Any input you can provide would be of great help.

Maybe you are looking for

  • Using Spaces for task separation?

    I was hunting around on the internet to try to find a way to have tasks separated in spaces rather than applications. I came across an article that said with the new 10.5.5 update this should be possible. The article said I just had to uncheck the bo

  • Displaying html stored in a database table in a region

    Hi All, I would like to pass html to regions on the page which is stored in a database table. I have got this working for simple html (call a packaged function to get the html and then in a PL/SQL Anonymous Block htp.p(f_get_html(:P1_param1,'REGION1'

  • Not enough memory to complete the operation-how do i eliminate the error?

    HI All, I have posted the questions before in this forum,but as i am not able to cure the problem i am posting it again. I have  a large database oriented application to plot graph.Almost one year back given the application to the user. They were not

  • Netweaver Standards supported by XI

    Hi, Can someone explain the necessary Netweaver Standards supported by XI? regards Reema

  • Service contract with multiple validity period

    Hi, I am having a requirement where i need to create service contracts with multiple validities. some contracts may have 1 year validity, some six months. I already have a transaction type for contract which is having 1 year validity period assigned