Skip to main content
Skip table of contents

Sage: modify cost object (UpdateCostObject)


Sage: modify cost object (UpdateCostObject)

A cost object can be modified 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.

The parameter costobject is compulsory. It identifies the cost object to be edited.

If the cost object cannot be modified, the service returns 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 , 'UpdateCostObject' , 'PGINPUT' , 'PGOUTPUT' )

 

Argument

Type

Meaning

 

Service

String

URL of the web service

 

'UpdateCostObject'

String

Command constant

 

'PGINPUT'

String

Name of the ePOS parameter group with the data for the cost object to be modified

 

'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.kosttraeger = 'Kost_nue_001'

CostObject.ben = ' Mein eigener Kostenträger'

CostObject.aendnr = '2'

Status = f$SageService ( B7Service , 'UpdateCostObject' , 'CostObject' , 'CostObject_res' )

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.