<?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: ABAP Query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/2643326#M608669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can create "Addition  Fields" in your query. Put Field Code(ABAP) behind them to populate them with whatever data you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, if it gets too complicated, why not just write a new Z Report?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Aug 2007 19:31:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-13T19:31:20Z</dc:date>
    <item>
      <title>ABAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/2643325#M608668</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;I have to create one query based on Automatic Paymen Programe. I can get all the information through REGUP &amp;amp; REGUH Tables. but the thing is i can't join REGUP table with any other tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way i can get the information of REGUH table? Is there any Logical database available or How i can write any ABAP code in ABAP query?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll really appreciate your time and help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Niki Shah.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 14:32:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/2643325#M608668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T14:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/2643326#M608669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can create "Addition  Fields" in your query. Put Field Code(ABAP) behind them to populate them with whatever data you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, if it gets too complicated, why not just write a new Z Report?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 19:31:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/2643326#M608669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T19:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/2643327#M608670</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;I really appreciate your time and help. Can you please tell me where i have to put field code ABAP? Like in Functional Group or some where else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please give me steps in little bit details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Niki Shah.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 20:11:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/2643327#M608670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T20:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/2643328#M608671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Niki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure of the ABAP Query, but can recommend to write a Z program using tables BSAK, PAYR etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Please reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivasa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 20:21:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/2643328#M608671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T20:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/2643329#M608672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what we did is go to SE38 and create a Subroutine Pool called ZxxxQueryxxx - or whatever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there you create Forms just like normal ABAP programs contain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you call these Forms form your Field Code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example we have an Additional Field called ZZ_DT_STATUS where we need to calculate some date value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Field Code of that Additional Field we have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;perform f_get_status_date(zhal_spool_query)
                           USING  P0000-BEGDA
                    CHANGING  ZZ_DT_STATUS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our Subroutine Pool, we have:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;--------------------------------------------------------------------*
*&amp;amp;      f_get_status_date
*&amp;amp;--------------------------------------------------------------------*
FORM  f_get_status_date      USING p_begda  TYPE sy-datum
                          CHANGING p_date   TYPE c.

  WRITE p_begda  TO p_date MM/DD/YYYY.

ENDFORM.                    "f_get_status_date
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when the qeury is run, it hits this field and branches off to the Subroutine Pool, executes the code and changes the value of our field to reflect that change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 20:22:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/2643329#M608672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T20:22:17Z</dc:date>
    </item>
  </channel>
</rss>

