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 call program in BDC

Former Member
0 Kudos

Hi everyone!

For BDC programming, I use this statement (example only):


CALL TRANSACTION 'F-02' USING   bdc_tab
                        MODE    'N'
                        UPDATE  'S'.

Is it possible to call the program ID and screen no. instead of the tcode?

Thanks a lot!

4 REPLIES 4

Former Member
0 Kudos

hi

s its poosible try it like this.

through the recording method.

CALL FUNCTION 'BDC_OPEN_GROUP'

EXPORTING

client = sy-mandt

group = 'JES'

keep = 'X '

user = 'SY-USER'

prog = SAPMF05. -> PROGRAM NAME FOR F-02 TRANSACTION

CALL FUNCTION 'BDC_INSERT'

EXPORTING

tcode = 'F-02'

TABLES

dynprotab = itab_bdcdata. "PASS YOUR <ITAB NAME>

CALL FUNCTION 'BDC_CLOSE_GROUP'.

REGARDS

BASKARAN

Message was edited by:

baskaran nagamanickam

0 Kudos

> hi

>

> s its poosible try it like this.

>

> through the recording method.

>

> CALL FUNCTION 'BDC_OPEN_GROUP'

> EXPORTING

> client = sy-mandt

> group = 'JES'

> keep = 'X '

> user = 'SY-USER'

> prog = SAPMF05. -> PROGRAM NAME FOR

> F-02 TRANSACTION

>

> CALL FUNCTION 'BDC_INSERT'

> EXPORTING

> tcode = 'F-02'

> TABLES

> dynprotab = itab_bdcdata. "PASS YOUR

> <ITAB NAME>

> CALL FUNCTION 'BDC_CLOSE_GROUP'.

> RDS

> BASKARAN

>

> Message was edited by:

> baskaran nagamanickam

However, this still calls the tcode (F-02). I need to call the program ID and screen no..

For example (if F-02):

program - SAPMF05A

screen - 100

Thanks!

hymavathi_oruganti
Active Contributor
0 Kudos

yes.

observe the statement

CALL TRANSACTION 'F-02' USING bdc_tab

MODE 'N'

UPDATE 'S'.

in that, what is bdc_tab?

it is atable of type bdctab.

declare a table of type bdctab , let it be bdc_tab like above.

see the fields in bdctab structure in se11.

fill those fields.

in the dynpro is the screen number, program is the program name.

0 Kudos

> yes.

>

> observe the statement

>

>

>

> CALL TRANSACTION 'F-02' USING bdc_tab

> MODE 'N'

> UPDATE 'S'.

>

> in that, what is bdc_tab?

> it is atable of type bdctab.

> declare a table of type bdctab , let it be bdc_tab

> like above.

>

> see the fields in bdctab structure in se11.

> fill those fields.

> in the dynpro is the screen number, program is the

> program name.

I see. I understand what you mean. But to initiate the call for the programs, I still need to call the TCODE (F-02).

I was thinking if it is possible to call the program without calling the TCODE at all.

Thanks!