日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

SAP Commerce Impex语法

發(fā)布時(shí)間:2023/12/19 编程问答 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 SAP Commerce Impex语法 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

Header:上圖藍(lán)色和淺綠色文字。

A header is a single line defining a mapping of the following value lines to the type system. A header applies to all processed value lines until the next header or until the end of file, whichever comes first. You can put any number of headers into a CSV file.

定義了接下來(lái)value line和type系統(tǒng)的映射關(guān)系。

格式:

mode type[modifier=value];attribute[modifier=value];attribute[modifier=value];attribute[modifier=value][;...];attribute[modifier=value]

方框里的modifier:Gives additional information for translating a value record to the mapped type attribute

例子:INSERT_UPDATE

category;code[unique=true];name[lang=de];name[lang=en];$supercategories;$thumbnail;description[lang=de];order

This header states that each following value line creates or updates a category instance, until another header occurs. 注意,大小寫(xiě)無(wú)關(guān)。

INSERT Address;firstname;owner(Principal.uid|AbstractOrder.code) ;Hans;admin ;Klaus;O-K2006-C0000-001

由|分隔開(kāi)的語(yǔ)法叫 alternative pattern.

When importing the first value line ;Hans;admin, the ImpEx extension searches all instances of the Principal type to verify if any instance exists where the uid attribute is set to admin.

Impex extension首先查找所有principal實(shí)例,看是否存在其uid屬性值為admin的實(shí)例。

注意我們現(xiàn)在是試圖插入Address數(shù)據(jù),如果上述的搜索命中,則將Impex語(yǔ)句里的address值維護(hù)到搜索命中的admin Principal實(shí)例去。

If an instance exists (and there is, by platform default), the new instance of the Address type has its owner attribute set to a reference to that Principal type instance.

如果并沒(méi)有Principal實(shí)例,其uid屬性等于admin,那么進(jìn)行第二輪搜索,根據(jù)AbstractOrder的code字段進(jìn)行搜索。

Attribute modifier

…;attribute[modifier=value,modifier=value,modifier=value];…
或者
…;attribute[modifier=value][modifier=value][modifier=value];…

The value of the $catalog macro sets the catalog id. The value of the $version macro sets the version string of the catalog version to export.

$catalog=clothescatalog
$version=Staged

宏的實(shí)現(xiàn):

$catalog=catalog(id)
catalogVersion=catalogVersion(catalogVersion=catalogVersion(catalogVersion=catalogVersion(catalog,version)

總結(jié)

以上是生活随笔為你收集整理的SAP Commerce Impex语法的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。