Sage: create cost object (CreateCostObject)
Sage: create cost object (CreateCostObject)
A cost object can be created with this function. The following parameters can be filled with their corresponding values in the input parameter group: aendnr, anp_bonus_prz, anp_ergebnis, anp_fracht_soll, anp_gvl_prov, anp_gvl_prov_prz, anp_prov_dr_prz, anp_pruef_status, anp_rgnr, anp_sk_prz, anp_sonst_e_prz, anp_vv_prz, anp_zu_fremd_prz, anp_zu_mat_prz, auf_art, ben1, ben, fertig, identnr, konto, kosttraeger, ktr_art, ktr_gruppe, ktr_ist_dat, ktr_plan_dat, ktr_schema, ktr_start_dat, ktr_status, satzart, txt_nr, var, vertr. If the cost object cannot be created, the service delivers a corresponding error message. This is entered via the parameter Message. Before evaluating the output parameter group, the parameter Message should be verified.
Note that the array costobject is mandatory and must be unique.
The following parameters in the output parameter group are filled:
aendnr, anp_bonus_prz, anp_ergebnis, anp_fracht_soll, anp_gvl_prov, anp_gvl_prov_prz, anp_prov_dr_prz, anp_pruef_status, anp_rgnr, anp_sk_prz, anp_sonst_e_prz, anp_vv_prz, anp_zu_fremd_prz, anp_zu_mat_prz, auf_art, ben1, ben, dataen, datneu, fertig, identnr, konto, kosttraeger, ktr_art, ktr_gruppe, ktr_ist_dat, ktr_plan_dat, ktr_schema, ktr_start_dat, ktr_status, satzart, txt_nr, useraen, userneu, var, vertr.
Syntax: | Status = f$SageService ( Service , 'CreateCostObject' , 'PGINPUT' , 'PGOUTPUT' ) | ||
| Argument | Type | Meaning |
| Service | String | URL of the web service |
| 'CreateCostObject' | String | Command constant |
| 'PGINPUT' | String | Name of the ePOS parameter group with the data for the cost object to be created. |
| 'PGOUTPUT' | String | Name of the ePOS parameter group with the result data. |
Result: | Integer | Status of the function: 1 : the service function was successfully called -1 : the component eposvbcomexe could not be found -2 : function URL not entered -4 : general error | |
Example: | B7Service = 'http://b7demo.sagebaeurer.de/br71/callin/epos_soap' CostObject.identnr = '11000011-PAM' CostObject.konto = 100 CostObject.anp_ergebnis = 1.1 CostObject.anp_bonus_prz = 1.2 CostObject.kosttraeger = 'Kost_nue_0012' Status = f$SageService ( B7Service , 'CreateCostObject' , 'CostObject' , 'CostObject_res' ) | ||