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

Input Field

Former Member
0 Likes
1,219

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

7 REPLIES 7
Read only

Former Member
0 Likes
1,064

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.

Read only

Former Member
0 Likes
1,064

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.

Read only

Former Member
0 Likes
1,064

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

Read only

Former Member
0 Likes
1,064

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.

Read only

0 Likes
1,064

the text file should be like this.

0000000001Revan 20061223.

Read only

0 Likes
1,064

u have to give space 15 characters after REVAN and continue with 20061223.

Read only

0 Likes
1,064

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.