Creation flat file, metacols without quotes
Hello,
I created a flatfile by using flat file gg adapter. But in the flat file, all the character metacols are between quotes. I need a flat file without quotes.
In the ffwriter.properties file
dsvwriter.dsv.quotes.chars=
dsvwriter.dsv.quotes.escaped.chars=
With the modification above, I could remove quotes from table columns but not from metacols. Is there anybody who knows how to remove quotes from metacols?
Thnx
Hello,
I created a flatfile by using flat file gg adapter. But in the flat file, all the character metacols are between quotes. I need a flat file without quotes.
In the ffwriter.properties file
dsvwriter.dsv.quotes.chars=
dsvwriter.dsv.quotes.escaped.chars=
With the modification above, I could remove quotes from table columns but not from metacols. Is there anybody who knows how to remove quotes from metacols?
Thnx
Similar Messages
-
Upload table with a flat file Once - without program
Hello,
I know that it is possible to upload a Z table from a flat file. (without program)
I do not have a problem with this table. I manage a maintenance view (SM30) and I can thus enter one by one a recording in this table and to put it in an transport request(R3TR-TABU)
I would like to enter all the recordings only one (with a file.)
I know that it is possible... but how???
Thank you to help me.
ServaneThe only other way I know how to put table entries in is thru SE11 Utitlties>Table Contents->create entries. But this does not allow to be uploaded via file.
Regards,
Rich Heilman -
Problem while writing to fixed length flat file from xml
Hi,
I have a problem in writing data into a flat file of fixed length...
My input is a xml file and i want the output as a flat file. I am successful in converting the xml into flat file... But the main problem is, i am unable to insert spaces in between my fields in the flat file.
The data in the flat file comes without spaces... Any suggestions on writing the schema...
Regards
Surya.Have a look at this doc
http://otndnld.oracle.co.jp/document/products/as10g/101310/doc_cd/integrate.1013/b28994/nfb.htm#BGBBAJFD
your element should be something like this, it pads with a space using the paddedBy expression
<xsd:element name="C1" type="xsd:string" nxsd:style="fixedLength" nxsd:length="4" nxsd:paddedBy=" " nxsd:padStyle="tail" />if having trouble post what you want the file to look like, and the xsd you are using.
cheers
James -
Sender file Adapter without Key field
my File structure will be as follows
<HEADER>
<DATA1>
<DATA2>
<DATA3>
<HEADER>
<ITEM>
<ITEM1>
<ITEM2>
<ITEM3>
<ITEM>
WHERE i do have flat file will be as follows
10001,20081902,US
10,soda,1
30,soda,4
40,soda,5
10002,20081902,US
10,steel,1
30,steel,4
40,steel,5
how to pick this file using FCC from sendere flat file adapter without keyfields , and i can use fixed length alsoHi,
with multiple nodes structure( like header and item in your case) you need to have a key field to process this file to a desidered structure using FCC.
Alternatively you can pick all these records as a single node type and classify it as header/items in your mapping by identifiing how each one differs frm other.
~SaNv... -
Create a flat-file upload for a BO XAI Inbound Service?
Hello all,
If we don't have a schema defined for a BO XAI Inbound Service, how can we create the XSL and the flat-file upload schema file for it.
Any advice?
Regards,
KerrI don't have problem to create the XSLT mapping.
But because it is to create a flat-file upload for a Business Object XAI Inbound Service, it doesn't have a schema on the server as to the thread Create Schema for Business Object to use for XAI Inbound Service?
And I can't create that flat-file upload without a schema on the server.
Or I can use the BO XAI Inbound Service WSDL instead to create the mapping for the flat-file upload.
Regards,
Kerr -
Creating JCo IDoc from flat file structure
Hi,
I need to send an IDoc into SAP using JCo.
The input to my program is a string containing lines representing a flat file idoc, e.g.
Line 1="EDI_DC40 2 ORDERS04.."
Line 2="E1EDK01 00000100000001 USD..."
Line 3="E1EDK14 0000030000000...."
Is there a simple way to use JCo to create & send the IDoc?
i.e.
1) If I use JCo and RFC IDOC_INBOUND_ASYNCHRONOUS, what would be all the steps/calls to SAP (create TID, call IDOC_INBOUND_ASYNCHRONOUS, confirm TID..?)
And can IDOC_INBOUND_ASYNCHRONOUS be called using the flat file structures (without having to map to all the JCo ParameterList fields)? Since the flat file structures are in the format required by the RFC, just in one long string.
Line 1=>IDOC_CONTROL_REC_40
Lines 2..n=>IDOC_DATA_REC_40
2) Similarly, if I were to use JCo plus the JCO IDoc library, is there a way to pass the flat file structures without having to do all the mapping to segment fields?
3) Other options..?
I want to use ALE to SAP, not files, even though the input is in the flat file structure.Your reply gives a link to the general JCo documentation.
It doesn't give ideas on how to call an RFC or IDoc from JCO without mapping each and every field from a flat file structure.
I'm looking for a way to do something like this:
Function IDOC_INBOUND_ASYNCHRONOUS has table parameters
IDOC_CONTROL_REC_40 STRUCTURE EDI_DC40
IDOC_DATA_REC_40 STRUCTURE EDI_DD40
Since I have the flat file representation of the IDoc, the first line should overlay exactly onto the EDI_DC40 structure. And the subsequent lines should overlay onto EDI_DD40. (all fields in this RFC are strings)
However JCO and JCO IDoc library seem very strongly typed, so it looks like I would have to map each field from the flat file structure to a field in the JCO Function or JCO IDoc object.
This could be done in a generic way using the function/idoc metadata, however there would still be some overhead.
Is there a way to get round this, and build the function/idoc treating its parameters as one long string? -
Flat File Active Sync doesn't work for account creation without unique id
Hi,
I'm trying to set up a FlatFileActiveSync for creation and update of accounts in IDM 7.0. I've followed the below steps for this purpose :-
1) Create a correlation rule (confirmation rule not reqd in my case).
2) Create a proxy admin and assign him a empty form. Also give him control over Top organisation.
3) Create a Flat-File Resource Adapter.
4) Create ActiveSync input form using the (Active Sync) wizard.
5) Start Active Sync...
My feed file contains only 3 fields firstname, lastname, email Id.
My correlation rule has the logic of matching up with IDM accounts(Lighthouse accountId) by taking first letter of firstname and concat with lastname from the data coming from feed file.
Now everything works fine for account updates i.e. if I change somebody's email Id who already exists in IDM I can actually see the changed email Id in Configurator's console.
But if I put in a record that doesn't exist, and which I expect to be created, it gives me an error.
Although, if I introduce a unique identifier in my feed file and link it with Lighthouse.accountId the account creation works fine.
Is this a limitation or I'm not doing something right ?
Exception I saw in resource log with log level 4 :
2007-04-30T10:02:12.291-0400: Error Processing Line: {lastname=Pogu, firstname=Gogu, [email protected]}
com.waveset.adapter.iapi.IAPIException: There was a conflict with the record [{lastname=Pogu, firstname=Gogu, [email protected]}]
and no resolution process has been specified on the adapter.
It is recommended that you define the process for handling unmatched accounts
on this load process.
2007-04-30T10:02:12.292-0400: Poll complete.
2007-04-30T10:02:12.292-0400: SARunner: loop 1076
2007-04-30T10:02:12.314-0400: Started, paused until Mon Apr 30 10:07:12 EDT 2007
2007-04-30T10:07:12.024-0400: Pause completed
2007-04-30T10:07:12.038-0400: Polling
2007-04-30T10:07:12.056-0400: Error Processing Line: {lastname=Poker, firstname=Hoker, [email protected]}
com.waveset.adapter.iapi.IAPIException: There was a conflict with the record [{lastname=Poker, firstname=Hoker, [email protected]}]
and no resolution process has been specified on the adapter.
It is recommended that you define the process for handling unmatched accounts
on this load process.That logic is in my correlation rule as I specified in my initial post and here's the XPRESS code for it :-
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE Rule PUBLIC 'waveset.dtd' 'waveset.dtd'>
<!-- MemberObjectGroups="#ID#Top" description="Find out if a resource account is correlated to an IDM account" id="#ID#D23CC16ECF6E5D42:-4527465C:11224925657:-769F" lastMod="61" lastModifier="Configurator" name="HR_DB_CORR" subtype="SUBTYPE_ACCOUNT_CORRELATION_RULE"-->
<Rule subtype='SUBTYPE_ACCOUNT_CORRELATION_RULE' id='#ID#D23CC16ECF6E5D42:-4527465C:11224925657:-769F' name='HR_DB_CORR' creator='Configurator' createDate='1177449448746' lastModifier='Configurator' lastModDate='1177686884156' lastMod='61'>
<Description>Find out if a resource account is correlated to an IDM account</Description>
<cond>
<and>
<notnull>
<ref>firstname</ref>
</notnull>
<notnull>
<ref>lastname</ref>
</notnull>
</and>
<block>
<concat>
<substr>
<ref>firstname</ref>
<i>0</i>
<i>1</i>
</substr>
<ref>lastname</ref>
</concat>
</block>
<s>false</s>
</cond>
<MemberObjectGroups>
<ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
</MemberObjectGroups>
</Rule>
Although this is not specified in Active Sync input form but in the correlation rule attribute of Active Sync config (using the wizard). Do I need to specify it there using the Field function.
Also, I figured out today that I needed to restart IDM instance after changing the value of "Create Unmatched Accounts" flag and now the error is as below :-
<WavesetResult>
<ResultItem type='error' status='error'>
<ResultError throwable='com.waveset.util.WavesetException'>
<Message id='SES_VIEW_CHECKIN_ERROR'>
</Message>
<StackTrace>com.waveset.util.WavesetException: Unable to checkin view. No account ID specified.
	at com.waveset.view.UserViewer.checkinView(UserViewer.java:1165)
	at com.waveset.object.ViewMaster.checkinView(ViewMaster.java:727)
	at com.waveset.sync.IAPIUserImpl.processCommand(IAPIUserImpl.java:526)
	at com.waveset.sync.IAPIUserImpl.submitCreate(IAPIUserImpl.java:195)
	at com.waveset.sync.IAPIUserImpl.submit(IAPIUserImpl.java:749)
	at com.waveset.adapter.FlatFileActiveSyncAdapter.processLine(FlatFileActiveSyncAdapter.java:404)
	at com.waveset.adapter.FlatFileActiveSyncAdapter.processFlatFile(FlatFileActiveSyncAdapter.java:350)
	at com.waveset.adapter.FlatFileActiveSyncAdapter.poll(FlatFileActiveSyncAdapter.java:307)
	at com.waveset.task.SARunner.doRealWork(SARunner.java:288)
	at com.waveset.task.Executor.execute(Executor.java:154)
	at com.waveset.task.TaskThread.run(TaskThread.java:132)
</StackTrace>
</ResultError>
</ResultItem>
</WavesetResult> -
Data Source creation for Master Data from Flat File to BW
Hi,
I need to upload Master Data from Flat File. Can anybody tell step by step right from begining of creation of DataSource up to Loading into Master Data InfoObject.
can any body have Document.
Regards,
Chakri.Hi,
This is the procedure.
1. Create m-data with or without attributes.
2. Create infosource .
a) with flexible update
or
b) with direct update
3. Create transfer rules and assign tyhe names of m-data and attribute in "Transfer rules" tab and transfer them to communication structure.
4. Create the flat-file with same stucture as communication structure.
5. if chosen direct update then create infopackage and assign the name of flat-file and schedule it.
6. if chosen flexible update the create update rule with assigning name of the infosource and the schedule it by creating infopackage.
Hope this helps. If still have prob then let me know.
Follow this link also.
http://help.sap.com/saphelp_nw2004s/helpdata/en/b2/e50138fede083de10000009b38f8cf/frameset.htm
Assign points if helpful.
Vinod. -
Export table data in a flat file without using FL
Hi,
I am looking for options where I can export table data into a flat file without using FL(File Layout) i.e., by using App Engine only.
Please share your experience if you did anything as this
ThanksA simple way to export any record (table/view) to an csv fiel, is to create a rowset and loop through all record fields, like below example code
Local Rowset &RS;
Local Record &Rec;
Local File &MYFILE;
Local string &FileName, &strRecName, &Line, &Seperator, &Value;
Local number &numRow, &numField;
&FileName = "c:\temp\test.csv";
&strRecName = "PSOPRDEFN";
&Seperator = ";";
&RS = CreateRowset(@("Record." | &strRecName));
&RS.Fill();
&MYFILE = GetFile(&FileName, "W", %FilePath_Absolute);
If &MYFILE.IsOpen Then
For &numRow = 1 To &RS.ActiveRowCount
&Rec = &RS(&numRow).GetRecord(@("RECORD." | &strRecName));
For &numField = 1 To &Rec.FieldCount
&Value = String(&Rec.GetField(&numField).Value);
If &numField = 1 Then
&Line = &Value;
Else
&Line = &Line | &Seperator | &Value;
End-If;
End-For;
&MYFILE.WriteLine(&Line);
End-For;
End-If;
&MYFILE.Close(); You can of course create an application class for generic calling this piece of code.
Hope it helps.
Note:
Do not come complaining to me on performance issues ;) -
Creation of Inbound IDOC from a flat file.
Hi all,
I hav to create Purchse Order using inbound IDOC in which I hav to take data from a .xls or any flat file.
Can any one help me with this. i.e wat r the steps involed to do so.
Regards.
RahulHello,
Why do u want to create a Idoc for creating PO from flat file - you can simply use BAPI. Ok if you want to create PO only using Idoc.
I think message type is ACC_PURCHASE_ORDER0.
I just made one sample program to you how to create a PO with Idoc method. Here i am doing for Material Master Creation. Let me know if want any clarification.
********Poorna********
TABLES : MARA, MAKT, EDP13.
DATA : I_EDIDC LIKE EDIDC OCCURS 0 WITH HEADER LINE,
I_EDIDD LIKE EDIDD OCCURS 0 WITH HEADER LINE.
PARAMETERS : P_MATNR LIKE MARA-MATNR.
START-OF-SELECTION.
REFRESH I_EDIDC.
SELECT * FROM EDP13 WHERE MESTYP = 'ZMATMASTER'.
MOVE-CORRESPONDING EDP13 TO I_EDIDC.
I_EDIDC-IDOCTP = EDP13-IDOCTYP.
APPEND I_EDIDC.
ENDSELECT.
READ TABLE I_EDIDC INDEX 1.
I_EDIDD-SEGNAM = 'ZMATMASTER'.
SELECT SINGLE * FROM MARA WHERE MATNR = P_MATNR.
SELECT SINGLE * FROM MAKT WHERE MATNR = P_MATNR
AND SPRAS = SY-LANGU.
I_EDIDD-SDATA+0(18) = MARA-MATNR.
I_EDIDD-SDATA+18(40) = MAKT-MAKTX.
I_EDIDD-SDATA+58(4) = MARA-MTART.
I_EDIDD-SDATA+62(1) = MARA-MBRSH.
I_EDIDD-SDATA+63(3) = MARA-MEINS.
APPEND I_EDIDD.
CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
EXPORTING
master_idoc_control = I_EDIDC
OBJ_TYPE = ''
CHNUM = ''
tables
communication_idoc_control = I_EDIDC
master_idoc_data = I_EDIDD
EXCEPTIONS
ERROR_IN_IDOC_CONTROL = 1
ERROR_WRITING_IDOC_STATUS = 2
ERROR_IN_IDOC_DATA = 3
SENDING_LOGICAL_SYSTEM_UNKNOWN = 4
OTHERS = 5
COMMIT WORK.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
SSIS 2012 - Double quote charcter in data does not allow to load flat file to source component
Hello everyone,
I've created a source component for flat file data.
This file contains data the column data in double quotes. Like,
First Name Last Name
"Ankit" "Shah"
The text qualifier is double quote for source file connection.
When I do have data like below, it does not able to load the source file. And throws an error "The column delimiter for column was not found"
First Name Last Name
"Ank"it" "Shah"
Can anybody please advise how to resolve this problem?
Any help would be much appreciated.
Thanks,
Ankit
Thanks, <b>Ankit Shah</b> <hr> Inkey Solutions, India. <hr> Microsoft Certified Business Management Solutions Professionals <hr> http://ankit.inkeysolutions.comPlease refer:
http://visakhm.blogspot.com/2014/06/ssis-tips-handling-embedded-text.html
http://www.ideaexcursion.com/2008/11/12/handling-embedded-text-qualifiers/
Cheers,
Vaibhav Chaudhari
[MCTS],
[MCP] -
Orders creation from flat file
experts
I am having a flat file like below
hd ponumber customer number podate delivery date
it material1 materialtext quantity price plant
it material2 materialtext quantity price plant
it material3 materialtext quantity price plant
hd ponumber customer number podate delivery date
it material1 materialtext quantity price plant
it material2 materialtext quantity price plant
it material3 materialtext quantity price plant
so here hd represents the header data and it represents the item data for the above header.
so in above i am having 2 sales orders data.
the only way that i can distinquish is with the field hd and it ie what is header and what is item.
I want to pass only one set of data to the idoc function to create the order.
so i want to pass the header and relevant item info.
my itab internal table is having all the data in the above format.
loop at itab into waitab.
*at end of field1 " is not working
here i will be populating the header and item data to create one sales order.
endloop.
so please tell me how to pass at a time one set of data ie header data and relevant item data then next time again header and relevant item data. please help
this is similar to below theread, but belwo theread is using po number but here i dont have that sepearation
order creation logic how to pass line itemshd ponumber customer number podate delivery date
it material1 materialtext quantity price plant
it material2 materialtext quantity price plant
it material3 materialtext quantity price plant
hd ponumber customer number podate delivery date
it material1 materialtext quantity price plant
it material2 materialtext quantity price plant
it material3 materialtext quantity price plant
Hi,
Can u try thsi logic.
DATA : L_CNT TYPE I VALUE 1,
ITAB_TEMP AS SAME STARUCTRE OF ITAB.
LOOP AT ITAB INTO WA_ITAB FROM INDEX 1.
IF WA_ITAB+0(2) EQ 'HD'.
L_CNT = L_CNT +1
ENDIF.
IF L_CNT EQ 2
hd ponumber customer number podate delivery date
it material1 materialtext quantity price plant
it material2 materialtext quantity price plant
it material3 materialtext quantity price plant
APPEND THIS DATA TO TEMP TABLE.
ELSEIF L_CNT EQ 3
WE WONT APPEND DATA TO TEMP TABLE.
PROCESS TEMP DATA TO IDOCS.
DELETE ITAB FROM TEMP ITAB . " SO IN ORIGINAL ITAB WE WONT HAVE FIRST ORDER ITEM DETAILS.
REFREST TEMPITAB.
ENDLOOP.
ENDIF.
if u have any further issues u can try while looping itab use sy-tabix appropriately.
Regards,
BSVASU. -
IDOC to flat file without XML conversion
Hi,
I want to implement a scenario like this:
IDOC --> XI --> flat file
The flat file has to have the IDOC structure as you have when you write an IDOC to the R/3 file port. But we want to have this process running through XI.
When you use the IDOC Adapter the IDOC is converted to XML first, which is time consuming. So this I want to skip this step.
So is it possible to receive the IDOC directly in XI without converting it to XML? How should this process be designed.
RonRon
Looks like you need IDOC tunneling. It is possible by making a configuration parameter.
You can find more information in http://help.sap.com/saphelp_nw04/helpdata/en/ab/bdb13b00ae793be10000000a11402f/content.htm
While you try it, I will try to simulate this requirement in our system and let you know the result.
KK -
Why transferstructure creation in the same sequence of Flat file?
Hello Guru,
why transferstructure creation in the same sequence of Flat file?Hi,
It is very simple see the following ex..
Transfer Structutre:
Material | Quantity
Flat File:
Quantity | Material
SO the mapping is like below:
Material-->Quantity
Quantity-->Material
So is it possible?. NO. SO you must follow the sequence.
Thanks
Reddy -
Load flat files in batch without storing files on application server
Hi SDN-ers
We would like to load flatfiles into BW in batch but .... and this is the tricky part, without storing the file on the application server. We are able to call remote function modules from outside the system so maybe we can attach the file as an internal table with a remote function call and post it in PSA. Anyone ever tried this ?
Thanks,
HansHi,
I would suggest to upload the data in flat file in a Database table in BW and then
create a generic extractor on top of it to load the data into Cube or ODS . In this
way you will have a copy of the data in files.
Regards,
Prakash
Maybe you are looking for
-
Selection from logical database.
The question is simple. =) Wy does the second part works but not the first one. Isn't it possible to do like that. Anyone that can help with how i can do? <b>Event : start-of-selection employees not connected to position</b> rp-provide-from-last p00
-
Is there a plug-in for Logic Pro that records all live output to disk?
Hi, I noticed Digidesign have a plug in called Flashback which literally records up to 15 minutes of the master audio output for all those 'happy accidents' or when you miss recording a genius solo because it was just a run-through. Is there anything
-
Bluetooth drivers driver for lion 10.7 OSX
I deleted my blue tooth drivers on accident and my key board and bluetooth device want work How do I reinstall the driver for lion 10.7 OSX?
-
ADF form login vs. press enter
I use the default ADF form login, however, it requires a mouse click, and not responding to the "press enter/return". Any idea? Thanks,
-
Downloading 11.1.3 issues
Okay, I am going to pull my freaking hair out!!! I am TRYING to get 11.1.3 on my computer and when i click save file and click for it to save the setup it doesn't save!!!! WHY IS THIS HAPPENING? help, please. I've done it about 100 times and nothing