cancel
Showing results for 
Search instead for 
Did you mean: 

FMS help

kjetil_sandvik2
Participant
0 Kudos

  Hi experts,

Is it possible to have an FMS on line level in Credit Memo which will repeat the value on the first line into all other lines?

I have an UDF called U_Returkode , and I will place a value in here on the first line. But I want all other lines to be filled out automatically based on the value on the first line.

BR
Kjetil Sandvik

Accepted Solutions (1)

Accepted Solutions (1)

former_member201110
Active Contributor
0 Kudos

Hi Kjetil,

A FMS at the line level can only be triggered by a change of value on that line. You would have to use the UI API (ie SDK development) to copy values to all lines.

Kind Regards,

Owen

Answers (3)

Answers (3)

kjetil_sandvik2
Participant
0 Kudos

Thanks for the advice experts.

Former Member
0 Kudos

hi,

Kjetil Sandvik

i dont know much about fms . but expers are saying  it is not possible..

they said  sdk only you can get the solution..

if your requirement is default value for each row you can set default value while creating the field  have a look on the first image....  but you are saying what ever the value enter at row 1 that value should be come into next rows..  in this case this solutions not your answer..

if you need any sdk help have a look on second image..

i develop small code..

179  is your form code ....

179  for Arcredit memo

select itemcode and  press tab  you can get the result

        Try

            If (pVal.FormType = "179" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_GOT_FOCUS And pVal.ColUID = "3" And pVal.ItemUID = "38" And pVal.BeforeAction = False) Then

                oForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)

                omatirx = oForm.Items.Item("38").Specific

                For i As Integer = 1 To omatirx.VisualRowCount

                    If (pVal.Row = i) Then

                        If (i <> 1) Then

                            If (omatirx.Columns.Item("U_Returkode").Cells.Item(1).Specific.value <> "") Then

                                omatirx.Columns.Item("U_Returkode").Cells.Item(pVal.Row).Specific.value = omatirx.Columns.Item("U_Returkode").Cells.Item(1).Specific.value

                            End If

                            Exit Try

                        End If

                    End If

                Next

            End If

        Catch ex As Exception

            SBO_Application.MessageBox(ex.Message)

        End Try

Former Member
0 Kudos

Hi Kjetil,

No can't achive this with FMS, as FMS is cell specific and can be triggered on the Cell where it is applied and thus not applicable to other cells of the column.

As said above you have to use SDK to achive what you want .

Regards