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: 

Fuction Module uploads the BD13

Former Member
0 Kudos

Is there any function module which uploads the data of internal table in BD13.

5 REPLIES 5

Former Member
0 Kudos

hi,

what exactly you mean by uploading the data..?

The internal table inside BD13 is of structure BDIREQIDOC.

The structure fields can be obtained from SE11.

So declare a internal table of this structure type, upload the data from a text file or excel file using appropriate function modules such as GUI_UPLOAD or TEXT_CONVERT_XLS_TO_SAP.

Thanks and regards

Sharath

0 Kudos

i have sum data of tables SDBAR, SDBAP,SDBAC in my internal table. so. i want to pass a function module in which by passing this internal table in FM, the data will automatically upload in BD13 after execution.

So is there anny FM for this?

viquar_iqbal
Active Contributor
0 Kudos

HI,

I think you need to create a BDC to upload data from an internal table

Thanks

Viquar Iqbal.

Former Member
0 Kudos

hi,

I think this way would be helpful rather than passing the internal table to a Funtion module

data:

t_bdcdata like table of bdcdata with header line.

loop at t_data.

perform bdc_dynpro using 'RBDFEDEB' '1000'.

perform bdc_field using 'BDC_OKCODE'

'=ONLI'.

perform bdc_field using 'SELKUNNR-LOW'

'1653'. " t_data-customer

perform bdc_field using 'SELLIST-LOW'

'DEB_PRODUCTION'. ": t_data-production

perform bdc_field using 'MESTYP'

'DEBCOR'. " t_data-msg.

call transaction 'BD13' using t_bdcdata .

form BDC_DYNPRO using value(p_program)

value(p_dynpro).

t_bdcdata-program = p_program.

t_bdcdata-dynpro = p_dynpro.

t_bdcdata-dynbegin = 'X'.

append t_bdcdata.

endform.

form BDC_FIELD using value(p_fnam)

value(p_fval).

t_bdcdata-fnam = p_fnam.

t_bdcdata-fval = p_fval.

append t_bdcdata.

endform.

Hope it serves your purpose

Thanks and regards

Sharath

Former Member
0 Kudos

closed