<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Frequently faced errors in Unicode while SAP Upgrade in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/frequently-faced-errors-in-unicode-while-sap-upgrade/m-p/4305731#M1026664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Please check the below link you will get lot of things about unicode for upgrade&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/79/c554d3b3dc11d5993800508b6b8b11/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/79/c554d3b3dc11d5993800508b6b8b11/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Syf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Aug 2008 11:48:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-12T11:48:33Z</dc:date>
    <item>
      <title>Frequently faced errors in Unicode while SAP Upgrade</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/frequently-faced-errors-in-unicode-while-sap-upgrade/m-p/4305729#M1026662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gusy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am going work on Unicode upgarde project, can any one share Frequently faced errors in Unicode while SAP Upgrade.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gourisankar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 11:42:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/frequently-faced-errors-in-unicode-while-sap-upgrade/m-p/4305729#M1026662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T11:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Frequently faced errors in Unicode while SAP Upgrade</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/frequently-faced-errors-in-unicode-while-sap-upgrade/m-p/4305730#M1026663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the below related threads&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4005961"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4566962"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5375567"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3293341"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 11:46:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/frequently-faced-errors-in-unicode-while-sap-upgrade/m-p/4305730#M1026663</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-08-12T11:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Frequently faced errors in Unicode while SAP Upgrade</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/frequently-faced-errors-in-unicode-while-sap-upgrade/m-p/4305731#M1026664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Please check the below link you will get lot of things about unicode for upgrade&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/79/c554d3b3dc11d5993800508b6b8b11/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/79/c554d3b3dc11d5993800508b6b8b11/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Syf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 11:48:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/frequently-faced-errors-in-unicode-while-sap-upgrade/m-p/4305731#M1026664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T11:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Frequently faced errors in Unicode while SAP Upgrade</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/frequently-faced-errors-in-unicode-while-sap-upgrade/m-p/4305732#M1026665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MESSAGEG@3&lt;/STRONG&gt; 	&lt;/P&gt;&lt;P&gt;Replace variable declaration of type X with appropriate value from method cl_abap_char_utilities&lt;/P&gt;&lt;P&gt;i.e. 	CONSTANTS: 	con_tab TYPE x VALUE '09',&lt;/P&gt;&lt;P&gt;			con_cret TYPE x VALUE '0D'.&lt;/P&gt;&lt;P&gt;would be replaced with&lt;/P&gt;&lt;P&gt;	CONSTANTS: 	con_tab TYPE c value cl_abap_char_utilities=&amp;gt;HORIZONTAL_TAB,&lt;/P&gt;&lt;P&gt;			con_cret TYPE c value cl_abap_char_utilities=&amp;gt;CR_LF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*UPLO 	*&lt;/P&gt;&lt;P&gt;Upload/ws_upload and download/ws_download are obsolete, since they are not Unicode enabled. Replace&lt;/P&gt;&lt;P&gt;with appropriate methods from cl_gui_frontend_services. Please also note that the data types of the various&lt;/P&gt;&lt;P&gt;parameters will also probably also need changing for the new method calls but the code below demonstrates&lt;/P&gt;&lt;P&gt;how to do this. I_TABLE is the original table and IT_UCTABLE is the converted table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. Function module u2018WS_DOWNLOADu2019&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;           FILENAME                = p_file&lt;/P&gt;&lt;P&gt;           FILETYPE                = 'ASC'&lt;/P&gt;&lt;P&gt;         MODE                    = ' '&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            DATA_TAB                = i_table&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;would be replaced with&lt;/P&gt;&lt;P&gt;data: gd_file type string.&lt;/P&gt;&lt;P&gt;types: t_uctable like line of i_table.&lt;/P&gt;&lt;P&gt;data:  it_uctable type standard table of t_uctable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gd_file = p_file.&lt;/P&gt;&lt;P&gt;  it_uctable[] = i_table[].&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_gui_frontend_services=&amp;gt;gui_download&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    filename = gd_file&lt;/P&gt;&lt;P&gt;    filetype = 'ASC' " DAT,WK1&lt;/P&gt;&lt;P&gt;    Append   = ' '   "if mode = A then this would be X&lt;/P&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    data_tab = it_uctable&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    OTHERS   = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function module u2018DOWNLOADu2019&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'DOWNLOAD'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          filename = p_file&lt;/P&gt;&lt;P&gt;          filetype = 'WK1'&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          data_tab = i_table.&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;would be replaced with&lt;/P&gt;&lt;P&gt;data: gd_file type string.&lt;/P&gt;&lt;P&gt;DATA: ld_filename TYPE string,&lt;/P&gt;&lt;P&gt;      ld_path TYPE string,&lt;/P&gt;&lt;P&gt;      ld_fullpath TYPE string,&lt;/P&gt;&lt;P&gt;      ld_result TYPE i.&lt;/P&gt;&lt;P&gt;types: t_uctable like line of i_table.&lt;/P&gt;&lt;P&gt;data:  it_uctable type standard table of t_uctable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gd_file = p_file.&lt;/P&gt;&lt;P&gt;  shift gd_file RIGHT DELETING TRAILING '\'.&lt;/P&gt;&lt;P&gt;  shift gd_file RIGHT DELETING TRAILING '/'.&lt;/P&gt;&lt;P&gt;  shift gd_file left DELETING LEADING space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_gui_frontend_services=&amp;gt;file_save_dialog&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      DEFAULT_EXTENSION = 'WK1'&lt;/P&gt;&lt;P&gt;      default_file_name = gd_file&lt;/P&gt;&lt;P&gt;      INITIAL_DIRECTORY = gd_file&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      filename          = ld_filename&lt;/P&gt;&lt;P&gt;      path              = ld_path&lt;/P&gt;&lt;P&gt;      fullpath          = ld_fullpath&lt;/P&gt;&lt;P&gt;      user_action       = ld_result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  check ld_result eq 0.&lt;/P&gt;&lt;P&gt;  gd_file = ld_fullpath.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gd_file = p_file.&lt;/P&gt;&lt;P&gt;  it_uctable[] = i_table[].&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_gui_frontend_services=&amp;gt;gui_download&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    filename = gd_file&lt;/P&gt;&lt;P&gt;    filetype = 'ASC' " DAT,WK1&lt;/P&gt;&lt;P&gt;    Append   = ' '   "if mode = A then this would be X&lt;/P&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    data_tab = it_uctable&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    OTHERS   = 1.&lt;/P&gt;&lt;P&gt;Or in circumstances where you need to add field texts to the first line of the file you could use the&lt;/P&gt;&lt;P&gt;GUI_DOWNLOAD function module:&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF fields_tab OCCURS 0,&lt;/P&gt;&lt;P&gt;        f1(50),&lt;/P&gt;&lt;P&gt;      END   OF fields_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fields_tab-f1 = 'field1 text'.&lt;/P&gt;&lt;P&gt;APPEND fields_tab.&lt;/P&gt;&lt;P&gt;fields_tab-f1 = 'field2 text'.&lt;/P&gt;&lt;P&gt;APPEND fields_tab.&lt;/P&gt;&lt;P&gt;fields_tab-f1 = 'field3 text'.&lt;/P&gt;&lt;P&gt;APPEND fields_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = i_filename&lt;/P&gt;&lt;P&gt;      filetype                = 'DAT'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      filelength              = filelen&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = itab&lt;/P&gt;&lt;P&gt;      fieldnames              = fields_tab&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;           .....&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;Note: u2018ws_uploadu2019 and u2018uploadu2019 would be the same as above but would use the&lt;/P&gt;&lt;P&gt;cl_gui_frontend_services=&amp;gt;gui_upload method call instead:&lt;/P&gt;&lt;P&gt; CALL METHOD cl_gui_frontend_services=&amp;gt;gui_upload&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    filename = gd_file&lt;/P&gt;&lt;P&gt;    filetype = 'ASC' " DAT,WK1&lt;/P&gt;&lt;P&gt;    Append   = ' '&lt;/P&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    data_tab = it_uctable&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    OTHERS   = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OPEN 004&lt;/STRONG&gt; 	&lt;/P&gt;&lt;P&gt;Add u2018ENCODINGu2019 addition to statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. 	OPEN DATASET G_DATAFILE for OUTPUT IN TEXT MODE.&lt;/P&gt;&lt;P&gt;would be replaced with&lt;/P&gt;&lt;P&gt;	OPEN DATASET G_DATAFILE for OUTPUT IN TEXT MODE ENCODING NON-UNICODE.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OPEN 002&lt;/STRONG&gt; 	&lt;/P&gt;&lt;P&gt;IN..Mode is expected within open dataset command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. 	OPEN DATASET wfilepath FOR OUTPUT.&lt;/P&gt;&lt;P&gt;would be replaced with&lt;/P&gt;&lt;P&gt;	OPEN DATASET wfilepath FOR OUTPUT IN TEXT MODE ENCODING NON-UNICODE.&lt;/P&gt;&lt;P&gt;Or 	OPEN DATASET wfilepath FOR OUTPUT IN BINARY MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OPEN 001&lt;/STRONG&gt; 	&lt;/P&gt;&lt;P&gt;FOR INPUT, FOR OUTPUT, FOR APPENDING or FOR UPDATE expected!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. 	OPEN DATASET wfilepath FOR OUTPUT.&lt;/P&gt;&lt;P&gt;would be replaced with&lt;/P&gt;&lt;P&gt;	OPEN FOR OUTPUT DATASET wfilepath FOR OUTPUT IN TEXT MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DESCIBE002&lt;/STRONG&gt; 	&lt;/P&gt;&lt;P&gt;THE DESCRIBE LENGTH can only be used with the IN BYTE or IN CHARACTER MODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. 	describe field e_text length line_length.&lt;/P&gt;&lt;P&gt;would be replaced with&lt;/P&gt;&lt;P&gt;	describe field e_text length line_length IN CHARACTER MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ASSIGN 019&lt;/STRONG&gt; 	&lt;/P&gt;&lt;P&gt;The statement u2018ASSIGN PATH+PATHLENGTH TO &lt;/P&gt;&lt;P&gt;.u2019 Returns the following error message:&lt;/P&gt;&lt;P&gt;"You cannot use ASSIGN f+offset. Always use an explicit length (or '*')".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. 	ASSIGN PATH+PATHLENGTH TO &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;would be replaced with&lt;/P&gt;&lt;P&gt;	ASSIGN PATH+PATHLENGTH(2) TO &lt;/P&gt;&lt;P&gt;. u201Creplace 2 with the length of the field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MESSAGEG!2&lt;/STRONG&gt; 	&lt;/P&gt;&lt;P&gt;Itab/structure and u201C u201C  are not mutually convertible in a Unicode program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. 	G_SHOW_LIST = SPACE.&lt;/P&gt;&lt;P&gt;would be replaced with&lt;/P&gt;&lt;P&gt;	Clear: G_SHOW_LIST.&lt;/P&gt;&lt;P&gt;Or  	G_SHOW_LIST-field1 = space.&lt;/P&gt;&lt;P&gt;	G_SHOW_LIST-field2 = space.&lt;/P&gt;&lt;P&gt;					u2026etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*MESSAGEG!3 	*&lt;/P&gt;&lt;P&gt;var and var  are not comparable in a Unicode program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 	Data: VAR like tabix.&lt;/P&gt;&lt;P&gt;was replaced with&lt;/P&gt;&lt;P&gt;		Data: VAR type sy-tabix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 11:51:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/frequently-faced-errors-in-unicode-while-sap-upgrade/m-p/4305732#M1026665</guid>
      <dc:creator>former_member206439</dc:creator>
      <dc:date>2008-08-12T11:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Frequently faced errors in Unicode while SAP Upgrade</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/frequently-faced-errors-in-unicode-while-sap-upgrade/m-p/4305733#M1026666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 08:13:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/frequently-faced-errors-in-unicode-while-sap-upgrade/m-p/4305733#M1026666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T08:13:26Z</dc:date>
    </item>
  </channel>
</rss>

