Escape character from impex

Reference:   https://answers.sap.com/questions/12771623/how-to-escape-character-from-impex.html

For escaping semicolon( ; ), you need to put it inside double quotes e.g.

In addition to these characters, you can escape ' and " by doubling them

Reference: https://help.sap.com/viewer/d0224eca81e249cb821f2cdf45a82ace/2105/en-US/8bef9530866910148e6cff59d9afa127.html?q=ImpEx%20Syntax


Special Attributes

Sometimes you need to add data to an item that is not covered by an attribute, for example the media data. In these cases, the syntax of ImpEx provides a special kind of attribute definition called special attributes that do not have a mapping to a real attribute of the configured type.

They are marked with the @ symbol and always need the translator modifier, because there is no default implementation. Furthermore the specified translator has to be a realization of the SpecialValueTranslator interface.

The following code sample shows how to create a media with the data set from the specified file:

INSERT_UPDATE Media;code[unique=true];@media[translator=de.hybris.platform.impex.jalo.media.MediaDataTranslator]
;myMedia;file://c:/myMedia.txt

The type Media has no media attribute, but specifying the media attribute as a special attribute instructs ImpEx not to search for such an attribute. Instead, it will call the special translator specified with the translator modifier, which performs the import logic.


Reference: https://help.sap.com/viewer/d0224eca81e249cb821f2cdf45a82ace/2105/en-US/1c8f5bebdc6e434782ff0cfdb0ca1847.html





Comments

Popular Posts