cancel
Showing results for 
Search instead for 
Did you mean: 

Default Value for the User defined variable

Former Member
0 Kudos

I need to assign values (dynamically) to the variable of type "User defined values" with option "Input allowed by user".

For example lets take the version, whenever I run the planning folder, the system should propose the latest version saved in the database for comparison. The user can change the value in the version if he is interested to compare an older version.

Thanks for your help in advance.

With regards,

MS

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

The lines after the statement i_step = 1, can be used to assign the default value to your variable. Just read the database table after this statement , and assign the value to the variable.

With rgds,

Anil Kumar Sharma .P

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks for the update Anil. I' am a novice in the BPS area.

Can you please explain in detail the process to be used in populating the value.

Former Member
0 Kudos

Hi Muthu,

For user input variables in BPS if you include them in the planning folder configuration, users can select from the drop down list of values.

As for dynamically populating it, are you working with lots of version and what is the criteria of determining the latest version. Are they sequentially numbered, if so you can write a user exit to get the latest value and populate the variable.

If they are not sequentially numbered you would have to think how to determine the last version to populate it in the user exit. For ex a new version for each planning period....

Hope this helps.

Akash