cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Purchase Order Using Procurement Confirmation Wizard

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

edy_simon
Active Contributor
0 Kudos

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

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi ,

Thank you for your reply. It worked and also you saved my day..

Thanks Buddy......

Thanks & Regards

Ankit Chauhan

Answers (0)