2007 Jan 18 10:30 AM
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.
2007 Jan 18 11:14 AM
2007 Jan 18 1:56 PM
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
2007 Jan 18 5:06 PM
2007 Jan 18 7:00 PM
2007 Jan 18 7:01 PM
2007 Jan 18 7:10 PM
2007 Jan 18 7:47 PM
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
2007 Jan 18 5:36 PM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |