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

GET PARAMTER ID

Former Member
0 Likes
1,267

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,182

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,

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.

7 REPLIES 7
Read only

Former Member
0 Likes
1,182

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

Read only

0 Likes
1,182

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

Read only

0 Likes
1,182

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

Read only

Former Member
0 Likes
1,183

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.

Read only

Former Member
0 Likes
1,182

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

Read only

Former Member
0 Likes
1,182

hi,

do this ..

clear v_var.

SET PARAMTER ID XYZ field v_var.

hope this helps

Regards

Ritesh

Read only

0 Likes
1,182

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.