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

How to call a dialog program with return value in another dialog program

Former Member
0 Likes
1,067

Dear All,

How can I call a dialog program with return value from another dialog program?

Regards,

Alok.

Dear All,

How can I call a dialog program with return value from another dialog program?

Regards,

Alok.

8 REPLIES 8
Read only

Former Member
0 Likes
969

you can use export to memory / import from memory.

Read only

Former Member
0 Likes
969

Hi Alok,

You can you SET/GET parameters to do this.

This is some information about this.

To fill the input fields of a called transaction with data from the calling program, you can use the SPA/GPA technique. SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs. A user can access the values stored in the SAP memory during one terminal session for all parallel sessions. Each SPA/GPA parameter is identified by a 20-character code. You can maintain them in the Repository Browser in the ABAP Workbench. The values in SPA/GPA parameters are user-specific.

ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETERstatements.

To fill one, use:

SET PARAMETER ID pid FIELD f.

This statement saves the contents of field f under the ID pid in the SAP memory. The ID pid can be up to 20 characters long. If there was already a value stored under pid, this statement overwrites it. If you double-click pid in the ABAP Editor, parameters that do not exist can be created as a Repository object.

To read an SPA/GPA parameter, use:

GET PARAMETER ID pid FIELD f.

This statement places the value stored under the pid ID into the variable f. If the system does not find any value for pid in the SAP memory, sy-subrc is set to 4. Otherwise, it sets the value to 0.

Thanks,

SriRatna

Read only

0 Likes
969

This message was moderated.

Read only

0 Likes
969

This message was moderated.

Read only

0 Likes
969

This message was moderated.

Read only

0 Likes
969

This message was moderated.

Read only

0 Likes
969

Guys

This is not a place to resolve your personal issues. SAP has provided this domain for professionals to help find solutions for issues RELATED TO SAP that he/she is not able to resolve.

I request moderator to either lock this thread or ban the IP address of the people involved.

Sunil Achyut

Read only

Former Member
0 Likes
969

Hi,

If the above solutions doesn't fit your needs, another workaround would be to create a table where the called program fills with the data that the calling program will use to continue the process.

Hope it helps.

Kind Regards,

Gilberto Li