Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9190

Re: Project field

$
0
0

Hi Experts,

 

I welcome anyone of you that could kindly answer my problem.

I actually want to copy project code of selected journals in the BP internal

reconciliation.

 

The steps are:

1. After selecting the journal entried, the user click the “Adjustment” button

2. then system autoamtically load of JE adjustment

3. In the JE, the project code should be filled automatically.

 

My syntax:

Public Sub ItemEvent_Handler_JournalEntry(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean)

        If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_ACTIVATE Then

            If pVal.BeforeAction = False And pVal.ActionSuccess = True Then

                If T_IsFrReconcile = True Then

                    Dim oForm As SAPbouiCOM.Form

                    Dim oComboProject As SAPbouiCOM.ChooseFromList

                    oForm = SBO_Application.Forms.Item(pVal.FormUID)

                    oForm.Freeze(True)

                   oComboProject = CType(oForm.Items.Item("26").Specific, SAPbouiCOM.ComboBox)

                                        If oComboProject.Selected.Value <> M_ProjectReconcile Then

                        oComboBoxProject.Select(M_ProjectReconcile, SAPbouiCOM.BoSearchKey.psk_ByValue)

                    End If

                    M_IsFrReconcile = False

                    oForm.Freeze(False)

                End If

    End Sub

 

 

but not work well.

 

Pls help.

 

Steve


Viewing all articles
Browse latest Browse all 9190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>