cancel
Showing results for 
Search instead for 
Did you mean: 

SAP ByD - Create Supplier Invoice with multiple items using ABSL

Tri
Participant
0 Kudos

Hi,

I've been trying to create a supplier invoice with multiple items.

I've followed the sample code provided in Repository Explorer but it doesn't work.

It keeps returning the error

Also I find that when using the Create statement at Item level, it also adds another item as well.

What does the overload do here?

Does anyone have a working example?

Kind regards,

Tri

View Entire Topic
lewispeters
Explorer
0 Kudos

It tells you that a number of fields are missing --- something I found when doing this some time ago was that even if I specified values in the 'elementsof' variable, they were removed when creating the actual node data so needed to be set again. I suggest you follow the code in the debugger to see what's missing, I imagine it'll correspond in part to the errors you're seeing.

Tri
Participant
0 Kudos

Thank Lewis.

I've debugged and seen that some elements are cleared randomly.

For example, I set the gross amount at item level

SI_Item.GrossAmount.content = oItem.ItemGrossAmount.content;

then somehow it is removed after I create the item node while the description and quantity are not cleared

SI_Item1 = SI.Item.Create(SI_Item);

After trying many ways and still not working, I've given up and uses A2X way.

Regards,

Tri