‎2006 Dec 21 3:25 AM
Dear All,
We got stuck when we're doing upload some text file to SAP. There are some message error "field xxx is not input field". For information, actually in table structure field xxx actually is not input field, the upload program automatically filling the field using the data from text file not from by manual input. How come this could be happen? Thanks a lot for response.
Regards,
Revan
‎2006 Dec 21 3:39 AM
I think u are using BDC for uploading process in BDC data wont get filled in the input disabled fields.
in the screen the field must be input disabled.
‎2006 Dec 21 2:35 PM
hi Revan,
I too faced the same problem.
Check the BDC program which you are using to upload the data.
In our program, while recording.. system itself populated a field on the screen, we also got the same error which you got.
Error got rectified when we commented those lines from teh code.
Ex: DKACB-FMORE is a field in display mode for one particular ledger account.
perform bdc_field using 'DKACB-FMORE'
'X'.
Regards,
Sailaja.
‎2006 Dec 21 2:39 PM
can you let us know the transaction and the field??
BDC will not upload the fields in disable mode...I guess u cannot do recording for that also
‎2006 Dec 23 11:30 AM
hi revan,
if u r using gui_upload FM . u have to pass parameter like file type 'ASC' and u have to give exact length of the field(the field length in the dictionary) in the text file . if ur using file type 'BIN' u have to give tab space between fields in the text file.
this example for file type 'ASC' .
take 3 fields like ebeln(10) , ernam(20), erdat(8).
u have to give like this in text file .
0000000001Revan 20061223.
regards,
chaitanya.
‎2006 Dec 23 11:35 AM
‎2006 Dec 23 11:39 AM
u have to give space 15 characters after REVAN and continue with 20061223.
‎2006 Dec 24 6:39 AM
I think you are trying to use <b>GUI_UPLOAD</b> FM to upload your text file into DB. While using this FM, you have to format your text file as per the length specified in your <b>int_tab</b> table. Please see the below sample....
data: begin of int_tab occurs 0,
objid(8) type c,
filler_1(1) type c,
name1(20) type c,
filler_2(1) type c,
name2(20) type c,
end of int_tab.
call function 'GUI_UPLOAD'
exporting
filename = wf_filename "as an Input parameter
tables
data_tab = int_tab .
<b>Note: The data should be in the same length as specified in int_tab</b>
00000001 RAMA@@@@@@@@@@@@@@@@ KRI
00000002 RAMA@@@@@@@@@@@@@@@@ KRI
Ps- @ represents blank space and last field no need to match the exact field length of int_tab.
loop at int_tab.
***write your logic over here....
endloop.
I hope this would be helps you.
Regards,
Ramki.