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: 

Logical Database

Former Member
0 Kudos
194

Hi,

I am getting a little problem with logical database...

I am calling Function Module 'LDB_PROCESS' in my program. I am calling this in a loop to get data according to zone.

Anyhow, it works the first time and accesses the LDB and returns data in itab, but when it runs the next time the Function Module doesn't processes. It never goes again in the call back functions the next time.

Can anyone tell me that how to call multiple times LDB_PROCESS. One more thing, this is a function module so in the attributes of the program i didn't mentioned LDB i.e VFV, i am just calling LDB from this function module.

Please reply urgent.

Thanks,

Usman Malik

3 REPLIES 3

Former Member
0 Kudos
105

HI,

CALL FUNCTION 'LDB_PROCESS'

EXPORTING

ldbname = 'F1S'

variant = ' '

TABLES

callback = callback

selections = seltab

EXCEPTIONS

ldb_not_reentrant = 1

ldb_incorrect = 2

ldb_already_running = 3

ldb_error = 4

ldb_selections_error = 5

ldb_selections_not_accepted = 6

variant_not_existent = 7

variant_obsolete = 8

variant_error = 9

free_selections_error = 10

callback_no_event = 11

callback_node_duplicate = 12

OTHERS = 13.

See the below link also

http://help.sap.com/saphelp_nw2004s/helpdata/en/64/237f8cd43711d1950b0000e8353423/content.htm

Regards

Sudheer

0 Kudos
105

refer program DEMO_LOGICAL_DATABASE

Former Member
0 Kudos
105

I have used the FM 'LDB_PROCESS' in the below way. Check if the LDB could be reentrant . I think , this is one of the properties .

CALL FUNCTION 'LDB_PROCESS'

EXPORTING

ldbname = i_ldbname

  • VARIANT =

  • EXPRESSIONS =

field_selection = lt_fields_sorted

  • DYN_NODE_TYPES =

TABLES

callback = lt_callback

selections = lt_seltab

EXCEPTIONS

ldb_not_reentrant = 1

ldb_incorrect = 2

ldb_already_running = 3

ldb_error = 4

ldb_selections_error = 5

ldb_selections_not_accepted = 6

variant_not_existent = 7

variant_obsolete = 8

variant_error = 9

free_selections_error = 10

callback_no_event = 11

callback_node_duplicate = 12

callback_no_program = 13

callback_no_cbform = 14

dyn_node_no_type = 15

dyn_node_invalid_type = 16

OTHERS = 17.