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

Logical Database Help

Former Member
0 Likes
390

Hi,

If any brother have got the knowledge of LDB then please tell me that how to make a dynamic selection in LDB.

Scenerio : in VFV LDB i want to get VBRK-FKDAT (Billing Date) in my ABAP Program, so how to pass this dynamically means by selection screen.

Thanks,

Muhammad Usman Malik

1 REPLY 1
Read only

andreas_mann3
Active Contributor
0 Likes
349

Hi,

use fm RS_REFRESH_FROM_DYNAMICAL_SEL

CALL FUNCTION 'RS_REFRESH_FROM_DYNAMICAL_SEL'

EXPORTING

CURR_REPORT = SY-REPID

MODE_WRITE_OR_MOVE = 'M'

IMPORTING

P_TRANGE = RANGE

EXCEPTIONS

NOT_FOUND = 1

WRONG_TYPE = 2

OTHERS = 3.

ERR = 9.

LOOP AT RANGE INTO WA.

APPEND WA.

IF WA-TABLENAME = 'VBRK'.

ERR = 0.

ENDIF.

ENDLOOP.

CHECK ERR = 0.

ERR = 9.

LOOP AT WA-FRANGE_T INTO CA.

APPEND CA.

IF CA-FIELDNAME = 'FKDAT'.

ERR = 0.

ENDIF.

ENDLOOP.

CHECK ERR = 0.

ERR = 9.

LOOP AT CA-SELOPT_T INTO RSDSSELOPT.

...

ENDLOOP.

A.

Message was edited by:

Andreas Mann