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 para

Former Member
0 Likes
595

hi all,

when user run at the same time of the same program, the latter-run will also refer to former-run variable value when former-run still active.

in my program i make use of get parameters id 'XXX' field variable.

the variable value in the latter-run same as the former's.

may i know how to correct it so that the latter-run capturing the correct variable value?

thanks

4 REPLIES 4
Read only

Former Member
0 Likes
554

after the get parameters id 'xxx' write a

clear statement...u need to clear the parameters id

so that when second time it triggers within a gap of seconds it will fetch correct data

Read only

Former Member
0 Likes
554

Whatever value is there in the memory you will get it...

so i think no need to worry who runs the program

Read only

Former Member
0 Likes
554

hi,

with clear keyword also cannot help. still the same. latter value taking the former's.

thanks

Read only

former_member188827
Active Contributor
0 Likes
554

hi,

On a screen, you link fields to parameters in the Screen Painter. When you define the field attributes of an input field, you can enter the name of an SPA/GPA parameter in the Parameter ID field in the screen attributes. The SET parameter and GET parameter checkboxes allow you to specify whether the field should be filled from the corresponding SPA/GPA parameter in the PBO event, and whether the SPA/GPA parameter should be filled with the value from the screen in the PAI event.

When an input field is linked to an SPA/GPA parameter, it is initialized with the current value of the parameter each time the screen is displayed. This is the reason why fields on screens in the SAP System often already contain values when you call them more than once.

When you call programs, you can use SPA/GPA parameters with no additional programming overhead if, for example, you need to fill obligatory fields on the initial screen of the called program. The system simply transfers the values from the parameters into the input fields of the called program.

also check this link:

http://goldenink.com/abap/call_transaction.html

rgds