<?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: How to get fixed value for incomming data? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-fixed-value-for-incomming-data/m-p/5207777#M1204749</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;giving value at domin level can make its value search but it wont assing that value to field..&lt;/P&gt;&lt;P&gt;you have to do by coding....&lt;/P&gt;&lt;P&gt;modify that field once you get the value in internal table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Feb 2009 05:18:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-14T05:18:31Z</dc:date>
    <item>
      <title>How to get fixed value for incomming data?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-fixed-value-for-incomming-data/m-p/5207775#M1204747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A custom table is getting data from XI, for one of the fields in table  i want to set fixed value "X" for all records geting loaded. I tried to set fixed value at domain level for that field its not working am i missing something ? How to fix constant value to a field ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Feb 2009 05:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-fixed-value-for-incomming-data/m-p/5207775#M1204747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-14T05:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get fixed value for incomming data?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-fixed-value-for-incomming-data/m-p/5207776#M1204748</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;First get the data to the internal table from XI....&lt;/P&gt;&lt;P&gt;then loop at the table itab and modify the table with changed value...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the given code as an example... this is tested and it works perfectly fine...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data t_itab type table of scarr.
data wa type scarr.
select * from scarr into table t_itab.     " here is the place where you are fetching data from XI... here I 
" am fetching data from SCARRR table

loop at t_itab into wa.   " looping at an internal table....
wa-carrname = 'CHANGED VALUE'.           " Here I am changing the field with the constant value ...
modify t_itab from wa.         "   After changing the field am modifying the table with the new value
endloop.

"  Displaying the data
loop at t_itab into wa.
write wa.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you in solving the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Feb 2009 05:12:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-fixed-value-for-incomming-data/m-p/5207776#M1204748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-14T05:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to get fixed value for incomming data?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-fixed-value-for-incomming-data/m-p/5207777#M1204749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;giving value at domin level can make its value search but it wont assing that value to field..&lt;/P&gt;&lt;P&gt;you have to do by coding....&lt;/P&gt;&lt;P&gt;modify that field once you get the value in internal table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Feb 2009 05:18:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-fixed-value-for-incomming-data/m-p/5207777#M1204749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-14T05:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get fixed value for incomming data?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-fixed-value-for-incomming-data/m-p/5207778#M1204750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Add the code to the Report after the data is in your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT it_itab INTO wa_itab.

wa_itab-field = 'X'.

"Not required if below INSERT statements added    
' MODIFY it_itab INDEX sy-tabix FROM wa_itab TRANSPORTING field.  " Field with 'X'
 " here add the insert statement into ur custom table

INSERT ztable FROM  wa_itab.
      IF sy-subrc = 0.
        COMMIT WORK.                                           "This is also inside loop after each record.
      ELSE.
        UPDATE ztable FROM wa_itab.                     "&amp;lt;&amp;lt;-----It means Record already exist
              IF sy-subrc = 0.
          COMMIT WORK.
        ENDIF.
ENDIF.                      
   
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bala Krishna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bala Krishna on Feb 14, 2009 11:10 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Feb 2009 05:33:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-fixed-value-for-incomming-data/m-p/5207778#M1204750</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2009-02-14T05:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get fixed value for incomming data?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-fixed-value-for-incomming-data/m-p/5207779#M1204751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Resolved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 16:47:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-fixed-value-for-incomming-data/m-p/5207779#M1204751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T16:47:26Z</dc:date>
    </item>
  </channel>
</rss>

