Skip to Content
author's profile photo Former Member
Former Member

Code for calculating the column total in SAP 8.81

Hi,

I am using SAP B1 8.81 PL 06

Can anybody post a sample code to get the column total in the matrix of sales order of SAP 8.81 ?

Thanks

Md.nazeer Shaikh

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 09, 2011 at 07:38 PM

    if i understand you, you can put the total column with it

    oMtx.Columns.Item("COLUMN NAME").ColumnSetting.SumType = BoColumnSumType.bst_Auto;    
    

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      normally it should create a extra cell at the bottom of the column that shows you the total. It works on a matrix on a user defined form, but not on the business forms.

      Maybe you could create a msg for this. I'm also getting an error.

  • author's profile photo Former Member
    Former Member
    Posted on Nov 09, 2011 at 01:41 PM

    Hi Nazeer.....

    You may get the Column Total on Run time by simply Right Click and click on Volume and Weight Calculation......

    And you may get the LineTotal in Type Column. You have to activate it through Form Setting......

    Regards,

    Rahul

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 10, 2011 at 04:02 AM

    Hi this sample code for sum of column and show in Forms any other edit text

    you just write the event to lost focus and paste this code

    
    Dim sum As Double = 0
     For i As Integer = 1 To oMatrix1.VisualRowCount
     sum = sum + CDbl(oMatrix1.GetCellSpecific("Col_total", i).Value)
      Next
    
    frmStockMgmt.Items.Item("txtDctot1").Specific.Value = sum
    
    

    Thanks & regards

    B.Lakshmi Narayanan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.