<?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: Error in the code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code/m-p/3831466#M921307</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;thanx so much for ur wonderful replies&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;m getting this error only for fields &lt;/P&gt;&lt;P&gt;wa_it_file-brgew  wa_it_file-volum.  I tried to give there length but they are type domain i cannot assign length to them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anybody give me other solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 May 2008 12:49:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-21T12:49:40Z</dc:date>
    <item>
      <title>Error in the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code/m-p/3831461#M921302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code is giving me error as wa_it_file-brgew must be a charater-type data object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anybody give me solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE wa_it_file-matnr wa_it_file-maktx wa_it_file-msehi wa_it_file-brgew wa_it_file-volum wa_it_file-volum wa_it_file-wheel_width wa_it_file-wheel_diam&lt;/P&gt;&lt;P&gt;             INTO v_data SEPARATED  BY ','.&lt;/P&gt;&lt;P&gt;             CONDENSE v_data NO-GAPS.&lt;/P&gt;&lt;P&gt;TRANSFER v_data TO v_filename.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 11:45:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code/m-p/3831461#M921302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T11:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code/m-p/3831462#M921303</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;with concatenate all fields must be of type char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...Reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 11:47:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code/m-p/3831462#M921303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T11:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code/m-p/3831463#M921304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can anybody give me solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will reward points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 11:55:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code/m-p/3831463#M921304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T11:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code/m-p/3831464#M921305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;  in ur internal table or work area change type of all fields to CHAR with length same as all have in Data element .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like for quantity give  as &lt;/P&gt;&lt;P&gt;      BRGEW(16),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then try ur command .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE wa_it_file-matnr wa_it_file-maktx wa_it_file-msehi wa_it_file-brgew wa_it_file-volum wa_it_file-volum wa_it_file-wheel_width wa_it_file-wheel_diam&lt;/P&gt;&lt;P&gt;INTO v_data SEPARATED BY ','.&lt;/P&gt;&lt;P&gt;CONDENSE v_data NO-GAPS.&lt;/P&gt;&lt;P&gt;TRANSFER v_data TO v_filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 12:05:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code/m-p/3831464#M921305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T12:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code/m-p/3831465#M921306</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;Concatenate is only concatenate charecter type data.&lt;/P&gt;&lt;P&gt;make all fields data type as C in internal table declaration.  &lt;/P&gt;&lt;P&gt;than do concatenate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By&lt;/P&gt;&lt;P&gt;Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 12:19:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code/m-p/3831465#M921306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T12:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code/m-p/3831466#M921307</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;thanx so much for ur wonderful replies&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;m getting this error only for fields &lt;/P&gt;&lt;P&gt;wa_it_file-brgew  wa_it_file-volum.  I tried to give there length but they are type domain i cannot assign length to them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anybody give me other solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 12:49:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code/m-p/3831466#M921307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T12:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code/m-p/3831467#M921308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I go AL11 and try to open the file.  a error is coming as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"unable to display file."  what can be the error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 13:48:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code/m-p/3831467#M921308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T13:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error in the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code/m-p/3831468#M921309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this code data is not comming in the work area and ultimately file is not getting open.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help anybody.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES :  BEGIN OF x_mtfile,&lt;/P&gt;&lt;P&gt;          matnr             TYPE    matnr,                       "Material Number&lt;/P&gt;&lt;P&gt;          maktx             TYPE    maktx,                       "Material description&lt;/P&gt;&lt;P&gt;          prodesc(30)       TYPE    c,                           "Material description&lt;/P&gt;&lt;P&gt;          salegrp(3)        TYPE    c,                           "&lt;/P&gt;&lt;P&gt;          msehi             TYPE    msehi,                       "Text description of the UOM&lt;/P&gt;&lt;P&gt;          brgew             TYPE    c,                       "&lt;/P&gt;&lt;P&gt;          volum             TYPE    c,                       "&lt;/P&gt;&lt;P&gt;          length(5)         TYPE    c,                           "&lt;/P&gt;&lt;P&gt;          wheel_width       TYPE    zwid,                        "Wheel Width&lt;/P&gt;&lt;P&gt;          wheel_diam        TYPE    zdiam,                       "Use diameter to get height&lt;/P&gt;&lt;P&gt;          serial(1)         TYPE    c,                           "&lt;/P&gt;&lt;P&gt;          palqty(10)        TYPE    c,&lt;/P&gt;&lt;P&gt;          unipcar(5)        TYPE    c,                           "&lt;/P&gt;&lt;P&gt;          unno(4)           TYPE    c,                           "&lt;/P&gt;&lt;P&gt;      END OF x_mtfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*work area declaration for tables.&lt;/P&gt;&lt;P&gt;DATA : wa_mara TYPE MARA.&lt;/P&gt;&lt;P&gt;DATA : wa_makt TYPE MAKT.&lt;/P&gt;&lt;P&gt;DATA : wa_t006a TYPE T006A.&lt;/P&gt;&lt;P&gt;DATA : wa_zmmkaganplant TYPE zmmkaganplant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Table declaration for storing data.&lt;/P&gt;&lt;P&gt;DATA : it_file TYPE TABLE OF x_mtfile WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA : wa_it_file TYPE x_mtfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : v_data type string.&lt;/P&gt;&lt;P&gt;DATA : v_filename type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*variable declaration.&lt;/P&gt;&lt;P&gt;DATA : v_werks type werks_d.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Default filename.&lt;/P&gt;&lt;P&gt;DATA: v_filename1 LIKE rlgrap-filename VALUE '/interface/SYSID/OUTBOUND/KAGAN/'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*File path.&lt;/P&gt;&lt;P&gt;CONCATENATE v_filename1 wmara-matnr '_' SY-DATUM '_' SY-UZEIT '.txt' INTO v_filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the default file name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  REPLACE 'SYSID' WITH sy-sysid INTO v_filename.&lt;/P&gt;&lt;P&gt;  CONDENSE v_filename NO-GAPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Open the file to read the material.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET v_filename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_file INTO wa_it_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF wmarc-werks IS NOT INITIAL AND wmarc-werks = wa_zmmkaganplant-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-TCODE = 'MM01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF STRLEN(wmara-matnr) &amp;gt; 15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE e000(zt) WITH 'Invalid material no.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_it_file-matnr = wmara-matnr.&lt;/P&gt;&lt;P&gt;wa_it_file-maktx = stext-maktx.&lt;/P&gt;&lt;P&gt;wa_it_file-msehi = wmara-meins.&lt;/P&gt;&lt;P&gt;wa_it_file-brgew = wmara-brgew.&lt;/P&gt;&lt;P&gt;wa_it_file-volum = wmara-volum.&lt;/P&gt;&lt;P&gt;wa_it_file-wheel_width = wmara-wheel_width.&lt;/P&gt;&lt;P&gt;wa_it_file-wheel_diam = wmara-wheel_diam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND wa_it_file TO it_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-TCODE = 'MM02'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE&lt;/P&gt;&lt;P&gt;       matnr&lt;/P&gt;&lt;P&gt;       brgew&lt;/P&gt;&lt;P&gt;       volum&lt;/P&gt;&lt;P&gt;       wheel_width&lt;/P&gt;&lt;P&gt;       wheel_diam&lt;/P&gt;&lt;P&gt;       FROM MARA&lt;/P&gt;&lt;P&gt;       INTO wa_mara&lt;/P&gt;&lt;P&gt;       WHERE matnr = wmara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE msehi FROM T006A INTO wa_t006a&lt;/P&gt;&lt;P&gt;       WHERE msehi = wmara-meins&lt;/P&gt;&lt;P&gt;       AND spras = sy-langu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE maktx FROM MAKT INTO wa_makt&lt;/P&gt;&lt;P&gt;       WHERE matnr = wmara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF wmara-matnr &amp;lt;&amp;gt; wa_mara-matnr&lt;/P&gt;&lt;P&gt;    AND stext-maktx &amp;lt;&amp;gt; wa_makt-maktx&lt;/P&gt;&lt;P&gt;    AND wmara-meins &amp;lt;&amp;gt; wa_t006a-msehi&lt;/P&gt;&lt;P&gt;    AND wmara-brgew &amp;lt;&amp;gt; wa_mara-brgew&lt;/P&gt;&lt;P&gt;    AND wmara-volum &amp;lt;&amp;gt; wa_mara-volum&lt;/P&gt;&lt;P&gt;    AND wmara-wheel_width &amp;lt;&amp;gt; wa_mara-wheel_width&lt;/P&gt;&lt;P&gt;    AND wmara-wheel_diam &amp;lt;&amp;gt; wa_mara-wheel_diam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE wa_it_file-matnr wa_it_file-maktx wa_it_file-msehi wa_it_file-brgew wa_it_file-volum wa_it_file-wheel_width wa_it_file-wheel_diam&lt;/P&gt;&lt;P&gt;             INTO v_data SEPARATED  BY ','.&lt;/P&gt;&lt;P&gt;             CONDENSE v_data NO-GAPS.&lt;/P&gt;&lt;P&gt;TRANSFER v_data TO v_filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;   ENDIF.&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;CLOSE DATASET v_filename.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 14:40:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code/m-p/3831468#M921309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T14:40:47Z</dc:date>
    </item>
  </channel>
</rss>

