Creating folders in Application Server
Hi,
I have the following requirement.
1. Have a configuration in the server which will be nothing but a location where our program can create folders and dump files.
2. Additionally I would also like to look at this like we look at file systems in our windows machine for example.
With Regards
Murali
hi,
here is a sample code for the same..
<b>OPEN DATASET PRM_FL02 FOR OUTPUT IN TEXT MODE.</b>
IF SY-SUBRC <> 0.
PERFORM ZYIR008_PUT_MESSAGE USING 'A'
'Open Dataset Error(?1) - ?2 ?3 ?4'
SY-SUBRC
PRM_FL02
'INPUT'
SPACE.
You can have a look at the created file in <b>AL11</b> .. here is the way to configure...
<b>AL11->Click on Configure Button</b>
Regards,
Santosh
Similar Messages
-
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 -
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 -
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
KrrishHi.
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. -
I have MBP retina 15". My track pad is not working well. It moves by itself, create folders, opens applications and I have to go against to it.
Do you have BlueTooth device with depleted battery nearby?
If that is not the case, you have to take the computer to the nearest
Apple store to have it checked out.
Best. -
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...
-IndhuI 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!
PradeepHi Pradeep
Refer the Links:
<b>Creating a directory & subdirectory on Application Server
API for creating a directory in the application server
Regards,
Sree -
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. -
OS command to access the non SAP server to create folders in the server
Hi All,
For the Pre press screen ABAP team need to create some WIP folders in 10.10.10.215.So I want to try out the option of using OS command to access that server to create folders at a specific location in that server.
Can you please tell me the which OS command is used in this case.
Thanks in advance.
Regards,
jhansi.these are very basic things. You should do a search before posting your question here.
Thanks
Sunny -
HOW TO MOVE FILES BETWEEN FOLDERS ON APPLICATION SERVER
Hi ,
I want to move files between folders on application servers and also on presentation server.
Is any ABAP code available for it.
Can anybody help me out in this.
Waiting for reply.
Thanks & regards,
NitinI am also interested in this post. The FB ARCHIVFILE_SERVER_TO_SERVER workes fine for copying the file, however I also need to remove the file from its original location.
Does anybody have a sugestion on how I can do that (in coding).
Regards,
Minim -
FTP without creating files on Application server
hello everyone,
in an internal table i have around 100 records each of length around 3500 chararters. i want to send this data to the client via ftp in the form of txt file. since the lenght of each record exceeds 1000 bytes, i thought of sending the data directly to the ftp server without creating the file on the application server. is this feasible. please provide the necessary steps to achieve this.Hi,
The FTP involves a lot of complexity but you can do the SCP(secure copy) instead. And what u can do is first create a file on application server and then u can delete it...
the sample code is below..
#!/bin/ksh
scp <filename> <destination>
rm -f <filename> -
How to configure create non-managed application server clusters?
Can anybody tell me where I can find the document?
Configuring your IDE to integrate with Sun App Server is something you probably will have to ask in some sort of JStudio forum. Other than for Netbeans, Eclipse, or possibly IntelliJ IDEA, you might not have much luck answering an IDE question here. I could be wrong though. Maybe somebody will have an answer for you and set me straight.
-
Problem in creating a file on Application Server
Hi,
I am facing an issue while creating a file on the application server.
I am creating a file with sales data from SAP and saving it on the application server.
At the end of this operation, I am calling a Unix script to push this file from SAP to an external system.
The issue I am facing is - at every month end, when I run a job for creating the file (its a custom program which is scheduled to run periodically), I get a strange scenario where a BLANK FILE gets created on the application server even though the data tables are not blank.
Also the user id gets changed to UID = 1400 when I run this job for the first time when a BLANK FILE gets created.
When I delete this file and run the job again, though, the file gets created WITH DATA.
The user name remains DEVADM (Dev Admin), as it should be for the scheduled jobs.
What could be the possible reasons for this?
Please help me in this direction.
Thank you.
Regards,
KeerthiHi,
You are using OPEN DATASET ? And what is the sy-subrc ?
Can you post some lines of your code?
Best regards,
Leandro Mengue -
Create Excel file in application server but the field value is incorrect
Hi Experts,
i am facing a problem when create excel file in application server using OPEN DATASET command.
the internal table have 4 field and one of those field contains 19 digit number --> ICCID.
the code running well, successfully create EXCELfile in application server but the problem is SAP only copy exactly first 15 digit numeric only and the rest became zero 0
Example :
the field value in internal table is 8962118800000447654 but when i opened in the excel file the value became 8962118800000440000.
and if i add alphabet like a8962118800000447654 then it is correct.
is there is anything wrong with my code?
here is my code
CONSTANTS: c_tab TYPE abap_char1 VALUE cl_abap_char_utilities=>horizontal_tab. "Tab Char
Data : begin of lt_zdsdmmdt00005 occurs 0,
SERNR (18) type c,
MSISDNl(20) type c,
BOX1 (20) type c,
ICCID(30) type c,
end of lt_zdsdmmdt00005.
data : ld_temp(100) type c.
i_file = '/usr/sap/DM/test_excel.xls'.
open dataset i_file for output in legacy text mode.
loop at lt_zdsdmmdt00005.
move lt_zdsdmmdt00005-ICCID to ld_iccid .
concatenate lt_zdsdmmdt00005-sernr lt_zdsdmmdt00005-MSISDN lt_zdsdmmdt00005-BOX1 ld_iccid
into ld_temp separated by c_tab.
transfer ld_temp to i_file.
endloop.
close dataset i_file.
Best Regard,
Akbar.Hi Naveen,
thanks for your reply,
i already tried and the result still the same. any idea?
Best Regard,
Akbar.
Maybe you are looking for
-
Hp dv6-3032tx shut down and wont start again
Hey guys, My HP laptop turned off and I cant start it anymore. If I press the power button it starts for 2-3sec, you can hear the fan, the LED is on but it goes out. The LED on the side for the charger is on if its plugged in. Already tried the reset
-
I recently updated Firefox on my desktop and laptop. Before, when i closed Firefox, a window would open and ask me if i wanted to return to the same group of URL location tabs the next time i opened Firefox. Now it doesn't ask that, so i have to reme
-
Issue in segment creation for File to IDOC mapping
Hi, I have file with many feilds, i need to create a segment in IDOC for unique combination of 2 feilds. eg: 408 430050 segment 208 430050 segment 208 430050 208 460100 segment 208 452010 segment 408 432000 segment 208 432000 segment the value for th
-
How to create a FAT32 partition that is primary instead of logical with disc utility?
I am trying to create a partition on an external drive, so I can use it as a hard drive for my XBOX 360. I already have data on the drive, and there is more data than I can back up. I have tried using disc utility to partition it and I use the MS-DOS
-
What reports are generated in BI from CRM
Hello Friends, I am not aware of CRM functionaity, I would like to know what kind of Reports are gernareted in BI from CRM , ??? and information provided on CRM(work flow) will be very helpful to me Thankyou,