Production Variant production Product configurator Configuration structure Configuration objects Script file for data transfer - robinfeng/beashelp GitHub Wiki

数据传输的脚本文件


Navigation: Production > Variant production > Product configurator > Configuration structure > Configuration objects: Script-file for data transfer No contents entries on this page Contents To transfer the price or description from the configurator into the SAP Business One form "Customer order"or "Offer" a script file is used. This file needs to be created.

Do only change red lines. The created files need to be stored in beas Project-folder.

Name of the file: "product_configurator.src“. The following structure is required:

//******************************************** //* beas product configurator * //* * //* Interface definitions for return value * //* * //* (c) beas gmbh * //******************************************** // //*** initialization of the interface *** function pk_init // please, do not change this function part !!!! setvar=v_pk_init=Y end // //*** transfer the TOTAL PRICE from the configurator *** //*** into column 14 of actual line (changeable) *** //*** to SAP B1 form SALES ORDER or QUOTATION *** function write_price // the PRICE is in the beas variable "str_parm.c_parm4" parent=item=38=col=14=value=<str_parm.c_parm4> end // //*** transfer the BRIEF DESCRIPTION from the configurator *** //*** into column 163 of actual line (changeable) *** //*** to SAP B1 form SALES ORDER or QUOTATION *** function write_b_descr // BRIEF DESCRIPTION is in the beas variable "str_parm.s_parm4" parent=item=38=col=163=string=<str_parm.s_parm4> end // //*** transfer the DESCRIPTION from the configurator *** //*** into column U_item_descr of actual line *** //*** (changeable) *** //*** to SAP B1 form SALES ORDER or QUOTATION *** function write_descr // the DESCRIPTION is in the beas variable "str_parm.s_parm5" parent=item=38=col=U_item_descr=string=<str_parm.s_parm5> end

Explanation of assignments:

parent=item=38=col=14=value=<str_parm.c_parm4>

<str_parm.c_parm4> : Parameter with the current transfer value (in this case the price)

col=14 : Field 14 (single price) in SAP Business One-form

col=U_item_descr : UD-Field in SAP Business One-form