如何在 SAP Cloud for Customer 里自定义消
2021-10-19 本文已影响0人
_扫地僧_
在 SAP Cloud for Customer 里,虽然 Partners 不允许直接登录 ABAP 后台,但仍旧可以通过 Cloud Application Studio 新建显示在 UI 上的消息:
在 ABSL 代码里,通过 raise 语句显示消息到 UI 上:
raise delivery_message.Create("S", this.OutboundDeliveryID);
运行时 delivery_message 定义的消息文本里的 &1,会被 this.outboundDeliveryID 的值取代。
完整的代码:
import AP.Common.GDT;
import AP.CRM.Global;
[Extension] businessobject AP.CRM.Global:CustomerQuote raises delivery_message,already_delivered
{
message delivery_message text "Outbound Delivery &1 has been created successfully" : LANGUAGEINDEPENDENT_SHORT_Name;
message already_delivered text "This Sales Order has already been delivered!";
[Label("Order Status")] element OrderStatus:OrderStatusCode;
[Label("Outbound delivery ")] element OutboundDeliveryID:LANGUAGEINDEPENDENT_EXTENDED_Text;
action triggerOutboundDeliveru;
action setProductionInProcess;
node Item {
node ItemParty {
}
}
node Party {
}
node ItemProposal {
}
}
更多Jerry的原创文章,尽在:"汪子熙":