2010 Mar 14 12:20 PM
Hi,
I wrote a new dialog program with several screens.
When executing one of the screens I call to another screen with BDC.
I want to transfer a value from the calling screen to the called screen.
I gave the field a parameter ID name and used SET PARAMTER ID in the calling screen and GET PARAMETER ID in the called screen.
The problem is that when I enter the called screen directly, I expect that GET PARAMTER ID will not succeed but it does and it changes the value of the field.
What is missing?
Thanks,
Hagit
2010 Mar 15 5:34 AM
hi,
Just give the same name to the screen elements in the calling screen and the called screen.
the value wil come automatically.
no need of set parameter id.
use it if you want the value to displaye din the next logon as well..
hope it helps.
Hi,
I wrote a new dialog program with several screens.
When executing one of the screens I call to another screen with BDC.
I want to transfer a value from the calling screen to the called screen.
I gave the field a parameter ID name and used SET PARAMTER ID in the calling screen and GET PARAMETER ID in the called screen.
The problem is that when I enter the called screen directly, I expect that GET PARAMTER ID will not succeed but it does and it changes the value of the field.
What is missing?
Thanks,
Hagit
2010 Mar 14 12:24 PM
Hi Hagit
After using GET Parameter id you should write
SET PARAMETER iD 'XXXX' field space. to clear it.
Probably you recieve old value from your last run.
Best Regards
Yossi Rozenberg
2010 Mar 14 12:38 PM
Hi Yossi,
Thank you for your reply.
I have already tryed doing that, the problem is that my field is numeric with 14 characters.
When I use: SET PARAMETER iD 'XXXX' field space. I get ' 00000000000000' (with space in the begining instead of 0).
Thanks,
Hagit
2010 Mar 14 12:50 PM
Hagit
Instead of SET PARAMETER iD 'XXXX' field space
do :
data dummy(14) type n.
SET PARAMETER iD 'XXXX' field dummy.
you will recieve in GET only '00000000000000' and check this value or any other dummy value.
Best Regards
Yossi
2010 Mar 15 5:34 AM
hi,
Just give the same name to the screen elements in the calling screen and the called screen.
the value wil come automatically.
no need of set parameter id.
use it if you want the value to displaye din the next logon as well..
hope it helps.
2010 Mar 15 5:43 AM
Hi,
Dont use GET parameter id in the called screen.
If you SET parameter ID in the Calling screen it pass the value to called screen and you dont need of GET parameter ID in the Called screen.
Regards,
Shanmugavel Chandrasekaran
2010 Mar 15 5:55 AM
hi,
do this ..
clear v_var.
SET PARAMTER ID XYZ field v_var.
hope this helps
Regards
Ritesh
2010 Mar 15 6:28 AM
Thank you for your replies, the problem is soved.
I have added another SET PARAMETER ID after the finishing the calling screen with an initial value.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |