<?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: Urgent: Regarding Runtime Error in FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-regarding-runtime-error-in-fm/m-p/3708575#M892895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI SANTOSH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.i am rewarding u for ur help .can u suggest me i have to make FM for Batches also. now should i make it in the similar way ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;moreover ,can ii have ur email-id so that in future i can have help from you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 May 2008 04:59:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-03T04:59:53Z</dc:date>
    <item>
      <title>Urgent: Regarding Runtime Error in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-regarding-runtime-error-in-fm/m-p/3708570#M892890</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;&lt;STRONG&gt;i had made a Function Module which will reterive the production order,but when i use it in the program it gives runtime error.Plzz help me how to solve this problem.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1st i am pasting the code which i had written:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION ZFIND_PRDORD.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(QP_CHARG) LIKE  CHVW-CHARG OPTIONAL&lt;/P&gt;&lt;P&gt;*"     VALUE(P_AUFNR) LIKE  CHVW-AUFNR OPTIONAL&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(P_RETVAL) LIKE  CHVW-AUFNR&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF T_CHVW OCCURS 0,&lt;/P&gt;&lt;P&gt;              XZUGA LIKE CHVW-XZUGA,&lt;/P&gt;&lt;P&gt;              WERKS LIKE CHVW-WERKS,&lt;/P&gt;&lt;P&gt;              MATNR LIKE CHVW-MATNR,&lt;/P&gt;&lt;P&gt;              CHARG LIKE CHVW-CHARG,&lt;/P&gt;&lt;P&gt;              AUFNR LIKE CHVW-AUFNR,&lt;/P&gt;&lt;P&gt;              EBELN LIKE CHVW-EBELN,&lt;/P&gt;&lt;P&gt;              MBLNR LIKE CHVW-MBLNR,&lt;/P&gt;&lt;P&gt;              ZEILE LIKE CHVW-ZEILE,&lt;/P&gt;&lt;P&gt;              BUDAT LIKE CHVW-BUDAT,&lt;/P&gt;&lt;P&gt;              SHKZG LIKE CHVW-SHKZG,&lt;/P&gt;&lt;P&gt;              BWART LIKE CHVW-BWART,&lt;/P&gt;&lt;P&gt;              MENGE LIKE CHVW-MENGE,&lt;/P&gt;&lt;P&gt;              MEINS LIKE CHVW-MEINS,&lt;/P&gt;&lt;P&gt;              KZBEW LIKE CHVW-KZBEW,&lt;/P&gt;&lt;P&gt;          END OF T_CHVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT XZUGA WERKS MATNR CHARG AUFNR EBELN&lt;/P&gt;&lt;P&gt;MBLNR ZEILE BUDAT SHKZG BWART MENGE MEINS KZBEW&lt;/P&gt;&lt;P&gt;FROM CHVW INTO TABLE T_CHVW&lt;/P&gt;&lt;P&gt;WHERE CHARG EQ QP_CHARG&lt;/P&gt;&lt;P&gt;and XZUGA = ' '&lt;/P&gt;&lt;P&gt;AND BWART = '101'&lt;/P&gt;&lt;P&gt;and aufnr eq p_aufnr&lt;/P&gt;&lt;P&gt;AND KZBEW = 'F' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P_RETVAL = T_CHVW-AUFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Now i am displaying the program for testing this FM which gives the runtime error:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : CHVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : P_CHARG FOR CHVW-CHARG,&lt;/P&gt;&lt;P&gt;                 P_AUFNR FOR CHVW-AUFNR .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZFIND_PRDORD'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   QP_CHARG       = P_CHARG&lt;/P&gt;&lt;P&gt;   P_AUFNR        = P_AUFNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   P_RETVAL      = P_AUFNR.&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;WRITE : / 'SDSQDA' .&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plzz help me out as how to solve this problem as i have to use it in  &lt;/P&gt;&lt;P&gt;the main program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;ric.s&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2008 03:57:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-regarding-runtime-error-in-fm/m-p/3708570#M892890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-03T03:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent: Regarding Runtime Error in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-regarding-runtime-error-in-fm/m-p/3708571#M892891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In SE37 first execute your Function module and check with some test data's. If it is retrieve the correct data means its working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Then try to anylyse the Runtime error. Using TRansaction ST22 you can analyse the runtime error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. otherwise just copy and paste the error description here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2008 04:05:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-regarding-runtime-error-in-fm/m-p/3708571#M892891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-03T04:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent: Regarding Runtime Error in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-regarding-runtime-error-in-fm/m-p/3708572#M892892</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; The problem could be ... The parameters given to the FM has to be a parameter than a select-options as select-options is a table ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Parameters :&lt;/STRONG&gt; P_CHARG &lt;STRONG&gt;like&lt;/STRONG&gt; CHVW-CHARG,&lt;/P&gt;&lt;P&gt;P_AUFNR &lt;STRONG&gt;like&lt;/STRONG&gt; CHVW-AUFNR .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZFIND_PRDORD'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;QP_CHARG = P_CHARG&lt;/P&gt;&lt;P&gt;P_AUFNR = P_AUFNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;P_RETVAL = P_AUFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE : / 'SDSQDA' .&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;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2008 04:07:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-regarding-runtime-error-in-fm/m-p/3708572#M892892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-03T04:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent: Regarding Runtime Error in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-regarding-runtime-error-in-fm/m-p/3708573#M892893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI SANTOSH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had changed according what u said and it is not giving runtime error .&lt;/P&gt;&lt;P&gt;but it is not giving the value as if i send the value of batch and the prd orderr. plz tell me how do it get the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i had written the code of program like this:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : CHVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters : P_CHARG like CHVW-CHARG,&lt;/P&gt;&lt;P&gt;             P_AUFNR like CHVW-AUFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: PRD LIKE CHVW-AUFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZFIND_PRDORD'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QP_CHARG = P_CHARG&lt;/P&gt;&lt;P&gt;P_AUFNR = P_AUFNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P_RETVAL = PRD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE : / PRD .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLZ HELPMEOUT HOW TO DO THIS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2008 04:44:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-regarding-runtime-error-in-fm/m-p/3708573#M892893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-03T04:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent: Regarding Runtime Error in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-regarding-runtime-error-in-fm/m-p/3708574#M892894</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; Two more changes has to be made  ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;EXPORTING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;input         = p_aufnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;IMPORTING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;OUTPUT        = p_aufnr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;P&gt;SELECT XZUGA WERKS MATNR CHARG AUFNR EBELN&lt;/P&gt;&lt;P&gt;MBLNR ZEILE BUDAT SHKZG BWART MENGE MEINS KZBEW&lt;/P&gt;&lt;P&gt;FROM CHVW INTO TABLE T_CHVW&lt;/P&gt;&lt;P&gt;WHERE CHARG EQ QP_CHARG&lt;/P&gt;&lt;P&gt;and XZUGA = ' '&lt;/P&gt;&lt;P&gt;AND BWART = '101'&lt;/P&gt;&lt;P&gt;and aufnr eq p_aufnr&lt;/P&gt;&lt;P&gt;AND KZBEW = 'F' .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if sy-subrc = 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;read table T_CHVW index 1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;if sy-subrc = 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      P_RETVAL = T_CHVW-AUFNR.&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;endif.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endif.&lt;/STRONG&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;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2008 04:50:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-regarding-runtime-error-in-fm/m-p/3708574#M892894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-03T04:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent: Regarding Runtime Error in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-regarding-runtime-error-in-fm/m-p/3708575#M892895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI SANTOSH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.i am rewarding u for ur help .can u suggest me i have to make FM for Batches also. now should i make it in the similar way ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;moreover ,can ii have ur email-id so that in future i can have help from you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2008 04:59:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-regarding-runtime-error-in-fm/m-p/3708575#M892895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-03T04:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent: Regarding Runtime Error in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-regarding-runtime-error-in-fm/m-p/3708576#M892896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI SANTOSH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had removed the SELECT-OPTION from the program and i am filling the batch no. &lt;/P&gt;&lt;P&gt;only and when i execute the program it gives the output blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: P_AUFNR LIKE CHVW-AUFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO PLZZ TELL WHY IT IS GIVING OUTPUT BLANK?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2008 05:13:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-regarding-runtime-error-in-fm/m-p/3708576#M892896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-03T05:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent: Regarding Runtime Error in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-regarding-runtime-error-in-fm/m-p/3708577#M892897</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; paste the code here ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2008 05:29:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-regarding-runtime-error-in-fm/m-p/3708577#M892897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-03T05:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent: Regarding Runtime Error in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-regarding-runtime-error-in-fm/m-p/3708578#M892898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi santosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here 's d code:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : CHVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : P_CHARG LIKE CHVW-CHARG.&lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: PRD LIKE CHVW-AUFNR.&lt;/P&gt;&lt;P&gt;DATA:    P_AUFNR LIKE CHVW-AUFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZFIND_PRDORD'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QP_CHARG = P_CHARG&lt;/P&gt;&lt;P&gt;P_AUFNR = P_AUFNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P_RETVAL = PRD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE : / PRD .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when on screen i fill the batch no. noly it does not give the produciotn order no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why it is not giving the putput?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2008 05:32:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-regarding-runtime-error-in-fm/m-p/3708578#M892898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-03T05:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent: Regarding Runtime Error in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-regarding-runtime-error-in-fm/m-p/3708579#M892899</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; It is because there are no records found in the table with blank aufnr and with the conditions given in the where condition of your select statement ... if you are looking for all the aufnr's in that case do this way ....&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if not p_aufnr is initial.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SELECT XZUGA WERKS MATNR CHARG AUFNR EBELN&lt;/P&gt;&lt;P&gt;MBLNR ZEILE BUDAT SHKZG BWART MENGE MEINS KZBEW&lt;/P&gt;&lt;P&gt;FROM CHVW INTO TABLE T_CHVW&lt;/P&gt;&lt;P&gt;WHERE CHARG EQ QP_CHARG&lt;/P&gt;&lt;P&gt;and XZUGA = ' '&lt;/P&gt;&lt;P&gt;AND BWART = '101'&lt;/P&gt;&lt;P&gt;and aufnr eq p_aufnr&lt;/P&gt;&lt;P&gt;AND KZBEW = 'F' .&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;else.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SELECT XZUGA WERKS MATNR CHARG AUFNR EBELN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MBLNR ZEILE BUDAT SHKZG BWART MENGE MEINS KZBEW&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM CHVW INTO TABLE T_CHVW&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE CHARG EQ QP_CHARG&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and XZUGA = ' '&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND BWART = '101'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND KZBEW = 'F' .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if sy-subrc = 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endif.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endif.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if not T_CHVW[] is initial.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;read table T_CHVW index 1.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;P_RETVAL = T_CHVW-AUFNR.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endif.&lt;/STRONG&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;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2008 05:42:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-regarding-runtime-error-in-fm/m-p/3708579#M892899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-03T05:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent: Regarding Runtime Error in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-regarding-runtime-error-in-fm/m-p/3708580#M892900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi santosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help now it is working fine i was having hint the explanation u gave but i am not dat confident.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ways it is working fine i will reward you full 10 points for that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2008 06:36:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-regarding-runtime-error-in-fm/m-p/3708580#M892900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-03T06:36:00Z</dc:date>
    </item>
  </channel>
</rss>

