on 05-04-2015 10:13 AM
Hi experts,
In production order i want to check whether the ware house code in header and in each row ware house code is same .
its already there
but i want to know how can we check it through coding
Please Help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nikhil,
Dim sHeaderWhs As String = form.Items.Item("78").Specific.ToString
Dim oMtx As SAPbouiCOM.Matrix = form.Items.Item("37").Specific
For i As Integer = 1 To oMtx.RowCount
Dim sItem As String = oMtx.GetCellSpecific("4", i).String
If sItem.Trim = "" Then Continue For
Dim sLineWhs As String = oMtx.GetCellSpecific("10", i).String
If sHeaderWhs <> sLineWhs Then Throw New Exception(String.Format("Warehouse not match. Line {0}", i))
Next
Regards
Edy
Hi Nikhil,
What will happens when they are not the same ?
If you want to block the document, you can use SP Transaction Notification.
Regards
Edy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.