Skip to Content
0
Former Member
Dec 09, 2009 at 09:47 PM

How to transfer Data from Internal Table to a Sub-Screen?

57 Views

Hi All,

I have a change where I have the following:

- a mainscreen 9004 containing a table control and a subscreen 9006.

- please see the screenShot [url] http://img121.imageshack.us/img121/1057/tcsubscreenattributes.jpg [url]

Requirement:

Users can select ONE entry from the table then click a button 'DISPLAY' then it will display the details coming from an internal table to a the subcreen.

Prior to my question, I already take a look at program DEMO_DYNPRO_SUBSCREENS.

Problem:

During my debug, the variable name of all the screen attributes are not recognize.

- please see the ABAP debugger screenshot: [url] http://img686.imageshack.us/img686/5708/subscreendebug.jpg [url]

and here's my code:

PROCESS BEFORE OUTPUT.
  LOOP WITH CONTROL TC_ID_ONLY.
    MODULE LOAD_TC_DISCH.
  ENDLOOP.
  CALL SUBSCREEN: SC_DISCH_9006 INCLUDING SY-REPID '9006'.

PROCESS AFTER INPUT.
  CALL SUBSCREEN SC_DISCH_9006.
  LOOP WITH CONTROL TC_ID_ONLY.
    MODULE GET_USER_ACTION.
  ENDLOOP.

MODULE. GET_USER_ACTION input.

  CASE OK_CODE.
    WHEN 'DISPLAY'.
      PERFORM F_TRANSFER_IDentry USING T_ZQIDCHECK_DIS.

  ENDCASE.
ENDMODULE.

-


Focus on Question:

(Note: Table Controls are working as expected)

How come I can't read the variables in my sub-screen?

Thanks All.