Site icon SAP Human Resources Experts And Solutions

LSMW errors when you work with files

<p>Sometimes when you load file in LSMW &lpar;Read Data step&rpar; system throws an error with a code without any human explanation&period; To understand this I advise you to look at this ABAP code from the standard LSMW program&period; Having this function module return codes &lpar;the same time error codes for LSMW&rpar; it would be easier to understand what&&num;8217&semi;s wrong&period; Here is the list of LSMW errors when you work with text files&period; This step occurs just before you run convert data in legacy workbench&period; These return codes represent errors SAP shows us during file read step&period;<&sol;p>&NewLine;<p>program &sol;SAPDMC&sol;SAP&lowbar;LSMW&lowbar;READ&lowbar;FORMS&colon;<br &sol;>&NewLine;CALL FUNCTION &&num;8216&semi;GUI&lowbar;UPLOAD&&num;8217&semi;<br &sol;>&NewLine;EXPORTING<br &sol;>&NewLine;filename                      &equals; l&lowbar;filename<br &sol;>&NewLine;filetype                      &equals; l&lowbar;filetype<br &sol;>&NewLine;codepage                      &equals; l&lowbar;codepage<br &sol;>&NewLine;&ast;     HAS&lowbar;FIELD&lowbar;SEPARATOR           &equals; &&num;8216&semi; &&num;8216&semi;<br &sol;>&NewLine;&ast;     HEADER&lowbar;LENGTH                 &equals; 0<br &sol;>&NewLine;&ast;     READ&lowbar;BY&lowbar;LINE                  &equals; &&num;8216&semi;X&&num;8217&semi;<br &sol;>&NewLine;&ast;   IMPORTING<br &sol;>&NewLine;&ast;     FILELENGTH                    &equals;<br &sol;>&NewLine;&ast;     HEADER                        &equals;<br &sol;>&NewLine;TABLES<br &sol;>&NewLine;data&lowbar;tab                      &equals; &&num;8220&semi;l&lowbar;upload&lowbar;table&&num;8221&semi;<br &sol;>&NewLine;EXCEPTIONS<br &sol;>&NewLine;file&lowbar;open&lowbar;error               &equals; 1<br &sol;>&NewLine;file&lowbar;read&lowbar;error               &equals; 2<br &sol;>&NewLine;no&lowbar;batch                      &equals; 3<br &sol;>&NewLine;gui&lowbar;refuse&lowbar;filetransfer       &equals; 4<br &sol;>&NewLine;invalid&lowbar;type                  &equals; 5<br &sol;>&NewLine;no&lowbar;authority                  &equals; 6<br &sol;>&NewLine;unknown&lowbar;error                 &equals; 7<br &sol;>&NewLine;bad&lowbar;data&lowbar;format               &equals; 8<br &sol;>&NewLine;header&lowbar;not&lowbar;allowed            &equals; 9<br &sol;>&NewLine;separator&lowbar;not&lowbar;allowed         &equals; 10<br &sol;>&NewLine;header&lowbar;too&lowbar;long               &equals; 11<br &sol;>&NewLine;unknown&lowbar;dp&lowbar;error              &equals; 12<br &sol;>&NewLine;access&lowbar;denied                 &equals; 13<br &sol;>&NewLine;dp&lowbar;out&lowbar;of&lowbar;memory              &equals; 14<br &sol;>&NewLine;disk&lowbar;full                     &equals; 15<br &sol;>&NewLine;dp&lowbar;timeout                    &equals; 16<br &sol;>&NewLine;OTHERS                        &equals; 17<&sol;p>&NewLine;

Exit mobile version