Unzip files through SAP PI
Hi all, I have a question about the perfomance in a scenario. I have 250 files zipped (45Kb average each file) in a ftp folder, and I'm using File Adapter to pickup this zip file, and then unzip it, and then process the files which contains, next each file will be mapped to one IDOC.
So, my question is how to improve the perfomance in this scenario??
Does the unzipping process consumes PI Server resources??
I hope someone could help me with this problem...thanks in advance
Hello
Check the Audit Log of the message in the RWB -> Message Monitoring. Here you can check the processing times of the message including the module processing times. This should give you an idea as to what processing stage is taking the most time.
Regards
Mark
Similar Messages
-
UNZIP files in SAP system (HP-UX)
Experts,
I receive ZIP files (from windows system) to my SAP system (HP-UX). My requirement is to UNZIP it and use the contents (multiple PDF files). Is there a way I can do this? Thanks..
Regards
Arun.Hi,
on HPUX system you can use below command:
If you have java installed,
#jar -xvf <filename.zip>
OR
#gzip -df <filename.zip>
Else you need to install "unzip". Have a look at the below link.
[Download unzip for HPUX|http://hpux.connect.org.uk/hppd/hpux/Misc/unzip-5.52/]
Regards.
Rajesh Narkhede -
Viewing files through SAP viewer only
Hi,
When i create a DIR and attch a PDF file in it, and when i open this file, its get opened in PDF viewer.
I want that the file should only be opened in SAP viewer and not in application on PC.
How can i achieve this?
Regards,
KalpeshHi Kalpesh,
Use the 'Integrated Viewer' from EAI for display of your original docs, which enables you to display them in the DIR frame itself. Browse the below link for config details:
http://help.sap.com/saphelp_47x200/helpdata/en/c1/1c31a243c711d1893e0000e8323c4f/frameset.htm
Regards,
Pradeepkumar Haragoldavar
Edited by: Pradeepkumar Haragoldavar on May 12, 2010 10:56 AM -
To upload a RTF and a PDF file to SAP R/3 and print the same through SAP
Hi,
I have a requirement to upload a PDF file and a RTF file to SAP R/3 and print the same.
I wrote the following code for uploading a RTF file to SAP R/3 and print the same. However, the problem is , the formatting present in the RTF document( bold/italics..etc) is not being reflected when I do the 'print-preview' after the executing the code below :
report z_test_upload .
data: begin of itab occurs 0,
rec type string,
end of itab.
data: options like itcpo.
data: filename type string,
count type i.
data: filetype(10) type c value 'ASC'.
DATA: HEADER LIKE THEAD OCCURS 0 WITH HEADER LINE.
DATA: NEWHEADER LIKE THEAD OCCURS 0 WITH HEADER LINE.
DATA: ITFLINE LIKE TLINE OCCURS 0 WITH HEADER LINE.
DATA: RTFLINE LIKE HELP_STFA OCCURS 0 WITH HEADER LINE.
DATA: string_len TYPE i,
n1 TYPE i.
selection-screen begin of block b1.
parameter: p_file1(128) default 'C:\test_itf.rtf'.
selection-screen end of block b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file1.
CALL FUNCTION 'F4_FILENAME'
IMPORTING
file_name = p_file1.
start-of-selection.
move p_file1 to filename.
call function 'GUI_UPLOAD'
EXPORTING
filename = filename
filetype = filetype
TABLES
data_tab = itab
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.
loop at itab.
string_len = strlen( itab-rec ).
n1 = string_len DIV 134.
ADD 1 TO n1.
DO n1 TIMES.
rtfline-line = itab-rec.
APPEND rtfline.
SHIFT itab-rec BY 134 PLACES.
ENDDO.
endloop.
HEADER-TDSTYLE = 'S_DOCUS1'.
HEADER-TDFORM = 'S_DOCU_SHOW'.
header-tdspras = 'E'.
CALL FUNCTION 'CONVERT_TEXT'
EXPORTING
CODEPAGE = '0000'
DIRECTION = 'IMPORT'
FORMAT_TYPE = 'RTF'
FORMATWIDTH = 72
HEADER = header
SSHEET = 'WINHELP.DOT'
WITH_TAB = 'X'
WORD_LANGU = SY-LANGU
TABLETYPE = 'ASC'
TAB_SUBSTITUTE = 'X09 '
LF_SUBSTITUTE = ' '
REPLACE_SYMBOLS = 'X'
REPLACE_SAPCHARS = 'X'
MASK_BRACKETS = 'X'
IMPORTING
NEWHEADER = NEWHEADER
WITH_TAB_E =
FORMATWIDTH_E =
TABLES
FOREIGN = RTFLINE
ITF_LINES = ITFLINE.
LINKS_TO_CONVERT =
if sy-subrc <> 0.
endif.
CALL FUNCTION 'PRINT_TEXT_ITF'
EXPORTING
HEADER = newheader
OPTIONS = options
IMPORTING
RESULT =
TABLES
LINES = itfline.
if sy-subrc <> 0.
endif.
Any hints or suggestions to solve this problem will be highly appreciated.
Thanks,
AvraHi Vishwas,
Check out the thread [Efficient way of saving documents uploaded|Re: Efficient way of saving documents uploaded by users; and check the blog by Raja Thangamani.
Also check the thread [Export Images through Function Modules |Export Images through Function Modules;.
Hope it helps you. -
Pls Help me with steps to add data from xml file to SAP B1 through B1iSN.
Pls Help me with steps to add data from xml file to SAP B1 through B1iSN. I am getting stuck in xsl transformation. not able to understand where the mapping code needs to be added.
Pls explain me the steps for adding data from xml to B1 quotation step by step.
thanks and regards
PriyaHi,
Have you checked this: https://sap.na.pgiconnect.com/p45508295/?launcher=false&fcsContent=true&pbMode=normal ?
Thanks,
Gordon -
Error while trying to send a file through XI to SAP R/3 based OLTP system
Hi all,
I encountered with an error in the runtime workbench for the below mentioned scenario
ERROR message
<b>Unknown error: javax.ejb.CreateException: Neither messager server nor application server are defined for system IXI</b>
SCENARIO
The manufacturing system triggers an equipment failure. The failure message is sent through SAP Exchange Infrastructure (SAP XI) to the SAP R/3 based OLTP system,
changing the equipment status to a failure state. This is achieved by triggering the execution of Remote Function Call (RFC) present in the OLTP system from the SAP XI integration server.
Thanks and regards
JishiHi Jishi,
Please check the Receiver RFC communication channel in your integration directory.
Check the logon parameters provided. From the error message, I guess there is no application server or message server provided, which is mandatory for XI to logon to the target backend R/3 system. -
Error in Data upload through Flat files in SAP BPC
Hi,
we are trying to upload data from flat files in SAP BPC but an error is coming viz Object reference not set to an instance of an object .Hi,
Can you please cross check the file structure and the transfer structure.
Cheers,
Malli.... -
Error when PDF File is send through SAP to Vendors.
Hi,
We are regularly sending payment advices as PDF File to our Vendors. but from february all of sudden many of vendors are facing issue while opening PDF File.
Some of them are getting Error as "Adobe reader could not open file because it is either not supported file or because file has been damaged(it was sent as an email attachment and wasn't correctly decoded) while some of them are receiving Blank attachment.
Also when we try to send same file to internal id's and our personal Id's we are able to open same. So this is not sap problem as file leaves sap correctly.
What could be reasons they are not able to open same? Also this can't be a problem at recipients end as many of Vendors are facing this problem all of a sudden. Also one more observation when correct file is received size is of 8KB while same when received by Vendors its only of 1 KB.
Please let me know solution for this.
Regards
Tanuja NaikSee the steps to fix the issue here https://getsatisfaction.com/mozilla_messaging/topics/why_does_thunderbird_corrupts_pdf_file_attachments#reply_4197276
Config editor article here if needed https://support.mozilla.org/en-US/kb/config-editor
Tools menu can by "discovered" if missing by pressing Alt+T -
Error while deploying EAR file through SDM
Hi All,
I am deploying EAR file through SDM. Its taking too much time to deploy in the 3rd stage (its just a simple hello file for testing purpose and its still in that stage for 2 hours).
When I see the log, I can see some fata error. Please suggest me what should I do.
==
Oct 15, 2008 4:31:44 PM Info: SDM started successfully.
Oct 15, 2008 4:33:21 PM Info: Opened client connection to sapretail (IP address
sapretail/172.20.177.203, remote port 58645)
Oct 15, 2008 4:33:23 PM Info: Request for Logon as admin accepted
Oct 15, 2008 4:39:07 PM Info: Loading archive '/usr/sap/trans/EPS/sap.comwdtu
torial~ex1.ear'
Oct 15, 2008 4:40:50 PM Info: Actions per selected component:
Oct 15, 2008 4:40:50 PM Info: Initial deployment: Selected development componen
t 'wd/tutorial/ex1'/'sap.com'/'LOKAL'/'0.2008.10.14.12.51.57' will be deployed.
Oct 15, 2008 4:44:41 PM Info: Saved current Engine state.
Oct 15, 2008 4:44:48 PM Fatal: State BeforeNextDeployment can't process event I
nitiateDeployment
The reason I am doing through SDM because while deploying through NWDS its throwing an error
Oct 13, 2008 12:44:41 PM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
[001]Deployment aborted
Settings
SDM host : sapretail
SDM port : 50118
URL to deploy : file:/C:/DOCUME1/231477/LOCALS1/Temp/temp41002sap.comwdtutorial~ex1.ear
Deployment exception : Server sapretail did not accept login request as admin on port 50118. Details: ERROR: Could not establish connection to server sapretail at port 50118: sapretail
Inner exception was :
Server sapretail did not accept login request as admin on port 50118. Details: ERROR: Could not establish connection to server sapretail at port 50118: sapretail
Please suggest a solution.
Regards,
JitenderNow, when I deploy through NWDS, I get the following error.
Result
=> deployment aborted : file:/C:/DOCUME1/231477/LOCALS1/Temp/temp51346sap.comwdtutorial~ex1.ear
Aborted: development component 'wd/tutorial/ex1'/'sap.com'/'LOKAL'/'0.2008.10.15.21.04.16':Caught exception while checking the login credentials for SAP J2EE Engine. Check whether the SAP J2EE Engine is up and running.com.sap.engine.deploy.manager.DeployManagerException: ERROR: Cannot connect to Host: [sapretail] with user name: [J2EE_ADMIN] Check your login information. Exception is: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: Cannot authenticate the user.] (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.checkLoginCredentials.DMEXC)
Deployment exception : The deployment of at least one item aborted -
How to Import XML file into SAP B1
Dear All,
I have a scenario like,
I am receiving a XML file from a 3rd party application for the daily Creation,Update of Item Master,BP Master, Marketing Documents. I want to import this file into SAP B1 through its approp objects. I understand DTW has limitation in its file types (Semicolo,Tab,Comma,ODBC). How do i do this ? Please guide me.
Thanks,
Thanga Raj KHy folks,
I´m frim Brasil and I've been studying the tool EFM (Eletronic File Manager) to learn more about it!
There I saw that we can extract to XML "any" infomation from the database we want, mainly through the GEP.
However, as I've seen, this Add-On can not import any XML file into SBO, unless for the BFP wich can be imported in conjunction with the BTHF Add-on.
So I ask: how is it possible to import XML data into SBO database? Is it possible to be done through the EFM? or it´s really necessary to write a code specifically to do that?
Besides, I know that de B1iSN fit to this necessity... but when I tried to use it, by the custom "object" for BP, for example, there are some data wich the mapping conteined in this custom "process" that can not be imported... I tried to understand how to map those other fields not imported by the custom but this has been dificult to me as I am a implementation consultant focused in administrative process not on development...
Could you please help me with this subject!
Thanks a lot,
Denis -
ECC = SNC ReplenishmentOrderNotification custom message through SAP PI
Helllo,
I have one issue during proxy call in SNC. We are implementing SNC system with our ECC 6.0 system for PO processing, PO Confirmation Processing. The interfaces used is the standard SNC PI package from SAP through SAP PI; however, we have extended PO IDOCs in ECC for some Z-fields and created a new message type in SAP PI and mapped them properly. The problem, when it reached SNC, I checked the XML message and it was as expected with the new Z-fields but when the inbound proxy is called, I got the following error:
Error during proxy processing An exception with the type CX_SY_DYN_CALL_ILLEGAL_TYPE occurred, but was neither handled locally, nor declared in a RAISING clause The function call of /SCA/BIF_REPLORD_BO failed; a field may have been assigned to the parameter IS_REPLORD_NOTIF whose type is not compatible with this parameter
it seems that the newly generated service interface is not reconginzing the new ReplenishmentOrderNotification message structure with the Z-fields
How can we resolve this issue and make the inbound proxy reconginze the new message stucture?
By the way, I found this Badi: BAdI for ReplenishmentOrderNotification_In? and I have no clue how it works if we need to implement it?
Thank you,Hi Alan,
Please check below threads.
1. INTERFACE_REGISTRATION_ERROR (inbound ABAP proxy)
2. ABAP ->INTERFACE_REGISTRATION_ERROR for outboud sync ABAP proxy
3. INTERFACE_REGISTRATION_ERROR using File-to-File method
Regards,
Deepak -
ECC TO SRM-MDM CATALOG THROUGH SAP PI
We have a scenario where we are sending data from ECC to SRM-MDM Catalog through SAP PI and data is coming from ECC through proxy and sending to SRM u2013MDM catlog through file adapter. In ESR part we have used SAP defined standard service interfaces (CatalogueUpdateNotification as sender interface and MDMInfoRecordDataTransmission as a receiver interface). The mapping used is also standard one.
Now we have got requirement to send the data for vendor mat no, manufacturer field of info records from ECC to SRM-MDM catlog. But we are unable to find out these two fields in standard interfaces/messages. Can anybody guide us how to add these fields in the current data types or is there any other standard interfaces we can use.
Thanks in advance.Hi Shiv,
Many thanks for your reply.
Since we're not using XI / PI scenario and this is an upgrade from SRM 5.5 to SRM 7, Iu2019m using the same approach that was already used in SRM 5.5 with CCM 2.0.
The idea is that the catalogue and all the records maintained need to be associated to a contract. So, I add the contract ID and the correspondent contract item in the import file, in addition to the supplier name, product ID, price information and so on. I mapped the contract ID with the field contract price.
In relation to the price information fields, as I want it to be visible for any user that accesses the product catalogue, I tried different approaches:
1.Using OCI Price information u2013 amount, currency, price base quantity and price base quantity UoM;
2.Using OCI Price contract u2013 amount, currency, price base quantity and price base quantity UoM;
The first approach didnu2019t work very well, as I was not able to see price information when accessing the catalogue. I could only see it once I transfer the items to the SC. In addition, this approach had one problem. The products were displayed but it was not possible to select the items one by one. To do that I needed to select all the items of the catalogue and after that the detail of the contract ID was displayed in every item, allowing me to choose the items that I want to select to my SC.
The second approach was better as the information was visible when accessing the SC and I was able to select all the items, one by one, as it should be. The main problem of this approach was that Iu2019m getting errors in the SC when the materials have stock u2013 u201CInterface data contains errorsu201D. Or alternatively, if the items didnu2019t have stock, the SC was possible, but when I tried to create a PO from that SC, It simply does not work.
So, can someone help me? Any ideas?
Thanks in advance.
Best regards,
Andreia -
How to upload schedule line from flat files to sap file
dear all,
i want to upload the schedule lines from flat files to sap schedulle lines
but the flat files have 15 schedule lines and the data is as per date
so how to upload that and the fields available in flat files are more than the sap screen
we are having more than 6 items
and 15scedule lines its abt 90data to be upload
for one customer in every 15 day
so how to do this
is there any direct use in functional side
with out the help of any abap
but my user will do it
so he need a permanent solution
with regards
subratHi Subrat ,
u can upload the data either ( Master /Transaction) data with the help of lsmw. for that all u need to do is go through the lsmw and do it. in that u can go Batch input recording/ BAPI/ IDOC any of that. here i am sending the LSMW Notes go through it and do the work.
once u create the LSMW project then u can ask the data from user or u can explain the user about the program and can run the flat file to upload the data.
if u require LSMW material Just send me blank mail from u. my mail id is [email protected]
Reward if Helpful.
Regards,
Praveen Kumar.D -
Hi,
I have a requirement to retrieve a zip file from the FTP Server, unzip it to the SAP Server and process the unzipped files. Retrieving the data from the FTP server should work via FTP commands which can be executed from within an ABAP program. However, the problem is unzipping these files via ABAP and put them on the server as well. 1. How to do this from within an ABAP Program? (unix commands?)
2. Can I unzip these files with or without using the folder structure? (additional parameter for unix command?)
Kind regards,
Micky.REPORT ZTESTUNIX line-size 400
no standard page heading.
selection-screen begin of block ucmd with frame title text-001.
parameters: unixcom like rlgrap-filename. " ...SAP Interface file
selection-screen end of block ucmd.
data: begin of tabl occurs 500,
line(400),
end of tabl.
data: lines type i.
start-of-selection.
refresh tabl.
call 'SYSTEM' id 'COMMAND' field unixcom
id 'TAB' field tabl[].
describe table tabl lines lines.
loop at tabl.
write:/01 tabl-line.
endloop.
skip 2.
if lines = 0.
write:/ 'NO Occurances were found'.
else.
write:/ 'Command was successfully executed' color col_total.
write:/ 'Number of entries in Search' color col_total,
lines color 6.
endif.
end-of-selection.
while running give the command as
<b>unzip test.zip -x dir</b>
then it will unzip test.zip file to dir called dir.
you can specify the filepath instead of file...
regards
vijay -
Creation of File through Scheduled Batch Job
Hi Friends.
How to create a file through scheduled batch job .ie data has to be sent in particular file which should be stored in SAP so that The file is expected to provide quick reconciliation when data in SAP gets archived .
With thanks and regarsds
UmaWhich part? The creation of the file? Since running in background, you would need to create the file using DATASET statements on the appliation server. You will not be able to put the file on any frontend PC or server, only on the application server where you program is running.
Regards,
Rich Heilman
Maybe you are looking for
-
Guide - How to make the most out of your sp
This guide is designed to tell you .what you should use for the smallest files with almost floorless results 2.some suggestions of how to get your files smaller without sacrificing much audio quality if you have a flash player, or a hard disk based p
-
I'm new to Macs and need some help. I have 2 user accounts on my mac and want to share picture and music files between the accounts. Both can be read & write. All my music is in the iTunes music folder. Even when I share that folder I can't get to th
-
Lighttable View mode, Keyword Sets for Import
1. I'd be nice if we could have some sort of "Lighttable View" mode for the Library module. It would be similar to the Survey Mode, but you can move the photos around on the screen and sort or group them to your liking. E.g., after photographing a de
-
Is it possible to get hibernate working properly on my MDD G4? I cannot find a way to restart from VM after mains power has been removed for a short period. Here are my settings: neville$ pmset -g Active Profiles: AC Power -1* Currently in use: sleep
-
IMovie version 6.0 or .1
hello how can i get copy of this older version so i can upgrade to .2 then to .3? you help is most appreciated. 12 in. Powerbook/iMac Mac OS X (10.4.8)