3、-------------------------------------------------*REPORT YLOCK_TEST01.TABLES:ZPICKLISTH.SELECTION-SCREEN BEGIN OF BLOCK VEN WITH FRAME TITLE TEXT-110.PARAMETERS: P_WERKS LIKE ZPICKLISTH-WERKS OBLIGATORY DEFAULT '2210', P_ZPKNO LIKE ZPICKLISTH
4、-ZPICKLNO OBLIGATORY DEFAULT 'TST1203000002'.SELECTION-SCREEN END OF BLOCK VEN.START-OF-SELECTION.PERFORM LOCK_RECORD USING P_WERKS P_ZPKNO.PERFORM UNLOCK_RECORD USING P_WERKS P_ZPKNO.*&---------------------------------------------------------------------**& Form
6、LOCK_RECORD USING P_KEY1 P_KEY2. DATA: IT_SEQG3 TYPE SEQG3 OCCURS 01 WITH HEADER LINE. DATA: GNAME LIKE SEQG3-GNAME, GARG LIKE SEQG3-GARG. DATA: BEGIN OF %ZPICKLISTH, MANDT TYPE ZPICKLISTH-MANDT, WERKS TYPE ZPICKLISTH-WERKS, ZPICKLNO TYPE ZPICKLISTH-ZPICKLNO
7、, END OF %ZPICKLISTH. CALL 'C_ENQ_WILDCARD' ID 'HEX0' FIELD %ZPICKLISTH. MOVE SY-MANDT TO: %ZPICKLISTH-MANDT. MOVE P_KEY1 TO: %ZPICKLISTH-WERKS. MOVE P_KEY2 TO: %ZPICKLISTH-ZPICKLNO. GNAME = 'ZPICKLISTH'. GARG = %ZPICKLISTH. CALL FUNCTION 'ENQUEUE_READ' EXPOR
8、TING GCLIENT = SY-MANDT GNAME = GNAME GARG = GARG TABLES ENQ = IT_SEQG3. IF S