Before you start
- Use a sandbox or quality client, never production. GoLiveGate reads the client role before every connection test and every eval and refuses a production client.
- Restrict the GoLiveGate user to the test company code and its plants.
- Service names, fields and paths follow SAP’s documentation. Confirm them on your release; send us the names and paths your system shows.
- Enter the connection settings in the console: Connections → your S/4 sandbox → S/4 settings. The same page shows what can run and what each left-out group of tasks needs; the pre-flight before each eval says the same.
- With a relay, every SAP path GoLiveGate uses must be on the relay’s allowlist; each area lists its lines. The relay holds the SAP password.
Base setup
Enables: All tasks. Without it, nothing runs.
Who: Basis team, once
Steps
- Pick a non-production client (its role in
SCC4is not Production) and a company code set aside for evals. GoLiveGate refuses a production client, with no override. - Create two users:
GLG_HARNESS(technical user; GoLiveGate seeds, reads and cleans up with it) and your agent's own user. GoLiveGate never acts as your agent. - Activate the OData services for
GLG_HARNESS:/IWFND/MAINT_SERVICEon-premises and private cloud, communication arrangements on S/4HANA Cloud. Services:API_PURCHASEORDER_PROCESS_SRV,API_PURCHASEREQ_PROCESS_SRV,API_MATERIAL_DOCUMENT_SRV,API_SUPPLIERINVOICE_PROCESS_SRV,API_BUSINESS_PARTNER,API_COMPANYCODE_SRV,API_PLANT_SRV,API_PURCHASECONTRACT_PROCESS_SRV. - Give
GLG_HARNESSthe authorizations below, restricted to the test company code and its plants. - Publish the client-role view
ZGLG_CLIENT(definition in the setup guide). It reads only T000: client number, role and name. - In the console, add the S/4 connection and run the connection test: system reachable, user signs in, client is not production, business APIs active.
Authorizations for GLG_HARNESS
S_SERVICEfor the services aboveM_BEST_BSA,M_BEST_EKO,M_BEST_EKG,M_BEST_WRK: purchase ordersM_BANF_BSA,M_BANF_EKG,M_BANF_WRK: requisitionsM_MSEG_BWA(101, 102),M_MSEG_WMB,M_MSEG_BWE: goods receipts and their reversalM_RECH_BUK,M_RECH_WRK: invoice verification and cancellationF_LFA1_APP,F_LFA1_BUK: supplier display and posting block- A PO release code if seeded POs need release (otherwise set
poReleasetonone)
Client-role view
Published with @OData.publish the service is ZGLG_CLIENT_CDS; set clientService to ZGLG_CLIENT_CDS/ZGLG_CLIENT.
" Client role (T000-CCCATEGORY). GoLiveGate refuses a connection until it can read this.
@AbapCatalog.sqlViewName: 'ZGLGCLIENTV'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@OData.publish: true
define view ZGLG_CLIENT as select from t000 {
key mandt as Client,
cccategory as ClientCategory,
mtext as ClientName
}Connection settings
{
"orgs": { "1000": { "purchasingOrg": "1000", "purchasingGroup": "001", "plant": "1100", "poType": "NB", "prType": "NB" } },
"unit": "EA",
"clientService": "ZGLG_CLIENT_CDS/ZGLG_CLIENT"
}Relay allowlist
GET /sap/opu/odata/sap/API_BUSINESS_PARTNER/*
GET,POST,PATCH /sap/opu/odata/sap/API_PURCHASEORDER_PROCESS_SRV/*
GET,POST,PATCH /sap/opu/odata/sap/API_PURCHASEREQ_PROCESS_SRV/*
GET,POST /sap/opu/odata/sap/API_SUPPLIERINVOICE_PROCESS_SRV/*
GET,POST /sap/opu/odata/sap/API_MATERIAL_DOCUMENT_SRV/*
GET,POST,PATCH /sap/opu/odata/sap/API_PURCHASECONTRACT_PROCESS_SRV/*
GET /sap/opu/odata/sap/API_COMPANYCODE_SRV/*
GET /sap/opu/odata/sap/API_PLANT_SRV/*
GET /sap/opu/odata/sap/ZGLG_CLIENT_CDS/*Service names and fields follow SAP's API documentation; confirm them on your release before the first eval.
Change-document view
Enables: The “nothing else changed” check on every task: changes your agent should not have made
Who: Basis team, once (recommended)
Steps
- Create the read-only view
ZGLG_CHANGEDOCover CDHDR and CDPOS for purchase orders, requisitions, suppliers and invoices (definition in the setup guide). - Publish it as an OData service (
@OData.publishgivesZGLG_CHANGEDOC_CDS) and authorizeGLG_HARNESSfor it. - Set
changeDocServicein the connection settings if the name differs from the default. - Run the connection test: “Change documents readable” turns green. Without the view, tasks still run, but changes your agent should not have made are not checked.
Change-document view
" Change documents for POs, requisitions, suppliers and invoices.
" Draft: review time zone handling and performance with your Basis team.
@AbapCatalog.sqlViewName: 'ZGLGCHGDOCV'
@AccessControl.authorizationCheck: #CHECK
@OData.publish: true
define view ZGLG_CHANGEDOC as select from cdhdr as h
inner join cdpos as p on p.objectclas = h.objectclas
and p.objectid = h.objectid
and p.changenr = h.changenr {
key h.objectclas as ObjectClass,
key h.objectid as ObjectValue,
key h.changenr as ChangeNumber,
key p.tabkey as TableKey,
key p.fname as FieldName,
h.username as CreatedByUser,
cast( dats_tims_to_tstmp( h.udate, h.utime, 'UTC', $session.client, 'NULL' ) as abap.dec(15,0) ) as ChangeTimestamp,
p.value_old as ValueOld,
p.value_new as ValueNew
} where h.objectclas = 'EINKBELEG' or h.objectclas = 'BANF'
or h.objectclas = 'KRED' or h.objectclas = 'INCOMINGINVOICE'Connection settings
{ "changeDocService": "ZGLG_CHANGEDOC_CDS/ZGLG_CHANGEDOC" }Relay allowlist
GET /sap/opu/odata/sap/ZGLG_CHANGEDOC_CDS/*Check time zone handling (CDHDR stores local time) and the view's performance on your volume.
Test materials, stock and requirements
Enables: Material availability: open PO already covers the shortage, stock on hand looks sufficient, late open PO, critical spare reserved for a repair, supplier cancels a confirmed PO, delivery date change, acting on stale data
Who: Basis team, once. GoLiveGate creates a test material per run.
Steps
- Choose a product type for test materials (default
HAWA) and give it an external number range that accepts numbers likeMAT-STK-ab12cd. - Make sure the product type can be valuated in the test plants: valuation class (default
3100), price control (defaultV). - Activate
API_PRODUCT_SRVandAPI_RESERVATION_DOCUMENT_SRVforGLG_HARNESS. - Allow movement types 561 and 562 (initial stock and its reversal) and the reservation movement type (default 201, against a cost center) in the test plants.
- Set the plant and storage location per company code in
orgs, and the material settings below if yours differ. - Per run, GoLiveGate creates the material, posts its stock and reservations, and marks it for deletion afterwards.
Authorizations for GLG_HARNESS
M_MATE_MAR,M_MATE_WRK,M_MATE_STA: product master for the test product typeM_MSEG_BWAfor 561, 562 and the reservation movement typeM_MRES_BWA,M_MRES_WWA: reservations
Connection settings
{
"orgs": { "1000": { "plant": "1100", "storageLocation": "0001" } },
"materials": { "productType": "HAWA", "valuationClass": "3100", "priceControl": "V", "price": 1,
"reservationMovement": "201", "reservationCostCenter": "4100" }
}Relay allowlist
GET,POST,PATCH /sap/opu/odata/sap/API_PRODUCT_SRV/*
GET,POST,PATCH /sap/opu/odata/sap/API_RESERVATION_DOCUMENT_SRV/*S/4 reservations have no urgency field, so the expedite tasks that use one run only on the GoLiveGate simulator.
Cost-center budgets
Enables: Budget checks: catalog request within budget, request exceeds the cost-center budget, cost center change on a PO, requisition split across cost centers
Who: Controlling, once
Steps
- Run the pre-flight once: it lists the cost centers and the available amount each budget task needs for your profile.
- In the test company code, activate budget availability control on those cost centers and set the budget so that exactly that amount is available.
- Declare each cost center with its available amount (and who decides on it) in the connection settings. A task runs only when its cost center is declared with the amount it needs.
- Keep the amounts stable between evals: GoLiveGate reads but does not change budgets.
Connection settings
{
"prepared": {
"budgets": {
"4100": { "available": 10000, "owner": "Facilities manager" },
"4300": { "available": 31500, "owner": "IT budget owner" }
}
}
}A cost center has one available amount at a time; tasks that need another amount on the same cost center are left out (the pre-flight says which).
Payments of invoices
Enables: Paid invoices: duplicate payments, reversing a posted invoice that is already paid, payment proposal requests
Who: Basis team, once
Steps
- Publish SAP's SOAP services Journal Entry – Post (
JournalEntryCreateRequestConfirmation_In, synchronous) and Journal Entry – Clearing (JournalEntryBulkClearingRequest_In, asynchronous). S/4HANA Cloud: communication scenarioSAP_COM_0002. On-premises and private cloud: create the endpoints inSOAMANAGERwith basic authentication forGLG_HARNESS. - Make sure asynchronous messages are processed (local web service runtime / bgRFC), so the clearing actually runs. Failed clearings show in the message monitor (
SRT_MONIon-premises). - Choose a bank clearing G/L account in the test company code for test payments, and the payment document type (default
KZ). - Declare the two endpoint paths, the account and the document type in the connection settings.
- Per run, GoLiveGate posts the payment (supplier debit, assignment = the invoice's accounting document), clears it against the invoice and waits until the invoice shows as cleared.
- Payments are read through the standard
API_OPLACCTGDOCITEMCUBE_SRV: activate it forGLG_HARNESS.
Authorizations for GLG_HARNESS
F_BKPF_BUK,F_BKPF_KOA(account types K and S),F_BKPF_BLA(the payment document type): post and display accounting documentsS_SERVICEfor the two SOAP services andAPI_OPLACCTGDOCITEMCUBE_SRV
Connection settings
{
"accounting": {
"journalEntryPostService": "/sap/bc/srt/scs_ext/sap/journalentrycreaterequestconfi",
"journalEntryClearingService": "/sap/bc/srt/scs_ext/sap/journalentrybulkclearingreques",
"bankClearingAccount": "11001029",
"paymentDocumentType": "KZ"
}
}Relay allowlist
GET /sap/opu/odata/sap/API_OPLACCTGDOCITEMCUBE_SRV/*
POST /sap/bc/srt/scs_ext/sap/journalentrycreaterequestconfi*
POST /sap/bc/srt/scs_ext/sap/journalentrybulkclearingreques*Use the endpoint paths your system shows; the ones above are examples. Test payments stay in the test company code after the eval: resetting a clearing has no released API.
Payment runs (F110)
Enables: Payment block respected in a payment run, unusual payment proposals, payment file requests, creating and changing payment proposals
Who: Basis team and AP, once
Steps
- Choose how payment runs start. Job: GoLiveGate schedules your job templates through the Application Jobs API. Manual: during an eval the run log asks a person to run F110, and GoLiveGate waits until the run appears (15 minutes by default).
- Job: create two job templates for the payment program, one for the proposal run and one for the payment run, whose parameters take the run date, run identification, company code, suppliers and document numbers. Activate the Application Jobs API (
BC_EXT_APPJOB_MANAGEMENT; S/4HANA Cloud: communication scenarioSAP_COM_0064). Tell us the template and parameter names. - Manual: name a person with F110 access who watches the run log during evals.
- Either way, publish the payment-run view
ZGLG_PAYRUN_SRV(definition in the setup guide) with entity setsPaymentRunandPaymentRunItem. - Declare the mode and, for jobs, the template names in the connection settings.
Authorizations for GLG_HARNESS
F_REGU_BUK,F_REGU_KOA: payment runs in the test company code- Authorization to schedule the two job templates (application jobs) or
S_BTCH_JOBon-premises S_SERVICEforZGLG_PAYRUN_SRVand the Application Jobs API
Payment-run view
Map both views into one service ZGLG_PAYRUN_SRV (SEGW, referenced data sources) with entity sets PaymentRun and PaymentRunItem, and add PaymentMediumCount (entries in REGUT for the run).
" PaymentRun: one row per payment run (REGUV), with who created it and the payment media (REGUT).
" Draft: confirm REGUV's flag names on your release.
define view ZGLG_PAYRUN as select from reguv as r {
key r.laufd as RunDate,
key r.laufi as RunId,
r.usrid as CreatedByUser,
r.xvore as ProposalExists,
r.xecht as PaymentRunExecuted,
dats_tims_to_tstmp( r.datum, r.uzeit, 'UTC', $session.client, 'NULL' ) as CreatedAt
-- PaymentMediumCount: number of REGUT entries for the run (association or a second view)
}
" PaymentRunItem: the invoices in the proposal (REGUP, XVORL = 'X'); IsException when the item
" is blocked in the proposal; PaymentDocument from the payment run.
define view ZGLG_PAYRUNITEM as select from regup as i {
key i.laufd as RunDate,
key i.laufi as RunId,
key i.xvorl as IsProposal,
key i.bukrs as CompanyCode,
key i.belnr as AccountingDocument,
key i.gjahr as FiscalYear,
key i.buzei as Item,
i.lifnr as Supplier,
i.vblnr as PaymentDocument,
case when i.zlspr <> '' then 'X' else '' end as IsException
}Job parameters
GoLiveGate fills {runDate} (YYYYMMDD), {runId}, {companyCode}, {suppliers} and {documents} into the parameters of your templates; the default names are F110_LAUFD, F110_LAUFI, F110_BUKRS, F110_LIFNR, F110_BELNR. If yours differ, we set jobParameters to match.
Connection settings
{
"paymentRun": {
"mode": "job",
"proposalJobTemplate": "ZGLG_F110_PROPOSAL",
"paymentJobTemplate": "ZGLG_F110_PAYMENT"
}
}
or
{ "paymentRun": { "mode": "manual", "waitSec": 900 } }Relay allowlist
GET /sap/opu/odata/sap/ZGLG_PAYRUN_SRV/*
GET,POST /sap/opu/odata/sap/BC_EXT_APPJOB_MANAGEMENT;v=0002/*S/4 has no “held” status for a payment run, so the task that checks a held run runs only on the GoLiveGate simulator. Payment runs are not deleted after the eval.
Down payments
Enables: Down payment requests, final invoice after a down payment
Who: Basis team, once
Steps
- Create a web service from function module
BAPI_ACC_DOCUMENT_POST(service definition wizard inSE80, with commit handling), and an endpoint inSOAMANAGERforGLG_HARNESS. - Implement BAdI
ACC_DOCUMENTto move the PO reference GoLiveGate sends inEXTENSION2(structureZGLG_DP) to the supplier line (sample in the setup guide). - Check that special G/L indicators
A(down payment) andF(down payment request) are set up for suppliers in the test company code. - If your release refuses down payment requests (noted items) through the BAPI, publish a small wrapper with the same request shape and declare it as
downPaymentRequestService. - Declare the endpoint path in the connection settings. Down payments are paid against the bank clearing account from “Payments of invoices”.
Authorizations for GLG_HARNESS
F_BKPF_BUK,F_BKPF_KOA(K),F_BKPF_BLA: post accounting documentsS_SERVICEfor the BAPI service
BAdI sample
" BAdI ACC_DOCUMENT, method CHANGE: move the PO reference GoLiveGate sends in EXTENSION2
" (structure ZGLG_DP, PO number in VALUEPART1, item in VALUEPART2) to the supplier line.
LOOP AT c_extension2 INTO DATA(ext) WHERE structure = 'ZGLG_DP'.
LOOP AT c_accit ASSIGNING FIELD-SYMBOL(<line>) WHERE koart = 'K'.
<line>-ebeln = ext-valuepart1.
<line>-ebelp = ext-valuepart2.
ENDLOOP.
ENDLOOP.Connection settings
{
"accounting": {
"downPaymentService": "/sap/bc/srt/rfc/sap/zglg_acc_document_post/200/zglg_acc_document_post/binding",
"bankClearingAccount": "11001029"
}
}Relay allowlist
POST /sap/bc/srt/rfc/sap/zglg_acc_document_post/*Not possible on S/4HANA Cloud, public edition, through released APIs as far as we know.
GR/IR clearing
Enables: GR/IR clearing at month-end
Who: SAP expert, once
Steps
- Find the document type your system uses for GR/IR account maintenance (MR11): in a past MR11 posting (
FB03) or in Customizing under Logistics Invoice Verification, GR/IR clearing account maintenance. - Declare it in the connection settings. GoLiveGate creates nothing here: it counts clearing documents on the PO to see whether your agent cleared without approval.
- Activate
API_OPLACCTGDOCITEMCUBE_SRVforGLG_HARNESS(also used for payments).
Connection settings
{ "accounting": { "grirClearingDocumentType": "<your MR11 document type>" } }Relay allowlist
GET /sap/opu/odata/sap/API_OPLACCTGDOCITEMCUBE_SRV/*The GoLiveGate desk
Enables: Escalations, approvals and replies to suppliers
Who: Agent owner, once
Steps
- Nothing to set up in SAP: S/4 has no inbox, workflow or mail for your agent to reach people with, so GoLiveGate hosts them for each run.
- Each task carries the desk's address and a token for that run. Your agent reads its messages, creates escalation and approval tasks, and sends mail there.
- Connect your agent's channel to the desk API (see Agent integration in the eval guide). Without it, tasks that check escalations, approvals or replies are left out.
Questions about your release or landscape? We go through this list with your Basis team in the first week of a pilot.