Upload bmecat xml into CCM / SRM 4.0
Hello,
I am trying to upload an bmecat XML file via XI into the SAP catalogue. I can fill the predifined characteristics with my XML file but I do not know how to create new characteristics.
Does anybody have an example XML file for new characteristics or a documentation for uploading?
If so please mail it to [email protected]
Thanks
Stefan
Hi Zeky,
Try GUI_UPLOAD method of the class CL_GUI_FRONTEND_SERVICES
or FM ALSM_EXCEL_TO_INTERNAL_TABLE
Please look at this threads too:
/people/thomas.jung3/blog/2004/09/02/creating-a-bsp-extension-for-downloading-a-table
Upload XLS file from Application server into internal table.
Regards,
Marcin Gajewski
please reward points for helpful answers
Similar Messages
-
Uploading an XML into SAP R/3
Hello,
I need one samll help regarding the function call. I want to upload an XML file to an R/3 database. My actual task is I have one file with xml format, having few records of purchage order, I dont know which function call I have to use to upload into my internal table, can you any body please help me in this regard?.
thanks in advance.
Cheers
MajjigapuHello,
you can use
cl_gui_frontend_services=>gui_upload
to upload
your xml file from the operating system to
an internal table in ABAP.
Next, you convert the internal table
into an xstring.
The iXML Toolkit ( XML parser for ABAP ) can transform
the internal table into a DOM ( programmatic API for
manipulating XML documents ).
Alternatively,
the statement
CALL TRANSFORMATION ID
SOURCE XML itab
RESULT l_struc.
will transform your XML document
into a local ABAP structure l_struc.
Regards,
Marc -
Upload an XML file into the Internal table
Hi Guys,
I want to know, how to upload an xml file into the Internal table through ABAP programmingyou just wanted to load the xml file into internal table (as a table of binary strings)or load the xml data mapped to itab row columns
for the first one you can simply use gui_upload
and for the second one you need to load the xml file using gui_upload and use XLST program to transform into an itab
Regards
Raja -
Uploading an XML file from SAP into third party URL
Hi,
I need to Upload an XML file from sap into Third party URL. Can any body tell me the possible ways in SAP to achieve this task. Also explain me the proceedure.
Thanks in advance.
-NamdevSorry. If they only said HTTP/HTTPS and didn't say explicitly web service, it means they don't want it.
One thing I'm not sure is, do you have an URL at the third-party system that you need to contact, or should you provide one at your SAP system that they will contact?
If it is the first one, to send an HTTP request to a given URL using ABAP, you'll find an example here: [SAP Library: Example Program: Executing an HTTP Request|http://help.sap.com/saphelp_nw70/helpdata/en/1f/93163f9959a808e10000000a114084/frameset.htm]
Sandra -
Reading XML file using BAPI and then uploading that xml file data into SAP
I am getting a xml file from Java server. I need to take
data from this file using BAPI and need to upload into SAP using SAP.
Please tell me how to read XML files using BAPI's.<b>SDIXML_DATA_TO_DOM</b> Convert SAP data (elementary/structured/table types) into DOM (XML
<b>SDIXML_DOM_TO_XML</b> Convert DOM (XML) into string of bytes that can be downloaded to PC or application server
<b>SDIXML_DOM_TO_SCREEN</b> Display DOM (XML)
<b>SDIXML_DOM_TO_DATA</b>
data: it_table like t001 occurs 0.
data: l_dom TYPE REF TO IF_IXML_ELEMENT,
m_document TYPE REF TO IF_IXML_DOCUMENT,
g_ixml TYPE REF TO IF_IXML,
w_string TYPE XSTRING,
w_size TYPE I,
w_result TYPE I,
w_line TYPE STRING,
it_xml TYPE DCXMLLINES,
s_xml like line of it_xml,
w_rc like sy-subrc.
start-of-selection.
select * from t001 into table it_table.
end-of-selection.
initialize iXML-Framework ****
write: / 'initialiazing iXML:'.
class cl_ixml definition load.
g_ixml = cl_ixml=>create( ).
check not g_ixml is initial.
write: 'ok'.
create DOM from SAP data ****
write: / 'creating iXML doc:'.
m_document = g_ixml->create_document( ).
check not m_document is initial.
write: 'ok'.
write: / 'converting DATA TO DOM 1:'.
CALL FUNCTION 'SDIXML_DATA_TO_DOM'
EXPORTING
NAME = 'IT_TABLE'
DATAOBJECT = it_table[]
IMPORTING
DATA_AS_DOM = l_dom
CHANGING
DOCUMENT = m_document
EXCEPTIONS
ILLEGAL_NAME = 1
OTHERS = 2.
if sy-subrc = 0. write 'ok'.
else. write: 'Err =', sy-subrc.
endif.
check not l_dom is initial.
write: / 'appending DOM to iXML doc:'.
w_rc = m_document->append_child( new_child = l_dom ).
if w_rc is initial. write 'ok'.
else. write: 'Err =', w_rc.
endif.
visualize iXML (DOM) ****
write: / 'displaying DOM:'.
CALL FUNCTION 'SDIXML_DOM_TO_SCREEN'
EXPORTING
DOCUMENT = m_document
EXCEPTIONS
NO_DOCUMENT = 1
OTHERS = 2.
if sy-subrc = 0. write 'ok'.
else. write: 'Err =', sy-subrc.
endif.
convert DOM to XML doc (table) ****
write: / 'converting DOM TO XML:'.
CALL FUNCTION 'SDIXML_DOM_TO_XML'
EXPORTING
DOCUMENT = m_document
PRETTY_PRINT = ' '
IMPORTING
XML_AS_STRING = w_string
SIZE = w_size
TABLES
XML_AS_TABLE = it_xml
EXCEPTIONS
NO_DOCUMENT = 1
OTHERS = 2.
if sy-subrc = 0. write 'ok'.
else. write: 'Err =', sy-subrc.
endif.
write: / 'XML as string of size:', w_size, / w_string.
describe table it_xml lines w_result.
write: / 'XML as table of', w_result, 'lines:'..
loop at it_xml into s_xml.
write s_xml.
endloop.
write: / 'end of processing'.
end of code
Hope this will be useful.
regards
vinod -
How to upload an XML file into another system
Hi friends,
I have a requirement where I need to upload an XML file into one system
which has been downloaded using another system.
I have tried using the method ' cl_gui_frontend_services=>gui_upload'
to upload the file but it is going for dump.
I have used the method ' w_xml->import_from_file' also,
but it is also going for dump ,because both methods are using the same FM
' GUI_UPLOAD'.
Can any one suggest on this.
Regards,
Bhargavi.D"Here is the Explaination for uploading the XML Format file to sap " through ABAP Program ....
1. Basically you simply have to convert the XML file into the proper IDoc format. There are many ways to achieve this. One solution would be to convert it externally to SAP, e.g. via VB Script or with an XSLT transformation. Or you use the built in SAP functions for importing an IDoc from an XML stream.
2. Uploading a file is either done via GUI_UPLOAD or via the usual way of reading a file from the application server (Open dataset. Read dataset) But what do you mean by "send to external system"? Do you want to convert an IDoc into XML? Then you simply define an XML port with WE21 to send the IDoc out.
Here is an example of code that loads an XML from file and posts it as an IDoc. Please keep in mind that the XML has to be in its canonical format as described in the interface repository: ifr.sap.com (choose the template of the desired IDoc from there as an example).
data: data_tab type table of char1024.
data: XML_STREAM type string.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'D:test.xml'
* FILETYPE = 'ASC'
* HAS_FIELD_SEPARATOR = ' '
* HEADER_LENGTH = 0
* READ_BY_LINE = 'X'
* DAT_MODE = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* CHECK_BOM = ' '
* IMPORTING
* FILELENGTH =
* HEADER =
TABLES
DATA_TAB = DATA_TAB
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.
CALL FUNCTION 'CONVERT_TABLE_TO_STRING'
EXPORTING
I_TABLINE_LENGTH = '1024'
IMPORTING
E_STRING = XML_STREAM
TABLES
IT_TABLE = DATA_TAB[].
write: / xml_stream color col_total.
data: CONTENT_LENGTH type string.
data: CONTENT_TYPE type string.
data: REMOTE_ADDR type string.
CALL FUNCTION 'IDOC_INBOUND_XML_VIA_HTTP'
EXPORTING
XML_STREAM = XML_STREAM
CONTENT_LENGTH = content_type
CONTENT_TYPE = content_type
REMOTE_ADDR = remote_addr
EXCEPTIONS
NO_IDOCS_SAVED = 1
TAG_ERROR = 2
NO_DATA_RECEIVED = 3
NO_IDOCS_RECEIVED = 4
SEGMENT_ERROR = 5
IDOC_WAS_SEND_SECOND_TIME = 6
OTHERS = 7
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
write: / sy-subrc color COL_NEGATIVE.
ENDIF.
reward points if it is usefull.......
Girish -
Uploading Contracts through XI into CCM
Hi,
We are using SRM 5.0, CCM 2.0, XI 3.0, EBP 5.5.
Kindly let me know what is the process of uploading contracts using XI from SRM's EBP to CCM.
Thanks,
SwethaHi,
Check the below link:-
Upload Contracts
Regards.
Praveen -
Uploading Meter data into the system
Can some one please describe the process of uploading the meter data into CC&B.
What is the content of the flat file that i upload.can i upload a meter read XML file directly into the staging tables.....kindly explain the steps..I have not been able to upload any daat into the system using staging control and staging upload page.
Also i found out that there are batch process MUP1 and MUP2 which need be rum in order to upload the meter data into the system from the meter read staging table.Is this correct.
With regards to the meter upload staging table, i referred to the MR staging table : CI_MR_STAGE_UP
there is some data available with the installation as demo data.
For column MR_UP_STATUS_FLAG, there are values such as E, P, C...I unsersatnd there meaning.
1) For Pending P status, i submitted the batch processes MUP1 and then MUP2, expecting that teh status might change to Complete, c.......at the same time i ran MRUP-PRG ........well i was going to write nothing happened , but i saw that after some time all teh rows with ataus P and C are not present any more..........
2)How do i rectify the data with E status.........
Please helpp me uploading more data to the CI_MR_STAGE_UP Meter read staging table.Hi,
thanks for the reply..
can u please tell me what is the content of the flat file that i upload.can i upload a meter read XML file directly into the staging tables.....kindly explain the steps..I have not been able to upload any daat into the system using staging control and staging upload page.
if u can give a flat file sample content for the meter read.
Also is it advisable to insert data into upload staging table through SQL drectly.
And can u pls tell me the difference between XAI upload staging table and other upload staging table such as for MR, FA etc. -
Help regarding uploading an xml file
Hi All
I have to upload data from an xml file.
I guess the function module SMUM_XML_PARSE can be used for achieving this. But can anybody please tell me the exact procedure to use this function module.
The program is going for a dump showing a CALL_FUNCTION_CONFLICT_TYPE error.
The code is as follows
data: stab like smum_xmltb occurs 0 with header line.
data: ret1 like bapiret2 occurs 0.
call function 'SMUM_XML_PARSE'
exporting
xml_input = 'C:TEST.XML'
tables
xml_table = stab
return = ret1
loop at stab.
write:/ stab-hier,stab-type.
endloop.
Thanks in advance
Sree Ramyahii
as for fm
CALL FUNCTION 'SMUM_XML_PARSE'
EXPORTING
XML_INPUT = inputstring
TABLES
XML_TABLE = xmltab
RETURN = ZBAPIRET2.
This function module converts yr xml file i.e. in inputstring into zmltab table. Then U can loop on table to check the content.
go thru this link
http://www.geocities.com/victorav15/sapr3/abapfun.html#xml
and also refer the example
check this code
1. Convert internal table to XML.
Here is a sample program to convert internal table to XML
*& Report ZTESTXML *
Report ZPRUEBA_MML_13 *
Export an internal table to XML document *
NO BORRAR ESTE CODIGO *
report zprueba_mml_13.
PANTALLA SELECCION *
parameters: gk_ruta type rlgrap-filename.
PANTALLA SELECCION *
TYPE TURNOS *
types: begin of turnos,
lu like t552a-tpr01,
ma like t552a-tpr01,
mi like t552a-tpr01,
ju like t552a-tpr01,
vi like t552a-tpr01,
sa like t552a-tpr01,
do like t552a-tpr01,
end of turnos.
TYPE TURNOS *
TYPE SOCIO *
types: begin of socio,
numero like pernr-pernr,
reposicion like pa0050-zauve,
nombre like pa0002-vorna,
turnos type turnos,
end of socio.
TYPE SOCIO *
ESTRUCTURA ACCESOS *
data: begin of accesos occurs 0,
socio type socio,
end of accesos.
ESTRUCTURA ACCESOS *
START OF SELECTION *
start-of-selection.
perform llena_accesos.
perform descarga_xml.
end-of-selection.
END OF SELECTION *
FORM LLENA_ACCESOS *
form llena_accesos.
refresh accesos.
clear accesos.
move: '45050' to accesos-socio-numero,
'MOISES MORENO' to accesos-socio-nombre,
'0' to accesos-socio-reposicion,
'T1' to accesos-socio-turnos-lu,
'T2' to accesos-socio-turnos-ma,
'T3' to accesos-socio-turnos-mi,
'T4' to accesos-socio-turnos-ju,
'T5' to accesos-socio-turnos-vi,
'T6' to accesos-socio-turnos-sa,
'T7' to accesos-socio-turnos-do.
append accesos.
clear accesos.
move: '45051' to accesos-socio-numero,
'RUTH PEÑA' to accesos-socio-nombre,
'0' to accesos-socio-reposicion,
'T1' to accesos-socio-turnos-lu,
'T2' to accesos-socio-turnos-ma,
'T3' to accesos-socio-turnos-mi,
'T4' to accesos-socio-turnos-ju,
'T5' to accesos-socio-turnos-vi,
'T6' to accesos-socio-turnos-sa,
'T7' to accesos-socio-turnos-do.
append accesos.
endform. "LLENA_ACCESOS
FORM LLENA_ACCESOS *
FORM DESCARGA_XML *
form descarga_xml.
data: l_dom type ref to if_ixml_element,
m_document type ref to if_ixml_document,
g_ixml type ref to if_ixml,
w_string type xstring,
w_size type i,
w_result type i,
w_line type string,
it_xml type dcxmllines,
s_xml like line of it_xml,
w_rc like sy-subrc.
data: xml type dcxmllines.
data: rc type sy-subrc,
begin of xml_tab occurs 0,
d like line of xml,
end of xml_tab.
class cl_ixml definition load.
g_ixml = cl_ixml=>create( ).
check not g_ixml is initial.
m_document = g_ixml->create_document( ).
check not m_document is initial.
write: / 'Converting DATA TO DOM 1:'.
call function 'SDIXML_DATA_TO_DOM'
exporting
name = 'ACCESOS'
dataobject = accesos[]
importing
data_as_dom = l_dom
changing
document = m_document
exceptions
illegal_name = 1
others = 2.
if sy-subrc = 0.
write 'Ok'.
else.
write: 'Err =',
sy-subrc.
endif.
check not l_dom is initial.
w_rc = m_document->append_child( new_child = l_dom ).
if w_rc is initial.
write 'Ok'.
else.
write: 'Err =',
w_rc.
endif.
call function 'SDIXML_DOM_TO_XML'
exporting
document = m_document
importing
xml_as_string = w_string
size = w_size
tables
xml_as_table = it_xml
exceptions
no_document = 1
others = 2.
if sy-subrc = 0.
write 'Ok'.
else.
write: 'Err =',
sy-subrc.
endif.
loop at it_xml into xml_tab-d.
append xml_tab.
endloop.
call function 'WS_DOWNLOAD'
exporting
bin_filesize = w_size
filename = gk_ruta
filetype = 'BIN'
tables
data_tab = xml_tab
exceptions
others = 10.
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. "DESCARGA_XML
FORM DESCARGA_XML *
2. To convert XML to internal table.
You can use these function modules
TEXT_CONVERT_XML_TO_SAP or
SDIXML_DOM_TO_XML Convert DOM (XML) into string of bytes that can be downloaded to PC or application server
or
SMUM_XML_PARSE (Parse XML docment into a table structure)
You can also refer to these:
SMUM_XML_CREATE (Create XML document from internal table)
SMUM_XML_CREATE_X (Create XSTRING xml doc)
Check this code, it converts an XML data into a string internal table.
REPORT Z_XML_TO_TABLE.
TYPE-POOLS: ixml.
TYPES: BEGIN OF t_xml_line,
data(256) TYPE x,
END OF t_xml_line.
DATA: l_ixml TYPE REF TO if_ixml,
l_streamfactory TYPE REF TO if_ixml_stream_factory,
l_parser TYPE REF TO if_ixml_parser,
l_istream TYPE REF TO if_ixml_istream,
l_document TYPE REF TO if_ixml_document,
l_node TYPE REF TO if_ixml_node,
l_xmldata TYPE string.
DATA: l_elem TYPE REF TO if_ixml_element,
l_root_node TYPE REF TO if_ixml_node,
l_next_node TYPE REF TO if_ixml_node,
l_name TYPE string,
l_iterator TYPE REF TO if_ixml_node_iterator.
DATA: l_xml_table TYPE TABLE OF t_xml_line,
l_xml_line TYPE t_xml_line,
l_xml_table_size TYPE i.
DATA: l_filename TYPE string.
PARAMETERS: pa_file TYPE char1024 DEFAULT 'c: emporders_dtd.xml'.
Validation of XML file: Only DTD included in xml document is supported
PARAMETERS: pa_val TYPE char1 AS CHECKBOX.
START-OF-SELECTION.
Creating the main iXML factory
l_ixml = cl_ixml=>create( ).
Creating a stream factory
l_streamfactory = l_ixml->create_stream_factory( ).
PERFORM get_xml_table CHANGING l_xml_table_size l_xml_table.
wrap the table containing the file into a stream
l_istream = l_streamfactory->create_istream_itable( table =
l_xml_table
size =
l_xml_table_size ).
Creating a document
l_document = l_ixml->create_document( ).
Create a Parser
l_parser = l_ixml->create_parser( stream_factory = l_streamfactory
istream = l_istream
document = l_document ).
Validate a document
IF pa_val EQ 'X'.
l_parser->set_validating( mode = if_ixml_parser=>co_validate ).
ENDIF.
Parse the stream
IF l_parser->parse( ) NE 0.
IF l_parser->num_errors( ) NE 0.
DATA: parseerror TYPE REF TO if_ixml_parse_error,
str TYPE string,
i TYPE i,
count TYPE i,
index TYPE i.
count = l_parser->num_errors( ).
WRITE: count, ' parse errors have occured:'.
index = 0.
WHILE index < count.
parseerror = l_parser->get_error( index = index ).
i = parseerror->get_line( ).
WRITE: 'line: ', i.
i = parseerror->get_column( ).
WRITE: 'column: ', i.
str = parseerror->get_reason( ).
WRITE: str.
index = index + 1.
ENDWHILE.
ENDIF.
ENDIF.
Process the document
IF l_parser->is_dom_generating( ) EQ 'X'.
PERFORM process_dom USING l_document.
ENDIF.
*& Form get_xml_table
FORM get_xml_table CHANGING l_xml_table_size TYPE i
l_xml_table TYPE STANDARD TABLE.
Local variable declaration
DATA: l_len TYPE i,
l_len2 TYPE i,
l_tab TYPE tsfixml,
l_content TYPE string,
l_str1 TYPE string,
c_conv TYPE REF TO cl_abap_conv_in_ce,
l_itab TYPE TABLE OF string.
l_filename = pa_file.
upload a file from the client's workstation
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = l_filename
filetype = 'BIN'
IMPORTING
filelength = l_xml_table_size
CHANGING
data_tab = l_xml_table
EXCEPTIONS
OTHERS = 19.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Writing the XML document to the screen
CLEAR l_str1.
LOOP AT l_xml_table INTO l_xml_line.
c_conv = cl_abap_conv_in_ce=>create( input = l_xml_line-data
replacement = space ).
c_conv->read( IMPORTING data = l_content len = l_len ).
CONCATENATE l_str1 l_content INTO l_str1.
ENDLOOP.
l_str1 = l_str1+0(l_xml_table_size).
SPLIT l_str1 AT cl_abap_char_utilities=>cr_lf INTO TABLE l_itab.
WRITE: /.
WRITE: /' XML File'.
WRITE: /.
LOOP AT l_itab INTO l_str1.
REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>horizontal_tab
IN
l_str1 WITH space.
WRITE: / l_str1.
ENDLOOP.
WRITE: /.
ENDFORM. "get_xml_table
*& Form process_dom
FORM process_dom USING document TYPE REF TO if_ixml_document.
DATA: node TYPE REF TO if_ixml_node,
iterator TYPE REF TO if_ixml_node_iterator,
nodemap TYPE REF TO if_ixml_named_node_map,
attr TYPE REF TO if_ixml_node,
name TYPE string,
prefix TYPE string,
value TYPE string,
indent TYPE i,
count TYPE i,
index TYPE i.
node ?= document.
CHECK NOT node IS INITIAL.
ULINE.
WRITE: /.
WRITE: /' DOM-TREE'.
WRITE: /.
IF node IS INITIAL. EXIT. ENDIF.
create a node iterator
iterator = node->create_iterator( ).
get current node
node = iterator->get_next( ).
loop over all nodes
WHILE NOT node IS INITIAL.
indent = node->get_height( ) * 2.
indent = indent + 20.
CASE node->get_type( ).
WHEN if_ixml_node=>co_node_element.
element node
name = node->get_name( ).
nodemap = node->get_attributes( ).
WRITE: / 'ELEMENT :'.
WRITE: AT indent name COLOR COL_POSITIVE INVERSE.
IF NOT nodemap IS INITIAL.
attributes
count = nodemap->get_length( ).
DO count TIMES.
index = sy-index - 1.
attr = nodemap->get_item( index ).
name = attr->get_name( ).
prefix = attr->get_namespace_prefix( ).
value = attr->get_value( ).
WRITE: / 'ATTRIBUTE:'.
WRITE: AT indent name COLOR COL_HEADING INVERSE, '=',
value COLOR COL_TOTAL INVERSE.
ENDDO.
ENDIF.
WHEN if_ixml_node=>co_node_text OR
if_ixml_node=>co_node_cdata_section.
text node
value = node->get_value( ).
WRITE: / 'VALUE :'.
WRITE: AT indent value COLOR COL_GROUP INVERSE.
ENDCASE.
advance to next node
node = iterator->get_next( ).
ENDWHILE.
ENDFORM. "process_dom
Regards
Naresh -
Data upload error during uploading data in catalogs ( CCM 2.0 )
Hi ,
I am having problem during upload of data into catalogs of CCM 2.0. I think there is some problem with my file. When i click "Upload Schema" it just upload schema not the data. But if i am removing schema from file it is giving me error.
Kindly if anyone can send me sample file for data upload in CCM 2.0 or steps to upload data correctly.
Thanks & Regards,
KamalHi,
I don't understand very well, the standard characteristic for images is /CCM/PICTURE.
It's a complex characteristic composed by
/CCM/DESCRIPTION
/CCM/URL
/CCM/MIME_TYPE. (for example image/jpeg).
If your problems still exist, you can send me your file
Regards -
Place XML into Library element
Hi,
I am automating the process of placing library element as anchored element.
The actual task is, I have an sidenote text in the indesign document. These text also contains XML tags.
I want to place this sidenote text into an library item called "MN1". This library item is a group of Picture and Textframes. Then this library item is placed into the document as anchored element.
With my script, I am able place the XML into library item. But the problem is, I am not able to place this library item as anchored.
My script is:
#target indesign-6.0
var myDocument = app.activeDocument;
sideart();
// IMPORT BOXES INTO PAGES ON PASTEBOARD AREA
function sideart()
var myCurrentLib = app.libraries.item(0);
app.findGrepPreferences.findWhat = "(\\{\\{SS (.*?) (.*?)\\}\\})((.*\r)*?.*SE (.*?)\\}\\}\r?)";
var found = myDocument.findGrep();
for (var i =0; i<found.length; i++)
found[i].select(SelectionOptions.replaceWith);
var myLibName1 = found[i].contents.split(" ");
var mySidID = myLibName1[1];
var myLibName2 = myLibName1[2].split("=");
var myLibName = myLibName2[1];
var myRuleName1 = myLibName1[3].split("=");
var myRuleName2 = myRuleName1[1].split("}}");
var myRuleName = myRuleName2[0];
app.cut();
app.selection = null;
myAsset = myCurrentLib.assets.item(myLibName.toString());
var libItem = myAsset.placeAsset(app.documents[0]);
app.select(libItem[0].textFrames[0].parentStory.insertionPoints.item(0));
app.paste();
libItem[0].textFrames[0].fit(FitOptions.frameToContent);
app.findGrepPreferences.findWhat = "\\{\\{SE (.+?)\\}\\}\r";
app.changeGrepPreferences.changeTo = "";
libItem[0].textFrames[0].texts[0].changeGrep();
app.findGrepPreferences.findWhat = "\\{\\{SS (.+?) (.+?)\\}\\}";
app.changeGrepPreferences.changeTo = "";
libItem[0].textFrames[0].texts[0].changeGrep();
app.findGrepPreferences.findWhat = "";
app.changeGrepPreferences.changeTo = "";
app.findGrepPreferences.findWhat = "(\\{\\{SR " + mySidID + "\\}\\})";
var foundref = myDocument.findGrep();
if (foundref.length > 0)
/// HERE I WANT TO PLACE libItem AS ANCHORED ITEM WITH THE OBJECT STYLE APPLIED TO IT.
else {
alert ("There is no Side art reference tag with ID: "+ mySidID);
My Indesign file look likes:
Factors Affecting the Direction of Transport{{SR ch04mn1}}
{{SS ch04mn1 L=MN1 O=TEST11}}The section on single-subject design was written by Dr. Stephen W. Stile.{{SE ch04mn1}}
In Chapter 3, we saw that the reactant and product molecules in a metabolic reaction have different energies. We also saw that the energy change of a reaction—the difference between the reactant and product energies—determines the direction of the reaction and whether it proceeds spontaneously or requires energy. In the following section we see that similar principles govern the transport of molecules across membranes.
Please suggest how to place grouped library item with XML as anchored item.
Thanks,
GopalHi,
Upgrade to 9.2.0.3, until I upgrade I could not get the web-dav upload to work at all.
The only problems I've had with this is if I logged on to web-dav as a different user from that which I registered the schema with. One thing I have noticed, is that the file size is shown as being 0 when the xml has been shredded successfully.
And the previous answer is right, if you use FTP you might see better error messages.
Hope it helps,
John -
Hi all
I am using this code to trim a string and place it into a jMenu. Now I would like to change the out the way is looks to make it easier to view.
Like this:
Need to turn this file name lastName_FirstName_01_07_1980.xml into FirstName LastName 01.07.80
is this posible to do ?
can some me how ?
private void addItem(JMenu menu, char a)
File dir = new File("Epod Configuration/Orders To Upload");
File[] files = dir.listFiles();
for (int j=0; j < files.length; j++)
String trim = ""+files[j];
int ndx;
if ((ndx = trim.lastIndexOf('/')) != -1) trim = trim.substring(ndx+1);
if (trim.charAt(0) == a)
System.out.println(trim);
JMenuItem mi = new JMenuItem(trim);
menu.add(mi);
}Thanks
Craigthanks for that
but how do I put the two codes together ??
the file name also has .xml at the end what is the bet way of getting rid of that
this is what I have try but doesn't work
Please help
private void addItem(JMenu menu, char a)
File dir = new File("Epod Configuration/Orders To Upload");
File[] files = dir.listFiles();
for (int j=0; j < files.length; j++)
String trim = ""+files[j];
int ndx;
if ((ndx = trim.lastIndexOf('/')) != -1) trim = trim.substring(ndx+1);
if (trim.charAt(0) == a)
System.out.println(trim);
String s = "lastName_FirstName_01_07_1980";
StringTokenizer st = new StringTokenizer(s, "_");
String last = st.nextToken();
String first = st.nextToken();
String month = st.nextToken();
String day = st.nextToken();
String year = st.nextToken();
System.out.println(first + ' ' + last + ' ' + month + '.' + day + '.' + year);
JMenuItem mi = new JMenuItem(trim);
menu.add(mi);
} -
Is it possible to import xml into Adobe Muse to populate content similar to InDesign?
Is it possible to import xml into Adobe Muse to populate content similar to InDesign?
The only way I see this would be possible is through using JS that you can insert using the Object -> Insert HTML option, you may grab the XML to HTML code from here - http://www.w3schools.com/xml/xml_to_html.asp
In order to test this out, simply download the sample XML file from the following location - http://www.w3schools.com/xml/cd_catalog.xml and save it somewhere locally. Now add this file to your Muse project using File -> Add Files for Upload option, it would then appear within the Assets panel.
Add the code to your page and update the path referencing the file cd_catalog.xml to assets/cd_catalog.xml. Now on previewing the page in browser, you should see the populated HTML from the XML.
Thanks,
Vinayak -
How to upload Hierarchy data into BW InfoObjects
I have gone through the XI and BI integration document provided by SAP and I found out that using that method only Master data and Text data can be uploaded into Infoobejects using Flexible upload which doesnt support Hierarchy data upload.
I need to upload Hierarchy data into InfoObjects using SAP XI. Please suggest me the best way to upload the hierarchy data.
Thanks and Regards,
Shridhar.Hi,
First , thanks for your answer.
Concerning the scope of my project, currently we just have a SAP system to be integrated into BW but in a few times we will get also other OLAP Tools to integrate in BW. Also my customer want to manage all the message processing with only one product if it's possible and currently he use SAP XI for it so that's why he want's to use XI between SAP and BW.
If i understand weel your answer, i can use XI without defining XML file in BW I can use standard extractor so XI just transfert IDOC receving from SAP to BW , it that right ?
Thansk again.
Best regards.
Bertrand. -
Hi everyone
I am a voice amatuer, so who can tell me how to import DLU into CCM. I never did it. please tell me the detail step.
ThanksHi
In general:
1) You receive an 11-digit PAK code from Cisco.
2) Go to www.cisco.com/go/license, and register the PAK code. For this you need your CCM licensing MAC address; one way to find this is go to CCMAdmin (ccmpublisher/ccmadmin), log in, go to System/Licensing/Upload License, then view an existing license to see what the 'host' part refers to. Another is to go to ccmpublisher/cmplatform, log in, and go to Show/Network.
3) You receive a .lic file from Cisco via email
4) Log into the CCM Publisher at ccmpublisherip/ccmadmin
5) Go to system/licensing/Upload License and upload your file
Regards
Aaron
Please rate helpful posts...
Maybe you are looking for
-
I have a customer that does a front and back newsletter in photoshop. They use 100% black and 100% magenta and save it as a .psd. (They don't have no other layout programs) How can I put it in an IndesignCS2 or quark document and separate it into 2 c
-
I would like to configure the links from my PDF file to open a new window in the browser of the recipient instead of moving from the pdf already opening in a browser to the linked page. Is there a way to configure that pdf link to "Open Web Link - Ne
-
How to batch convert entire library from raw to jpeg
I would like to know if it is possible to convert my entire iphoto library from mostly raw to jpeg and save as different library. The reason for this is ATV2 will only stream 8gigs at a time and it is annoying and inconvienent to go upstairs to chan
-
When I send inline (embedded) photos, along with text; my recipients say they only receive a jumbled text file. Is there a setting within TB I can change to correct this? See below: Message-Id: <iPTA1p0151ZQlML01PTCq2> Old-Message-Id: <54BEE447.90805
-
E_ADEPT_USER_UNKNOWN error operatorClient.jar
I get E_ADEPT_USER_UNKNOWN error upon login with my user and passwd in the operatorClient.jar console. Out of the 2 steps it failed at the license signing time - 1. Authentication URL (http://adeactivate.adobe.com/adept) - This went through successfu