Application Development and Automation 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: 
Read only

BDC for FF63

Former Member
0 Likes
973

I have wrote a BDC for transaction FF63.

but its filling the data in the first screen but in the next screen its not filling.

Please advice

&----


Report ZTEST_RESER_BDC.

&----


*----


data: bdc_tab like standard table of bdcdata initial size 0 with header line,

T_MESSTAB TYPE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.

parameters: dis_mode default 'A',

upd_mode default 'S'.

start-of-selection.

perform fill_bdc_data.

call transaction 'FF63'

using bdc_tab

mode dis_mode

update upd_mode

messages into T_MESSTAB.

if sy-subrc <> 0.

write 'error'.

endif.

commit work.

leave program.

----


  • Form fill_bdc_data

----


  • text

----


  • --> p1 text

  • <-- p2 text

----


FORM fill_bdc_data .

refresh bdc_tab.

perform populate_bdc_tab

using:

'1' 'SAPMF40E' '0100',

'' 'BDC_CURSOR' 'FDES-BUKRS',

'' 'BDC_OKCODE' '=ONE',

'' 'FDES-BUKRS' '1100',

'' 'FDES-DSART' 'FA',

'1' 'SAPMF40E' '0101',

'' 'FDES-DATUM' '10/25/2007',

'' 'FDES-AVDAT' '10/25/2007',

'' 'RF40L-DISKB' '50100',

'' 'FDES-WRSHB' '1002.00',

'' 'FDES-DISPW' 'USD',

'' 'FDES-DMSHB' '1002.00',

'' 'FDES-GSBER' '0056',

'' 'FDES-REFER' 'E101000487',

'' 'FDES-SGTXT' 'Call Using BDC',

'' 'BDC_OKCODE' '=UPD'.

ENDFORM. " fill_bdc_data

&----


*& Form populate_bdc_tab

&----


  • text

----


  • -->P_ENDFORM text

----


FORM populate_bdc_tab USING flag type c

var1 type c

var2 type c.

clear bdc_tab.

if flag = '1'.

bdc_tab-program = var1.

bdc_tab-program = var2.

bdc_tab-dynbegin = 'X'.

else.

bdc_tab-fnam = var1.

bdc_tab-fval = var2.

endif.

append bdc_tab.

ENDFORM. " populate_bdc_tab

I have wrote a BDC for transaction FF63.

but its filling the data in the first screen but in the next screen its not filling.

Please advice

&----


Report ZTEST_RESER_BDC.

&----


*----


data: bdc_tab like standard table of bdcdata initial size 0 with header line,

T_MESSTAB TYPE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.

parameters: dis_mode default 'A',

upd_mode default 'S'.

start-of-selection.

perform fill_bdc_data.

call transaction 'FF63'

using bdc_tab

mode dis_mode

update upd_mode

messages into T_MESSTAB.

if sy-subrc <> 0.

write 'error'.

endif.

commit work.

leave program.

----


  • Form fill_bdc_data

----


  • text

----


  • --> p1 text

  • <-- p2 text

----


FORM fill_bdc_data .

refresh bdc_tab.

perform populate_bdc_tab

using:

'1' 'SAPMF40E' '0100',

'' 'BDC_CURSOR' 'FDES-BUKRS',

'' 'BDC_OKCODE' '=ONE',

'' 'FDES-BUKRS' '1100',

'' 'FDES-DSART' 'FA',

'1' 'SAPMF40E' '0101',

'' 'FDES-DATUM' '10/25/2007',

'' 'FDES-AVDAT' '10/25/2007',

'' 'RF40L-DISKB' '50100',

'' 'FDES-WRSHB' '1002.00',

'' 'FDES-DISPW' 'USD',

'' 'FDES-DMSHB' '1002.00',

'' 'FDES-GSBER' '0056',

'' 'FDES-REFER' 'E101000487',

'' 'FDES-SGTXT' 'Call Using BDC',

'' 'BDC_OKCODE' '=UPD'.

ENDFORM. " fill_bdc_data

&----


*& Form populate_bdc_tab

&----


  • text

----


  • -->P_ENDFORM text

----


FORM populate_bdc_tab USING flag type c

var1 type c

var2 type c.

clear bdc_tab.

if flag = '1'.

bdc_tab-program = var1.

bdc_tab-program = var2.

bdc_tab-dynbegin = 'X'.

else.

bdc_tab-fnam = var1.

bdc_tab-fval = var2.

endif.

append bdc_tab.

ENDFORM. " populate_bdc_tab

5 REPLIES 5
Read only

Former Member
0 Likes
815

Use 'X' instead of '1',

'1' 'SAPMF40E' '0100',

This should solve your problem.

ashish

Read only

0 Likes
815

am using X only. If you check the code below.

Read only

0 Likes
815

FORM populate_bdc_tab USING flag type c

var1 type c

var2 type c.

clear bdc_tab.

if flag = '1'.

bdc_tab-program = var1.

bdc_tab-program = var2.

bdc_tab-dynbegin = 'X'.

else.

bdc_tab-fnam = var1.

bdc_tab-fval = var2.

endif.

append bdc_tab.

ENDFORM. " populate_bdc_tab

You are not populating DYNPRO but you are populating PROGRAM twice. Can you please correct this and check again.

ashish

Read only

Former Member
0 Likes
815

u have wriiten

bdc_tab-program = var1.

bdc_tab-program = var2.

u have writen program twice in ur code

instead u have 2 write

bdc_tab-program = var1.

bdc_tab-dynpro = var2.

Read only

0 Likes
815

Thanks Amit,

i resolved it.

Thank you for the help. <b><REMOVED BY MODERATOR></b>

Message was edited by:

Alvaro Tejada Galindo