‎2007 Sep 18 6:58 AM
Hi all,
i am running a BDC program for tcode MM01, but when i run the program through SM35, i get an error saying "<b>No batch input data available for screen 0060</b>"
How to resolve it.?
have a txt file i presentation server, an itab which fills data from tht txt file.
The program is running fine in the fore ground mode.
<b>Points will be rewared</b>
Message was edited by:
Runal Singh
‎2007 Sep 18 7:09 AM
Hi,
The error "No batch input data available for screen 0060" is displayed when ever u don't code u r program to fill bdcdata table for a particular screen.
So, in ur bdc code u have missed particular screen. Check u r file on presentation server whether any data available for particular fields on the screen.
Regards,
Sankar
‎2007 Sep 18 7:02 AM
hi runal,
that means for that screen u rare not populating the BDC OK_CODE.
Populate the bdc ok_code and try it..
<b>Reward ppoints if useful</b>
Chandra
‎2007 Sep 18 7:04 AM
Hi,
Please check the Recording of BDC Once based on Screen no 0060.
Hopefully we can delete the code in screen no 0060..
Hope this info will help you.
Rewards points if useful.
With regards,
K K V
‎2007 Sep 18 7:09 AM
Hi,
The error "No batch input data available for screen 0060" is displayed when ever u don't code u r program to fill bdcdata table for a particular screen.
So, in ur bdc code u have missed particular screen. Check u r file on presentation server whether any data available for particular fields on the screen.
Regards,
Sankar
‎2007 Sep 18 7:43 AM
How to include bdcdata itab in my program......?
In my program i am just using upload FM to load data to itab, and then in then looping through itab, and placing the respective fields of the work area.
this is my code.
types : begin of t_mat,
matnr(20),
desc(50),
uom(5),
end of t_mat.
internal table and workarea declaration.......................................
data : i_mat type table of t_mat.
data : wa_mat type t_mat.
include bdcrecxx.
start-of-selection.
moving the flat file content to internal table................................
CALL FUNCTION 'UPLOAD'
EXPORTING
FILETYPE = 'DAT'
TABLES
data_tab = i_mat
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
perform open_group.
loop at i_mat into wa_mat.
perform bdc_dynpro using 'SAPLMGMM' '0060'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-MTART'.
perform bdc_field using 'RMMG1-MATNR'
wa_mat-matnr.
perform bdc_field using 'RMMG1-MBRSH'
'W'.
perform bdc_field using 'RMMG1-MTART'
'FERT'.
perform bdc_dynpro using 'SAPLMGMM' '0070'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_field using 'BDC_CURSOR'
'MSICHTAUSW-KZSEL(01)'.
perform bdc_field using 'MSICHTAUSW-KZSEL(01)'
'X'.
perform bdc_dynpro using 'SAPLMGMM' '4000'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_SUBSCR'
'SAPLMGMM'
& '200TABFRA1 '.
perform bdc_field using 'BDC_SUBSCR'
'SAPLMGD1'
& '1002SUB1 '.
perform bdc_field using 'MAKT-MAKTX'
wa_mat-desc.
perform bdc_field using 'BDC_SUBSCR'
'SAPLMGD1'
& '2001SUB2 '.
perform bdc_field using 'BDC_CURSOR'
'MARA-MEINS'.
perform bdc_field using 'BDC_CURSOR'
'MARA-MEINS'.
perform bdc_field using 'MARA-MEINS'
wa_mat-uom.
PERFORM bdc_field USING 'BDC_SUBSCR'
'SAPLMGD1'
& ' 2561SUB3'.
PERFORM bdc_field USING 'BDC_SUBSCR'
'SAPLMGD1'
& ' 2007SUB4'.
PERFORM bdc_field USING 'BDC_SUBSCR'
'SAPLMGD1'
& ' 2005SUB5'
PERFORM bdc_field USING 'BDC_SUBSCR'
'SAPLMGD1'
& ' 2011SUB6'.
PERFORM bdc_dynpro USING 'SAPLSPO1' '0300'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=YES'.
perform bdc_transaction using 'MM01'.
endloop.
PERFORM close_group.
‎2007 Sep 19 11:36 AM
Hi Runal.
When ur executing the BDC in foreground, check for any warning messages below, because the Screen flow gets disturbed when there is a warning and it can result to a particular field not being available on the screen..say in ur case 0060. If there is no warning during foreground processing then you have to check whether the fileds you are trying to populate are available on the screen.
Regards,
GV