Header:上图蓝色和浅绿色文字。

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.

定义了接下来value line和type系统的映射关系。

格式:

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. 注意,大小写无关。

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

由|分隔开的语法叫 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实例,看是否存在其uid属性值为admin的实例。

注意我们现在是试图插入Address数据,如果上述的搜索命中,则将Impex语句里的address值维护到搜索命中的admin Principal实例去。

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.

如果并没有Principal实例,其uid属性等于admin,那么进行第二轮搜索,根据AbstractOrder的code字段进行搜索。

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

宏的实现:

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

SAP Commerce Impex语法相关推荐

  1. SAP Commerce(SAP Hybris)学习资料汇总

    版本号:v1.06 2020年11月24日 所有的架构图在这个单独的帖子里. 导航目录 SAP官方帮助文档 configuration 如何运行 Filters 容器化支持 Installer-Rec ...

  2. SAP Commerce Cloud SmartEdit 学习笔记

    官方文档 SmartEdit 是一个可插拔的 JavaScript 框架,附带一个 UI,使开发人员能够管理现有的网页. SmartEdit 生态系统由共同提供 SmartEdit 产品的 modul ...

  3. SAP Commerce Cloud Spartacus UI 的购物车 Cart 功能

    此功能是在 TUA Spartacus 库的 1.0 版中引入的. 购物车在 TUA Spartacus 与核心 Commerce Spartacus 中的工作方式不同,需要支持产品供应以及复杂的定价 ...

  4. SAP Commerce Cloud 架构概述

    SAP Commerce Cloud Architecture 尽管我们在"SAP Commerce Cloud 入门"一文中介绍了 SAP Commerce Cloud 的一些高 ...

  5. SAP Commerce Cloud 新一代 UI Spartacus 和 Customer Data cloud 的集成

    SAP Customer Data Cloud Integration Spartacus 3.2 版可用. SAP Customer Data Cloud 允许您启用自定义注册和登录,还可以管理用户 ...

  6. SAP Commerce Cloud CMS page 和 page template 的概念

    CMS pages are laid out according to their page template. CMS 页面根据其template被布局. 在 SAP Commerce Accele ...

  7. SAP Commerce Cloud Github 项目的个性化配置 customization

    Commerce Cloud 中的构建过程在项目存储库中查找项目自定义 customization. 有两种支持的自定义目录结构. Separate subdirectories for each c ...

  8. 什么是 SAP Commerce Cloud 的 Flexible Search?

    SAP Commerce Cloud的Flexible Search是一种强大而灵活的查询语言和工具,用于在SAP Commerce Cloud平台上执行复杂的数据库查询操作.它提供了一种高度可定制的 ...

  9. SAP Commerce Cloud SmartEdit 的安装

    执行手动安装时要包含的扩展,必须在 localextensions.xml文件中包含以下扩展: cmsbackoffice cmssmartedit cmssmarteditwebservices c ...

最新文章

  1. 基于深度关键点的几何约束摄像机姿态估计
  2. MyBatis魔法堂:ResultMap详解
  3. 我对软件设计原则的理解
  4. 看懂 IPv6+,这篇就够了
  5. Sps的content menu 和 smart-tag的问题
  6. HTML+Jquery实现2022跨年烟花特效,除夕最炫烟花代码,跨年怎能没有烟花
  7. 递归法:整数划分问题(怎么进行划分呢)
  8. 拓端tecdat|R语言分布滞后线性和非线性模型(DLNM)分析空气污染(臭氧)、温度对死亡率时间序列数据的影响
  9. c++的两个冒号::四个点是什么意思,什么作用呢?
  10. 2020全球C++及系统软件技术大会议程
  11. 【考研英语语法】十大词性
  12. python爬虫公众号_python爬虫_微信公众号推送信息爬取的实例
  13. 使用realsense D435i实现机械臂对物体的自动抓取总结
  14. 使用在Photoshop上的30个纺织物纹理Ps笔刷
  15. oracle的账户无法注册表,oracle用户账号在哪注册表ORA-12514问题解决
  16. 计算机仿真氢光谱实验,氢氘灯光谱 实验报告
  17. 1989旧金山地震:动物预测成功的非经典案例
  18. HTML圣诞节代码,圣诞节贺卡源代码,实现圣诞节雪花飘落效果
  19. 华为eNSP环境,WLAN简介与组网,AP+AC详细配置
  20. 【程序设计训练】公交系统

热门文章

  1. hdu 5265 pog loves szh II STL
  2. 几种流行Webservice框架性能对照
  3. LightSwitch 2011 数据字段唯一性验证方案
  4. 田志刚:企业知识管理的知识传播
  5. C#中的变量、常量、数据类型
  6. Angr 初体验之探索口令
  7. SQL Server之体系结构
  8. Linux gcc/g++链接编译顺序详解
  9. 创建基于Web的实时系统
  10. Bug测试报告--在线考试系统--金州勇士