<?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: Check for Currency Data Type in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-for-currency-data-type/m-p/3942784#M943048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vikram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur reply !&lt;/P&gt;&lt;P&gt;But when I pass my Internal table data Name to ur said FM I'm not getting any data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I tried with one more FM :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Get the Layout Fields Content
  call function 'LVC_VARIANT_SELECT'
    exporting
      i_dialog            = ' '
      i_user_specific     = 'A'
      it_default_fieldcat = gt_fcat
    importing
      et_fieldcat         = gt_fcat
    tables
      it_data             = gt_final
    changing
      cs_variant          = ls_variant
    exceptions
      wrong_input         = 1
      fc_not_complete     = 2
      not_found           = 3
      program_error       = 4
      data_missing        = 5
      others              = 6.
  if sy-subrc &amp;lt;&amp;gt; 0.
    message id sy-msgid type sy-msgty number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using the above FM i got my required content.&lt;/P&gt;&lt;P&gt;In the FIeldcatalog I have all the DATATYPES, INTTYPEs, Decimals etc. and so by reading the values from the field catalog I coud resolve my isssue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jun 2008 14:46:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-03T14:46:28Z</dc:date>
    <item>
      <title>Check for Currency Data Type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-for-currency-data-type/m-p/3942782#M943046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my Dynamic Internal Table I've certain fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to check whether those fields are of type Currency or Quantity .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Describe Field  syntax I'm getting as TYPE C for both CURRRENCY as well as CHARACTER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clues ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 16:44:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-for-currency-data-type/m-p/3942782#M943046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T16:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Check for Currency Data Type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-for-currency-data-type/m-p/3942783#M943047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use FM &lt;STRONG&gt;GET_COMPONENT_LIST&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: fieldlist type table of rstrucinfo with header line.
* gets all of the components of a structure
call function 'GET_COMPONENT_LIST'
     exporting
          program    = sy-repid
          fieldname  = 'lineitems'       "Use ur internal table name
     tables
          components = fieldlist.
loop at fieldlist.
*whatever fieldlist-compname you want to check
if fieldlist-type = 'P'
*its a currency field
elseif fieldlist-type = 'C'
*its a char field
endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope thuis gives an idea!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vikram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 16:56:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-for-currency-data-type/m-p/3942783#M943047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T16:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Check for Currency Data Type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-for-currency-data-type/m-p/3942784#M943048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vikram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur reply !&lt;/P&gt;&lt;P&gt;But when I pass my Internal table data Name to ur said FM I'm not getting any data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I tried with one more FM :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Get the Layout Fields Content
  call function 'LVC_VARIANT_SELECT'
    exporting
      i_dialog            = ' '
      i_user_specific     = 'A'
      it_default_fieldcat = gt_fcat
    importing
      et_fieldcat         = gt_fcat
    tables
      it_data             = gt_final
    changing
      cs_variant          = ls_variant
    exceptions
      wrong_input         = 1
      fc_not_complete     = 2
      not_found           = 3
      program_error       = 4
      data_missing        = 5
      others              = 6.
  if sy-subrc &amp;lt;&amp;gt; 0.
    message id sy-msgid type sy-msgty number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using the above FM i got my required content.&lt;/P&gt;&lt;P&gt;In the FIeldcatalog I have all the DATATYPES, INTTYPEs, Decimals etc. and so by reading the values from the field catalog I coud resolve my isssue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 14:46:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-for-currency-data-type/m-p/3942784#M943048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T14:46:28Z</dc:date>
    </item>
  </channel>
</rss>

