Symptom
User is trying to create credit segment for Business Partner via Standard API call they were unsuccessful.
Environment
SAP S/4HANA Cloud.
Reproducing the Issue
- For a business partner whose Credit Profile Data is created.
- Then use POST method to create Credit Segment Data.
Cause
You can create profile and segment data in one shot, if the profile is not created yet. Need not to give the profile data in the payload.
Resolution
Use the given below POST url and the payload.
POST url:
/API_CRDTMBUSINESSPARTNER/CreditMgmtBusinessPartner('XXXXXXXX')/to_CreditMgmtAccountTP
Payload:
{
"BusinessPartner": "XXXXXXXX",
"CreditSegment": "YYYY",
"CreditLimitAmount": "value",
"CreditLimitCalculatedAmount": "0",
"CreditLimitIsZero": false,
"CreditSegmentCurrency": "ZZZ"
}
See Also
help.sap document Openaration for Credit Management Master Data
API hub https://api.sap.com/api/API_CRDTMBUSINESSPARTNER/overview
Keywords
API_CRDTMBUSINESSPARTNER, POST, to_CreditMgmtAccountTP, credit, segment, payload, profile, S4_PC , KBA , FIN-FSCM-CR , Credit Management , FIN-FSCM-CR-2CL , Credit Management (Public Cloud) , How To