<?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 'OBJECTS_OBJREF_NOT_ASSIGNED_NO' Runtime Error in abap program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/objects-objref-not-assigned-no-runtime-error-in-abap-program/m-p/3209419#M765132</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When my dubugger goes on this line..it gives me Runtime error'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'OBJECTS_OBJREF_NOT_ASSIGNED_NO'&lt;/P&gt;&lt;P&gt;CX_SY_REF_IS_INITIAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD determine_budget_values-&amp;gt;determine_budget_values&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;     plvar  = '.:'&lt;/P&gt;&lt;P&gt;     butyp  = 'BU'&lt;/P&gt;&lt;P&gt;     begda  = '20060101'  "'01.01.2006'&lt;/P&gt;&lt;P&gt;     endda  = '20061231'  "'31.12.2006'&lt;/P&gt;&lt;P&gt;     kcurr  = 'X'&lt;/P&gt;&lt;P&gt;     budot  = 'BU'&lt;/P&gt;&lt;P&gt;     budid  = '50012433'  "objektid&lt;/P&gt;&lt;P&gt;     oldam  = 1000&lt;/P&gt;&lt;P&gt;     oldcu  = 'USD'&lt;/P&gt;&lt;P&gt;     oldno  = 10&lt;/P&gt;&lt;P&gt;     oldsu  = 'USD'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    NEWAM  = newam&lt;/P&gt;&lt;P&gt;    NEWCU  = newcu.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NEWNO  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NEWSU  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance....Its very urgent..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Dec 2007 07:53:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-17T07:53:19Z</dc:date>
    <item>
      <title>'OBJECTS_OBJREF_NOT_ASSIGNED_NO' Runtime Error in abap program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/objects-objref-not-assigned-no-runtime-error-in-abap-program/m-p/3209419#M765132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When my dubugger goes on this line..it gives me Runtime error'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'OBJECTS_OBJREF_NOT_ASSIGNED_NO'&lt;/P&gt;&lt;P&gt;CX_SY_REF_IS_INITIAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD determine_budget_values-&amp;gt;determine_budget_values&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;     plvar  = '.:'&lt;/P&gt;&lt;P&gt;     butyp  = 'BU'&lt;/P&gt;&lt;P&gt;     begda  = '20060101'  "'01.01.2006'&lt;/P&gt;&lt;P&gt;     endda  = '20061231'  "'31.12.2006'&lt;/P&gt;&lt;P&gt;     kcurr  = 'X'&lt;/P&gt;&lt;P&gt;     budot  = 'BU'&lt;/P&gt;&lt;P&gt;     budid  = '50012433'  "objektid&lt;/P&gt;&lt;P&gt;     oldam  = 1000&lt;/P&gt;&lt;P&gt;     oldcu  = 'USD'&lt;/P&gt;&lt;P&gt;     oldno  = 10&lt;/P&gt;&lt;P&gt;     oldsu  = 'USD'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    NEWAM  = newam&lt;/P&gt;&lt;P&gt;    NEWCU  = newcu.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NEWNO  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NEWSU  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance....Its very urgent..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2007 07:53:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/objects-objref-not-assigned-no-runtime-error-in-abap-program/m-p/3209419#M765132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-17T07:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: 'OBJECTS_OBJREF_NOT_ASSIGNED_NO' Runtime Error in abap program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/objects-objref-not-assigned-no-runtime-error-in-abap-program/m-p/3209420#M765133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You've probably got somewhere in your code a declaration like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA: determine_budget_values TYPE REF TO someclass.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you've not instantiated the class, using either CREATE or a static factory method on the class (or superclass of the class).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2007 11:29:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/objects-objref-not-assigned-no-runtime-error-in-abap-program/m-p/3209420#M765133</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2007-12-17T11:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: 'OBJECTS_OBJREF_NOT_ASSIGNED_NO' Runtime Error in abap program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/objects-objref-not-assigned-no-runtime-error-in-abap-program/m-p/3209421#M765134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lott...for u r rhelp///&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but one thing i would like to know after executing properly this method....will my HRP1520 will get those new values of budget of i will have to code it in Method ..specifically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i m sending code for Method...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method IF_EX_HRECM00_BDG0001~DETERMINE_BUDGET_VALUES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: BEGIN OF fs_budgets               ,&lt;/P&gt;&lt;P&gt;          objid(8) TYPE n                 ,             " Object Id&lt;/P&gt;&lt;P&gt;          flag     TYPE c                 ,             " Monetary/Non Monetary&lt;/P&gt;&lt;P&gt;          newam    TYPE CHAR22            ,             " Budgeted Amount,&lt;/P&gt;&lt;P&gt;          newcu    TYPE CHAR05            ,             " Currency Key,&lt;/P&gt;&lt;P&gt;        END OF fs_budgets                 ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        t_budgets LIKE TABLE OF fs_budgets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: w_sobid   TYPE hrp1001-sobid      ,             " Org. Unit&lt;/P&gt;&lt;P&gt;        w_file    TYPE rlgrap-filename    .             " File Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: t_orgunit      TYPE hap_t_hrsobid    ,          " Id of Org. unit&lt;/P&gt;&lt;P&gt;        t_suborgunits  TYPE hap_t_hrsobid    ,          " Ids of Sub Org Units&lt;/P&gt;&lt;P&gt;        fs_orgunit     LIKE LINE OF t_orgunit.          " Work Area of orgunit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH: t_orgunit,&lt;/P&gt;&lt;P&gt;           t_suborgunits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR  : fs_orgunit..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The Budget values are stored in the file 'BUDGETS' on the App Server*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This data will be read from the App Server                          *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;  w_file = 'BUDGETS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  OPEN DATASET w_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fetching the corresponding Org Unit for the Budget Id               *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;  SELECT sobid                         " Org. Unit&lt;/P&gt;&lt;P&gt;    FROM hrp1001&lt;/P&gt;&lt;P&gt;    INTO w_sobid&lt;/P&gt;&lt;P&gt;   WHERE plvar EQ '01'&lt;/P&gt;&lt;P&gt;     AND otype EQ 'BU'&lt;/P&gt;&lt;P&gt;     AND objid EQ  budid&lt;/P&gt;&lt;P&gt;     AND rsign EQ 'B'&lt;/P&gt;&lt;P&gt;     AND relat EQ '300'&lt;/P&gt;&lt;P&gt;     AND istat EQ '1'&lt;/P&gt;&lt;P&gt;     AND begda LE  endda&lt;/P&gt;&lt;P&gt;     AND endda GE  begda.&lt;/P&gt;&lt;P&gt;  ENDSELECT.                           " SELECT sobid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    fs_orgunit-plvar = '01'.&lt;/P&gt;&lt;P&gt;    fs_orgunit-otype = 'O'.&lt;/P&gt;&lt;P&gt;    fs_orgunit-sobid = w_sobid.&lt;/P&gt;&lt;P&gt;    APPEND fs_orgunit TO t_orgunit.&lt;/P&gt;&lt;P&gt;    CLEAR  fs_orgunit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fetching the Sub Org units for a given Org unit                     *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'HRHAP_SEL_OBJECTS_OF_EVAL_PATH'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        T_OBJECTS_BASE   =  t_orgunit&lt;/P&gt;&lt;P&gt;        EVALUATION_PATH  = 'ORGEH'&lt;/P&gt;&lt;P&gt;        FROM_DATE        =  begda&lt;/P&gt;&lt;P&gt;        TO_DATE          =  endda&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        T_OBJECTS        =  t_suborgunits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.                               " IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR newam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Accumulating the budget values of all the Sub org units for a given *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Org unit and populating the fields 'newam' and 'newcu'.             *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;  LOOP AT t_suborgunits INTO fs_orgunit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLOSE DATASET w_file.&lt;/P&gt;&lt;P&gt;    OPEN DATASET w_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;      READ DATASET w_file INTO fs_budgets.&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        IF fs_budgets-objid EQ fs_orgunit-sobid.&lt;/P&gt;&lt;P&gt;          ADD fs_budgets-newam TO newam.&lt;/P&gt;&lt;P&gt;          newcu = fs_budgets-newcu.&lt;/P&gt;&lt;P&gt;          EXIT.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ENDIF.                           " IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    ENDDO.                             " DO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.                             " LOOP AT t_suborgunits&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Giving default values for the Budget Amount and Currency if they are*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;containing Initial values                                           *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;  IF newam IS INITIAL.&lt;/P&gt;&lt;P&gt;    newam = 0.&lt;/P&gt;&lt;P&gt;  ENDIF.                               " IF newam IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF newcu IS INITIAL.&lt;/P&gt;&lt;P&gt;    newcu = 'USD'.&lt;/P&gt;&lt;P&gt;  ENDIF.                               " IF newcu IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLOSE DATASET w_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this code will i require to code anything specific to get this newam(new amount) uploaded to HRP1520 infotype or automatically it will upload if i write above mentioned code only...&lt;/P&gt;&lt;P&gt;Please revert......thanx  a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 09:34:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/objects-objref-not-assigned-no-runtime-error-in-abap-program/m-p/3209421#M765134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T09:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: 'OBJECTS_OBJREF_NOT_ASSIGNED_NO' Runtime Error in abap program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/objects-objref-not-assigned-no-runtime-error-in-abap-program/m-p/3209422#M765135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've no idea.  You should really post this as a seperate question - probably in ABAP General or HR.  Your initial question was a ABAP Objects specific question.  Your new one is HR specific.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 14:31:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/objects-objref-not-assigned-no-runtime-error-in-abap-program/m-p/3209422#M765135</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2007-12-18T14:31:48Z</dc:date>
    </item>
  </channel>
</rss>

