Script-file for data transfer

Top 
Expand/Collapse Toggles

To transfer the price or description from the configurator into the SAP Business One form "Customer order"or "Quotation" a script file is used.

This file needs to be created.

 

Adjust only red lines in order to ensure a correct function.

The created files need to be stored in beas Project-folder.

 

hmtoggle_plus1Script file

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

 

//********************************************

//* beas product configurator                *

//*                                          *

//* Interface definitions for return value   *

//*                                          *

//* (c) Boyum IT Solutions 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

 


Help URL: https://help.beascloud.com/beas202105/index.html?script-datei_zur_preisbergabe.htm