<?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: qeury in PAI module : error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/qeury-in-pai-module-error/m-p/2877860#M675652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check my comment below -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE vali_zrno INPUT.&lt;/P&gt;&lt;P&gt;if zrecpt-zrno is not initial.&lt;/P&gt;&lt;P&gt;select single * from zrecpt&lt;/P&gt;&lt;P&gt;where zrno = zrecpt-zrno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Here check if the select is working fine by checking SY-SUBRC&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;if sy-subrc eq 0.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;select single vbeln kunnr from vbak&lt;/P&gt;&lt;P&gt;into (vbak-vbeln , vbak-kunnr)&lt;/P&gt;&lt;P&gt;where vbeln = zrecpt-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Check in VBAK if there is an record with VBELN = ZRECPT-VBELN.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDMODULE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can keep a break point in the code and check if SELECTs are working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW is ZRECPT-VBELN is present on the screen too?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2007 05:04:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-26T05:04:52Z</dc:date>
    <item>
      <title>qeury in PAI module : error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/qeury-in-pai-module-error/m-p/2877856#M675648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       I have used this query in my PAI module.&lt;/P&gt;&lt;P&gt;       I have value on the field zrecpt-vbeln&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       first query is working, but second query is not working,&lt;/P&gt;&lt;P&gt;       it returns the value sy-subrc = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Can anyone help me, whats the mistake with second query and how to correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHAIN .&lt;/P&gt;&lt;P&gt;    FIELD :  zrecpt-zrno.&lt;/P&gt;&lt;P&gt;    MODULE vali_zrno ON CHAIN-INPUT.&lt;/P&gt;&lt;P&gt;  ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE vali_zrno INPUT.&lt;/P&gt;&lt;P&gt; if zrecpt-zrno  is not initial.&lt;/P&gt;&lt;P&gt;    select single * from zrecpt&lt;/P&gt;&lt;P&gt;                    where zrno = zrecpt-zrno.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            select single vbeln kunnr from vbak&lt;/P&gt;&lt;P&gt;            into (vbak-vbeln , vbak-kunnr)&lt;/P&gt;&lt;P&gt;                 where vbeln = zrecpt-vbeln.&lt;/P&gt;&lt;P&gt;ENDMODULE.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 04:57:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/qeury-in-pai-module-error/m-p/2877856#M675648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T04:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: qeury in PAI module : error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/qeury-in-pai-module-error/m-p/2877857#M675649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi raja Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single vbeln kunnr from vbak&lt;/P&gt;&lt;P&gt;into (vbak-vbeln , vbak-kunnr)&lt;/P&gt;&lt;P&gt;where vbeln = zrecpt-vbeln.&lt;/P&gt;&lt;P&gt;ENDMODULE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here &amp;lt;b&amp;gt;vbak-vbeln vbak-kunnr&amp;lt;/b&amp;gt; - you have to Internal table field names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 05:00:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/qeury-in-pai-module-error/m-p/2877857#M675649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T05:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: qeury in PAI module : error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/qeury-in-pai-module-error/m-p/2877858#M675650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to save the data of variable zrecpt-vbeln in one global variable and then try for query,,,ok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 05:01:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/qeury-in-pai-module-error/m-p/2877858#M675650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T05:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: qeury in PAI module : error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/qeury-in-pai-module-error/m-p/2877859#M675651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CHAIN .&lt;/P&gt;&lt;P&gt;FIELD : zrecpt-zrno.&lt;/P&gt;&lt;P&gt;MODULE vali_zrno ON CHAIN-INPUT.&lt;/P&gt;&lt;P&gt;ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE vali_zrno INPUT.&lt;/P&gt;&lt;P&gt;DATA : WA_ZRECPT LIKE ZRECPT.&lt;/P&gt;&lt;P&gt;select single * from zrecpt INTO WA_ZRECPT&lt;/P&gt;&lt;P&gt;where zrno = zrecpt-zrno.&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;select single vbeln kunnr from vbak&lt;/P&gt;&lt;P&gt;into (vbak-vbeln , vbak-kunnr)&lt;/P&gt;&lt;P&gt;where vbeln =  WA_zrecpt-vbeln.&lt;/P&gt;&lt;P&gt;ENDMODULE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IF USEFUL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aMIT sINGLA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 05:02:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/qeury-in-pai-module-error/m-p/2877859#M675651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T05:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: qeury in PAI module : error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/qeury-in-pai-module-error/m-p/2877860#M675652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check my comment below -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE vali_zrno INPUT.&lt;/P&gt;&lt;P&gt;if zrecpt-zrno is not initial.&lt;/P&gt;&lt;P&gt;select single * from zrecpt&lt;/P&gt;&lt;P&gt;where zrno = zrecpt-zrno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Here check if the select is working fine by checking SY-SUBRC&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;if sy-subrc eq 0.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;select single vbeln kunnr from vbak&lt;/P&gt;&lt;P&gt;into (vbak-vbeln , vbak-kunnr)&lt;/P&gt;&lt;P&gt;where vbeln = zrecpt-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Check in VBAK if there is an record with VBELN = ZRECPT-VBELN.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDMODULE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can keep a break point in the code and check if SELECTs are working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW is ZRECPT-VBELN is present on the screen too?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 05:04:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/qeury-in-pai-module-error/m-p/2877860#M675652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T05:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: qeury in PAI module : error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/qeury-in-pai-module-error/m-p/2877861#M675653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajaram , &lt;/P&gt;&lt;P&gt;  Please check the value of zrecpt-vbeln , it should be of length 10 , if it is not of length 10 then predeed it with 0 .&lt;/P&gt;&lt;P&gt;This can be done using the UNPACK command , use the follwing statement before the select statement&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;UNPACK zrecpt-vbeln TO zrecpt-vbeln.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 05:08:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/qeury-in-pai-module-error/m-p/2877861#M675653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T05:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: qeury in PAI module : error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/qeury-in-pai-module-error/m-p/2877862#M675654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its really great yar, working fine by your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whats the use of UNPACK command,&lt;/P&gt;&lt;P&gt;why we go for this, even length of both fields are equal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for everyone who have helped me.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 05:25:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/qeury-in-pai-module-error/m-p/2877862#M675654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T05:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: qeury in PAI module : error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/qeury-in-pai-module-error/m-p/2877863#M675655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajaram , &lt;/P&gt;&lt;P&gt; The purpose of Unpack command is to preced a varaible with zeros , please see the help of it for more info.&lt;/P&gt;&lt;P&gt;If you select the data form the database and assign it to the varaible it will work fine , but i feel you are getting it as a user input , since the user enteres it without 0's so the same value is passed on to the varaible , the legth of the varaible has nothing to do with it , that is one reason why we have the concepr of conversion exits , which converts data into input and output formats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 05:27:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/qeury-in-pai-module-error/m-p/2877863#M675655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T05:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: qeury in PAI module : error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/qeury-in-pai-module-error/m-p/2877864#M675656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ur variable is of type C and size 10 and the value of that variable is 3456.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when u display it it will come by 3456.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if u use unpack var to var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then the value will be 0000003456. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 05:33:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/qeury-in-pai-module-error/m-p/2877864#M675656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T05:33:29Z</dc:date>
    </item>
  </channel>
</rss>

