Application Development and Automation 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: 
Read only

DIALOG PROGRAMS

Former Member
0 Likes
709

HI,

I want to know, How to pass field values from One screen to Other screen?

Thanks in advance

Rgds,

Chetana

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
677

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

5 REPLIES 5
Read only

Former Member
0 Likes
677

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

Read only

Former Member
0 Likes
677

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

Read only

Former Member
0 Likes
678

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

Read only

Former Member
0 Likes
677

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.

Read only

Former Member
0 Likes
677

Hi Chetana,

As per form etiquette's

If satisfied , please close the thread by rewarding appropriate points to the helpful answers.

Cheers

Sunny