New Line in EBCDIC file created by receiver file adapter
Hi mates,
I've configured the receiver file adapter to create a file in EBCDIC format by specifyin the File encoding 'Cp037'. When the file is viewed on the AS400 system using the command DSPPFM, it appears as a continuous text instead of line-by-line. I've tried specifying 0x0D(CR), 0x0A(LF), 'nl' as the endSeparator for the record type in content conversion, but no luck. Still the file looks like a continuous text.
I learnt from the following links that the New Line character (NL or NEL) in AS400 is Unicode '0x85'.
<a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4867251">OutputStreamWriter/InputSreamReader convert NEL to linefeed with Cp037 encoding</a>
<a href="http://search.cpan.org/~guido/libintl-perl-1.16/lib/Locale/RecodeData/IBM037.pm#CHARACTER_TABLE">CHARACTER TABLE</a>
But when I specify this '0x85' as the endSeparator, I get the error below as 0x85 (decimal equivalent 133) is not part of the standard ascii code i.e. basic 127 codes
<i>Conversion initialization failed: java.lang.Exception: java.lang.NumberFormatException: Value out of range. Value:"85" Radix:16</i>
Is there any way I can produce the EBCDIC file with new line as end separator for records?
I appreciate your inputs.
thx in adv
praveen
Instead of using binary mode for FTP and specifying encoding, endSeparator, I used the text mode and left the translation to the FTP server on AS400 system.
Desirably, it generated the file with right encoding and new line characters.
praveen
Similar Messages
-
New Line Item to be created in sale order
Hi,
Client requires a new line item to be created in sale order for particular regions only..
Scenario 1 :
For a particular region Additional Tax shud be calculated on Basic Price .
Scenario 2 :
For a particular region Cess on Vat need to incorporated.
Client wants to maintain condition records in Cond Type :UTXJ and also the client shall maintain a 2 different Tax Codes for above each scenarios, In future in case Additional Tax or Cess on Vat is applicable to other regions it shud get posted in their respective G/L's
Plz suggest...
Thanx...It would be wonderful had you shared your suggestion in this forum itself rather sending to personal mail ids which is against the rules and regulations of this forum.
I request you to dont do that please. -
Error dynamic File Name in Receiver File Adapter
Hi all,
Dynamic file name for Receiver file Adapter Problem
my multi mapping look like this in design mode
messages
message1
SD01_E
FileName
row
message2
SD02_E
FileName
row
by processing the xml look like this:
<ns2:SD01_E xmlns:ns2="urn:lsv.de/SAP/XXX">
<FileName>L40SA939.xiConstant</FileName>
- <row>
or
<ns2:SD02_E xmlns:ns2="urn:lsv.de/SAP/XXX">
<FileName>L40SA939.xiConstant</FileName>
- <row>
in file receivere adapter i have try this but it dos not work
payload:SD01_E,1,FileName,1
Error:com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 0(:main:, row:1, col:0)
is there any way to have access to Filename in different root elements??
regards
RalfHi Ralf,
i think, you need for each XML msg (each different root element) a new adapter -> a new IF determination, new rec agreement and a new channel.
Regards,
Udo -
"Put file" Option in Receiver File Adapter
Hi All,
Even though this seems to be a basic Question, i didn't found any answer to this in SDN.
Please share your thoughts on this.
We have one option called Put file in the receiver file adapter, When i read the use of this option i found some thing on SAP help.
But i am not clear about that option, if any one can clear that, it would be great.
RegardsHi,
Put file is put the file directle in the receiver file path.
there are 2 options for put file
1. Directly 2. Use Temporary File.
Directly: Directly will directly place the file in specified folder. In some cases ur file is large then this option wont work.
Use Temporary File: In some cases u want to wait more time to create output file then the sepecified poll interval.In that cases in file is read some data and saved in a temporary file, after reading or completion of whole file then only only it will place the file in speficied server path.
Thanks,
Enivass -
Output file formats in receiver file adapter
Hi,
Is it possible to create a tab delimited or a .CSV file in a receiver file adapter ??
-TeresaHI,
It is possible to create a tab delimited/.csv file in a receiver file adapter by choosing "File content conversion" as a Message Protocol. But you need to do content conversion based on structure.
-Regards,
Moorthy -
Post Author: markeyjd2
CA Forum: Exporting
Greetings forum members,
My question is, in its entirety: Can a single report (rpt file) create multiple PDF files using the export command, ideally one PDF file per DB record?
In my case; I have a Crystal Report that reads data from a DB table containing ~ 500 records. When I export the report to a PDF file, I get one PDF file, with ~ 500 pages.
What I would like to do is export the report to ~ 500 individual PDF files; One file per DB record. The file names would be based on the table's primary key.
Is this possible?Post Author: Micha
CA Forum: Exporting
Hi,
you need some lines of code, but its easy. Dependend on how to start the generation of your 500 PDFs, you can write an ASP page and start it via Web Browser, or a Windows Script and start it via scheduled job...
Here's an abstract of the ASP code I use:
First, you create a recordset (here: "rsc") which gives you the list of ID fields you want to export, then you create CrystalRuntime.Application object, then you loop through the recordset, open your report (here: "oRpt") and set login info. Then set the selectionformula, so that the report displays only the data of the current ID, e.g.:
oRpt.RecordSelectionFormula = "(" & oRpt.RecordSelectionFormula & ") AND {myTab.myVal}=" & rsc("myVal")
Then you export the report, move to the next record in recordset, and repeat the loop until recordset.EOF. Then you close recordset and connection.
Micha -
Payload as File name at Receiver File Adapter
Hi All,
I have a requirement for a PROXY to File Scenario where Receiver files has to be named dynamically with a value from the Payload that I get. Also the particular field that has the file name should be unmapped with the Receiver.
For Example,
<row>
<Name>Alex</Name>
<DOB>27062014</DOB>
<City>Delhi</City>
</row>
If this is the Payload I get, I want the Receiver file name to be "27062014.txt". At the same time this particular field should not be mapped at the Receiver end.
I have tried a few links which confuse me further.Kindly help me,
Thanks in advance,
Sree RamHi Sree,
Please check if the case is correct. refer the below discussion
Problem in variable substitution
reference blog for variable substitution
Variable Substitution for Directory or File name.
regards,
Harish -
Creating .RTF output files - PI7.0 Receiver file adapter
Hi Experts,
I am currently facing an issue with the Receiver File adapter where in the output files are required to be of the format of .RTF (Rich Text Format).
The scenarios is an outbound proxy from SAP ABAP - > PI 7.0 -> .RTF File
All the data required to be present in the file will be coming in the source structure
Can the File Receiver Adapter handle this ?
Is there a way to generate Files with extension .rtf ??
It is a requriement since the output files will be used as Reports , and so the desired format.
I am unsure if I will have to use XSLT mapping , in this because i am new to that , Kindly let me know how to go about it ,. any links or pointers on how to achieve the same will be welcome.
thanks
Dev
Edited by: sd on Feb 17, 2010 8:23 AMThanks for your reponse Praveen
Can you please let me know how can i put the extension as .rtf for the output files i am generating ??
as far as the formatting is concerned ... it is like ... the header needs to be of a particular Font , a particular font size , bold etc and so is the case for line items
I am unsure if it is possible using an Adapter module as well
thanks
Dev -
Creating the receiver file name dynamically
Hi Friends
Here I have a scenario IDOC to File, I am not using any mapping or creating any repository objects. My requirement is to pass the sender IDOC to receiver in an xml file format. While posting the file at receiver file directory I suppose to post it with a file name File_IDOCnumber#.xml i.e., i need to include idocnumber in the file name. As I am not using any mapping objects I might not be able to use Dynamic configuration option, kindly suggest me with a solution.
Am using PI7.1 version
Regards
Suman.Hi Suman,
Depending on your backend application, you can create a XML file port in WE21 and use that in your Partner Profile configuration. You can create your own function module to generate the filename based on your requirements.
Alternatively, if you really want to pass through PI, you can use variable substitution in your Receiver File Adapter:
Under File Access Parameters in Target Tab:
File Name Scheme: File_IdocNumber_%idoc%.xml
Under Variable Substituion in Advanced Tab:
Enable : Yes
Variable Name: idoc
Reference: payload:IDOCTYPE,1,IDOC,1,EDI_DC40,1,DOCNUM,1
Regards,
Erwin
Edited by: Erwin de Gula on Apr 28, 2011 7:57 AM -
RMAN new Setup Fails 11g ERRor Creating Control Backup file
Rman> rman catalog=rman/****@rman.respecti.inc target=sys/*****@rac1_serv.respecti.com
Recovery Manager: Release 11.1.0.6.0 - Production on Sat Apr 4 23:29:04 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: RAC (DBID=2269761839)
connected to recovery catalog database
RMAN> create catalog tablespace rmantbs;
recovery catalog created
RMAN> register database;
database registered in recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03008: error while performing automatic resync of recovery catalog
ORA-01580: error creating control backup file /u02/oradata/RMAN/snap_proactive.f
ORA-27040: file create error, unable to create file
Linux-x86_64 Error: 2: No such file or directory
RMAN>
I've dropped the catalog and re-created it and continue to encounter this issue.
File '/u02/oradata/RMAN/snap_proactive.f' does not exist though the directory exist and is writable.
No luck with Metalink.
Appreciate recommendations on resolving this issue. ThanksFrom RMAN Server (dgrac.respecti.inc)
RMAN> configure snapshot controlfile name to '/san/shared_data/RMAN/snap_proactive.f';
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of configure command at 04/05/2009 19:07:20
RMAN-03014: implicit resync of recovery catalog failed
RMAN-03009: failure of full resync command on default channel at 04/05/2009 19:07:20
ORA-01580: error creating control backup file /u02/oradata/RMAN/snap_proactive.f
ORA-27040: file create error, unable to create file
Linux-x86_64 Error: 2: No such file or directory
RMAN> resync catalog;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of resync command on default channel at 04/05/2009 19:07:32
ORA-01580: error creating control backup file /u02/oradata/RMAN/snap_proactive.f
ORA-27040: file create error, unable to create file
Linux-x86_64 Error: 2: No such file or directory
From RAC1 node
RAC1> pwd
/san/shared_data
RAC1> ls -lt
total 20
drwxr-xr-x 2 rac dba 4096 Apr 5 18:41 RMAN
drwxr-xr-x 2 rac dba 12288 Apr 5 15:42 ARC
drwxr-xr-x 3 rac dba 4096 Mar 19 19:09 RAC
RAC1> -
Archiving files in the Receiver File Adapter
Hi All,
I am trying to archive the file created in the Receiver File adapter. Reading from the link below,
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
I gave the command cp %F <target dir> in the Command Line of "Run Operating System Command After Message Processing". As well as I tried cmd.exe copy %f <target file>
But it does not work. Can anyone please help me out?
Thanks
ShivanjaliHi Aamir,
For my case its not feasible to make a bat file...
I want to write a direct OS command in adapter only.
Do you know what is the basic difference for running OS command before processing and after processing.
In my opinion if i use a OS command after file processing then it ll take a file name with timestamp so there may be a problem...
thanks
Shivanjali -
Output CSV File Naming Convention - Receiver File Adapter
Dear SAP experts,
I need help regarding my scenario.
My scenario is this, Customer will send EDI message to XI. XI will then translate the message and convert it into XML.. After, a Receiver File Adapter will receive the XML then convert it into .csv file.
I've already configured the Receiver File Adapter to convert the XML into .csv file.
But, my problem now is how will I configure to have my output .csv file has a File Naming Convention.
The output .csv file must be "CustomerName_YearMonthDate".
From the EDI message, there is indicated Sender GLN in which, each customer has its own Sender GLN.
E.g., Globus --> 200, Karstadt --> 300, Metro --> 400.
How will I configure so that I can have an output .csv file of,
If Globus sends the EDI message, the output .csv file is Globus_20080304.csv.
If Karstadt, Karstadt_20080304.csv.
If Metro, Metro_20080304.csv.
Kindly advise for a clear and complete solution.
Thank you very much for your usual support.
FredHi Nisar,
My target message (XML) in the mapping is this,
- <ns0:CSV>
- <SLI>
<PERIO> </PERIO>
<ILN> </ILN?
<EAN> </EAN>
perio, iln, and ean was rooted on SLI field. and the CSV is the rootnode of the target message.
I have created a UDF on the message mapping to accomodate the output customer name, here is the codes:
String fname="";
if(GLN.equals("23456"))
fname ="Globus" +dat;
else if(GLN.equals("5678"))
fname ="Karstadt"+dat;
else if(GLN.equals("6789"))
fname ="Metro"+dat;
DynamicConfiguration conf = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create(
"http://sap.com/xi/XI/System/File",
"FileName");
conf.put(key,fname );
E.g.,
Globus --> 23456 (Sender GLN)
Karstadt --> 5678 (Sender GLN)
Metro --> 6789 (Sender GLN)
This UDF i've made in the Message Mapping was mapped in the root node CSV.
Is this UDF correct?
Then on the File Receiver Configurations, here are the configs,
Transport Protocol: File System (NFS)
Message Protocol: File Content Conversion
Adapter Engine: Integration Server
File Access Parameters
Target Directory: /var/opt/gsss/sample/csv
File Name Scheme: .csv
Processing Parameters
File Construction Mode: Create
- Overwrite Existing File
Write Mode: Directly
File Type: Text
Variable Substitution --> ???
Adapter Specific Message Attributes
- Use Adapter-Specific Message Attributes
- Fail if Adapter-Specific Message Attributes Missing
- File Name
Run Operating System Command After Message Processing
Command Line: chmod 664%F
Content Conversion Parameters
Recordset Structure: SLI
SLI.addHeaderLine: 3
SLI.headerLine: PERIO;ILN;EAN
SLI.fieldSeparator: ;
SLI.endSeparator: 'nl'
Adapter Status:
Status: Active
Kindly advise if my configs are correct.
Thank you very much!
Fred -
Variable substitution not working for dynamic file name in Receiver File CC
Hi Experts,
I am doing the scenario of Proxy sender to File receiver and my purpose is to Create the text file
as per the filename available in Source Message payload.
I am using the Variable Substitution method for this as shown below.
Source Message Structure:-
<Row> -
having Cocurence 1.1
<Filename> -
having Cocurence 1.1
<Item> -
having Cocurence 1.Unbounded
<Field1>
<field2>
<Item>
<Item>
<Field1>
<field2>
<Item>
<Row>
Target structure is same as the source structure and i have mapped the Filename field of the Source
with the Target structure Filename.
In ID the following is the File receiver CC Configuration.
File Name Scheme:- %Dyn_filename%
In Advance tab, I have selected the Enable option and added one row as Variable name %Dyn_filename%
and Reference as payload:Row,1,Filename,1
In testing I am getting the Error as 'variable Dyn_filename is not found in Message payload'.
Please suggest me.
Regards,
JageshHi Pooja,
Hi Pooja,
Thanks for your valuable reply..
I tried with the same. but still Filename is appearing in Output file.Giving you some details regarding my Receiver File Configuration settings.
Target Message Type:-
<MT_Target_Struct>
<Row>----
1.1 occurence
<Filename_test>----
1.1 occurence
<ITEM>----
1.unbounded occurence
<Field1>
<Field2>
<ITEM>
<ITEM>
<Field1>
<Field2>
<ITEM>
<Row>
<MT_Target_Struct>
Recordset structure:- Row,Filename_test,ITEM
Row.fieldSeparator----
>'nl'
Filename_test.fieldFixedLengths----
>0 (Zero)
Filename_test.fixedLengthTooShortHandling----
>Cut
ITEM.fieldSeparator----
>,
ITEM.endSeparator----
>'nl'
I want only ITEM node to be written in the output file.
Please suggest.
Regards,
Jagesh -
Dynamic File name in Receiver File adapter
Hi,
My Scenario is Proxy to File.
I must create filename dynamically in the receiver file adapter by taking the sales order number and divison from the source.
How can i create a dynamic filename? i searched the forum, but i could not get the correct answer,
Please help me out.
Regards
SrinivasHi Srinivas,
> My Scenario is Proxy to File.
> I must create filename dynamically in the receiver file adapter by taking the sales order number and divison from the source.
public String targetFileName(String Sono, String Div, Container container) throws StreamTransformationException
DynamicConfiguration conf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String MyFileName = sono + div + "<filename>"+".xml";
conf.put(key, MyFileName);
return MyFileName;
File name you can format according to your requirement.
And one more thing for this you have to specify the ASMA properties. For this check the below link step-1 and step-2.
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Regards
Ramesh -
Dynamic File Name for Receiver File Adapter
Hi All,
How can we use dynamic name for Receiver file adapter?
Can anyone help.
Thanks in Advance
ChemmanzHi Chemmanz,
The dynamic filename generation concept is as follows.
In your filename field. just give a variable with % symbols. (eg: %file% ).
Now, under the option Variable Name Substitution, you can give how the value has to be created.
It can be your interface name, sender service name, etc or it can be some value dynamically from your payload.
For the former, your give
message:interface_name ,etc
and for the payload part you give,
Payload: "your element root which u wanna acecss"
Just check this link out,
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
And read the contents under variable substitution and it will help you understand the concepts better.
If you have any clarifications, do get back,
Regards,
Bhavesh
Maybe you are looking for
-
How to get Canon 510HS to connect by WiFi to iPhoto
Prior to updating OSX to 10.8.4 I had no trouble connecting my Canon 510HS to iPhoto via WiFi. I would: Open iPhoto Select the access point on the ixus **then the camera would show up as a device within iPhoto** However, now that I have updated to 1
-
Refresh button deleted by mistake
First, my thanks to Dave Sawyer for answering my help plea so quickly and directing me here to ask my question. My question is how do I get the refresh button (which I accidently deleted) back on Safari? Thank's in advance, Tessie2
-
Hello everybody, I would like to know if there is any way of changing the owner of a broadcaster setting. I am the presently the owner of the settings and would like to transfer it to someone else (the client would like to keep the same technical na
-
Equivalent application of bigbrothergps for iphone
this is an open-source android app, that keeps sending your gps data to a web server of your choice. http://bk.gnarf.org/creativity/bigbrothergps/ the protocol is very simple, and you can customize the web server application to your needs. is there a
-
i updated to ios7 now i cant download new apps. what should i do?