How to work with files in alsb 3.0
My requirements are 1)Take the file from calling system (How to do this) 2) perform logic on it 3) create a new response file in target/clinet system.
My requirements are 1)Take the file from calling system (How to do this) 2) perform logic on it 3) create a new response file in target/clinet system.
Similar Messages
-
How to work with file system in linux within a JSF app?
I use this line in my backing bean to log some events:
FileHandler fhxml = new FileHandler("../webapps/MyWebApp/Log/MyWebAppLog.xml", append);
fhxml.setFormatter(new XMLFormatter());That works fine in windows but when I deploy it in my Tomcat 6 in linux It doesn't work. How can I work with file system in linux?You should never use relative paths to access the filesystem. The path would be relative to the current working directory which is not per se the same in all environments. To convert a relative web path to an absolute file system path, you need ServletContext#getRealPath(). Use this absolute file system path in the java.io stuff. In a JSF application on top of Servlet API you can get the underlying ServletContext by ExternalContext#getContext().
Alternatively, if the file is located in one of the default paths of the classpath or if its path is added to the classpath, you can also just use ExternalContext#getResource() or even #getResourceAsStream() using just the file name. -
How to work with files in folders on Application/Presentation Server
Hi,
I am working on interface program in which files are populated in folders in application/presentation server in the format 'ABCsy-datumsy-uzeit.txt'(e.g.ABC20051022161450.txt,ABC20051022161455.txt ) in directory c:\temp.
I want to sort all these files and read in sorted manner.
can anybody help me out in this.
waiting for reply.
thanks & regards,
NitinHi,
This logic will work for files on presentation server,
DATA: l_count TYPE i,
l_filename TYPE string,
t_files TYPE string OCCURS 0 WITH HEADER LINE,
BEGIN OF t_files_sorted OCCURS 0,
file_prefix(3),
file_date LIKE sy-datum,
file_time LIKE sy-uzeit,
file_extension(4),
END OF t_files_sorted,
t_text TYPE TABLE OF w3html.
CALL METHOD cl_gui_frontend_services=>directory_list_files
EXPORTING
directory = 'C:\Temp'
FILTER = '*.txt'
files_only = 'X'
DIRECTORIES_ONLY =
CHANGING
file_table = t_files[]
count = l_count
EXCEPTIONS
cntl_error = 1
directory_list_files_failed = 2
wrong_parameter = 3
error_no_gui = 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.
LOOP AT t_files.
t_files_sorted = t_files.
APPEND t_files_sorted.
ENDLOOP.
SORT t_files_sorted BY file_date file_time.
LOOP AT t_files_sorted.
CONCATENATE 'C:\Temp\' t_files_sorted INTO l_filename.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = l_filename
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = SPACE
HEADER_LENGTH = 0
IMPORTING
FILELENGTH =
HEADER =
changing
data_tab = t_text[]
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.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*****Your processing here..
ENDLOOP.
Also, use the FM that MAX has if you have to work with files on application server by replacing code in the above logic at appropriate places, like replace
cl_gui_frontend_services=>directory_list_files
with the corresponding fm
and replace cl_gui_frontend_services=>gui_upload
with OPEN DATASET...
CLOSE DATASET...
logic.
Hope this helps..
Sri
Message was edited by: Srikanth Pinnamaneni -
How To Work With File Path in Forms
Hi
I have one button on form i use it to call microsoft word when i finsh work i want to save my word file then open save DIALOG box to save that file
i want to take that path from save dialog box to text item in my form
how can i do this ?If you are using Forms version 9.x or newer, you can use WebUtil to open Word on the client machine, Save the Word file, then do whatever you'd like with the path where the file was saved. If you are using an older version in client/server mode and not web, you would do something similar ony you would use OLE from within the form to call Word.
In short, we cannot offer much information because you did not provide enough detail about what you are doing, how you are doing it and which product and platform versions you are using.
WebUtil is included in Forms 10.1.2, so there is no need to download it. In version 9, you would need to manually download and configure it from here:
http://www.oracle.com/technology/products/forms/htdocs/webutil/webutil.htm -
How to deal with file(for example .xml)? what format of dir should be?
I'd like to operate the file in disk, and want to use relative directory?
How to deal with file dir? what format of dir should be?Hi Kamlesh,
Thanks for your response.
Actually, In the "Process External Bank Statement" window, i see that there are few entries which is for the previous year and which has not been reconciled. I have never worked practically on BRS and hence, i am scared to make any changes in the clients database without being confident on what i am doing. I need to reconcile for one of their Bank a/c for the month of April '08. I have the copy of the statements for the month ending 31st Mar 08 and 30th Apr 08. The closing balances are as below:
31/03/08 - 2300000.00
30/04/08 - 3100000.00
Now my OB for Bank a/c for April '08 in SAP is 2300000.00 Dr.
When i go to External Bank Reconciliation - Selection Criteria Screen (Manual Reconciliation), here are the detail that i enter:
Last Balance: INR -7,000,000.00000 (Grayed out by the system)
Ending Balance: INR -3,100,000.00000 (Entered by me)
End Date: 30/04/08 (Entered by me)
"Reconciliation Bank Statement" Screen opens up and shows the below balances in the screen:
Cleared Book Balance: INR -7,000,000.00000
Statement Ending Balance: INR -3,100,000.00000
Difference: INR 3,800,000.00000
As per the Bank statement, i have found all the transactions listed out here for the month of Apr '08 but, i also found that the open transactions for the previous month from April '08 have been lying in "Process External Bank Statement" window.
Could you please help me solve my issue as to what needs to be done or could you also get me some links from where i can get few documents for processing External Bank Reconciliations?
That will be of a great help for me. I need steps as to what needs to be done first and then the next so that i can arrive at the correct closing balance for the month April '08.
Thanks in Advance....
Regards,
Kaushal -
I worked with files in LR that were originally on my C drive, then were moved to an external HD for storage. I now want to do some more work on those files (which have the same file name as on the C drive). I plugged the drive into my computer and it shows in LR under folders as the F drive and the little green light is on, but LR is showing only the first 6 files and not the remaining 200 or so. How do I expand the F folder to expose all files?
I worked with files in LR that were originally on my C drive, then were moved to an external HD for storage. I now want to do some more work on those files (which have the same file name as on the C drive). I plugged the drive into my computer and it shows in LR under folders as the F drive and the little green light is on, but LR is showing only the first 6 files and not the remaining 200 or so. How do I expand the F folder to expose all files?
-
Working with files on mobile devices
Hi everybody,
at the moment we are running a Vibe 3.4 server which is used most of the time by normal pc clients with the users using the browser or the Vibe desktop client to connect. Now we are getting a tablet project using Vibe more via mobile access (Android based) . The Problem now is, I can do many things with my mobile Vibe access or the Vibe App but I havent figured out how to work with my files stored in Vibe while accessing them via a mobile device.
Is there any possibility to open and work with the files/attachments?
If no, is this a planned feature for the future?
Any help, hint or trick is is greatly appreciated
Regards,
Andreasastock,
It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.
Has your problem been resolved? If not, you might try one of the following options:
- Visit http://www.novell.com/support and search the knowledgebase and/or check all
the other self support options and support programs available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.novell.com)
Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.novell.com/faq.php
If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.
Good luck!
Your Novell Forums Team
http://forums.novell.com -
Hi,
I want to create a small program in Xcode which create a excel speedsheet with fiew sheet and put data into sheet using
VisualBasicforApplication.framework.
What can i do, so that i can create/write excel files in xcode on Mac OS X?
Please help me as soon as possible.
ThanksOriginally Posted by skoltogyan
How to work with database in the Teaming ?
I need create some web-forms and store it in the database on the server.
Any example - how i can do this with Teaming ?
Please, Help me.
Serg
Hi Serg,
Not sure what you are looking for and I'm also no dev...
Maybe this link will help : Episode X: Teaming Templates | Novell User Communities -
How Ajax works with Struts framework
How Ajax works with Struts framework .
Thanks
RamkiSo we must write file name(like abc.do), If am using struts <html:link > tag like <html:like action="abc" >Click</html:link>, so with ajax we must call like <a href ="abc.do">Click</a> .
But there is a problem, if am using ,
<servlet-mapping>
<servlet-name>MainServlet</servlet-name>
<url-pattern>/r/*</url-pattern>
</servlet-mapping>
or
<servlet-mapping>
<servlet-name>MainServlet</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
here i am changing web.xml file based on client interest. At those situation we must change all jsp pages for <a href ="/r/abc">Click</a> .like,.
It's very difficult.
Is any other way to use ajax with Struts (Only struts tags)
Thanks
Ramki -
How to work with DTR and CBS?
Hi
I have designed one web dynpro application. Now I want to work on this application through DTR. Means i want to do versioning and all. How to work with DTR..? I have gone through lot of blogs and help available in SDN but i am unable to understand how to work with it.
One more thing how to work with CBS. How to configure CBS. I have NWDS latest version 7.0.7. In window perspective i am unable to find JDI. can any one please explain me if u have worked on this with example
If possible can any one send me the screen shots how to work with these ?
Best Regards
Ravi Shankar BHi Ravi
For you to work with DTR and CBS, firstly u will have to configure JDI on server.
To configure the NWDI, please go through the links given below:
http://help.sap.com/saphelp_nw2004s/helpdata/en/07/f6bc3d42f46c33e10000000a11405a/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/71/0369404c65587ee10000000a155106/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/26b84d6c823f66e10000000a11466f/frameset.htm
In Nutshell, following steps will be performed:
1) logon to Portal Devinf.
2) click on CMS
3) Go to landscape configurator
4) create domain
5) create tracks and add Software components in that track
6) runtime systems ( dev/qa etc are configured
7) in the transport studio, all the files listed are checked in through check - in tab.
8) they move to developement tab.
Once all these things are done, in your NWDS:
1) Setting the devbox host name and server port in Window -> Preferences -> SAP
J2EE Engine
2) Setting Portal URL in Window -> Preferences -> JDI -> DC Pool and ping server,
to check whether server is getting accessed from NWDS.
3) Once server is set, login to DTR and go to DTR perspective. Create a client there, by doing a right click and filling up the required details.
4) In the DC perspective, in the Local DCs view, perform import configuration.
5) the dev track is not configured
6) Under this, after logging into DTR, now you can create your project, check them in and create new versions.
Thanks & regards,
Anupreet -
Hello!
Can anyone help me. How can I API in Java Technology for files to find ?don't uite understand your question.
here's the location of java API for File class, for working with File and Directory..
http://java.sun.com/j2se/1.3/docs/api/java/io/File.html
for reading and writing..you may want to look at th eio package for classes such as
Reader, FileReader, BufferedReader, Writer, FileWriter, BufferedWriter
here's java API
http://java.sun.com/j2se/1.4.2/docs/api/ -
Managing spaces when working with files
Hi, how can I work with files on windows on paths thats have blank spaces like "Documents and Settings", I used getResource().getFile() and writting the path but it always fails!
The FileOutputStream always thorws the exception FIleNotFoundException.
I tried the path with blank spaces and tried with %20 but always is the same.Are you saying that OutputStream os = new FileOutputStream("C:/Documents
and
Settings/AAD/workspace/MobileServer/bin/Configuracion/
conexiones.omt");throws an exception? If so, what exception?Exactly it throws an Exception.
java.io.FileNotFoundException: C:\Documents and Settings\AAD\workspace\MobileServer\bin\server\Configuracion\conexiones.omt (El sistema no puede hallar la ruta especificada)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at server.tcp.GestionTCP.guardar(GestionTCP.java:118)
at server.tcp.GestionTCP.mouseReleased(GestionTCP.java:89)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
at java.awt.Component.processMouseEvent(Component.java:6038)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
at java.awt.Component.processEvent(Component.java:5803)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121) -
Scheduling Gantt: How to work with the "zoom-to-fit" drop-down
I'm trying to figure out how to work with the "zoom-to-fit" drop-down on the scheduling Gantt dvt control. It has choices in the drop-down that are not appropriate for my project. The documented purpose of this drop-down is to allow the user to zoom to a level that would allow a certain time range to "fit" within the current window. The choices start at "1 Week" and go up through "2 Weeks", "1 Month" etc. The problem is that the projects I'm displaying are generally just a couple of days long, and consist of many small tasks. So even 1 Week is too big. Also, no matter what I pick in this drop down, nothing happens.
So my questions are these:
1. Can I change the choices in this drop-down? If so, how do I do that?
2. If not, then how can I remove this drop-down? (I figure I probably can if I disable "zoom", but I don't want to do that.)
3. How do I get this to actually do something? I assume maybe I have to code some listener somewhere, but if so, how do I do that.
Thanks for any hints, tips and advice!Currently, we do not allow customization of zoom-to-fit. Please file an ER. We could add a param to featuresOff attribute to disable/remove zoom-to-fit from the toolbar without disabling/removing zoom.
-
JSR 296 - How to work with arguments?
Hi Everyone,
I am developing an application by using a JSR 296 Swing Application Framework but I don�t make any idea about how I could manage a line-command arguments.
Should I try through Application.getInstance().getContext().getResourceMap() or something like that?
My intention is to get access to arguments within the method startup(). However, note that they are not directly available for use unless I create a array member and explicitly assign them to this new member (I suppose it must have a suitable way for doing this instead of I mentioned):
I am using Netbeans 6.0 beta 1 to create this application, under the option File < New Project < Java Desktop Application
See below a snippet. As you can see, I would like to get a value of the first argument passed by user from line command.
* Main method launching the application.
public static void main(String[] args) {
launch(MyApplication.class, args);
@Override protected void startup() {
// here I would like to access the arguments
String firstArg = ?
// show main frame
show(new MyApplicationView(this));
}Does anyone know how to make it possible?
~Fernando
Edited by: [email protected] on Oct 17, 2007 10:08 AM
Edited by: [email protected] on Oct 17, 2007 3:18 PMOriginally Posted by skoltogyan
How to work with database in the Teaming ?
I need create some web-forms and store it in the database on the server.
Any example - how i can do this with Teaming ?
Please, Help me.
Serg
Hi Serg,
Not sure what you are looking for and I'm also no dev...
Maybe this link will help : Episode X: Teaming Templates | Novell User Communities -
How to work with BarTender software from LV ?
Hi,
I'd like to activate Seagull's BarTender Label printing software (version 7.71) from Labview.
Basically I need to create a new label, add text and pictures/icons to it and then send it to the printer.
I noticed an Active-X option exist but I'm not sure how to work with it. I started building something like the attached file but I don't know how to continue.
Does anyone have some examples ?
(Otherwise, is it possible to use command lines ?)
Thanks in advance,
Mentos.
Attachments:
Bartender_Example.vi 12 KBWhat type of printer are you trying to communicate with? Depending on the printer it may be possible to communicate directly with the printer itself. You would need to define the label or labels you would like to print and insert the data on the fly in your application and then send it to the printer.
I am not familiar with the BarTender application itself so I can't give you advice on interfacing with it. However if it does have an ActiveX interface you should be able to communicate with it directly.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Maybe you are looking for
-
How can i change the itunesu site name?
Hi, recently our dean asked us to change the itunesu site name in the lists from UNIPD to UNIPD - Università degli Studi di Padova. We have used the old site admin to do that because the web admin has not this feature available. Nothing changed... wh
-
So, almost a year ago, like right after my Apple warrenty expired, the home button on my Ipod Touch stopped working. Naturally, right? You know, since my warrenty just had to expire... I know its been almost a year know, but does anyone have any sugg
-
How to pick the changed name.
Hi all, can anyone help me out ...how to pick the changed name form the table ... if a name changed three times in month, how should I get it in report.??? I have gone through the tables BUT000 & BUT020 but I haven't got thr
-
Sun Java(tm) System Messaging Server 6.2-7.05 (built Sep 5 2006) libimta.so 6.2-7.05 (built 12:18:44, Sep 5 2006) SunOS ultrasun1 5.10 Generic_125100-07 sun4u sparc SUNW,A70 Hi folks. Does anybody known if there are a limit in the attached file size
-
Valuated and Non-valuated project stock in same SAP system
Dear All, Can we operate with the system where projects are with valuated and non-valuated project stock at the same time. If yes, are there any precautions we need to take before doing this. Currently we are changing to 'valuated project stock'