SAP BW:QUERY数据结果写入ADSO

news2024/11/17 3:33:30
作者 idan lian  如需转载备注出处

如果对你有帮助,请点赞收藏~~~

需求背景

客户基于QUERY进行报表展示,现需迁移到永洪报表平台,query中的变量参数,公式等无法直接生成视图,query相对复杂,不想直接在视图复现,想办法取出query的执行结果,落地存入ADSO。供报表平台使用

解决方案

通过函数执行query结果,并生成动态内表,将数据写入ADSO中

落地query如下

创建ADSO如下

1.创建函数:Z_GET_BW_QUERY_DATA

FUNCTION Z_GET_BW_QUERY_DATA.
*"----------------------------------------------------------------------
*"*"本地接口:
*"  IMPORTING
*"     REFERENCE(I_INFOPROVIDER) TYPE  RSINFOPROV
*"     REFERENCE(I_QUERY) TYPE  RSZCOMPID
*"     REFERENCE(I_VIEW_ID) TYPE  RSZVIEWID
*"     REFERENCE(I_T_PARAMETER) TYPE  RRXW3TQUERY
*"  EXPORTING
*"     REFERENCE(DY_TABLE) TYPE REF TO  DATA
*"----------------------------------------------------------------------

*Global data declarations
  DATA wa_parameter TYPE w3query.
  DATA i_parameter TYPE TABLE OF w3query .
  DATA wa_query_result TYPE rrws_s_cell .
  DATA query_result TYPE TABLE OF rrws_s_cell .

  DATA wa_axis_result TYPE LINE OF rrws_thx_axis_data .
  DATA axis_result TYPE  rrws_thx_axis_data .

  DATA wa_tx_set_1 TYPE LINE OF rrws_tx_set.
  DATA tx_set_1 TYPE rrws_tx_set.

  DATA wa_tx_set_0 TYPE LINE OF rrws_tx_set.
  DATA tx_set_0 TYPE rrws_tx_set.

*解决动态内表最多创建36次的问题
  TYPE-POOLS:abap.
  DATA:ls_components TYPE abap_componentdescr,
       lt_components TYPE abap_component_tab,
       lo_elemt_type TYPE REF TO cl_abap_datadescr,
       lo_type       TYPE REF TO cl_abap_typedescr,
       z_stu         TYPE REF TO  cl_abap_structdescr,
       z_tab         TYPE REF TO  cl_abap_tabledescr,
       lr_dyn_wa     TYPE REF TO data.
*       DYN_TABLE  TYPE REF TO DATA.


  TYPES: BEGIN OF dzgx,
           fieldname     LIKE lvc_s_fcat-fieldname,
           fieldnamec(6) TYPE c,
         END OF dzgx.
  DATA: wa_mcdz TYPE dzgx,
        it_mcdz TYPE HASHED TABLE OF dzgx WITH UNIQUE KEY fieldname.

  DATA: k_num         TYPE i,
        c_num         TYPE i,
        lines_num     TYPE i,
        c1_num        TYPE i,
        it_structure  TYPE lvc_t_fcat,
        wa_structure  TYPE lvc_s_fcat,
        pos           TYPE i,
        line_ps       TYPE i,
        index         TYPE i,
        index1        TYPE i,
        field_name(6) TYPE c,
        posc(6)       TYPE c,
        pos1          TYPE i,
        lv_string     TYPE string.
  DATA:wa_new_line TYPE REF TO data.
  FIELD-SYMBOLS:<dyn_table> TYPE STANDARD TABLE,
                <dyn_wa>    TYPE any,
                <dyn_field> TYPE any.

  DATA:dy_line  TYPE REF TO data.


  CALL FUNCTION 'RRW3_GET_QUERY_VIEW_DATA'
    EXPORTING
      i_infoprovider          = i_infoprovider
      i_query                 = i_query
      i_view_id               = i_view_id
      i_t_parameter           = i_t_parameter
    IMPORTING
*     E_AXIS_INFO             =
      e_cell_data             = query_result
      e_axis_data             = axis_result
*     E_TXT_SYMBOLS           =
    EXCEPTIONS
      no_applicable_data      = 1
      invalid_variable_values = 2
      no_authority            = 3
      abort                   = 4
      invalid_input           = 5
      invalid_view            = 6
      OTHERS                  = 7.
  IF sy-subrc <> 0.

    IF query_result IS INITIAL AND axis_result IS INITIAL.
      RETURN.
    ELSE.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
  ENDIF.

  pos = 1.

  READ TABLE axis_result INTO wa_axis_result WITH KEY axis = '001'.
  tx_set_1[] = wa_axis_result-set[] .
  DELETE tx_set_1 WHERE tuple_ordinal <> '000000'.
  DESCRIBE TABLE tx_set_1 LINES c_num.

  LOOP AT tx_set_1 INTO wa_tx_set_1.

    posc = pos.

    CONDENSE posc.
    CONCATENATE 'C' posc INTO field_name.
    wa_structure-fieldname = field_name.
    wa_structure-col_pos = pos.         " 表数
    wa_structure-inttype = 'C'.        " 数据类型
    wa_structure-intlen  = 30.         " 长度

    wa_mcdz-fieldname = wa_tx_set_1-chanm.
    wa_mcdz-fieldnamec = field_name.

    INSERT  wa_mcdz INTO TABLE it_mcdz.
    pos = pos + 1.
    APPEND wa_structure TO it_structure.
  ENDLOOP.

  READ TABLE axis_result INTO wa_axis_result WITH KEY axis = '000'.
  DESCRIBE TABLE wa_axis_result-set LINES k_num.
  tx_set_0[] = wa_axis_result-set[].

  pos1 = 1.
  LOOP AT tx_set_0 INTO wa_tx_set_0.
    .
    posc = pos1.
    CONDENSE posc.
    CONCATENATE 'V' posc INTO field_name.
    wa_structure-fieldname = field_name.
    wa_structure-col_pos = pos.         " 表数
    wa_structure-inttype = 'C'.        " 数据类型
    wa_structure-intlen  = 30.         " 长度
    pos = pos + 1.
    pos1 = pos1 + 1.
    APPEND wa_structure TO it_structure.
  ENDLOOP.


*  连续取36次 创建36次动态内表 就会dump
*  CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
*    EXPORTING
*      IT_FIELDCATALOG = IT_STRUCTURE
*    IMPORTING
*      EP_TABLE        = DY_TABLE.

  LOOP AT   it_structure INTO wa_structure .
    ls_components-name  =   wa_structure-fieldname.
    lv_string = '/BIC/AZT_MMD012-BWAPPLNM'.”替换成现有系统长一点的数据库表字段就行
    CALL METHOD cl_abap_datadescr=>describe_by_name
      EXPORTING
        p_name         = lv_string
      RECEIVING
        p_descr_ref    = lo_type
      EXCEPTIONS
        type_not_found = 1
        OTHERS         = 2.
    ls_components-type ?=  lo_type.
    APPEND   ls_components TO  lt_components.
  ENDLOOP.


  CALL METHOD cl_abap_structdescr=>create
    EXPORTING
      p_components = lt_components
    RECEIVING
      p_result     = z_stu.

  CALL METHOD cl_abap_tabledescr=>create
    EXPORTING
      p_line_type = z_stu
    RECEIVING
      p_result    = z_tab.


  " 参照动态结构类型和动态内表类型创建内表与工作区
  CREATE DATA lr_dyn_wa    TYPE HANDLE z_stu.
  CREATE DATA dy_table TYPE HANDLE z_tab.

  " 指定内表与工作区到字段符号
  ASSIGN lr_dyn_wa->*    TO <dyn_wa>.
  ASSIGN dy_table->* TO <dyn_table>.



  READ TABLE axis_result INTO wa_axis_result WITH KEY axis = '001'.
  tx_set_1[] = wa_axis_result-set[] .
  DESCRIBE TABLE tx_set_1 LINES c1_num.
  lines_num = c1_num / c_num.

  line_ps = 1.
  WHILE line_ps <= lines_num.

    index = c_num * ( line_ps - 1 ) + 1.
    DO  c_num TIMES.
      pos = 1.
      WHILE pos <= c_num.
        index1 = index + pos - 1.
        READ TABLE tx_set_1 INTO wa_tx_set_1 INDEX index1 .
        posc = pos.
        CONDENSE posc.
        CONCATENATE 'C' posc INTO field_name.
        READ TABLE it_mcdz INTO wa_mcdz WITH  KEY fieldname = wa_tx_set_1-chanm.
        wa_structure-fieldname = wa_mcdz-fieldnamec.
        ASSIGN COMPONENT wa_structure-fieldname OF STRUCTURE <dyn_wa> TO <dyn_field>.
*之前取文本,改成取指标
*        IF wa_tx_set_1-caption = ''.
*          <dyn_field> = wa_tx_set_1-chavl.
*        ELSE.
*          <dyn_field> = wa_tx_set_1-caption.
*        ENDIF.
        <dyn_field> = wa_tx_set_1-chavl.
        pos = pos + 1.
      ENDWHILE.

    ENDDO.

    index = k_num * ( line_ps - 1 ) + 1.
    DO  k_num TIMES.
      pos = 1.
      WHILE pos <= k_num.

        READ TABLE tx_set_0 INTO wa_tx_set_0 INDEX pos .
        posc = pos.
        CONDENSE posc.
        CONCATENATE 'V' posc INTO field_name.
        wa_structure-fieldname = field_name.
        ASSIGN COMPONENT wa_structure-fieldname OF STRUCTURE <dyn_wa> TO <dyn_field>.

        index1 = index + pos - 1.
        READ TABLE query_result INTO wa_query_result INDEX index1 .
*        <DYN_FIELD> = WA_QUERY_RESULT-VALUE.
        <dyn_field> = wa_query_result-formatted_value.
*改成取带单位的单元格数据
        pos = pos + 1.
      ENDWHILE.

    ENDDO.

    APPEND <dyn_wa> TO <dyn_table>.
    CLEAR <dyn_wa>.

    line_ps = line_ps + 1.
  ENDWHILE.





ENDFUNCTION.

2.基于函数创建程序 Z_GET_ZDEMO

*&---------------------------------------------------------------------*
*& Report Z_GET_ZDEMO
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT Z_GET_ZDEMO.
TABLES:/BIC/AZTDEMO2.

*PARAMETER:z_fsr_f TYPE /bic/azfiglc046-fiscper OBLIGATORY .
*PARAMETER:z_fsr_t   TYPE /bic/azfiglc046-fiscper  .
*SELECT-OPTIONS: z_comp FOR /bic/azfiglc046-/bic/zcomp_cod.

*根据query生成的动态结构定义,维度为C,指标为V,有多少条创建多少个
TYPES:
  BEGIN OF line,
    c1(100) TYPE c,
    c2(100) TYPE c,
    c3(100) TYPE c,
    c4(100) TYPE c,
    c5(100) TYPE c,
    c6(100) TYPE c,
    c7(100) TYPE c,
    c8(100) TYPE c,
    c9(100) TYPE c,
    v1(30)  TYPE c,
    v2(30)  TYPE c,
    v3(30)  TYPE c,
    v4(30)  TYPE c,
    v5(30)  TYPE c,
    v6(30)  TYPE c,
  END   OF line.

DATA:
  wa_line      TYPE line,
  lt_dso       TYPE TABLE OF /BIC/AZTDEMO2,
  ls_dso       TYPE /BIC/AZTDEMO2,
  wa_parameter TYPE w3query,
  i_parameter  TYPE TABLE OF w3query,
  dyn_table    TYPE REF TO data.

FIELD-SYMBOLS:
  <dyn_table> TYPE STANDARD TABLE,
  <dyn_wa>    TYPE any,
  <dyn_field> TYPE any.


DATA:e_lines_inserted TYPE int4,
     et_msg           TYPE rs_t_msg,
     e_upd_req_tsn    TYPE rspm_request_tsn,
     et_act_req_tsn   TYPE rsdso_t_tsn.

INITIALIZATION.

*  SELECT
* SINGLE
*   zdate INTO @DATA(lv_zdate)
* FROM  ztcon_bpc02 .
*
*  z_fsr_f = lv_zdate+0(4) && '001' .
*
*  z_fsr_t =  lv_zdate+0(4) && '0' && lv_zdate+4(2).



*----------------------------------------------------------------------*
*           数据处理过程                                               *
*----------------------------------------------------------------------*

START-OF-SELECTION.

*要先将要更新的模型内的公司库存数据 R掉  在插入新的,在where后面加入期间限制,即可按月刷新ASDO.。

  SELECT
  PLANT,
  COORDER,
  MATERIAL,
  /BIC/ZCALMONTH,
  'R' AS RECORDMODE,
  /BIC/ZCALYEAR,
  COMP_CODE,
  BASE_UOM,
  /BIC/ZCAMONTH2,
  LOC_CURRCY,
  /BIC/ZMENGE1,
  CPQUABU,
  /BIC/ZAHGPSL,
  /BIC/ZABHGSL,
  /BIC/ZACZ,
  /BIC/ZACZHFG
    INTO TABLE @DATA(lt_r)
  FROM  /BIC/AZTDEMO2.


*  SELECT
*        DISTINCT
*       /bic/zcomp_cod
*       INTO TABLE @DATA(lt_comp)
*     FROM  /bic/azfiglc046
*       WHERE /bic/zcomp_cod IN @z_comp
*         AND  /bic/zcomp_cod <> ''
*       ORDER BY /bic/zcomp_cod.

*  IF z_comp IS INITIAL.
*    CLEAR lt_comp.
*    INSERT INITIAL LINE INTO lt_comp INDEX 1.
*
*  ENDIF.

*  LOOP AT lt_comp INTO DATA(ls_comp).
*
*    CLEAR : i_parameter.
*
*query input变量赋值
*    wa_parameter-name = 'VAR_NAME_1'.
*    wa_parameter-value = 'ZCOMP'.
*    APPEND wa_parameter TO i_parameter.
*
*    wa_parameter-name = 'VAR_VALUE_EXT_1'.
*    wa_parameter-value =  ls_comp-/bic/zcomp_cod .
*    APPEND wa_parameter TO i_parameter.
*
*    wa_parameter-name = 'VAR_NAME_2'.
*    wa_parameter-value = 'Z1FISPER04'.
*    APPEND wa_parameter TO i_parameter.
*
*    wa_parameter-name =   'VAR_VALUE_LOW_EXT_2'.
*    wa_parameter-value =  z_fsr_f.
*    APPEND wa_parameter TO i_parameter.
*
*    wa_parameter-name =   'VAR_VALUE_HIGH_EXT_2'.
*    wa_parameter-value = z_fsr_t.
*
*
*    APPEND wa_parameter TO i_parameter.

  *   wa_parameter-name = 'VAR_NAME_1'."ZCVC_ZCALMONTH_019
  *   wa_parameter-value = 'ZCVC_ZCALMONTH_019'.
  *   APPEND wa_parameter TO i_parameter.

     wa_parameter-name = 'VAR_VALUE_EXT_1'."ZCVC_ZCALMONTH_019
    wa_parameter-value = '202406'.
    APPEND wa_parameter TO i_parameter.

    wa_parameter-name = 'VAR_NAME_2'."ZCVC_ZCALMONTH_019
    wa_parameter-value = 'ZCVC_ZCATEGORY_001'.
    APPEND wa_parameter TO i_parameter.
*
   wa_parameter-name = 'VAR_VALUE_EXT_2'."版本(单值出口,以输入月份所在月的版本)
   wa_parameter-value =  'V01' .
   APPEND wa_parameter TO i_parameter.
*
   wa_parameter-name = 'VAR_NAME_3'."数据来源(单值,可选出口)
   wa_parameter-value = 'ZCVC_ZASJLY_001'.
   APPEND wa_parameter TO i_parameter.

   wa_parameter-name = 'VAR_VALUE_EXT_3'."数据来源(单值,可选出口)
   wa_parameter-value = 'LOAD'.
   APPEND wa_parameter TO i_parameter.
    call function 'Z_GET_BW_QUERY_DATA'
      EXPORTING
        i_infoprovider = 'ZTDEMO'“”这里是信息对象
        i_query        = 'ZTEST1'“这里是query”
       I_VIEW_ID      = ''
        i_t_parameter  = i_parameter
*       DESTINATION    =
      IMPORTING
        dy_table       = dyn_table.

*    IF dyn_table IS INITIAL.
*      CONTINUE.
*    ENDIF.

    ASSIGN dyn_table->* TO <dyn_table>.

*2、将BW查询结果集写入直接更新DSO
    LOOP AT <dyn_table> ASSIGNING <dyn_wa>.

      MOVE-CORRESPONDING <dyn_wa>  TO wa_line.
*      ls_dso-z_fiscper_from = z_fsr_f.
*      ls_dso-z_fiscper_to   = z_fsr_t.
*      ls_dso-/bic/zcomp_cod = wa_line-c1.

*      ENDCASE.
*     去除单位,逗号等

DATA:
  LV_VN TYPE CHAR10,
  LV_I TYPE I.
  FIELD-SYMBOLS:<F1>,<F2>.
  ASSIGN wa_line TO <F1>.
"动态处理V1到V140,去除单位及逗号
CLEAR LV_I.
DO 140 TIMES.
LV_I = LV_I + 1.
LV_VN = 'V' && LV_I.
ASSIGN COMPONENT LV_VN OF STRUCTURE <F1> TO <F2>.
“如果query已经无量纲公式处理,此处无单位,去除逗号即可”
REPLACE ALL OCCURRENCES OF  ','   IN  <F2>  WITH  ``.
ENDDO.
      ls_dso-LOC_CURRCY  = wa_line-c1.
      ls_dso-/BIC/ZCALYEAR = wa_line-c2.
      ls_dso-/BIC/ZCALMONTH = wa_line-c3.
      ls_dso-/BIC/ZCAMONTH2 = wa_line-c4.
      ls_dso-COMP_CODE  = wa_line-c5.
      ls_dso-BASE_UOM  = wa_line-c6.
      ls_dso-PLANT  = wa_line-c7.
      ls_dso-COORDER  = wa_line-c8.
      ls_dso-MATERIAL  = wa_line-c9.
      ls_dso-/BIC/ZMENGE1  = wa_line-v1.
      ls_dso-CPQUABU = wa_line-v2.
      ls_dso-/BIC/ZAHGPSL = wa_line-v3.
      ls_dso-/BIC/ZABHGSL  = wa_line-v4.
      ls_dso-/BIC/ZACZ  = wa_line-v5.
      ls_dso-/BIC/ZACZHFG  = wa_line-v6.


      APPEND ls_dso TO lt_dso.

      CLEAR ls_dso.

    ENDLOOP.


    CLEAR: <dyn_table>.
*  ENDLOOP.

*先将R掉的请求号 添加到模型内


  CALL FUNCTION 'RSDSO_WRITE_API'
    EXPORTING
      i_adsonm            = 'ZTDEMO'
*     I_ALLOW_NEW_SIDS    = RS_C_TRUE
*     I_ACTIVATE_DATA     = RS_C_TRUE   "激活
*     IT_AGGREGATION      = LT_AGGREGATION
      it_data             = lt_r
    IMPORTING
      e_lines_inserted    = e_lines_inserted
      et_msg              = et_msg
      e_upd_req_tsn       = e_upd_req_tsn
      et_act_req_tsn      = et_act_req_tsn
    EXCEPTIONS
      write_failed        = 1
      activation_failed   = 2
      datastore_not_found = 3
      OTHERS              = 4.

  CASE sy-subrc.
*          WHEN 0.
*            MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4 RAISING CHAIN_FAILED.
    WHEN 1.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 RAISING write_failed.
    WHEN 2.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 RAISING activation_failed.
    WHEN 3.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 RAISING datastore_not_found.
  ENDCASE.

*再将更新的数据 添加到请求内
  CALL FUNCTION 'RSDSO_WRITE_API'
    EXPORTING
      i_adsonm            = 'ZTDEMO'
*     I_ALLOW_NEW_SIDS    = RS_C_TRUE
      I_ACTIVATE_DATA     = RS_C_TRUE   "激活
*     IT_AGGREGATION      = LT_AGGREGATION
      it_data             = lt_dso
    IMPORTING
      e_lines_inserted    = e_lines_inserted
      et_msg              = et_msg
      e_upd_req_tsn       = e_upd_req_tsn
      et_act_req_tsn      = et_act_req_tsn
    EXCEPTIONS
      write_failed        = 1
      activation_failed   = 2
      datastore_not_found = 3
      OTHERS              = 4.

  CASE sy-subrc.
*          WHEN 0.
*            MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4 RAISING CHAIN_FAILED.
    WHEN 1.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 RAISING write_failed.
    WHEN 2.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 RAISING activation_failed.
    WHEN 3.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 RAISING datastore_not_found.
  ENDCASE.


*Selection texts
*----------------------------------------------------------
* Z_COMP         公司代码(不输入公司代码,将更新所有公司)
* Z_FSR_F         会计期间始
* Z_FSR_T         会计期间止

3.注意点

注意点1

query中指标必须指标放在上面,维度放在下面,把结果行拿掉,佛则赋值会出现问题

注意点2

动态内表的生成顺序和query的顺序是一致的,后面如果改query字段顺序,就会有问题,需要改相应的赋值逻辑。

注意点3

获取的query数据默认是char类型,如果没有在query处理带单位的金额,会带单位,需要出处理

注意点4

传参格式比较特殊,注意写法,不同的参数有不同的NAME格式

Characteristic Value Variables

Parameter variables or variables for several single values are predefined as follows:

Parameter

Description

VAR_NAME_I

Technical name of the variables

VAR_VALUE_EXT_I

Attribute value in external display

Key for characteristic value in external display

Interval variables are predefined as in the following:

Parameter

Description

VAR_NAME_I

Technical name of the variables

VAR_VALUE_LOW_EXT_I

“From” characteristic value in external display

Key for characteristic value in external display

VAR_VALUE_HIGH_EXT_I

“To” characteristic value in external display

Key for characteristic value in external display

Selection option variables are predefined as in the following:

parameter

Description

VAR_NAME_I

Technical name of the variables

VAR_OPERATOR_I

An operator

'EQ' = Individual value

'BT' = Interval

'LT' = Less than

'LE' = Less than or equal to

'GT' = Greater than

'GE' = Greater than or equal to

VAR_VALUE_LOW_EXT_I

“From” characteristic value in external display

Key for characteristic value in external display

VAR_VALUE_HIGH_EXT_I

“To” characteristic value in external display

Key for characteristic value in external display

This value must only be specified with VAR_OPERATOR='BT'.

VAR_SIGN_I

Row properties

'I' found values are added,

 'E' found values are removed.

Variables for precalculated value sets are preassigned as follows:

Parameter

Description

VAR_NAME_I

Technical name of the variables

VAR_VALUE_EXT_I

Name of value set

Variables for Single Hierarchy Nodes or Variables for Several Hierarchy Nodes

Parameter

Description

VAR_NAME_I

Technical name of the variables

VAR_VALUE_EXT_I

Node key in external display

Key for hierarchy node

VAR_NODE_IOBJNM_I

Node characteristic name

With characteristic nodes and text nodes, you have to specify the characteristic name (0HIER_NODE).

Hierarchy, Formula, and Text Variables

Parameter

Description

VAR_NAME_I

Technical name of the variables

VAR_VALUE_EXT_I

Hierarchy name, formula value, text

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2066651.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

流动会场:便捷、经济与声学效果的理想融合—轻空间

在现代活动策划中&#xff0c;选择合适的场地至关重要。流动会场作为一种新型移动空间&#xff0c;不仅具备便捷性和高性价比&#xff0c;还以其优异的声学效果&#xff0c;成为各类会议、展览、演出等活动的理想选择。 便捷安装&#xff0c;快速搭建 流动会场的模块化设计使其…

P-One如何测试一个场景集包含多个接口

P-One是泽众软件自主研发的一站式性能测试平台&#xff0c;集管理、设计、压测、监控以及分析于一体的全方位性能测试解决方案&#xff0c;适用于各种非功能测试场景&#xff1a;压力测试、负载测试、稳定性测试、可靠性测试、容量测试等。 在实际业务场景中&#xff0c;如电商…

springsecurity 在web中如何获取用户信息(后端/前端)

一、SecurityContextHolder 是什么 是一个安全的上下文对象&#xff0c;用于获取经过身份验证的用户。 二、SecurityContextHolder 是何时被创建的 当我们经过表单UsernamePasswordAuthenticationFilter 过滤器后&#xff0c;会回调父类的AbstractAuthenticationProcessingFilt…

华为自研仓颉编程语言测试版上线,计划持续到10月21号

现如今&#xff0c;编程语言作为构建软件世界的基石&#xff0c;其重要性不言而喻。 而华为&#xff0c;作为全球领先的信息与通信技术&#xff08;ICT&#xff09;解决方案提供商&#xff0c;其在技术创新上的每一步都备受瞩目。最近&#xff0c;华为再次成为焦点&#xff0c…

OpenCompass 评测 InternLM-1.8B 实践

1. 环境安装 conda create -n opencompass python3.10 conda activate opencompass conda install pytorch2.1.2 torchvision0.16.2 torchaudio2.1.2 pytorch-cuda12.1 -c pytorch -c nvidia -y# 注意&#xff1a;一定要先 cd /root cd /root git clone -b 0.2.4 https://gith…

系统编程-lvgl

带界面的MP3播放器 -- lvgl 目录 带界面的MP3播放器 -- lvgl 一、什么是lvgl&#xff1f; 二、简单使用lvgl 在工程中编写代码 实现带界面的mp3播放器 main.c events_init.c events_init.h 补充1&#xff1a;glob函数 补充2&#xff1a;atexit函数 一、什么是lvgl&a…

GPT-4、Claude 3 Opus 和 Gemini 1.0 Ultra 挑战控制工程的新领域

介绍 论文地址&#xff1a;https://arxiv.org/abs/2404.03647 近年来&#xff0c;GPT-4、Claude 3 Opus 和 Gemini 1.0 Ultra 等大规模语言模型&#xff08;LLM&#xff09;迅速发展&#xff0c;展示了它们解决复杂问题的能力。LLM 的这些发展在多个领域都有潜在的应用前景。…

Postman接口测试 —— 设置全局变量、参数传递、断言

在能熟练使用postman运行接口请求后&#xff0c;会遇到一些问题。例如&#xff1a; 我们的web网站一共有几十个接口&#xff0c;测试的时候如果要切换环境&#xff0c;这个时候要每个接口都要修改url的根路径&#xff0c;一个一个的改也太麻烦了&#xff1b; 还有时候我们经常…

八、SPA单页面实现SEO优化之预渲染prerender-spa-plugin

文章目录 一、前言二、prerender-spa-plugin预渲染方式实现SEO插件介绍实现步骤 一、前言 关于SPA和SEO优化、SSR服务器渲染的介绍可以参考这里&#xff1a; 六、什么是SEO优化&#xff08;搜索引擎优化&#xff09;&#xff1f;SPA单页面应用如何实现SEO优化&#xff1f; 通…

C/C++语言基础--字符串(包括字符串与字符数组、字符串与指针、字符串处理函数等),代码均可运行

本专栏目的 更新C/C的基础语法&#xff0c;包括C的一些新特性 前言 无论什么语言&#xff0c;字符串都是最重要、最基础的数据类型&#xff0c;他对二进制有很好的对应关系在C语言中没有提供专门的处理字符串的类型&#xff0c;但是我们可以通过字符数组、开辟内存地址来处理…

Content-Encoding: br

爬虫的时候遇到了 Content-Encoding: br &#xff0c; 这可能会导致返回的数据有乱码&#xff0c;无法解析&#xff0c;也无法解码&#xff0c; 浏览器显示编码 按照这么写&#xff0c;还是乱码 查了很久&#xff0c;需要在请求头 Accept-Encoding 将这个改为gzip&#xff0c…

Swift 6.0 如何更优雅的抛出和处理特定类型的错误

概述 从 Swift 语言诞生那天儿起&#xff0c;它就不厌其烦一遍又一遍地向秃头码农们诉说着自己的类型安全和高雅品味。 不过遗憾的是&#xff0c;作为 Swift 语言中错误处理这最为重要的一环却时常让小伙伴们不得要领、满腹狐疑。 在本篇博文中&#xff0c;您将学到如下内容&…

企业数字化转型会面临哪些挑战,如何解决?

当前&#xff0c;数字技术发展迅速&#xff0c;已迈入 AI 人工智能时代。企业若不进行数字化转型&#xff0c;可能会被用户抛弃、被竞争对手超越。那么&#xff0c;传统企业在转型过程中会遇到哪些挑战呢&#xff1f; 一、企业数字化转型面临的挑战 1、缺乏明确的战略规划和转…

宠物空气净化器除臭吗?性价比高的宠物空气净化器十大排名分享

来来来&#xff0c;先带大家一睹我店里的小可爱们 是不是超级可爱呀~&#xff1f;这样的大卡车猫猫&#xff0c;在我这猫咖里可是还有好几十只&#xff01;作为一位坐拥几十只猫咪的“猫咖掌门”&#xff0c;朋友们总是投来羡慕的目光。但这份光鲜背后&#xff0c;可是有我无数…

轻松制作 GIF 动图,你也可以!

你是否曾为找不到合适的动图而烦恼&#xff1f; 是否羡慕别人能制作出精彩的 GIF 动图&#xff1f; 现在&#xff0c;无需再羡慕&#xff01;因为我们用以下图片中的方法&#xff0c;你自己也能轻松制作 GIF 动图。 这款工具&#xff0c;操作简单易懂&#xff0c; 即使你没有…

舞动奇迹,亨廷顿舞蹈症患者专属健身秘籍!

&#x1f308; 在小红书的温馨角落里&#xff0c;让我们一起探索一个特别的世界——为亨廷顿舞蹈症&#xff08;HD&#xff09;患者量身定制的健身之旅。HD&#xff0c;这个名字或许带着一丝沉重&#xff0c;但它绝不能定义我们生活的全部色彩。通过科学的锻炼方式&#xff0c;…

APP逆向百例五-Flutter逆向案例----某次元(AES+RSA)

现在售价依旧是99&#xffe5;,计划更新100案例&#xff0c;平均一个案例1块钱&#xff0c;要什么自行车&#xff01; 还原一下我逆向此app的方法 1.抓包分析&#xff1a; 我这边用socksDroid抓不到数据包,但是小黄鸟可以&#xff0c;那就用Reqable结合电脑端进行抓包,不纠结…

Leetcode 347. 前 K 个高频元素

解法&#xff1a; 字典统计排序 class Solution:def topKFrequent(self, nums: List[int], k: int) -> List[int]:cont {}for eve in nums:if eve not in cont: cont[eve] 1else: cont[eve] 1contlist sorted(cont.items(), keylambda x: x[1])res [eve[0] for eve i…

从安装Docker到打包迁移MySQL的完整指南

从安装Docker到打包迁移MySQL的完整指南 每一天过得充实&#xff0c;眼中无迷茫&#xff0c;心中无烦恼。日子就会充满希望&#xff0c;岁月就会洒满清欢。 这篇文章将带你从零开始&#xff0c;在CentOS服务器上安装Docker、使用Docker部署MySQL数据库&#xff0c;并打包和迁移…

凯迪仕智能锁携手唐百电器达成战略合作,市场布局和拓展再加速

近日&#xff0c;凯迪仕智能锁中国区总裁陈露拜访唐山百货大楼集团&#xff08;唐百电器&#xff09;&#xff0c;双方深入交流资源优势&#xff0c;结合唐山市场实际情况达成2024年-2025年度深度战略合作&#xff0c;并完成首次签约千余套凯迪仕智能锁战略目标&#xff0c;接下…