Showing results for 
Search instead for 
Did you mean: 

How to set Copy From Production Order Into the Inventory transfer

Former Member
0 Kudos

Hello Expert.,

          I want to Modify inventory transfer form. I want to set in inventory transfer form in copy from button i want to set production order.mean i want to copy production order into the inventory transfer. please help me how can i do. for more under stranding i attach image also. 

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Great info thanks!

Former Member
0 Kudos

Hi Harshit,

try this...

If (pVal.FormType = "940" ) Then

            If (pVal.ItemUID = "1250000074" ) Then

                If pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK And pVal.Before_Action = True Then


                        Dim isPresent As Boolean = False

                        Dim oForm As SAPbouiCOM.Form

                        Dim oBtnCombo As SAPbouiCOM.ComboBox

                        If pVal.FormType = "940" Then

                            oForm = SAP_Application.Forms.GetFormByTypeAndCount("940", pVal.FormTypeCount)

                            oBtnCombo = oForm.Items.Item("1250000074").Specific


                        End If

                        'oBtnCombo = oForm.Items.Item(pVal.ItemUID).Specific

                        Dim oCnt As Integer = 0

                        While oCnt < oBtnCombo.ValidValues.Count

                            If oBtnCombo.ValidValues.Item(oCnt).Value = "XYZ" Then

                                isPresent = True

                            End If

                            oCnt = oCnt + 1

                        End While

                        If isPresent = False Then

                            oBtnCombo.ValidValues.Add("XYZ", "XYZ")

                        End If

                    Catch ex As Exception

                        SAP_Application.MessageBox("Error : " & ex.Message)

                        Exit Sub

                    End Try

                End If

            End If

        End If

I hope its work for you..


Sandeep kumar

Former Member
0 Kudos

Which transaction or module is that function? Should be in MM correct but I would like to help!