02-10-2009 2:29 PM
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
02-10-2009 2:47 PM
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
a®
02-10-2009 2:47 PM
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
a®
02-10-2009 3:16 PM
Thanks a®s,
this did the trick.
Other responses - nonsense.
Thanks again.
Ivaylo
02-10-2009 2:48 PM
Go to SE36 transaction, mark "selections" and put, DDF ldb, F7.
Regards
02-10-2009 2:51 PM
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