Application Development 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: 

How to submit program with dynamic selection but doesnt have LDB associated

kalal_akash
Discoverer
0 Kudos

Hi Experts,

I have a requirement to call program FAGL_ACCOUNT_BALANCE (tcode FAGLB03) from my custom program.

I have tried using WITH FREE SELECTION in my submit statement, but the Documentation of this says that, only programs associated with a LDB can be called using WITH FREE SELECTION statement.

Since the program FAGL_ACCOUNT_BALANCE does not have LDB assigned the above statement does not work.

I have looked into the threads of similar kind but couldn't find.

Please help me to solve this.

Thanks in advance.

2 REPLIES 2

kartikrajag
Participant

Hi Akash,

Have you tried "WITH SELECTION-TABLE rspar" parameter of SUBMIT, You may want to check program DEMO_PROGRAM_SUBMIT_SEL_SCREEN.

Sandra_Rossi
Active Contributor

How much dynamic is it? If you always call the same program, you may pass the parameters using SUBMIT ... WITH param1 = value1 selopt1 IN itab_range1[] ... AND RETURN. Otherwise see Kartik answer (WITH SELECTION-TABLE).