Skip to main content
Skip table of contents

Sage: create cost object transaction data (CreateCostObjectTransactionData)


Sage: create cost object transaction data (CreateCostObjectTransactionData)

This function creates a cost object transaction record in the table c1301. The following parameters can be filled with their corresponding values in the input parameter group: agr, arbplatz, aufnr, aufpos, belegdat, bs, bu_monat, bunr, fixkosten, fklz, identnr, kostart, kostst, kosttraeger, ktr_leitzahl, ktr_typ, ktr_woher, me, menge, prodgr, status, stlidentnr, stlvar, text, var, varkosten, wgr, zumnr. If the cost object transaction record 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.

The following parameters in the output parameter group are filled:

agr, arbplatz, aufnr, aufpos, belegdat, bs, bu_monat, bunr, datneu, fixkosten, fklz, identnr, kostart, kostst, kosttraeger, ktr_leitzahl, ktr_typ, ktr_woher, me, menge, prodgr, status, stlidentnr, stlvar, text, userneu, var, varkosten, wgr, zumnr.

Syntax:

Status = f$SageService ( Service , 'CreateCostObjectTransactionData' , 'PGINPUT' , 'PGOUTPUT' )

 

Argument

Type

Meaning

 

Service

String

URL of the web service

 

'CreateCostObjectTransactionData'

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'

CostObjectTransactionData.kosttraeger = 'Kost_nue_001'

CostObjectTransactionData.ktr_leitzahl = 'AABBCC'

Status = f$SageService ( B7Service , 'CreateCostObjectTransactionData' , 'CostObjectTransactionData' , 'CostObjectTransactionData_res' )

JavaScript errors detected

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

If this problem persists, please contact our support.