zoukankan      html  css  js  c++  java
  • 取会计科目之数字

    标准form,搬运单

    /*PROCEDURE get_proj_cost_acc_segments IS*/
    declare
     l_segments    fnd_flex_ext.segmentarray;
     l_no_segments NUMBER;
     l_concat_segs VARCHAR2(2000);
     l_get_flex    BOOLEAN;
    BEGIN
     --message('CONTROL Cost Account ID (2) in GET_PROJ... Package:' || :control.project_cost_account_id);pause;
     --message('PARAMETER.CHART_OF_ACCOUNTS_ID :' || to_char(:PARAMETER.CHART_OF_ACCOUNTS_ID));
     l_get_flex := fnd_flex_ext.get_segments(application_short_name => 'SQLGL',
               key_flex_code          => 'GL#',
               structure_number       => 50328,--:parameter.chart_of_accounts_id,
               combination_id         => 31184,--:control.project_cost_account_id,
               n_segments             => l_no_segments,
               segments               => l_segments);
     --  --fnd_message.debug(' after getting  Project Cost Account Segments');
     ----fnd_message.debug(to_char(l_no_segments));

     IF l_get_flex THEN
      l_concat_segs := fnd_flex_ext.concatenate_segments(l_no_segments,
                     l_segments,
                     fnd_flex_ext.get_delimiter('SQLGL',
                           'GL#',
                           50328));--:parameter.chart_of_accounts_id));
     
      dbms_output.put_line(l_concat_segs);
     END IF;
    END;

    --------------------------------------------------

    另外也可以直接查询表

    select * from gl_code_combinations;

    select * from gl_code_combinations_v;

    select * from gl_code_combinations_kfv

    gl_code_combinations_pkg这个是控制组合操作的。

  • 相关阅读:
    hdu 6188 Duizi and Shunzi
    区间第k大
    AtCoder Regular Contest 081 E
    hdu 6170 Two strings
    hdu 6156 Palindrome Function
    2017百度之星初赛(B)-1006-小小粉丝度度熊 hdu 6119
    AtCoder Regular Contest 080 E
    hdu 6069 Counting Divisors
    hdu 6058 Kanade's sum (多校3)
    苹果曼和树
  • 原文地址:https://www.cnblogs.com/liuweicong39/p/2530668.html
Copyright © 2011-2022 走看看