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: 

setting default value for parameter from logical DB -> dynamic selection

Former Member
0 Kudos

Hi,

could you please tell me if it is possible to set default value for parameter, which was defined in logical DB with help folowing statment "SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE YYY".

i have a program(ZZZ), which bases on LDB(XXX), this logical DB(XXX) has defined dynamic selection for some tables/nodes(YYY). I would like to set default value for one of the fields(YYY-field) from these tables/nodes(YYY) in my program(ZZZ).

if there is something in above description, which needs to be explained more detailed, please let me know.

thank you

J

4 REPLIES 4

Former Member
0 Kudos

hi check this...

i am understanding from ur the question..that we need to initialize the values in ldb .

here i am using ldb PNP..

report .

tables:pernr .

get pernr .

pnppernr = '1000'.

pnpbegda = sy-datum .

pnpendda = sy-datum - 30

Former Member
0 Kudos

That would be true, if i were asking for initializing NORMAL parameters. But it doesn't work for parameters defined as SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE YYY.

These are dynamic parameters, not normal ones.

Does anybody know if there is a way to do it?

Thank you.

J

0 Kudos

Did you try with fm LDB_PROCESS. (Instead of adding in the attributes)

(please check the function module documentation)

Former Member
0 Kudos

Hello,

yes, i have tried this FM, in generel its one of the best possiblities to use LDB, but in my case it's not enough-> i need to have selection screen from LDB with the option to lanunch dynamic selections....

But anyway, thank you