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 get dynamic select options from logical database?

Former Member
0 Kudos

Hi,

in one of my extended reports (means - overwritten standard SAP functionality in Z-namespace) I'm using LDB 'DDF'. I've been requested to validate some of the dynamic selection options (for example - field HKONT at Document level) and to split the logic depending on the particular value(s).

Tracking what is happened in the LDB program I found that this select option is added as dynamic WHERE clause to the SELECT statement - in a way:

...

WHERE bukrs = p_burks AND ... AND

(where_tab)

...

Is there a way to get values of these LDB dynamic select options into my report and if yes - how?

Thanks in advance.

Regards,

Ivaylo Mutafchiev

Senior SAP Abap Consultant

1 ACCEPTED SOLUTION

former_member194669
Active Contributor
0 Kudos

Hi,

Try to use the following fm in your report and check


  call function 'RS_REFRESH_FROM_DYNAMICAL_SEL'
    exporting
      curr_report        = sy-cprog
      mode_write_or_move = 'M'
    importing
      p_trange           = gt_dyn_trange
    exceptions
      not_found          = 1
      wrong_type         = 2
      others             = 3.

PS please make a whereused of this fm , how it has been used in LDB's to get dynmic selection values

4 REPLIES 4

former_member194669
Active Contributor
0 Kudos

Hi,

Try to use the following fm in your report and check


  call function 'RS_REFRESH_FROM_DYNAMICAL_SEL'
    exporting
      curr_report        = sy-cprog
      mode_write_or_move = 'M'
    importing
      p_trange           = gt_dyn_trange
    exceptions
      not_found          = 1
      wrong_type         = 2
      others             = 3.

PS please make a whereused of this fm , how it has been used in LDB's to get dynmic selection values

0 Kudos

Thanks a®s,

this did the trick.

Other responses - nonsense.

Thanks again.

Ivaylo

LucianoBentiveg
Active Contributor
0 Kudos

Go to SE36 transaction, mark "selections" and put, DDF ldb, F7.

Regards

Former Member
0 Kudos

Hi ,

Whether it is possible to create LDB ( T.Code SE36 ) similar to DDF .If it is possible you can Validate in that.

Regards

Pinaki