on 11-28-2016 10:10 AM
Hi,
I have to update/modify the iStockID for every product in a Sales Transaction. In the ByD Interface it can be modified manually, but its long time..
I found the: PointOfSaleTransaction.RetailTransaction.RetailTransactionSalesItem.InventoryItemChange.IdentifiedStockKey.ID element in the PointOfSaleTransaction Business Object, but the Public Write Access is NO.
My question: Is there any other BO or way, where this element can be modified?
Hello Hunor,
Do you have some ABSL in place which is called during the process?
If yes, you need to find the resp. POS, define a data structure for the InventoryItemChange node and pass this structure in the Create() call.
For an example see the documentation.
Bye,
Horst
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Horst,
this is the ABSL code:
import AP.CustomerInvoicing.Global;
var query = PointOfSaleTransaction.QueryByElements;
var params = query.CreateSelectionParams();
params.Add(query.ID.content, "I", "EQ", this.SomeID);
var queryResult = query.Execute(params);
var transaction;
var f;
if(queryResult.Count() > 0) {
foreach(var saleTransaction in queryResult) {
transaction = saleTransaction;
foreach(var saleItem in transaction.RetailTransaction.RetailTransactionSalesItem) { saleItem.InventoryItemChange.IdentifiedStockKey.ID = 100217;
}
}
}
We got an error "Error2Identifier 'ID' is read-only and cannot be changed" for line
saleItem.InventoryItemChange.IdentifiedStockKey.ID = 100217;
If you need more detail, please let us know
Thank you,
Hunor
Hi Horst,
we are able to change/assign the iStockID from the SAP BYD interface, take a look at this:
You can find this screen at: Customer Invoicing -> Point-of-Sale Transactions->Sales Transactions
After selecting the transaction, click Edit and on the Detail Screen, select Sale Items tab, and there you can fill the iStockId by clicking on the box as the image shown above.
Please let us know if we can do this from ABSL code
Thank you,
Hunor
Hello Hunor,
Do you create the InventoryItemChange node manually?
In this case you are able to hand over a data structure with your data (incl. the Key).
HTH,
Horst
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hunor,
You would not be able to update alternative key, it can only be created.
Thanks, Pradeep.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pradeep,
Thanks for your reply.
What type of BO should I create to assign a lot/batch to PointOfSaleTransaction?
In detail:
Note: those invoices that contains products that lot/batch ID has not been assigned are hang-up in the system and currently we are doing manually the assignation
Please let us know a way to be able to determine the lot/batch ID for invoice products
Thanks, Hunor.
Hello Hunor,
Is there any information via the Repisitory Explorer for this issue like an element description or any action
Did you took a look there?
Bye,
Horst
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Horst,
Thank you for the reply. I attached a screenshot about the information of the ID from Repository Explorer and the Definition of the IdentifiedStockKey is:
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.