Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10022

Cannot get the value of I/O field on PAI of Sub-Screen (Module Pool)

$
0
0

Hi All,

 

currently, I have two screens: one main screen, and one sub-screen

dynpro.png

On Screen 9002, the input1 and input2 is declared also in the Global Top Include of the module pool.

 

I'm creating a dynamic Search Help for Input2 based on the data entred in Input1, however if I don't press "Enter" after entering data in Input1, the field Inpu1 is not populated.

Scenario:

1) Put 'TR' in Input1

2) Position the cursor to Input2, then press F4, the field Input1 with a value of 'TR' is not reflecting

 

However,

1) Put 'TR' in Input1 then press 'Enter'

2) Position the cursor to Input2, then press F4, the field Input1 with a value of 'TR' is populated

 

I tried SET/GET parameter, it's still not working... any insight(s)?

 

 

Screen 9001 (Main Screen)

PROCESS BEFORE OUTPUT.
   MODULE STATUS_9001.
   CALL SUBSCREEN: SUB1 INCLUDING SY-REPID NUMBER.

PROCESS AFTER INPUT.
   MODULE CANCEL AT EXIT-COMMAND.
   CALL SUBSCREEN: SUB1.
   MODULE USER_COMMAND_9001.


MODULE user_command_9001 INPUT.
    save_ok = ok_code.
   CLEAR ok_code.
   CASE save_ok.
     WHEN 'RADIOA'.
       IF radio1 = 'X'.
         number = '9002'.
       ELSEIF radio2 = 'X'.
         number = '9003'.
       ELSE.
       ENDIF.

     WHEN 'CANCEL'.
       LEAVE PROGRAM.
   ENDCASE.
ENDMODULE.                 " USER_COMMAND_9001  INPUT

 


Screen 9002 (Sub-Screen)

 

PROCESS BEFORE OUTPUT.
  MODULE STATUS_9002.

PROCESS AFTER INPUT.
   MODULE user_command_9002.

 

 

PROCESS ON VALUE-REQUEST.
   FIELD FIELD2 MODULE f4_field2_9002.


Viewing all articles
Browse latest Browse all 10022

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>