網路城邦
上一篇 回創作列表 下一篇   字體:
CONSTRUCT中用p_qry, 回傳多參數的寫法
2017/06/24 14:43:36瀏覽1362|回應0|推薦0

CONSTRUCT回傳多參的寫法

       CONSTRUCT BY NAME tm.wc ON tc_obh01,tc_obh011

           BEFORE CONSTRUCT

             CALL cl_qbe_init()

 

            ON ACTION controlp                #單頭欄位開窗查詢

            CASE

               WHEN INFIELD(tc_obh01)  #申請單號

                  CALL cl_init_qry_var()

                  LET g_qryparam.form = "q_tc_obh_01"

                  LET g_qryparam.default1 = l_tc_obh01

                  LET g_qryparam.default2 = l_tc_obh011

                  CALL cl_create_qry() RETURNING l_tc_obh01,l_tc_obh011

                  DISPLAY l_tc_obh01 TO tc_obh01

                  DISPLAY l_tc_obh011 TO tc_obh011

                  NEXT FIELD tc_obh01

            END CASE

( 知識學習其他 )
回應 推薦文章 列印 加入我的文摘
上一篇 回創作列表 下一篇

引用
引用網址:https://classic-blog.udn.com/article/trackback.jsp?uid=shfm1969&aid=105130591