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

LSMW While importing data

Former Member
0 Likes
899

Hello, I'm using LSMW for transfering data, But I got an error on step 9. Import Data.

I can't read error message text because it's not readable (shows in a wrong encoding,)

The error doesn't occur everytime. I use the same file but run it in a different period of time. I don't know the reason of that error.

I know it's may be not enough info to solve my problem. But if someone was confronted with that pls notify me,

Thanks.

Edited by: kernel.panic on Sep 28, 2009 12:07 PM

link to the error: http://s53.radikal.ru/i140/0909/e5/5a937bff1451.jpg

1 ACCEPTED SOLUTION
Read only

dhirendra_pandit
Active Participant
0 Likes
782

Hi Friend,

I am not able to see your error snap shot.

As per my assumption your file encoding format is wrong, thats why that error you getting.

Just do one thing while saving your data file put the encoding method as unicode.

Hope this will help you.

Regards,

Dhirendra

5 REPLIES 5
Read only

dhirendra_pandit
Active Participant
0 Likes
783

Hi Friend,

I am not able to see your error snap shot.

As per my assumption your file encoding format is wrong, thats why that error you getting.

Just do one thing while saving your data file put the encoding method as unicode.

Hope this will help you.

Regards,

Dhirendra

Read only

0 Likes
782

I translated error message, it has been said:

DHR: System SAP Message:

Process reruned (procedure failed).

Not informative message

Read only

0 Likes
782

Try with Unicoded input file.

Regards

Dhirendra

Read only

Former Member
0 Likes
782

Hmm, I made subproject name shorter and i'm not getting any errors ..,. for a while ...

Read only

0 Likes
782

no matter which codepage I am using.

for example: when I specify input file to disk H: although my file is on disk C; I got the same error.

I've launched debugger and found the line with error:

FORM write_header_record.             
                                        
    CLEAR gs_lsheader.                  
    gs_lsheader-lsmw = 'LSMW'.          
    gs_lsheader-project = g_project.    
    gs_lsheader-subproj = g_subproj.    
    gs_lsheader-object = g_object.      
    gs_lsheader-systemid = sy-sysid.    
    gs_lsheader-client = sy-mandt.      
    gs_lsheader-datum = sy-datum.       
    gs_lsheader-uzeit = sy-uzeit.       
    gs_lsheader-uname = sy-uname.                                                                                
* Begin: binary write                                  
    g_record_length = STRLEN( gs_lsheader ).             
    g_hex_record_length = g_record_length.               
    TRANSFER g_hex_record_length TO g_filename.  // AT THIS LINE ERROR OCCURS         
    ASSIGN g_max_buffer(g_record_length) TO <g_buffer>.  
    <g_buffer> = gs_lsheader.                            
    TRANSFER <g_buffer> TO g_filename.                   
  * End: binary write