10-09-2007 10:25 AM
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!
10-09-2007 10: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
10-09-2007 10:36 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'.
> 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!
10-09-2007 10: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.
10-10-2007 3:38 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.
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!