Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to capture the previous subscreen

Former Member
0 Kudos

hi gurus

i am creating a screen exit using bdt . in this i required to capture the values from previous subscreen to the current subscreen.please help me its very urgent.

with regards,

sri.

1 REPLY 1

former_member223537
Active Contributor
0 Kudos

Hi

Simple EXPORT & Import the values from once screen to another.

TYPES: 
  BEGIN OF tab_type, 
    para TYPE string, 
    dobj TYPE string, 
  END OF tab_type. 

DATA: 
  id    TYPE c LENGTH 10 VALUE 'TEXTS', 
  text1 TYPE string VALUE `IKE`, 
  text2 TYPE string VALUE `TINA`, 
  line  TYPE tab_type, 
  itab  TYPE STANDARD TABLE OF tab_type. 

line-para = 'P1'. 
line-dobj = 'TEXT1'. 
APPEND line TO itab. 

line-para = 'P2'. 
line-dobj = 'TEXT2'. 
APPEND line TO itab. 

EXPORT (itab)     TO MEMORY ID id.

in another exit

TYPES: 
  BEGIN OF tab, 
    col1 TYPE i, 
    col2 TYPE i, 
  END OF tab. 

DATA: 
  wa_indx TYPE indx, 
  wa_itab TYPE tab, 
  cl      TYPE mandt VALUE '100', 
  itab    TYPE STANDARD TABLE OF tab. 

IMPORT tab = itab 
  FROM DATABASE indx(xy) 
  TO   wa_indx 
  CLIENT cl 
  ID 'TABLE'.

Best regards,

Prashant