<?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: HR programming dump in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-programming-dump/m-p/6508216#M1423030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is some problen in your l_nadorg  declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: begin of w_kurst_itab occurs 0,
        sobid like hrp1001-sobid,
end of w_kurst_itab.

   select distinct sobid
     into w_kurst_itab
     from hrp1001 client specified
     where mandt = sy-mandt and
           objid in pchobjid and
           otype = 'D' and
           plvar = '01' and
           rsign = 'B' and
           relat = '020' and
           istat &amp;lt;&amp;gt; '5' and
           sclas = 'E' and
           begda &amp;lt;= w_endda and
           endda &amp;gt;= w_begda.
      append w_kurst_itab.
    endselect.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jan 2010 11:52:42 GMT</pubDate>
    <dc:creator>GauthamV</dc:creator>
    <dc:date>2010-01-08T11:52:42Z</dc:date>
    <item>
      <title>HR programming dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-programming-dump/m-p/6508215#M1423029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't seem to get rid of following dump in program i've coded... The goal is to get hierarchy father&lt;/P&gt;&lt;P&gt;org. unit of current employee org. unit (IT0001) that has IT1002 (description) with subty = 9000.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Short text:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;"Error in module RSQL of the database interface."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error analysis:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    "An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt;    The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught&lt;/P&gt;&lt;P&gt;     in procedure "%_GET_PERNR" "(FORM)", nor was it propagated by a RAISING clause.&lt;/P&gt;&lt;P&gt;    Since the caller of the procedure could not have anticipated that the exception would occur, &lt;/P&gt;&lt;P&gt;    the current program is terminated. The reason for the exception is:&lt;/P&gt;&lt;P&gt;    In a SELECT access, the read file could not be placed in the target&lt;/P&gt;&lt;P&gt;    field provided.&lt;/P&gt;&lt;P&gt;    Either the conversion is not supported for the type of the target field,&lt;/P&gt;&lt;P&gt;    the target field is too small to include the value, or the data does not&lt;/P&gt;&lt;P&gt;    have the format required for the target field."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code sample:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;....
GET pernr.

* various MOVE commends.

* cost center txt
  SELECT SINGLE ktext FROM cskt
                      INTO wa_radnik-l_kostx...

* selection of father org. unit. until correct org. unit is reached, 
* correct org. unit is the existence of IT1002, SUBTY=9000
 
 l_orgbase = wa_radnik-l_orgeh.

  DO.
    SELECT SINGLE sobid FROM hrp1001 " &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; THIS IS WHERE DUMP OCCURS
                        INTO l_nadorg
                        WHERE plvar = '01' AND
                              otype = 'O' AND
                              objid = l_orgbase AND
                              rsign = 'A' AND
                              relat = '002' AND
                              istat = '1' AND
                              begda LE pn-endda AND
                              endda GE pn-begda.
    IF sy-subrc = 0.
      SELECT SINGLE objid FROM hrp1002
                          INTO l_objid
                          WHERE plvar = '01' AND
                                otype = 'O' AND
                                objid = l_nadorg AND
                                subty = '9000' AND
                                istat = '1' AND
                                begda LE pn-endda AND
                                endda GE pn-begda.

      IF sy-subrc = 0.
        wa_radnik-l_n_orgeh = l_nadorg.
        CLEAR: l_nadorg,
               l_objid.
        EXIT.
      ELSE.
        l_orgbase = l_nadorg.
        CLEAR l_nadorg.
      ENDIF.
    ENDIF.
  ENDDO.
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Tom Baksa on Jan 8, 2010 12:47 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Tom Baksa on Jan 8, 2010 12:52 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 11:46:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-programming-dump/m-p/6508215#M1423029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-08T11:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: HR programming dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-programming-dump/m-p/6508216#M1423030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is some problen in your l_nadorg  declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: begin of w_kurst_itab occurs 0,
        sobid like hrp1001-sobid,
end of w_kurst_itab.

   select distinct sobid
     into w_kurst_itab
     from hrp1001 client specified
     where mandt = sy-mandt and
           objid in pchobjid and
           otype = 'D' and
           plvar = '01' and
           rsign = 'B' and
           relat = '020' and
           istat &amp;lt;&amp;gt; '5' and
           sclas = 'E' and
           begda &amp;lt;= w_endda and
           endda &amp;gt;= w_begda.
      append w_kurst_itab.
    endselect.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 11:52:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-programming-dump/m-p/6508216#M1423030</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2010-01-08T11:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: HR programming dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-programming-dump/m-p/6508217#M1423031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeah, all of my local variables were declared as ORGEH by accident...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i should've paid more attention...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 12:08:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-programming-dump/m-p/6508217#M1423031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-08T12:08:57Z</dc:date>
    </item>
  </channel>
</rss>

