Skip to Content

Creating Purchase Order Using Procurement Confirmation Wizard

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Aug 01, 2014 at 01:21 PM

    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

    Add comment
    10|10000 characters needed characters exceeded