2025 Sep 02 3:37 PM - edited 2025 Sep 02 3:38 PM
Hello experts,
I’m trying to assign a Cash Flow Line Item to a Journal Entry line using Service Layer. My payload looks like this:
{
"JournalEntryLines": [
{
"Line_ID": 0,
"CashFlowAssignments": [
{
"PaymentMeans": "pmtBankTransfer",
"CashFlowLineItemID": 63,
"JDTLineId": 0
}
]
}
]
}
If there is already a record in OCFT (Cash Flow Transactions table), and I specify CashFlowAssignmentsID, the request works.
But when no record exists in OCFT yet, I get the following error:
{
"error": {
"code": -2028,
"message": {
"lang": "en-us",
"value": "No matching records found (ODBC -2028)"
}
}
}My question: How can I create a new CashFlowAssignments row for a Journal Entry line via Service Layer when no OCFT row exists yet?
Thanks in advance for your guidance!
Request clarification before answering.
Hi beka,
Can you perform the same action successfully using SAP Business One client (performing the steps manually)?
If yes, you can try to retrieve that Journal Entry using GET request in Service Layer and verify your data.
If no, the same cannot be done via Service Layer as well.
Kind regards,
ANKIT CHAUHAN
SAP Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.