Quantcast
Channel: SCN : Popular Discussions - SAP Cloud Applications Studio
Viewing all articles
Browse latest Browse all 1333

Scripting the Creation of a Customer Invoice Request

$
0
0

Hello everyone,

 

I've been trying to follow the SAP example of how to create a Customer Invoice Request (CIR), but it's not working. Their version of the code is taken from the repository explorer; if one clicks on the CIR object then there's an example of how to create a CIR with a non-product item line. Using that verbatim didn't work, and neither does my current code given below. Can anyone help? When looking in Application and User Management > Process Communication Errors, it says that there are three errors, which I'll give comments on:

 

1) 'Sales data or pricing terms not found for account' --- I don't think this is true, as there are consistent CIRs in the system using the same buyer party and sales unit;

2) 'Payment terms not determined, maintain sales arrangement' --- it doesn't say anything about this being necessary in the repository;

3) 'Mandatory list price missing' --- it's clearly not, as you can see from my code.

 

Script file is mass-enabled, in case anyone's wondering why there's a 'foreach (var plan in this)' loop --- the idea is, eventually, to have it read in data from an uploaded XML file and create invoices based on that data, but for now I'm just trying to get a proof of concept.

 

 

CIR Creation.png


Viewing all articles
Browse latest Browse all 1333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>