<?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: Hard code field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-field/m-p/1782827#M337322</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;As an alternative add this field to your internal table and pass the value as Hyderabad.It will be easy to handle then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Dec 2006 09:50:43 GMT</pubDate>
    <dc:creator>amit_khare</dc:creator>
    <dc:date>2006-12-13T09:50:43Z</dc:date>
    <item>
      <title>Hard code field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-field/m-p/1782826#M337321</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 need one field has hard code in ALV&lt;/P&gt;&lt;P&gt;Descrption of field is CITY&lt;/P&gt;&lt;P&gt;Hard code is Hyderabad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using this logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  POS = POS + 1.&lt;/P&gt;&lt;P&gt;  CLEAR LS_FIELDCAT.&lt;/P&gt;&lt;P&gt;  LS_FIELDCAT-COL_POS       =  POS.&lt;/P&gt;&lt;P&gt;  LS_FIELDCAT-FIELDNAME     = &lt;/P&gt;&lt;P&gt;  LS_FIELDCAT-SELTEXT_M     = &lt;/P&gt;&lt;P&gt;  APPEND LS_FIELDCAT TO  RT_FIELDCAT.&lt;/P&gt;&lt;P&gt;  CLEAR LS_FIELDCAT.&lt;/P&gt;&lt;P&gt;  POS = POS + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Sreedhar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 09:48:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-field/m-p/1782826#M337321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-13T09:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hard code field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-field/m-p/1782827#M337322</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;As an alternative add this field to your internal table and pass the value as Hyderabad.It will be easy to handle then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 09:50:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-field/m-p/1782827#M337322</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2006-12-13T09:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Hard code field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-field/m-p/1782828#M337323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;POS = POS + 1.
CLEAR LS_FIELDCAT.
LS_FIELDCAT-COL_POS = POS.
LS_FIELDCAT-FIELDNAME = 
LS_FIELDCAT-SELTEXT_M = 'CITY'
APPEND LS_FIELDCAT TO RT_FIELDCAT.
CLEAR LS_FIELDCAT.
POS = POS + 1.

Hyderabad is a value of the field , so u cannot hard code that in fieldcatalog

loop at itab.
  itab-city = 'hyderabad'.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 09:51:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-field/m-p/1782828#M337323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-13T09:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hard code field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-field/m-p/1782829#M337324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think u need to hard code the field in ur internal table which you are passing to ALV. That will serve the purpose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 09:51:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-field/m-p/1782829#M337324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-13T09:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hard code field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-field/m-p/1782830#M337325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry cannot under stand your proper requirement. But what i can understand you need to show Hyderabad only in the CITY column heading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this you have to take the values Hyderabad in your internal table for all the rows.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 09:53:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hard-code-field/m-p/1782830#M337325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-13T09:53:54Z</dc:date>
    </item>
  </channel>
</rss>

