zoukankan      html  css  js  c++  java
  • 排序(sort)、小计(subtotal)

    排序在ALV中也是一个比较重要的功能,在有合计(参照-->SALV教程11-Aggregations应用-合计(total)、小计(subtotal)、平均值(average))的场合下,排序能实现排序字段的小计(subtotal).

    具体实现方法:

    1,通过get_sorts方法得到类CL_SALV_SORTS的引用,

    2,通过add_sort方法添加排序的字段,如果还要小计,输入参数subtotal就要传入’X'

    2016-09-21_16-04-14

    完整代码

    运行,按销售订单号升序排序,并且每个订单有小计,

    2016-09-21_15-53-21

    以上。

  • 相关阅读:
    转载 logback的使用和logback.xml详解 http://www.cnblogs.com/warking/p/5710303.html
    HTTP 416
    maven 下载jar失败: Missing artifact javax.jms:jms:jar:1.1
    maven 下载jar失败: resolution will not be reattempted until the update interval of central has elapsed or updates are forced
    Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0
    转载 Servlet3 的 @WebServlet http://www.cnblogs.com/luxh/archive/2012/06/06/2537458.html
    mysqld服务启动失败, Failed to restart mysqld.service: Unit not found.
    <转载> 22种代码味道(Martin Fowler与Kent Beck) http://blog.csdn.net/lovelion/article/details/9301691
    再谈java clone 以及 浅/深拷贝
    设计模式——再谈工厂模式
  • 原文地址:https://www.cnblogs.com/lvdong18847870057/p/12546998.html
Copyright © 2011-2022 走看看