<?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/5786827#M1309224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Corresponding to your BELNR is there one entry or more than one entry in BSEG table and whats the value of DMBTR in the first entry... And also what is itab2 is it a table or structure and how u have fetched data for belnr and gjahr.....?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vijetasap on Jun 17, 2009 2:40 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2009 12:40:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-17T12:40:12Z</dc:date>
    <item>
      <title>Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/5786826#M1309223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Please use a meaningful subject in future&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m picking the data from BSEG table, but not coming...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i m inserting Document Type, Fiscal year, Line Item ID &amp;amp; Tax Type in BSEG table...it is giving my required output...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i executing my report, fatching that data from BSEG....not giving any output...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Query is: - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE dmbtr FROM bseg INTO itab2-dmbtr1 WHERE belnr = itab2-belnr AND gjahr = itab2-gjahr AND buzid = 'T' AND mwart = 'V'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Jun 17, 2009 5:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 12:37:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/5786826#M1309223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T12:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/5786827#M1309224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Corresponding to your BELNR is there one entry or more than one entry in BSEG table and whats the value of DMBTR in the first entry... And also what is itab2 is it a table or structure and how u have fetched data for belnr and gjahr.....?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vijetasap on Jun 17, 2009 2:40 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 12:40:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/5786827#M1309224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T12:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/5786828#M1309225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="15" __jive_macro_name="size"&gt;Reported !!!&lt;/SPAN&gt; &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Use a more meaningful subject line in future.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 12:42:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/5786828#M1309225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T12:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/5786829#M1309226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are not getting any output, it means that there are no records matching your criteria. I was able to get one record using below code. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA itab TYPE bseg.

itab-belnr = 0100000280.
itab-gjahr = 1995.
SELECT SINGLE dmbtr FROM bseg INTO itab-dmbtr WHERE belnr = itab-belnr AND gjahr = itab-gjahr AND buzid = 'T' AND mwart = 'V'.

WRITE:/ itab-belnr, itab-gjahr, itab-buzid, itab-mwart, itab-dmbtr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So pick one particular record from bseg table, with buzid = T and mwart = V, then try to test your code against same selection criteria.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 12:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/5786829#M1309226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T12:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/5786830#M1309227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you looping at itab2 and inserting a value into itab2? If so you need to MODIFY itab2 TRANSPORTING dmbtr1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 12:58:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/5786830#M1309227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T12:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/5786831#M1309228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Please use a meaningful subject in future&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 15:02:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/5786831#M1309228</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-06-17T15:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/5786832#M1309229</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;check this..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Loop at itab2.             "check this is there
   SELECT SINGLE dmbtr FROM bseg INTO itab2-dmbtr1 
                                                   WHERE belnr = itab2-belnr 
                                                   AND gjahr = itab2-gjahr 
                                                   AND buzid = 'T' 
                                                    AND mwart = 'V'.
endloop.  "check this

" or if no LOOP at itab2 is not necessary  try belwo way..

   SELECT SINGLE dmbtr FROM bseg INTO itab2-dmbtr1 
                   for all entries of itab2                                               "Add this
                                                   WHERE belnr = itab2-belnr 
                                                   AND gjahr = itab2-gjahr 
                                                   AND buzid = 'T' 
                                                    AND mwart = 'V'.

&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;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check in debuggiing any values are comming to itab2-dmbtr1 itab2-belnr itab2-gjahr ..&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;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 15:07:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/5786832#M1309229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T15:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/5786833#M1309230</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;Just format BELNR before using into select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Means if belnr is 100 then you should pass 0000000100. You can directly use FM for converting it to internal format. Just go to data element (I hope BELNR_D) and see conversion exit name and use. Before using select statement loop into itab and convert all belnr to internal format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_data INTO wa_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'   -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;Check exact fm name once again..in &lt;/P&gt;&lt;P&gt;      EXPORTING                                                              -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;BELNR_D data element.... &lt;/P&gt;&lt;P&gt;        input  = wa_data-belnr&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        output = wa_data-belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      MODIFY it_data  FROM wa_data TRANSPORTING belnr.&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;Your problemshould get resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anil Salekar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 17:13:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/5786833#M1309230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T17:13:35Z</dc:date>
    </item>
  </channel>
</rss>

