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

User Parameter overwrites SUBMIT WITH range?

0 Likes
1,236

Hello,

I submit a report with a range table.

SUBMIT zv405
WITH s_equnr IN lr_equnr

If user parameters are specified for this exact program those user parameters overwrite the range table used in the submit.

Is there a way to use the range in the submit without disabling the user parameters?

Thank you in advance.

3 REPLIES 3
Read only

VXLozano
Active Contributor
0 Likes
1,187

Is that (WITH s_equnr IN lr_equnr) sentence the real one you are using? I'm not sure but something smells there. In your case, I'd try another option for pass the range to the program, I'd say you are passing none, and then the system retrieves the user ones.

But it's just a guess.

Read only

0 Likes
1,187

My code works when not using user parameters.

The range is passed, I checked in debugger.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,187

This is a customer program.

You wrote 'If user parameters are specified for this exact program those user parameters overwrite the range table used in the submit.'

Did you code something related to this behavior, user parameters defined in the selection-screen are overwritten by the values passed by WITH option between the events INITIALIZATION and AT SELECTION SCREEN OUTPUT. Any code from the second (PBO ) event will override the parameter/range values passed within a variant, a with option or a selection-tab.

Try to add some breakpoints at the start of selection-screen events.