02-04-2009 1:17 PM
Is there any function module which uploads the data of internal table in BD13.
02-04-2009 1:35 PM
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
02-04-2009 1:45 PM
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?
02-04-2009 1:48 PM
HI,
I think you need to create a BDC to upload data from an internal table
Thanks
Viquar Iqbal.
02-04-2009 2:03 PM
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
02-16-2009 9:57 AM