<?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: report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1481459#M225181</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;look into bold line change your code like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF it_customer_master OCCURS 100,
kunnr LIKE kna1-kunnr,
name1 LIKE kna1-name1,
name2 LIKE kna1-name2,
kunn2 LIKE knvp-kunn2,
spart LIKE knvv-spart,
vtext LIKE tspat-vtext,
vkgrp LIKE knvv-vkgrp,
regio LIKE kna1-regio,
* bezei LIKE t005s-bezei,( DURING RUN TIME THIS VALUE WILL BE PICKED)
END OF it_customer_master.

&amp;lt;b&amp;gt;DATA: wa_customer_mas like line of it_customer_master.&amp;lt;/b&amp;gt; 

DATA:lv_file LIKE wa_customer_mas.

OPEN DATASET g_filename FOR OUTPUT IN TEXT MODE.

IF sy-subrc NE 0.
WRITE: 'Unable to open the file'.
ELSE.
LOOP AT it_customer_master INTO wa_customer_mas.
lv_file = wa_customer_mas.
TRANSFER lv_file TO g_filename.
ENDLOOP.
ENDIF.
CLOSE DATASET g_filename.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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;Wasim Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Jul 2006 04:51:47 GMT</pubDate>
    <dc:creator>dani_mn</dc:creator>
    <dc:date>2006-07-31T04:51:47Z</dc:date>
    <item>
      <title>report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1481458#M225180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;i want to send the selected data to application server,  my problem is up to internal table there is data but this data is not tranfer to the workarea.plse help me how to solve this problem.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF it_customer_master OCCURS 100,&lt;/P&gt;&lt;P&gt;      kunnr LIKE kna1-kunnr,&lt;/P&gt;&lt;P&gt;      name1 LIKE kna1-name1,&lt;/P&gt;&lt;P&gt;      name2 LIKE kna1-name2,&lt;/P&gt;&lt;P&gt;      kunn2 LIKE knvp-kunn2,&lt;/P&gt;&lt;P&gt;      spart LIKE knvv-spart,&lt;/P&gt;&lt;P&gt;      vtext LIKE tspat-vtext,&lt;/P&gt;&lt;P&gt;      vkgrp LIKE knvv-vkgrp,&lt;/P&gt;&lt;P&gt;      regio LIKE kna1-regio,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; bezei LIKE t005s-bezei,( DURING RUN TIME THIS VALUE WILL BE PICKED)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;END OF it_customer_master.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF wa_customer_mas OCCURS 100,&lt;/P&gt;&lt;P&gt;      kunnr LIKE kna1-kunnr,&lt;/P&gt;&lt;P&gt;      name1 LIKE kna1-name1,&lt;/P&gt;&lt;P&gt;      name2 LIKE kna1-name2,&lt;/P&gt;&lt;P&gt;      kunn2 LIKE knvp-kunn2,&lt;/P&gt;&lt;P&gt;      spart LIKE knvv-spart,&lt;/P&gt;&lt;P&gt;      vtext LIKE tspat-vtext,&lt;/P&gt;&lt;P&gt;      vkgrp LIKE knvv-vkgrp,&lt;/P&gt;&lt;P&gt;      regio LIKE kna1-regio,&lt;/P&gt;&lt;P&gt;END OF wa_customer_mas.&lt;/P&gt;&lt;P&gt;DATA:lv_file  LIKE wa_customer_mas.&lt;/P&gt;&lt;P&gt; OPEN DATASET g_filename FOR OUTPUT IN TEXT MODE." ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;        IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;           WRITE: 'Unable to open the file'.&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;   LOOP AT it_customer_master INTO wa_customer_mas.&lt;/P&gt;&lt;P&gt;   lv_file =  wa_customer_mas.&lt;/P&gt;&lt;P&gt;            TRANSFER lv_file TO g_filename.&lt;/P&gt;&lt;P&gt;          ENDLOOP.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;    CLOSE DATASET g_filename.&lt;/P&gt;&lt;P&gt;this is the logic i am using to send the data to the application server.plse help me how to populate the workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards&lt;/P&gt;&lt;P&gt;serma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2006 04:46:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1481458#M225180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-31T04:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1481459#M225181</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;look into bold line change your code like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF it_customer_master OCCURS 100,
kunnr LIKE kna1-kunnr,
name1 LIKE kna1-name1,
name2 LIKE kna1-name2,
kunn2 LIKE knvp-kunn2,
spart LIKE knvv-spart,
vtext LIKE tspat-vtext,
vkgrp LIKE knvv-vkgrp,
regio LIKE kna1-regio,
* bezei LIKE t005s-bezei,( DURING RUN TIME THIS VALUE WILL BE PICKED)
END OF it_customer_master.

&amp;lt;b&amp;gt;DATA: wa_customer_mas like line of it_customer_master.&amp;lt;/b&amp;gt; 

DATA:lv_file LIKE wa_customer_mas.

OPEN DATASET g_filename FOR OUTPUT IN TEXT MODE.

IF sy-subrc NE 0.
WRITE: 'Unable to open the file'.
ELSE.
LOOP AT it_customer_master INTO wa_customer_mas.
lv_file = wa_customer_mas.
TRANSFER lv_file TO g_filename.
ENDLOOP.
ENDIF.
CLOSE DATASET g_filename.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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;Wasim Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2006 04:51:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1481459#M225181</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-07-31T04:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1481460#M225182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Seema&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have defined another internal table instead of work area..&lt;/P&gt;&lt;P&gt;so just define the work area as like &amp;lt;your internal table name&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2006 04:57:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1481460#M225182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-31T04:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1481461#M225183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Wasim Ahmed&lt;/P&gt;&lt;P&gt;i done the changes sujjested by you even then data is not going to the work area.plse &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards&lt;/P&gt;&lt;P&gt;serma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2006 05:09:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1481461#M225183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-31T05:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1481462#M225184</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;Declare ur workarea like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : wa_customer_master LIKE LINE OF it_customer_master.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will solve ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Prakash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2006 05:12:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1481462#M225184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-31T05:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1481463#M225185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI serma, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check wheater the data exists in the internal table or not. &lt;/P&gt;&lt;P&gt;I think your internal table is empty and that why it is not transferring any data to work area. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;place a break point at LOOP and then look what is happening there is no other reason why the data is not going to work area instead that internal table consists no data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;b&amp;gt;IF NOT it_customer_master[] IS INITIAL.

LOOP AT it_customer_master INTO wa_customer_mas.
lv_file = wa_customer_mas.
TRANSFER lv_file TO g_filename.
ENDLOOP.

ELSE.

MESSAGE S000(SU) WITH 'No data in internal table'.

ENDIF.&amp;lt;/b&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Wasim Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2006 05:15:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1481463#M225185</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-07-31T05:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1481464#M225186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;there is data in the internal table .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2006 06:10:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1481464#M225186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-31T06:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1481465#M225187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: BEGIN OF it_customer_master OCCURS 100,&lt;/P&gt;&lt;P&gt;      kunnr LIKE kna1-kunnr,&lt;/P&gt;&lt;P&gt;      name1 LIKE kna1-name1,&lt;/P&gt;&lt;P&gt;      name2 LIKE kna1-name2,&lt;/P&gt;&lt;P&gt;      kunn2 LIKE knvp-kunn2,&lt;/P&gt;&lt;P&gt;      spart LIKE knvv-spart,&lt;/P&gt;&lt;P&gt;      vtext LIKE tspat-vtext,&lt;/P&gt;&lt;P&gt;      vkgrp LIKE knvv-vkgrp,&lt;/P&gt;&lt;P&gt;      regio LIKE kna1-regio,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; bezei LIKE t005s-bezei,( DURING RUN TIME THIS VALUE WILL BE PICKED)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;END OF it_customer_master.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:wa_customer_mas LIKE LINE OF it_customer_master.&lt;/P&gt;&lt;P&gt;SELECT vkorg parvw&lt;/P&gt;&lt;P&gt;   FROM knvp&lt;/P&gt;&lt;P&gt;     INTO CORRESPONDING FIELDS OF TABLE it_knvp&lt;/P&gt;&lt;P&gt;        WHERE spart = knvp-spart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  LOOP AT it_knvp.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; WRITE: it_knvp-vkorg,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        it_knvp-parvw.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;*selection of ship-to-party&lt;/P&gt;&lt;P&gt;  SELECT  kunn2&lt;/P&gt;&lt;P&gt;    FROM knvp&lt;/P&gt;&lt;P&gt;      INTO CORRESPONDING FIELDS OF TABLE it_shipto&lt;/P&gt;&lt;P&gt;             FOR ALL ENTRIES IN it_knvp&lt;/P&gt;&lt;P&gt;                WHERE parvw = 'WE'&lt;/P&gt;&lt;P&gt;                AND   vkorg = it_knvp-vkorg.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt; LOOP AT it_shipto.&lt;/P&gt;&lt;P&gt;    it_customer_master-kunn2 = it_shipto-kunn2.&lt;/P&gt;&lt;P&gt;    WRITE:it_customer_master-kunn2.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*selection for cusotmer name and region&lt;/P&gt;&lt;P&gt;SELECT kunnr name1 name2 regio&lt;/P&gt;&lt;P&gt;    FROM kna1&lt;/P&gt;&lt;P&gt;      INTO CORRESPONDING FIELDS OF TABLE it_kunnr&lt;/P&gt;&lt;P&gt;             WHERE land1 = 'IN'&lt;/P&gt;&lt;P&gt;             AND   spras = 'EN'.&lt;/P&gt;&lt;P&gt;*AND   spras = 'EN'.&lt;/P&gt;&lt;P&gt; IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;LOOP AT it_kunnr.&lt;/P&gt;&lt;P&gt;it_customer_master-kunnr = it_kunnr-kunnr.&lt;/P&gt;&lt;P&gt;it_customer_master-name1 = it_kunnr-name1.&lt;/P&gt;&lt;P&gt;it_customer_master-name2 = it_kunnr-name2.&lt;/P&gt;&lt;P&gt;it_customer_master-regio = it_kunnr-regio.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;IF NOT it_division IS INITIAL.&lt;/P&gt;&lt;P&gt; SELECT  vtext&lt;/P&gt;&lt;P&gt;     INTO CORRESPONDING FIELDS OF TABLE it_vtext&lt;/P&gt;&lt;P&gt;         FROM tspat&lt;/P&gt;&lt;P&gt;            FOR ALL ENTRIES IN it_division&lt;/P&gt;&lt;P&gt;               WHERE spart = it_division-spart.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DESCRIPTION OF SALES EMPLOYEE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT it_vtext.&lt;/P&gt;&lt;P&gt;  it_customer_master-vtext = it_vtext-vtext.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_filename = '\date\today\dev\customer_master.txt'.&lt;/P&gt;&lt;P&gt;OPEN DATASET g_filename FOR OUTPUT IN TEXT MODE." ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;        IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;           WRITE: 'Unable to open the file'.&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;        IF NOT it_customer_master[] IS INITIAL.&lt;/P&gt;&lt;P&gt;   LOOP AT it_customer_master INTO wa_customer_mas.&lt;/P&gt;&lt;P&gt;         lv_file =  wa_customer_mas.&lt;/P&gt;&lt;P&gt;            TRANSFER lv_file TO g_filename.&lt;/P&gt;&lt;P&gt;          ENDLOOP.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;    CLOSE DATASET g_filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  spart vkgrp&lt;/P&gt;&lt;P&gt;        FROM knvv&lt;/P&gt;&lt;P&gt;            INTO CORRESPONDING FIELDS OF TABLE it_division&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               FOR ALL ENTRIES IN it_kunnr&lt;/P&gt;&lt;P&gt;                   WHERE kunnr = it_kunnr-kunnr.&lt;/P&gt;&lt;P&gt;LOOP AT it_division.&lt;/P&gt;&lt;P&gt; it_customer_master-spart = it_division-spart.&lt;/P&gt;&lt;P&gt; it_customer_master-vkgrp = it_division-vkgrp.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt; this is the datailed logic, upto internal table there is data but it is not tranfers to the work area. &lt;/P&gt;&lt;P&gt;i hope i given clear explanation.&lt;/P&gt;&lt;P&gt;plse guide me to solve this ...&lt;/P&gt;&lt;P&gt; thans with regards&lt;/P&gt;&lt;P&gt;serma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2006 06:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1481465#M225187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-31T06:52:30Z</dc:date>
    </item>
  </channel>
</rss>

