<?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: Question Beginner. Need Help. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-beginner-need-help/m-p/8410792#M1645664</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;Welcome to SCN.This is a basic question.Read the documentation of the key words and use it.If you ask basic question it may be locked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 Jan 2012 04:24:02 GMT</pubDate>
    <dc:creator>madhu_vadlamani</dc:creator>
    <dc:date>2012-01-15T04:24:02Z</dc:date>
    <item>
      <title>Question Beginner. Need Help.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-beginner-need-help/m-p/8410790#M1645662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a beginner and my teacher said that I need create an report of the table VBAK and it need relating with the itens from table VBAP. I tried of my way but didn't work. Anyone can give me a idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF wa_vbak OCCURS 0,&lt;/P&gt;&lt;P&gt;  vbeln TYPE vbak-vbeln,&lt;/P&gt;&lt;P&gt;  erdat TYPE vbak-erdat,&lt;/P&gt;&lt;P&gt;END OF wa_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF wa_vbap OCCURS 0,&lt;/P&gt;&lt;P&gt;  vbeln LIKE vbak-vbeln,&lt;/P&gt;&lt;P&gt;  erdat LIKE vbak-erdat,&lt;/P&gt;&lt;P&gt;  posnr TYPE vbap-posnr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF wa_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbeln erdat INTO TABLE wa_vbap FROM VBAK  UP TO 10 ROWS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;LOOP AT wa_vbak.&lt;/P&gt;&lt;P&gt;    WRITE: /&lt;/P&gt;&lt;P&gt;  wa_vbap-vbeln,&lt;/P&gt;&lt;P&gt;  wa_vbap-erdat.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I think this is wrong. hehe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance and regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vsugamele1 on Jan 15, 2012 2:41 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator Message: Basic question. Thread locked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Jan 15, 2012 11:05 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jan 2012 00:59:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-beginner-need-help/m-p/8410790#M1645662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-15T00:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Question Beginner. Need Help.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-beginner-need-help/m-p/8410791#M1645663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
types: begin of ty_vbak,
             vbeln type vbeln_va,
             erdat type erdat,
           end of ty_vbak.

types : begin of ty_vbap,
               vbeln type vbeln_va,
               posnr type posnr_va,
               arktx  type arktx,
            end of ty_vbap.

types : begin of ty_final,
              vbeln type vbeln_va,
              erdat type erdat,
              posnr type posnr_va,
              arktx type arktx,
            end of ty_final.
* I T Declaration
data : it_vbak type standard table of ty_vbak.
          it_vbap type standard table of ty_vbap,
          it_final  type standard table of ty_final,
* Work Area Declaration
          wa_final type ty_final, " Avoid using headerlines, use explicit work areas instead.
          wa_vbap type ty_vbap,
          wa_vbak type ty_vbak.

refresh it_vbak[].

select vbeln erdat 
from vbak
up to 10 rows
into table it_vbak.

refresh it_vbap[].

if it_vbak[] is not initial.  " very imp. before using for all entries.
select vbeln erdat posnr arktx
for all entries in it_vbak
from  vbap
into table it_vbap.
endif.

clear wa_vbak.
clear wa_vbap.
clear wa_final.
refresh it_final.

* Populating the final table with vbak &amp;amp; vbap details.
loop at it_vbak into wa_vbak.
  wa_final-vbeln = wa_vbak-vbeln.
  wa_final-erdat = wa_vbak-erdat.
     loop at it_vbap into wa_vbap where vbeln = wa_vbak-vbeln. " to find matching header and item records
        wa_final-posnr = wa_vbap-posnr.
        wa_final-arktx  = wa_vbap-arktx.
        append wa_final to it_final.
     endloop.
endloop.

clear wa_final.
loop at it_final into wa_final.
   write : / wa_final-vbeln, wa_final-erdat, wa_final-posnr, wa_final-arkts.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jan 2012 03:35:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-beginner-need-help/m-p/8410791#M1645663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-15T03:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Question Beginner. Need Help.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-beginner-need-help/m-p/8410792#M1645664</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;Welcome to SCN.This is a basic question.Read the documentation of the key words and use it.If you ask basic question it may be locked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jan 2012 04:24:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-beginner-need-help/m-p/8410792#M1645664</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2012-01-15T04:24:02Z</dc:date>
    </item>
  </channel>
</rss>

