on 08-01-2014 1:11 PM
Dear All,
I am trying to add the Purchase Orders using the Procurement Confirmation Wizard. Now I want to get those Purchase Orders list that are added using this Procurement Confirmation Wizard. How can I do that ? By this I mean, I do not know on which event I should use this and How to get the DocNum or DocEntry of the added Purchase Orders ?
Please help me to solve this.
Any Kind of help would be appreciated.
Thanks & Regards
Ankit Chauhan
Hi Ankit,
Catch the event of form 540010007
On the After Item Pressed event
do this :
Select Case pVal.ItemUID
Case "_wiz_next_"
If form.PaneLevel = 8 Then
Dim bDraft As Boolean = False
Dim oMtx As SAPbouiCOM.Matrix = form.Items.Item("540000036").Specific
Try
Dim oChb As SAPbouiCOM.CheckBox = form.Items.Item("540000020").Specific 'Draft check box
If oChb.Checked Then bDraft = True 'Means only draft document created
Catch ex As Exception
End Try
Dim oColPOEntry As New Collections.Generic.List(Of Integer)
For i As Integer = 1 To oMtx.RowCount
If oMtx.Columns.Item("540000011").Cells.Item(i).Specific.String <> "0" Then 'This column stores the doc entries - not visible to user
oColPOEntry.Add(oMtx.GetCellSpecific("540000011", i).String)
End If
Next
End If
End Select
If you are using SBO 9, I believe there should be another column in matrix 540000036 that stores the object type of the created document.
In older version, the procurement only create a PO/Draft object.
In latest version, you are allowed to create PO/PQ/Prod Order object.
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 |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.