Substitution parameter in File format
Hi Experts,
I had defined substitution parameter as [$$gv_xxx_dir] as '\\\abc\def\cca\sample\Test'. When I specify the substitution parameter as root directory in file format input BODS job is taking the path of the directory as '///abc/def/cca/sample/Test' and job is not able to access file. Can you please let me know how we can specify substitution parameter in root directory.
Thanks in Advance,
Hi Pan,
Check if your substitution parameter is pointing to the right folder with the below statement, to make sure if it is pointing correctly.
$$CheckFileLocation : //home/bodi/Folder/Sub_Folder
print(exec('ls','-l [$$CheckFileLocation]'));
To check if it is accessing the file correctly
$$CheckFileLocation : //home/bodi/Folder/Sub_Folder/FileName.txt
print(exec('ls','-l [$$CheckFileLocation]'));
--Cheers
Similar Messages
-
Dynamic File Name as source file format
Hi Experts,
I have to load daily Excel Workbook to HANA.
Files will come to shared Folder in BODS Job Server in the format 'FILE_NAME_<DAYMONYYYY>'.xlsx format.
Everyday the file name will be appended with System Date Format.
Example: 'FILE_NAME_17JUL2014.xlsx', 'FILE_NAME_18AUG2014.xlsx' etc.
I tried to achieve it by creating a substitution parameter and using it to dynamically define file name.
But I am not able to define the parameter correctly. (screenshot attached).
Please advise where I am doing wrong. Is there any better way to achieve it.
Thanks,Hi Bala,
Thanks for your suggestion.
For a test I have created
1. A Flat File named "FLAT_FILE_2014.txt".
2. A Global Variable $G_FILE_NAME as varchar(18) and value 'FLAT_FILE_'||Year(sysdate())||'.txt'.
3. Used it in the File Name for File Format.
Below is the result:
When I hard-code the file name as "FLAT_FILE_2014.txt", I am getting the data Preview.
But When I am using global variable $G_FILE_NAME, I am not getting the data Preview.
Please check attached "C.png"
Please suggest.
Thanks,
Krishnendu. -
Save as file format CSV in Excel
Does anyone know the correct syntax on this one?
I have an excel file which should be saved as CSV.
This is what I came up with, but it doesn't run.
tell application "Microsoft Excel"
activate worksheet "worksheet1"
set fileSaveName to get save as file format CSV file format filename
save as filename fileSaveName
if fileSaveName is not "" then
display dialog "Save as " & fileSaveName
end if
end tellIt's not surprising it doesn't run but that's not entirely your fault. Excel has pone of the funkiest dictionaries around - I think they forgot to read the AppleScript Implementor's guide and instead tried to bolt VB on instead.
Anyway, I digress...
I'm not sure what you expect this line to do:
set fileSaveName to get save as file format CSV file format filename
but it's completely invalid. For one, save as is a command verb, not a function, so you cannot get save as.
If you read the dictionary for Excel's save as command you'll find:
save as sheet ¬
filename unicode text ¬
file format as ¬
password unicode text ¬
write reservation password unicode text ¬
read only recommended boolean ¬
create backup boolean ¬
add to most recently used list boolean ¬
overwrite boolean ¬
save as local language boolean
so the first, required, parameter is the sheet to save followed by any number of the optional parameters. Given the above, I'd expect your script to look more like:
tell application "Microsoft Excel"
save as worksheet "worksheet1" file format CSV file format filename "whatever.csv"
end tell
which is completely bass-ackwards, if you ask me, but that's how it goes. -
File formats for uploading/download
Hi Experts,
Loading of data(master/transaction) involved two steps.
1. Loading file to Data files folder .
2. From Data file folder to BPC application.
For step1, what are BPC allowed file formats? Is it only .txt & .csv?
For step2 , what are BPC allowed file formats?
For downloading data from BPC to flat files, what are allowed file formats?
thanx,Hi,
You should be able to check the DEFAULT_EXTENSIONS parameter in the application set parameters to see what is allowed and control allowed file types. You can see the documentation on this topic here: [http://help.sap.com/saphelp_bpc75_nw/helpdata/en/f7/d21edd2f4c4f78b0a5be2b16e19ca1/frameset.htm]
As far as file types for export, this is determined by the data manager package exporting the data. I believe the delivered data manager packages usually export in a CSV format with a file extension of your choosing, but a custom package could export data in any format required.
Ethan -
Variable substitution parameter
Hi All,
I have a scenario where in i am creating a flat file . File name is being taken from the payload using variable substitution parameter . But while wrting to a file , i need to make sure that File name doesnt get written in the file .
Is there anyway i can avoid filename getting written into the file.
Regards
Vinay P.Hi,
You can Use ASMA Properties of file adapter .
Step 1. Create UDF with following code.
try
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String MyFileName = "_ASMA.txt";
conf.put(key, MyFileName);
return MyFileName ;
catch(Exception e)
String exception = e.toString();
return exception;
this is an example : Here i have Hard coded the File Name in MyFileName String.
If You Want file name from Target Message Type , Create your UDF as Parameterized UDF, and Pass Filename as argument to that Parameter
Step 2:
Map This Parameterised UDF Function to Root Node, so that it will return value to root node.
Step 3:
On Receiver adapter .
Tick the Set Adapter Specific Message Attribute on advanced Tab.
Step 4:
Tick File Name.
Rest is same....
I hope this will help you ...
Regards
Prabhat Sharma. -
Is there the way to use "Highlight File Format" with Acrobat Reader 9.0 or later?
hi
Do anyone know the way to use "Highlight File Format" with Acrobat Reader 9.0 later or substitutional way to highlight a PDF file as well as highlight file?
I want to highlight some words by indicating character's location(from n to m) using Acrobat Reader 6, 7, 8, and 9.
I use highlight xml file to highlight words in Acrobat 6, 7, and 8.
http://www.adobe.com/devnet/pdf/pdfs/HighlightFileFormat.pdf
According to this documents, "External Window Handler Plugin" is required to use highlight file.
But I cannot find this plugin in Acrobat Reader 9.
So Acrobat Reader doesn't recognize highlight file.
Well, I know that there is another way to highlight pdf file. It is called "PDF Open Parameters".
However this parameters cannot indicate location of characters but words which is to be searched.
This parameter does not work perfectly to substitute a highlight xml file.
To satisfy what i want to do, the best solution is that Acrobat Reader 9.0 recognizes highlight xml file.
But I think it is impossible because of lack of plugin.
Do anyone know the way to recognize a highlight xml file to 9.0 or another way to highlight some words?
thanks,
AsatamaxThe feature is disabled by default in reader 9
(1) Open Adobe Reader
(2) Click Edit > Preferences > Search, and
(3) check the box labelled Enable search highlights from external highlight server.
(response found here: http://support.dtsearch.com/dts0117.htm)
I can't imagine why Adobe choose to disable it. It's a bad joke for us at UNESCO (http://unesdoc.unesco.org) -
*****output File format
Hi all,
Instead of Time stamp in the out put file ,we require the out put file format as xyz_a.txt,xyz_b.txt.......
eg:file name sample.txt out put required is sample_a,sample_b,sample_c......
is it possible in Xi?
Thanks,
SrinivasaHi,
Yes, you need to use variable substitution
http://help.sap.com/saphelp_nwpi71/helpdata/en/44/6a316af5a23672e10000000a114a6b/frameset.htm
Filename : sample_%var%.txt
Keep the mode as Create
The value of Var will be made a, b, or c in message mapping.
also if you want to name the target file as the one which you have read you can make use of Dynamic configuration, as mentioned here (See adapter specific identifiers)
http://help.sap.com/saphelp_nwpi71/helpdata/en/44/69d7cfa4b633eae10000000a1553f6/content.htm
Regards
Suraj
Edited by: S.R.Suraj on Oct 7, 2009 4:55 AM -
Hi Experts,
After succesful integration of SAP retail and SAP POS, i am recieving Idoc details in (from PI)file format that need to be converted in ASCII before it is send to xpress server parm folder,To obtain all detail in store manager i am facing some challenges:
1) Do we need to covert the file into ascii format each time manually?
2) Even after converting the file to ascii manually when i am posting the file to parm folder(xpress server) it is not fetching the whole data ,do we have to do some more changes to the converted ASCII file?
3) The file that we recieve from PI are of diffrent name for eg.FlatFileGMDeptTxn ,FlatFileGMGroupTxn etc but the xpress server understand Dept.asc and Group.asc,so is their any way so that we can change the file format and change the name of the file automatically?
suggest me if there is any other way we can do the process more effectively.
waiting for your help
regards
abhishek
Edited by: abhishek011 on Jul 14, 2009 1:24 PMHi Abishek,
please check the following in your Communication Channels:
This is how it should look. (I take the PLUTXN Channel for this example)
Under File Access Parameters:
Create Target Directory has to be flaged
File Name Sheme : %file%.asc
Variable Substitution has to be enabled.
In the box below this check box you need the following
Variable Name / Reference
file / payload:GMPLuTXN,1,Header,1,FileName,1
dir / payload:GMPLuTXN,1,Header,1,StoreNumber,1
Regards
Sascha
Edited by: Sascha Martin on Jul 15, 2009 9:00 AM -
Convert file format into UTF-8 while generating text file on FTP server
Hi Expert,
I have the requirement to generate text file store it in FTP server and file format should be in UTF-8.
ABAP Development is completed but text file format generate in ANSI which not acceptable by client.For generating text file and store it on FTP server by using standard function module FTP_R3_TO_SERVER ,but in this function module there is no any parameter option like CODEPAGE for file format conversion. Is there any method or any function module to convert file format to UTF-8 and directly transfer or store it on FTP server.
<<removed_by_moderator>>
Thanks ,
Edited by: Vijay Babu Dudla on Jan 28, 2009 12:48 AMI have come across the same issue. Try calling the FTP_COMMAND function module to make it go into ASCII mode before your FTP the file, like this:
data: result type table of text with header line.
call function 'FTP_COMMAND'
exporting
handle = hdl
command = 'ascii'
tables
data = result
exceptions
tcpip_error = 1
command_error = 2
data_error = 3.
call function 'FTP_R3_TO_SERVER'
exporting
handle = hdl
fname = docid
character_mode = 'X'
tables
text = gt_your_table . -
Acrobat PDF FIle Format is having difficulties...
I've got an error that appears pretty reliably. I open a multi-page PDF file in Illustrator, choosing one page to edit. I save that page with a new name as a PDF file, and that works fine. Now, if I edit the file at all and save it again, I get "Acrobat PDF File Format is having difficulties. Bad parameter." And there's no way to save the file.
If I close without saving and open the single-page PDF file again, it usually behaves well. But any time I get that message I lose all of the unsaved changes and have to repeat them.
I'm using CS3, version 13.0.2. OS 10.4.10. Any assistance is appreciated...
RodneyI've had the same problem in various versions of Illustrator on the Mac, up to and including CS3. Based on the previous comment, this appears to happen only if your Illustrator document starts life as a generic PDF file. So this is my solution (which worked today for me).
Make sure all layers are visible and unlocked.
Copy all your artwork to the clipboard (Select -> All then Edit -> Copy, or cmd-A then cmd-C)
Create a new document with the same dimensions as your original one.
Show the layers palette, and choose "Paste Remembers Layers" from the popup menu.
Paste your artwork into the new document (Edit -> Paste or cmd-V)
Save the new document.
You should be able to edit and re-save the new document whenever needed after that, although you may find that the file is larger than the original one. -
File Format options not appearing in the Save As dialog box - InDesign CC
So i was working with a legacy file (an .eps from illustrator4) that i placed into InDesign CC, and when i went to export as a jpg, the option to choose a different file format from the bottom of the dialog box was gone. Did i hit some crazy shortcut to remove the options, or is this a bug that occurs when working with certain legacy files? I've restarted InDesign, rebooted my laptop, deleted my Adobe preferences, reset my adobe warning dialogs, and I still cant export or save as any other file format because the option doesnt appear. And it doesnt matter if i create a new file or open an existing one. Please help. See the pic below. No option for file format on the bottom of the dialog box.
Thank you very much!
Reinstalling worked, but i'd still kinda like to know what caused this problem & if this will continue to happen. To me, reinstalling is pretty much like having to reboot anytime you go to IT -- they dont know what the problem is, they just know how to fix/stop it. -
Duplicate File Format options in Save As Dialog
I am getting duplicate file format options in my save as dialog. I am running photoshop 12.0.1 on mac os x 10.6.4.
Thanks for the answer, I have the same problem, happened after I uninstalled CS4, (using cs5 now) however I can't seem to find where the duplicates are located. Any tips as to where I should look?
Thanks in advance! -
How to export table contents in xml file format through SQL queries
hi,
i need to export the table data in to xml file format. i got it through the GUI what they given.
i'm using Oracle 10g XE.
but i need to send the table name from Java programs. so, how to call the export commands from programming languages through. is there any sql commands to export the table contents in xml format.
and one more problem is i created each transaction in two tables. for example if we have a transaction 'sales' , that will be saved in db as
sales1 table and sales2 table. here i maintained and ID field in sales1 as PK. and id as FK in sales2.
i get the combined data with this query,
select * from sales1 s1, sales2 s2 where s1.id=s2.id order by s1.id;
it given all the records, but i'm getting two ID fields (one from each table). how to avoid this. here i dont know how many fields will be there in each table. that will be known at runtime only.
the static information is sales1 have one ID field with PK and sales2 will have one ID filed with FK.
i need ur valuable suggestions.
regards
pavan.You can use DBMS_XMLGEN.getXML('your Query') for generating data in tables to XML format and you can use DBMS_XMLGEN.SETROWSETTAG to change the parent element name other wise it will give rowset as well as DBMS_XMLGEN.SETROWTAG for row name.
Check this otherwise XMLELEMENT and XMLFOREST function are also there to convert data in XML format. -
ABAP to XML file - Formatting problem and UTF-8 requirement
Hi Everyone,
Could you please guide us on the ABAP coding required to get the proper XML file format. We have prepared the code for downloading SAP transaction data into an XML file format. However, we are stuck with an improper format as per Example 1.
The file format we get is this:
Example 1:
<?xml version="1.0"?><FDXLMDOrd><FXNHdrLp><CrtDtTm>20070613094517</CrtDtTm><MsgID>319304155</MsgID><MsgTyp>850</MsgTyp><MsgSubTyp>SALES_A</MsgSubTyp><Pr
<RcvTP>FSCS</RcvTP><SndSrc>FXN</SndSrc><RcvSrc>EIB</RcvSrc><UsrID>VAR</UsrID></FXNHdrLp><OrdHdrLp><OrdNbr>319304155</OrdNbr><OrdActnCD>9</OrdActnCD><Ord
teCarrReq>FDE</RteCarrReq><RteTptSvcReq>FEIP</RteTptSvcReq></DprtRteLp><SpecInstrLp><SpecInstrTyp>SHIP</SpecInstrTyp><SpecInstr>Example Packing Instruct
les Order</RefDesc></RefLp><RefLp><RefIDQual>CPO</RefIDQual><RefID>test 1 line 1 pc - s</RefID><RefDesc>Customers Customer Purchase Order</RefDesc></Ref
Typ><EntIDQual>91</EntIDQual><EntID>H00092</EntID><EntNm>VLAD BOBES</EntNm><Cty>MONTREAL</Cty><PstlCD>H3X 2N5</PstlCD><RgnalCD>QC</RgnalCD><CtryISOCD>CA
></AdrLnLp><ConLp><ConTypCD>IC</ConTypCD><ConNm>VLAD BOBES</ConNm><CommLp><CommNbrQual>TE</CommNbrQual><CommNbr>514-731-8361</CommNbr></CommLp></ConLp><
<Cty>MONTREAL</Cty><PstlCD>H3X 2N5</PstlCD><RgnalCD>QC</RgnalCD><CtryISOCD>CA</CtryISOCD><AddlNmLp><AddlNm1>VLAD BOBES</AddlNm1></AddlNmLp><AdrLnLp><Str
However, the format need to look like this as in Example 2 below.
We also need help in how to get " encoding="UTF-8"?> " as part of the file format.
Example 2:
<?xml version="1.0" encoding="UTF-8"?>
<FDXLMDProdRcpt>
<FXNHdrLp>
<CrtDtTm>20070612151817</CrtDtTm>
<SessID>26796</SessID>
<MsgTyp>861</MsgTyp>
<MsgSubTyp>WRE_A</MsgSubTyp>
<PrcsingPrty>5</PrcsingPrty>
<SndTPQualCD>ZZ</SndTPQualCD>
<SndTP>FSCS</SndTP>
<RcvTPQualCD>ZZ</RcvTPQualCD>
<RcvTP>EIB</RcvTP>
<SndSrc>YANTRA</SndSrc>
<RcvSrc>EIB</RcvSrc>
<UsrID>VAR</UsrID>
</FXNHdrLp>
<ProdRcptHdrLp>
<ShpID>VAR20070612NCHIC1</ShpID>
<ShpTyp> </ShpTyp>
<ShpActnCD>00</ShpActnCD>
<InTransMrgTyp> </InTransMrgTyp>
<ShpVolUOM>CI</ShpVolUOM>
<ShpWgtUOM>LB</ShpWgtUOM>
<ShpTotVol>310022.00</ShpTotVol>
<ShpTotWgt>861.00</ShpTotWgt>
<DtTmLp>
<DtTyp>050</DtTyp>
<DtTmQual>501</DtTmQual>
<DtTm>2007-06-12T15:07:41-04:00</DtTm>
</DtTmLp>
<AdrLp>
<EntTyp>RC</EntTyp>
<EntIDQual>93</EntIDQual>
<EntID>NCHIC</EntID>
<EntNm>NCHIC</EntNm>
<AutoCrtTrdPar>0</AutoCrtTrdPar>
<AutoCrtTrdParRole>0</AutoCrtTrdParRole>
<AutoUpdtTrdPar>0</AutoUpdtTrdPar>
</AdrLp>
<ProdRcptTptLp>
<TptIDQual>BOL</TptIDQual>
<TptSCAC> </TptSCAC>
<TptID> </TptID>
Thanks and Best Regards
SitaramanYou could try to use the following coding:
*& Report ZUS_SDN_UC_XML_TO_UTF8_TRANSF
REPORT zus_sdn_uc_xml_to_utf8_transf.
define local data
CONSTANTS:
gc_encoding TYPE string VALUE 'UTF-8'.
DATA:
gd_result type string,
go_ixml TYPE REF TO if_ixml,
go_stream_factory TYPE REF TO if_ixml_stream_factory,
go_encoding TYPE REF TO if_ixml_encoding,
go_resstream TYPE REF TO if_ixml_ostream.
DATA:
gt_knb1 TYPE STANDARD TABLE OF knb1,
gd_xml TYPE string,
gt_xml TYPE TABLE OF string.
START-OF-SELECTION.
SELECT * FROM knb1 INTO TABLE gt_knb1 UP TO 10 ROWS
WHERE bukrs = '1000'.
go_ixml = cl_ixml=>create( ).
go_stream_factory = go_ixml->create_stream_factory( ).
go_encoding = go_ixml->create_encoding( character_set = gc_encoding
byte_order = 0 ).
go_resstream =
go_stream_factory->create_ostream_cstring( gd_result ).
CALL METHOD go_resstream->set_encoding
EXPORTING
encoding = go_encoding.
XML Transformieren
CALL TRANSFORMATION id_indent
SOURCE itab = gt_knb1
RESULT XML go_resstream.
APPEND gd_result TO gt_xml.
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
BIN_FILESIZE =
filename = 'C:\temp\xml_to_utf8.txt'
FILETYPE = 'ASC'
APPEND = SPACE
WRITE_FIELD_SEPARATOR = SPACE
HEADER = '00'
TRUNC_TRAILING_BLANKS = SPACE
WRITE_LF = 'X'
COL_SELECT = SPACE
COL_SELECT_MASK = SPACE
DAT_MODE = SPACE
CONFIRM_OVERWRITE = SPACE
NO_AUTH_CHECK = SPACE
CODEPAGE = SPACE
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = SPACE
TRUNC_TRAILING_BLANKS_EOL = 'X'
IMPORTING
FILELENGTH =
CHANGING
data_tab = gt_xml
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
not_supported_by_gui = 22
error_no_gui = 23
OTHERS = 24.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
END-OF-SELECTION.
However, I like to mention that the file created from out ECC 5.0 (6.40, non-Unicode) contains a special character between the XML header and the data part (when displayed using NotePad Editor):
...xml version="1.0" encoding="utf-8"?>[special character]<asx:abap xmlns:asx="http://www.sap.com/a...
Using a HexEditor the special character (0x0A) is displayed as a dot.
Also Check with FM - TREX_TEXT_TO_UTF8
Reward Points if it is helpful
Thanks
Seshu -
I notice that when I publish locally to my hard drive to review a set of slides, I see a folder full of files. If I click on index.htm within the folder, I can launch the slides.
When I publish to the Adobe Connect Pro server, I merely see a url for the link to the course.
I'm not sure what this url link represents (as far as the file format is concerned):
Has the presentation been converted to different file format than what is published on my local drive? If so, what format is it in?
If the presentation has not been converted, does the directory structured published to my local drive get replicated on the Adobe Connect Pro server, and the url is merely a link to the "starting file " within that folder (say, index.htm)?The published output does not differ between publishing locally and publishing to Connect. The URL on the Connect server does, ultimately, point to the Index.htm or viewer.swf file.
Maybe you are looking for
-
Item text not getting copied into sales order from inbound Idoc
Hi All, I have a scenario where in we get the sales order created through a inbound 850 idoc . The trading partner sends the sales order information which gets through GENTRAN and gets posted as inbound idoc in SAP . The problem here is that ,there a
-
Setting up time machine on an external hard drive
I can't seem to back up my computer because when I plug in my external hard drive it doesn't come up as an option for the "time machine" when I am trying to set it up. I consider myself to be exceptionally technologically challenged, so any guidance
-
I can find update files for version 10 but not 9. Google search results that would seem to link to the download I need, get to a web page that says forbidden.
-
Security violation error (error code 2148532330) in Acrobat Pro XI with Windows 8
I have two certificates, physically residing on the same (Belgian) government issued smart card. One is labeled "Authentication" (Intended usage: sign transaction), and the other is labeled "Signature" (Intended usage: sign document). I have been try
-
Hi All, I am working on a report which display employee present or absent in the month. I have to display dynamic column as days varies as per month . I am done with the report design/query part, using matrix report layout. Report executes and produc