is there any way to get values from one page to another

Question:
is there any way to get values from one form to another form other than
set and get parameters??
thanks in advance
priya
Answer:
Sounds like someones studying for an exam......
Yes there is.
You can define a global variable (not particularly good programming practice) that can be seen in every form or procedure in the program because it is declared outside of any procedure or event.
In some cases you have no option but to declare an item global, for example where you wish to 'HIDE' it's values on a report, or access it inside an event.
You can define formal parameters for a form or procedure. These formal parameters tell the procedure the types of values it will be dealing with. You make all references in the procedure to this variable.
Form Create_Dataset Using t_data type Overview_Table.
*
     Data: Begin of w_Output_Line,
                 Matnr type Matnr,
                 C1    type c value ',',
                 Lgort type Lgort_d,
                 C2    type c value ',',
                 Phys  type Char0016,
                 C3    type c value ',',
                 Kalab type Char0016,
                 C4    type c value ',',
                 Matkl type Matkl,
                 C5    type c value ',',
                 Maktx type Maktx,
           End of w_Output_Line,
*
           w_data type ov_record.
*
     Open Dataset 'SOVER.CSV' for output in Text Mode.
     Loop at t_data into w_data.
          Clear w_Output_Line.
          Move-Corresponding w_data to w_Output_Line.
          Compute g_Report_Line-phys = w_Data-Labst +
                                       w_data-Umlme +
                                       w_Data-Insme +
                                       w_Data-Speme +
                                       w_Data-Retme.
          Move ',' to w_Output_Line-C1.
          Move ',' to w_Output_Line-C2.
          Move ',' to w_Output_Line-C3.
          Move ',' to w_Output_Line-C4.
          Move ',' to w_Output_Line-C5.
          Condense w_Output_Line no-gaps.
          Transfer w_Output_Line to 'SOVER.DAT'.
     EndLoop.
     Close Dataset 'SOVER.DAT'.
EndForm.
You then call the procedure with the name of the actual variable you wish to use:
Perform Create_DataSet using t_Overview[].
and the formal parameter becomes the actual parameter.
R
_________________
Regards
R
Abap KC

SFMDR

More Articles:

Adding material as component in Production Order?
SAP function to Delete Spool file?
BDC on Tree Structure?
SD - How to create text ID?
How to print barcode in SAp Script?
Code generation for IDOC?