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: 

Calling FM 'BDS_ALL_CONNECTIONS_GET'

nurullah_rstem2
Explorer
0 Kudos

Hi,

How can i call FM 'BDS_ALL_CONNECTIONS_GET' with parameters that selection-options range?

that right;

DATA: CLASSNAME LIKE BAPIBDS01-CLASSNAME ,

CLASSTYPE LIKE BAPIBDS01-CLASSTYPE ,

objkey LIKE BDN_CON-OBJKEY ,

CALL FUNCTION 'BDS_ALL_CONNECTIONS_GET'

EXPORTING

  • logical_system = logical_system

classname = classname

classtype = classtype

objkey = objkey

client = client

all = ' ' " <- get the newest version

no_gos_docs = ' ' " <- get Gos docs too

IMPORTING

count = i_count

TABLES

signature = signature

all_connections = connections

framework = framework

EXCEPTIONS

no_objects_found = 1

error_kpro = 2

internal_error = 3

not_authorized = 4

OTHERS = 5.

how can i do it when i defined that parameters as selection-options that

select-options :

CLASSN FOR TOJTB-NAME OBLIGATORY DEFAULT 'BUS2032' ,

CLASSTYP FOR BAPIBDS01-CLASSTYPE OBLIGATORY DEFAULT 'BO' ,

OBJKY FOR BAPIBDS01-OBJKEY OBLIGATORY DEFAULT '0000000011'.

can somebody help me pls ?

thanks.

3 REPLIES 3

former_member203501
Active Contributor
0 Kudos

can you check the Include LOPTOF01 .

former_member194669
Active Contributor
0 Kudos

You need to keep the selection variables this way.


selection-screen begin of block object with frame title text-001.
parameters: classn(30) obligatory memory id oao,
            classtyp like bapibds01-classtype obligatory
                     memory id ctype value check,
            objkey(70) memory id oai.
selection-screen end of block object.

i think in sap we don't have table with above said keys to make select and get the records

nurullah_rstem2
Explorer
0 Kudos

yes i already did that

i'm trying to call that FM with a selection-options range.

thanks also.