on 2022 Jan 17 3:01 PM
Hello All
I am currently trying to create a customer using ABSL script in a custom action from my custom object , so far the creation is successful however when trying to add or set the sales organization and distribution channel i get the following error in Bydesign :
"An error occurred
Please try resuming your work. If you still face issues, report an incident.
Details
ClassName
sap.b.controller.event.PostRequest
MethodName
post
Response
500 SAP Internal Server Error "
My current ABSL code is as follows:
import ABSL;
import AP.FO.BusinessPartner.Global;
import AP.FO.Address.Global;
// define root node
var elCustomerRoot: elementsof Customer;
var newCustomer;
elCustomerRoot.CategoryCode = "1";
newCustomer = Customer.Create(elCustomerRoot);
newCustomer.CurrentBusinessCharacters.CustomerIndicator = true;
newCustomer.InternalID = "FTEST08";
newCustomer.CurrentCommon.Person.Name.FamilyName = "Testname";
newCustomer.SalesArrangement.GetFirst().DistributionChannelCode.content = "01";
newCustomer.SalesArrangement.GetFirst().SalesOrganisationUUID.content = UUID.ParseFromString("00163EBF-D9B8-1EEB-BD84-BD26CD774BF0");
newCustomer.Activate();
raise patient.Create("I");
Without the lines for sales organization and distribution channel the customer is successfully created on the system, however if i add these two lines i get the the previous error. Could anyone point out what im doing wrong in my code or how to correctly set the sales org. and distribution channel?
Any advice would be appreciated.
Thank you
Request clarification before answering.
| User | Count |
|---|---|
| 33 | |
| 18 | |
| 15 | |
| 14 | |
| 9 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.