2422605 - Suppression of error messages raised while Supplier invoice creation via ABSL scripting

SAP Knowledge Base Article - Public

2422605 - Suppression of error messages raised while Supplier invoice creation via ABSL scripting

Symptom

How to suppress few errors that araise while document is created via ABSL scripting like given below

Error message:Item missing

but item gets created in later steps

Resolution

We recommend you to use the A2X approach,

  1. Go to Application user management work center
  2. Navigate to :Service explorer and search for "ManageSupplierInvoiceIn"
  3. Click on the documentation "Link" for more details


Steps required in PDI are given below:

1) Create an External Web Service Integration in PDI Add-On for SIV A2X create Service( refer to help document in ByD Studio on how to create the same ) . Please make sure the communication scenario with the communication arrangements are correctly created.



2) Write an ABSL script similar to below to trigger the Invoice creation with reference to a Purchase Order Item using SIV A2X.



import ABSL;

import AP.SupplierInvoicing.Global ;

var request: Library::SIV.MaintainBundle.Request;

var header: Library::SIV.MaintainBundle.Request.SupplierInvoiceBundleMa intainRequest_sync.SupplierInvoice;

var item :Library::SIV.MaintainBundle.Request.SupplierInvoiceBundleMaint ainRequest_sync.SupplierInvoice.Item;

header.BuyerParty.PartyKey.PartyID.content = "MC10000";

header.SellerParty.PartyKey.PartyID.content ="MC2000";

header.BusinessTransactionDocumentTypeCode.content = "004" ;

//header.Date = "2016-10-26" ;



item.BusinessTransactionDocumentItemTypeCode = "002" ;

item.PurchaseOrderReference.BusinessTransactionDocumentReference.ID.cont ent = "50";

item.PurchaseOrderReference.BusinessTransactionDocumentReference.TypeCod e.content = "001";

item.PurchaseOrderReference.BusinessTransactionDocumentReference.ItemID = "1" ;

header.Item.Add(item);

request.SupplierInvoiceBundleMaintainRequest_sync.SupplierInvoice.Add(he ader);

var response = Library::SIV.MaintainBundle(request, " ", "SIV_COMM");

Keywords

KBA , AP-RC-BDS , ByDesign Studio , How To

Product

SAP BUSINESS BYDESIGN 1611 ; SAP BUSINESS BYDESIGN 1705 ; SAP BUSINESS BYDESIGN 1708 ; SAP BUSINESS BYDESIGN 1802 ; SAP Business ByDesign 1.0 ; SAP Business ByDesign 1302 ; SAP Business ByDesign 1305 ; SAP Business ByDesign 1308 ; SAP Business ByDesign 1311 ; SAP Business ByDesign 1402 ; SAP Business ByDesign 1405 ; SAP Business ByDesign 1408 ; SAP Business ByDesign 1411 ; SAP Business ByDesign 1502 ; SAP Business ByDesign 1505 ; SAP Business ByDesign 1508 ; SAP Business ByDesign 1511 ; SAP Business ByDesign 1602 ; SAP Business ByDesign 1605 ; SAP Business ByDesign 1608 ; SAP Business ByDesign 1702 ; SAP Business ByDesign 1711 ; SAP Business ByDesign feature pack 2.0 ; SAP Business ByDesign feature pack 2.5 ; SAP Business ByDesign feature pack 2.6 ; SAP Business ByDesign feature pack 3.0 ; SAP Business ByDesign feature pack 3.5 ; SAP Business ByDesign feature pack 4.0