修改信贷限额函数详解编程语言

SELECT SINGLE * INTO CORRESPONDING FIELDS OF gs_knkk 
         FROM knkk WHERE kunnr = gs_zsds003-kunnr AND kkber = gs_zsds003-kkber. 
      IF sy-subrc = 0. 
        gv_upd = 'U'. 
      ELSE. 
        gv_upd = 'I'. 
      ENDIF. 
 
      SELECT SINGLE * INTO CORRESPONDING FIELDS OF gs_knka 
        FROM knka WHERE kunnr = gs_zsds003-kunnr. 
 
      gs_knkk-kunnr = gs_zsds003-kunnr. 
      gs_knkk-knkli = gs_zsds003-kunnr. 
      gs_knkk-kkber = gs_zsds003-kkber. 
      gs_knkk-klimk = gs_zsds003-klimk. 
      gs_knkk-erdat = sy-uname. 
      gs_knkk-ctlpc = gs_zsds003-ctlpc. 
 
 
      CALL FUNCTION 'CREDITLIMIT_CHANGE' 
        EXPORTING 
          i_knka   = gs_knka 
          i_knkk   = gs_knkk 
          upd_knka = '0' 
          upd_knkk = gv_upd 
*         XNEUA    = ' ' 
*         XREFL    = ' ' 
          yknka    = gv_knka 
          yknkk    = gv_knkk. 
      IF sy-subrc = 0. 
        mesgadd:'RETURN' 'S', 
                'MESSAGE' '信贷更新成功!'. 
      ELSE. 
        mesgadd:'RETURN' 'E', 
                'MESSAGE' '信贷更新失败!'. 
      ENDIF.

原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/18709.html

(0)
上一篇 2021年7月19日 21:22
下一篇 2021年7月19日 21:22

相关推荐

发表回复

登录后才能评论

WordPress 数据库错误: [Duplicate entry '82-4d3f5343d1f1b32d21fd4fb47d88d6b2' for key 'task_id_source_url_key']
insert into wp_autoblog_queue(task_id,source_url,source_url_key,create_date_time,not_check_stoped,post_interval) values(82,'https://www.idc.net/help/os/linux/page/6438/','4d3f5343d1f1b32d21fd4fb47d88d6b2',1734583971,0,0)