Skip to Content

How to call program in BDC

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!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 09, 2007 at 09:32 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • > 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!

  • avatar image
    Former Member
    Oct 09, 2007 at 09:36 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • > 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!