‎2006 Mar 20 8:00 AM
HI,
I want to know, How to pass field values from One screen to Other screen?
Thanks in advance
Rgds,
Chetana
‎2006 Mar 20 8:37 AM
HI Chetana,
*How to pass field values from One screen to Other screen.
there are two ways of passing data
ABAP Memory and
SAP Memory.
It also depends on the context or the scenario , like if we have the same function group and want to pass data of a structure (say CAUFVD)from a standard transaction to a badi in which the we don't have CAUFVD as a signature , in that case we can pass the field value using Assign statement making use of global Memory for which the syntax s like this:
FIELD-SYMBOLS: <fs> TYPE caufvd.
ASSIGN ('(SAPLCOIH)caufvd') TO <fs>.
Where SAPLCOIH is the Program name and caufvd is the structure whose value will be come in the Field symbol <FS>.
Hope you may get some help from this or let me know if you still have some doubts.
Cheers
Sunny
Rewrd points, if found helpful
‎2006 Mar 20 8:01 AM
You can declare global variables at the program level / TOP INCLUDE level and assign values to it so that the variable values are reflected in all the screens.
Regards,
Ravi
‎2006 Mar 20 8:03 AM
Hi
You should do anything, if the screens are defined in the same programs, they can see all global data.
So if you transfer the input values to gloabal data, they can be used by both screens.
Max
‎2006 Mar 20 8:37 AM
HI Chetana,
*How to pass field values from One screen to Other screen.
there are two ways of passing data
ABAP Memory and
SAP Memory.
It also depends on the context or the scenario , like if we have the same function group and want to pass data of a structure (say CAUFVD)from a standard transaction to a badi in which the we don't have CAUFVD as a signature , in that case we can pass the field value using Assign statement making use of global Memory for which the syntax s like this:
FIELD-SYMBOLS: <fs> TYPE caufvd.
ASSIGN ('(SAPLCOIH)caufvd') TO <fs>.
Where SAPLCOIH is the Program name and caufvd is the structure whose value will be come in the Field symbol <FS>.
Hope you may get some help from this or let me know if you still have some doubts.
Cheers
Sunny
Rewrd points, if found helpful
‎2006 Mar 20 8:43 AM
The SPA/GPA Parameter Technique is a general procedure for filling the initial screen when a program is called. To use this technique for parameters on selection screens, you must link the parameter to an SPA/GPA parameter from the SAP memory as follows:
PARAMETERS <p> ...... MEMORY ID <pid>......
If you use this addition, the current value of SPA/GPA parameter <pid> from the global user-related SAP memory is assigned to parameter <p> as a default value. Description <pid> can contain a maximum of twenty characters and must not be enclosed in quotation marks.
Ex:
PARAMETERS TEST(16) MEMORY ID RID.
‎2006 Mar 20 11:09 AM
Hi Chetana,
As per form etiquette's
If satisfied , please close the thread by rewarding appropriate points to the helpful answers.
Cheers
Sunny