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

Ship To and Bill To Addresses

$
0
0

Hi all,

 

I'm using external web service in order to create a sales order from C4C  sales quote to my ERP system.

 

I want to send the WS the complete sales quote- product lines as well as account details such as ID, contacts and addresses information.

I have an extension field for each BO (Account, Address, Contact) which hold the external ID of the ERP system.

ERP address name.PNG

 

 

I wrote an ABSL script in the BeforeSave event of the sales quote whoich invokes the WS (I already configured that part)

 

My problem is this:

I want to send to the ERP system both Bill To and Ship To Address, but in order to identify those address I have to use the field I created "ERP address name) , however, inside my script I can't reach this field.

When i checked the field definition in KUT, I saw there is no extension scenario for this field.

ERP address name scenario.png

 

so,

1. How can I reach the ERP address name field within sales quote ABSL?

2. why can't I extend this field to include it also in sales quote involved parties?

 

My script:

var    Request : Library::ExSalesOrders.InsertOrder.Request;

 

   

 

                Request.composite.CardCode = this.BuyerParty.Party.BusinessPartnerInternalID;

                Request.composite.ContactId = this.BuyerParty.MainPartyContactParty.PartyKey.PartyID.content;

                Request.composite.BillToAddressId = ???;

                Request.composite.Discount = 5;

                Request.composite.DocCurrency = "USD";

                Request.composite.ShipToAddressId = ???;

                Request.composite.VAT = 20;

 

var Response = Library::ExSalesOrders.InsertOrder(Request,"","ExSalesOrders");

var CommFault = Response.InsertOrderResult;

 

Thanks,

Dror


Viewing all articles
Browse latest Browse all 1333

Trending Articles



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