<?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: Feild Symbol Currency Feild Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/feild-symbol-currency-feild-issue/m-p/4433618#M1052323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had created a Dynamic internal Table Using class &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;it_fieldcatalog = lt_lvc_cat&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;ep_table = w_dyntable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN w_dyntable-&amp;gt;* TO &amp;lt;final&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I had Created a work are are using the feild symbol &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA w_structure LIKE LINE OF &amp;lt;final&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN w_structure-&amp;gt;* TO &amp;lt;wa_final&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here in this table I have one feild called VALUE1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_final1 INTO wa_final1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ASSIGN COMPONENT 'VALUE1' OF STRUCTURE &amp;lt;wa_final2&amp;gt; TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        &amp;lt;fs&amp;gt; = wa_final1-wkgbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Sep 2008 16:06:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-14T16:06:44Z</dc:date>
    <item>
      <title>Feild Symbol Currency Feild Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/feild-symbol-currency-feild-issue/m-p/4433614#M1052319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing some problem with the currency feild. When I try to pass the curreny feild to the feild symbol it it not assignning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the scenarion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;  LOOP AT it_final1 INTO wa_final1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ASSIGN COMPONENT 'AMT' OF STRUCTURE &amp;lt;wa_final2&amp;gt; TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        &amp;lt;fs&amp;gt; = wa_final1-wkgbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i pass wa_final1-wkgbtr to &amp;lt;fs&amp;gt; it is not moving. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can we pass the currency feild to the feild symbols directly???????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Sep 2008 15:02:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/feild-symbol-currency-feild-issue/m-p/4433614#M1052319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-14T15:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Feild Symbol Currency Feild Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/feild-symbol-currency-feild-issue/m-p/4433615#M1052320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure that is your complete coding. but the code you mentioned is wrong.&lt;/P&gt;&lt;P&gt;Just check this sample code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTEST_FS_CURRENCY.

data: it_vbap type vbap_t,
      wa_vbap type vbap,
      wa type vbap.

field-symbols: &amp;lt;fs_vbap&amp;gt; type vbap.

FIELD-SYMBOLS: &amp;lt;fs&amp;gt;.

select * from vbap
into table it_vbap
up to 2 rows.

assign wa to &amp;lt;fs_vbap&amp;gt;.  " This you did or not..

LOOP AT it_vbap INTO wa_vbap.

ASSIGN COMPONENT 'NETPR' OF STRUCTURE &amp;lt;fs_vbap&amp;gt; TO &amp;lt;fs&amp;gt;.

IF sy-subrc = 0.

&amp;lt;fs&amp;gt; = wa_vbap-netpr.
write:/ &amp;lt;fs&amp;gt;.

ENDIF.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Sep 2008 15:16:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/feild-symbol-currency-feild-issue/m-p/4433615#M1052320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-14T15:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Feild Symbol Currency Feild Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/feild-symbol-currency-feild-issue/m-p/4433616#M1052321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the replay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table that I have built is the dynamic internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot do like that .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Sep 2008 15:57:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/feild-symbol-currency-feild-issue/m-p/4433616#M1052321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-14T15:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Feild Symbol Currency Feild Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/feild-symbol-currency-feild-issue/m-p/4433617#M1052322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How exacty you defined can you show . you just showed only few lines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Sep 2008 16:02:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/feild-symbol-currency-feild-issue/m-p/4433617#M1052322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-14T16:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Feild Symbol Currency Feild Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/feild-symbol-currency-feild-issue/m-p/4433618#M1052323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had created a Dynamic internal Table Using class &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;it_fieldcatalog = lt_lvc_cat&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;ep_table = w_dyntable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN w_dyntable-&amp;gt;* TO &amp;lt;final&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I had Created a work are are using the feild symbol &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA w_structure LIKE LINE OF &amp;lt;final&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN w_structure-&amp;gt;* TO &amp;lt;wa_final&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here in this table I have one feild called VALUE1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_final1 INTO wa_final1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ASSIGN COMPONENT 'VALUE1' OF STRUCTURE &amp;lt;wa_final2&amp;gt; TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        &amp;lt;fs&amp;gt; = wa_final1-wkgbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Sep 2008 16:06:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/feild-symbol-currency-feild-issue/m-p/4433618#M1052323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-14T16:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Feild Symbol Currency Feild Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/feild-symbol-currency-feild-issue/m-p/4433619#M1052324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ASSIGN COMPONENT 'VALUE1' OF STRUCTURE &amp;lt;wa_final2&amp;gt; TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the above line where you defined &amp;lt;wa_final2&amp;gt; and where you assigned. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the field-symbol &amp;lt;wa_final2&amp;gt; is not assigned then you get the error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Sep 2008 16:22:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/feild-symbol-currency-feild-issue/m-p/4433619#M1052324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-14T16:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Feild Symbol Currency Feild Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/feild-symbol-currency-feild-issue/m-p/4433620#M1052325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vimal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had declared it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE DATA w_structure LIKE LINE OF &amp;lt;final&amp;gt;.&lt;/P&gt;&lt;P&gt;  ASSIGN w_structure-&amp;gt;* TO &amp;lt;wa_final2&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Sep 2008 16:26:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/feild-symbol-currency-feild-issue/m-p/4433620#M1052325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-14T16:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Feild Symbol Currency Feild Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/feild-symbol-currency-feild-issue/m-p/4433621#M1052326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can guess why it is not working, it is because of fieldcatalog. if you don't populate the fieldcatalog properly then you will get that problem. &lt;/P&gt;&lt;P&gt;I guess you are doing it manually. when you are populating manually you have to consider the following&lt;/P&gt;&lt;P&gt;*FIELDNAME	NETPR	*                                                                              &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CFIELDNAME 	WAERK&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATATYPE               CURR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REF_TABLE              VBAP&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*DD_OUTLEN 	*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DECIMALS&lt;/STRONG&gt; 	&lt;/P&gt;&lt;P&gt;then only you can assign the value properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just check this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ztest_dynamic.

DATA: t_fcat TYPE lvc_t_fcat,
      itab   type ref to data,
      wa     type ref to data.
data: it_vbap type vbap_t,
      wa_vbap type vbap.

field-symbols: &amp;lt;final&amp;gt; type standard table,
               &amp;lt;fs_wa&amp;gt; type any,
               &amp;lt;fs&amp;gt; type any.

CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
 EXPORTING
   I_STRUCTURE_NAME             = 'VBAP'
  CHANGING
    ct_fieldcat                  = t_fcat
 EXCEPTIONS
   INCONSISTENT_INTERFACE       = 1
   PROGRAM_ERROR                = 2
          .
CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table
EXPORTING
it_fieldcatalog = t_fcat
IMPORTING
ep_table = itab.

ASSIGN itab-&amp;gt;* TO &amp;lt;final&amp;gt;.

create data wa like line of &amp;lt;final&amp;gt;.
assign wa-&amp;gt;* to &amp;lt;fs_wa&amp;gt;.

select * from vbap
into table it_vbap
up to 2 rows.

loop at it_vbap into wa_vbap.

assign component 'NETPR' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs&amp;gt;.
if sy-subrc eq 0.
  &amp;lt;fs&amp;gt; = wa_vbap-netpr.
  write:/ &amp;lt;fs&amp;gt;.
endif.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Sep 2008 16:46:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/feild-symbol-currency-feild-issue/m-p/4433621#M1052326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-14T16:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Feild Symbol Currency Feild Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/feild-symbol-currency-feild-issue/m-p/4433622#M1052327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is said is correct. Now the program is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you rsolution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Sep 2008 17:08:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/feild-symbol-currency-feild-issue/m-p/4433622#M1052327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-14T17:08:40Z</dc:date>
    </item>
  </channel>
</rss>

