Sage: read cost object (ReadCostObject)
Sage: read cost object (ReadCostObject)
A cost object can be read with this function. Multiple parameters can be filled with corresponding search values in the input parameter group. The same parameters as in the output can be filled for the search. If the cost object cannot be found, or if the search criteria are not unique, 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.
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 , 'ReadCostObject' , 'PGINPUT' , 'PGOUTPUT' ) | ||
| Argument | Type | Meaning |
| Service | String | URL of the web service |
| 'ReadCostObject' | String | Command constant |
| 'PGINPUT' | String | Name of the ePOS parameter group with the search criteria. |
| '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.aendnr = '1' Status = f$SageService ( B7Service , 'ReadCostObject' , 'CostObject' , 'CostObject_res' ) | ||