How to get all files from Archive server
Hi Experts,
My problem is:
When i try to read from an archived file, the moment archive_open_for_read function module is executed, a popup box appears
asking to choose the name of the archive file to be read.
I have to pass only one Export Parameter i.e. Archive Object.
How to avoid the popup screen from appearing. I want to read all the archived files by default, the values are to be retrived from the archived files and displayed.
Thanks,
Parthow.
Hi,
I probably didn't understand your question, as I think my answer is exactly what you expect.
In an archive object, you may have 1 or more files. If you want to know the list of files in the object, you have to use ARCHIVOBJECT_GET_TABLE.
Sandra
Similar Messages
-
How to get all users from the server....?
Hi all,
in my application i want to get all possible users present in the PORTAL-EP Server
and set them into the drop down.
is there need to login in the portal as a admin or other user to get the all users present in the Server.
Regards,
DeepakHi! Deepak,
you can use UME API to get all the users of EP in WebDynpro appl.
Herewith i am giving you the UME API link --
<a href="http://help.sap.com/javadocs/NW04/current/um/index.html">http://help.sap.com/javadocs/NW04/current/um/index.html</a>
i am giving the code also to get all the users from LDAP.
IPublic<ComponentName>.IUserIDElement userIDNodeElement = null;
IUserAccountFactory accountFact = UMFactory.getUserAccountFactory();
MessageManager msgMgr = (MessageManager)wdThis.wdGetAPI().getComponent().getMessageManager();
try {
IUserAccountSearchFilter accountSearchFilter = accountFact.getUserAccountSearchFilter();
accountSearchFilter.setLogonUid("*",ISearchAttribute.LIKE_OPERATOR,false);
ISearchResult srchRslt = accountFact.search(accountSearchFilter);
while(srchRslt.hasNext()) {
userIDNodeElement = wdContext.createUserIDElement(); String uniqueID = (String)srchRslt.next();
IUserAccount userAccount = accountFact.getUserAccount(uniqueID);
String LogonUid = userAccount.getLogonUid();
userIDNodeElement.setCtx_UserID(LogonUid);
wdContext.nodeUserID().addElement(userIDNodeElement);
} catch(Exception exc) {
msgMgr.reportWarning(umException.toString());
regards,
Mithilehwar -
How to get text file from app server and process it.
Hello experts,
I created a test data based form my recording. Now, I do not know where can I find it.
Also, I want to create a program that lets users input the file name in the input parameter
(selection screen) and it would automatically process/split that file. Again, thank you guys
and take care!hi viray,
im sorry i thought it was reading from presentation server....:-)
>>I want to create a program that lets users input the file name in the input parameter
(selection screen)
at selection-screen on value-request for p_file.
perform file_help using p_file.
form file_help using p_p_file.
call function 'RZL_READ_DIR_LOCAL'
exporting
name = p_dir
tables
file_tbl = t_filetab
EXCEPTIONS
ARGUMENT_ERROR = 1
NOT_FOUND = 2
OTHERS = 3
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endform. " file_help
Splitting File and path.
use the FM <b>SO_SPLIT_FILE_AND_PATH</b>
hope this helps,
do reward if it helps,
priya.
Message was edited by: Priya -
Hi How to get XML file from servlet that XI sent to my J2EE appl?
Hi All!
I have a scenario like XI sends xml file to j2ee application. In my J2EE application my servlet receives this xml. Will the xml file be in my HTTPServletRequest object? if so how to get that file from Request object.
Please help me its urgent, Any code help is highly appreciated.
My xml file will be like this:
<ns0:Http_Message_Type_Demo
xmlns:ns0="http://abcdemo.com">
<Name>ABC</Name>
<RollNo>123</RollNo>
<Address>a-4</Address>
</ns0:Http_Message_Type_Demo>
somebody should help me!please
ThanksHi,
You can use HTTPServletRequest object to get the XML payload.
BufferedReader reader = request.getReader(); //gets XML payload
String line = reader.readLine(); // to read the XML payload line by line
(request is the HTTPServletRequest object)
Regards,
Uma -
How to get all data from nokia to i5s
how to get all data from nokia E71 to i5s???
if you can put those data in your computer then add it in iTunes. your iPhone 5s should get it thru syncing.
-
How to get the files in presentation server while uploading?
how to get the files in presentation server while uploading?
give me the function module nameHi,
PARAMETERS: P_FILE LIKE RLGRAP-FILENAME DEFAULT C_PRES. "Prsnt Srvr
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_PATH = P_FILE
MASK = ',..'
MODE = '0 '
TITLE = 'Choose File'
IMPORTING
FILENAME = P_FILE
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5. -
How to upload XML file from Application server.
Hi,
How to upload XML file from Application server.Please tell me as early as possible.
Regards,
Sagar.Hi,
parameters : p_file type ibipparms-path obligatory.
***DOWNLOAD---->SAP INTO EXCEL
filename1 = p_file.
call function 'GUI_DOWNLOAD'
exporting
BIN_FILESIZE =
filename = filename1
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 = it_stock
FIELDNAMES =
exceptions
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
others = 22
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Regards,
Deepthi. -
How to download ALL MAIL from the server in a Mail app ?
How to download ALL MAIL from the server in a Mail app ? I want all the mail messages, sent, received ON my computer... Thanks much !!!!!!!
In Mail's Accounts/Mailbox Behavior preference pane make sure these 4 checkboxes are NOT checked:
OT -
How to get pdf file from sap presentation server using java connector
Hi Friends,
with the below code i am able to get po details in pdf in presentation server.
DATA : w_url TYPE string
VALUE 'C:\Documents and Settings\1011\Solutions\web\files\podet.pdf'.
CALL FUNCTION 'ECP_PDF_DISPLAY'
EXPORTING
purchase_order = i_ponum
IMPORTING
PDF_BYTECOUNT =
pdf = file " data in Xsting format
*Converting Xstring to binary_tab
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = file
APPEND_TO_TABLE = ' '
IMPORTING
OUTPUT_LENGTH =
TABLES
binary_tab = it_bin " data in binary format
**Downloading into PDF file
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = w_url
filetype = 'BIN'
TABLES
data_tab = it_bin
when i am using java connector , to retirve the file from presentation server , the follwoing error i am getting...
init:
deps-jar:
compile-single:
run-single:
com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Error in Control Framework
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeExecute(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.execute(MiddlewareRFC.java:1244)
at com.sap.mw.jco.JCO$Client.execute(JCO.java:3842)
at com.sap.mw.jco.JCO$Client.execute(JCO.java:3287)
at PdfGen.<init>(PdfGen.java:35)
at PdfGen.main(PdfGen.java:78)
Java Result: 1
BUILD SUCCESSFUL (total time: 1 second)
i debugged too, problem with <b>gui_download......</b>
I am very glad to all with your suggestions!!
Regards,
Madhu..!!Hi
You can try to create an external command (transaction SM69).......sorry I've forgotten,,,,they works on application
How do you call CL_GUI_FRONTEND_SERVICES=>EXECUTE?
Max
Edited by: max bianchi on Oct 13, 2011 10:27 AM -
How to get a file from an internet site
I have a scenario where I need to get a file from a website.
Basically on a weekly basis one our customers are going to upload a file that contains all the information for delivery's for the coming week.
the way this used to be done is the user would go to the website directly and download the uploaded file.
However now we want to do it as an automatic integration using PI.
Does anyone have an idea how to do this? Is it even possible?> Thridly my issue with regards to taking a file that is uploaded to a website (it will be a csv file), can be solved by creating a webservice?
I am sorry, I misunderstood this. I thought you want to download.
The upload is done with a HTTP POST, so you can use the HTTP receiver adapter.
Use the prolog and epilog to simulate the form data post.
Use an HTTP sniffer to get the whole HTTP stream, when you upload the file to the website to see, what you have to put in the HTTP adapter settings.
Here are some threads about that topic:
Receiver HTTP Adapter - multipart/form-data file post - SP19
Re: HTTP Form Post Using HTTP adapter
Regards
Stefan -
How to get all INDEXes from a database
How to get all INDEXes in a database? I need to store them in script file (.SQL). My database version is 10.2.0.3.0.
Edited by: Iniyavan on Sep 18, 2009 1:39 PM--Thanks, Koppelaars. The second query works. But I'm unable to store in spool file. May be it's due to CLOBs in the output. I did the following:
set head off
set feedback off
set linesize 32727
set pagesize 50000
spool c:\indexes.sql
select dbms_metadata.get_ddl('INDEX',INDEX_NAME,'MYSCHEMA')
from user_indexes;
spool off
--In the spool file, I find only this
CREATE UNIQUE INDEX "MYSCHEMA"."A" ON "MYSCHEMA"."BNK_DEALID" ("DEAL_ID")
PCTF
CREATE INDEX "MYSCHEMA"."ACCENT_RAC_REPORT" ON "MYSCHEMA"."ACCENT" ("SCHEME", "VAL
CREATE INDEX "MYSCHEMA"."ACCENT_REPORT" ON "MYSCHEMA"."ACCENT" ("SCHEME", "APP_REF
CREATE UNIQUE INDEX "MYSCHEMA"."ACCENT_X" ON "MYSCHEMA"."ACCENT" ("DEAL_ID")
P
CREATE UNIQUE INDEX "MYSCHEMA"."ACCNAV_X" ON "MYSCHEMA"."ACCNAV" ("SCHEME", "ACCNA
--How to get all the DMLs in one SQL file?
--Nagappan, I'm using WIN. -
How to get all images from folder in c#?
I am trying to get all images from folder. But it is not executing from following:
string path=@"C:\wamp\www\fileupload\user_data";
string[] filePaths = Directory.GetFiles(path,".jpg");
for (int i = 0; i < filePaths.Length; i++)
dataGridImage.Controls.Add(filePaths[i]);
Please give me the correct solution.How to display all images from folder in picturebox in c#?
private void Form1_Load(object sender, EventArgs e)
string[] files = Directory.GetFiles(Form1.programdir + "\\card_images", "*", SearchOption.TopDirectoryOnly);
foreach (var filename in files)
Bitmap bmp = null;
try
bmp = new Bitmap(filename);
catch (Exception e)
// remove this if you don't want to see the exception message
MessageBox.Show(e.Message);
continue;
var card = new PictureBox();
card.BackgroundImage = bmp;
card.Padding = new Padding(0);
card.BackgroundImageLayout = ImageLayout.Stretch;
card.MouseDown += new MouseEventHandler(card_click);
card.Size = new Size((int)(this.ClientSize.Width / 2) - 15, images.Height);
images.Controls.Add(card);
Free .NET Barcode Generator & Scanner supporting over 40 kinds of 1D & 2D symbologies. -
Hi All,
My requirment is to get releted files from Local Directory.
For Example Path is "D/Data/"
in this path there is files like
abc123_de.txt
abc123_en.txt
xyz123_de.txt
abc123_pt.txt
xyz123_en.txt
pqr123_en.txt
bcg234_en.txt
sjd467_en.txt
Now i want to use only files which are strart from abc123 and use their data.
From which FM i can do it or how can i do this?
Thanks,
MahipalsinhDear Mahipalsinh,
I have got the same requirement some days back, i think there is no FM for your requirement. so what i did, i have get all the files using below FM and Concatenate the ABC.
Please use the Below FM, because if the file name is above that 50 character that time always it gives the full file name. Please check, if u used the other one for getting the Files.
CALL FUNCTION 'EPS2_GET_DIRECTORY_LISTING'
EXPORTING
iv_dir_name = lv_dir_name
TABLES
dir_list = lt_file_name
EXCEPTIONS
invalid_eps_subdir = 1
sapgparam_failed = 2
build_directory_failed = 3
no_authorization = 4
read_directory_failed = 5
too_many_read_errors = 6
empty_directory_list = 7
OTHERS = 8.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
For reading Specific Files.
CONCATENATE 'AP' lv_internal_date INTO lv_filename.
LOOP AT lt_file_name INTO ls_file_name.
lv_index = sy-tabix.
IF ls_file_name-name CS lv_filename.
" PUT YOUR LOGIC
endif.
endloop.
Thanks,
Nishant -
How to get All Mails from outlook
Hi am reading mail from outlook.. It reads only unread mails. But i want to read all mails. if any one knows please help me..My code is..
import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;
import java.io.*;
public class AllPartsClient {
public static void main(String[] args) {
Properties props = new Properties();
String host = "myhost";
String username = "myuser";
String password = "mypass";
String provider = "pop3";
try {
Session session = Session.getDefaultInstance(props, null);
// Connect to the server and open the folder
Store store = session.getStore(provider);
store.connect(host, username, password);
Folder folder = store.getFolder("INBOX");
if (folder == null) {
System.out.println("Folder " + folder.getFullName() + " not found.");
System.exit(1);
folder.open(Folder.READ_ONLY);
// Get the messages from the server
Message[] messages = folder.getMessages();
for (int i = 0; i < messages.length; i++) {
System.out.println("------------ Message " + (i+1)
+ " ------------");
// Print message headers
Enumeration headers = messages.getAllHeaders();
while (headers.hasMoreElements()) {
Header h = (Header) headers.nextElement();
System.out.println(h.getName() + ": " + h.getValue());
System.out.println();
// Enumerate parts
Object body = messages[i].getContent();
if (body instanceof Multipart) {
processMultipart((Multipart) body);
else { // ordinary message
processPart(messages[i]);
System.out.println();
// Close the connection
// but don't remove the messages from the server
folder.close(true);
catch (Exception e) {
e.printStackTrace();
// Since we may have brought up a GUI to authenticate,
// we can't rely on returning from main() to exit
System.exit(0);
public static void processMultipart(Multipart mp)
throws MessagingException {
System.out.println("mp.getCount() = "+mp.getCount());
for (int i = 0; i < mp.getCount(); i++) {
processPart(mp.getBodyPart(i));
public static void processPart(Part p) {
try {
String fileName = p.getFileName();
String disposition = p.getDisposition();
String contentType = p.getContentType();
if (fileName == null && (Part.ATTACHMENT.equals(disposition)
|| !contentType.equalsIgnoreCase("text/plain"))) {
// pick a random file name. This requires Java 1.2 or later.
fileName = File.createTempFile("attachment", ".txt").getName();
if (fileName == null) { // likely inline
p.writeTo(System.out);
else {
File f = new File(fileName);
// find a version that does not yet exist
for (int i = 1; f.exists(); i++) {
String newName = fileName + " " + i;
f = new File(newName);
FileOutputStream out = new FileOutputStream(f);
// We can't just use p.writeTo() here because it doesn't
// decode the attachment. Instead we copy the input stream
// onto the output stream which does automatically decode
// Base-64, quoted printable, and a variety of other formats.
InputStream in = new BufferedInputStream(p.getInputStream());
int b;
while ((b = in.read()) != -1) out.write(b);
out.flush();
out.close();
in.close();
catch (Exception e) {
System.err.println(e);
e.printStackTrace();
In this code if Content is Multipart then it is not displaying content..
ThanksHi
if i use String provider = "imap"; then it shows the following error message..
javax.mail.MessagingException: Connection refused: connect
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:479)
at javax.mail.Service.connect(Service.java:275)
at javax.mail.Service.connect(Service.java:156)
at javamail.AllPartsClient.main(AllPartsClient.java:39)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
at com.sun.mail.iap.Protocol.<init>(Protocol.java:84)
at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:87)
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:446)
... 3 more
pls any one give idea -
How to read XL file from FTP server
Hi all,
I have a requirement like to read file from FTP server using path
ftp:
10.212......\DTR\DTR_ Accounted_Out
and again save other file in same location ,
to doing this RFC connection is required?
give a procedure or program to do this requirement ..
To create rfc for FTP which connection type can i use ?
Give complete settings to create rfc destinationHi Rakhi,
Use the below code to check if you have received the proper data.
call function 'FTP_SERVER_TO_R3' "Get data as character instead of BLOB
exporting
handle = hdl
fname = docid
character_mode = 'X'
tables
text = chardata.
If the data is incorrect, it is possible that you are in the wrong directory.
Use
call function 'FTP_COMMAND'
exporting
handle = hdl
command = 'cd mydir\mysubdir' "cd <space> your path
tables
data = result
exceptions
tcpip_error = 1
command_error = 2
data_error = 3.
Regards,
Jovito.
Maybe you are looking for
-
I've tried many times to get rid of my old iTunes account. I have made a new Apple ID and I do remember the password. My 2 main problems are, i can't update ANY of my apps (and I have 53 to update now), and I can't get rid of my old old email that I
-
I just recently upgraded my Intel iMac to Mavericks and can no longer use my Canon CanonScan 8600F scanner. What can I do to enable this device with my iMac? Or, should I consider purchasing another compatible scanner?
-
My new officemate inherited a previous officemate's tangerine iMac running 10.3.9. Previous officemate left under very bad circumstances and did not bother to leave the password for the computer with anyone. New officemate needs to do some updating b
-
I tried firefox 4 and it was like the new gui of win 7. I hate this horrid hidden menu system. Can I have classic menus with firefox 5?
-
I won't mark my archived, unanswered questions as 'answered'
The 'My Questions' link brings up a list of questions I've posted, with the as-yet unanswered ones at the top of the list, begging to be marked as answered. But they can beg all they want, because they weren't answered and that's that.