"PERNR" is not defined for the current logical database.

Hi Experts,
I have developed a program for HR salary variance but when i execute i getting error in the line " get PERNR"
the "PERNR" is not defined for the current logical database. so plz suggest me to avoid this issue.
Thanks,
Rajesh

the codes are has below,
*& Report  ZHRSAL_COMP
REPORT  ZHRSAL_COMP.
tables: pernr,
        t512t.                      "Wage type texts
infotypes: 0001. "Organizational Assignment
*Tables data containing directory to PCL2 payroll results file.
data: begin of rgdir occurs 100.
        include structure pc261.
data: end of rgdir.
data: result type pay99_result.
data: rt_header type line of hrpay99_rt.
data: country like t001p-molga,
      number  like pc261-seqnr. "Number of last payroll result
types :begin of struc_p0001,
       pernr type  p0001-pernr,
       ename type  p0001-ename,
       werks type  p0001-werks,
       btrtl type  p0001-btrtl,
end of struc_p0001.
data : gtab_p0001 type table of struc_p0001,
       gwa_p0001 type struc_p0001.
types : begin of struc_payroll,
        text(10) type c,
        date     type dats,
        month(2) type c,
        year(4)  type c,
        abkrs(2) type c,
        end of struc_payroll.
data : gtab_payroll type table of struc_payroll,
       gwa_payroll type struc_payroll.
types : begin of struc_result,
       lgart type lgart,
       lgtxt type t512t-lgtxt,
       betrg type betrg,
        end of struc_result.
data : gtab_result type table of struc_result,
      gwa_result type struc_result.
get pernr.
  rp_provide_from_last p0001 space pn-begda pn-endda.
  call function 'CU_READ_RGDIR'
    exporting
      pernr          = p0001-pernr
    importing
      molga           = country
    tables
      in_rgdir        = rgdir
    exceptions
      no_record_found = 1
      others          = 2.
  if sy-subrc = 1.
    write: / 'No records found for '(001), pernr-pernr.
  endif.
  call function 'CD_READ_LAST'
    exporting
      begin_date      = pn-begda
      end_date        = SY-DATUM
    importing
      out_seqnr       = number
    tables
      rgdir           = rgdir
    exceptions
      no_record_found = 1
      others          = 2.
  if sy-subrc = 1.
    write: / 'No payroll result found for'(002), pn-paper.
  else.
    call function 'PYXX_READ_PAYROLL_RESULT'
         exporting
              clusterid                    = 'RX'
              employeenumber               = p0001-pernr
              sequencenumber               = number
        READ_ONLY_BUFFER             = ' '
        READ_ONLY_INTERNATIONAL      = ' '
        CHECK_READ_AUTHORITY         = 'X'
   IMPORTING
        VERSION_NUMBER_PAYVN         =
        VERSION_NUMBER_PCL2          =
         changing
              payroll_result               = result
         exceptions
              illegal_isocode_or_clusterid = 1
              error_generating_import      = 2
              import_mismatch_error        = 3
              subpool_dir_full             = 4
              no_read_authority            = 5
              no_record_found = 6
              versions_do_not_match        = 7
              others                   = 8.
    if sy-subrc = 0.
      perform print_rx.
    else.
      write: / 'Result could not be read (003)'.
    endif.
  endif.
      FORM PRINT_RX                                        *
      Print Payroll Result                                 *
form print_rx.
  format intensified on.
  write: / p0001-pernr,
           p0001-ename(15),
           p0001-werks,
           p0001-btrtl.
  format intensified off.
  skip 1.
  move p0001-pernr to gwa_p0001-pernr.
  move p0001-ename(15) to gwa_p0001-ename.
  move p0001-werks to gwa_p0001-werks.
  move p0001-btrtl to gwa_p0001-btrtl.
  append gwa_p0001 to gtab_p0001.
  write: / 'For period/payroll area: '(004),
           30 result-inter-versc-fpper+4(2),
           result-inter-versc-fpper+0(4),
           result-inter-versc-abkrs,
           / 'In-period/payroll area: '(005),
           30 result-inter-versc-inper+4(2),
           result-inter-versc-inper+0(4),
           result-inter-versc-iabkrs.
  skip 1.
  gwa_payroll-text = 'For'.
  move result-inter-versc-fpper to gwa_payroll-date.
  move result-inter-versc-fpper+4(2) to gwa_payroll-month.
  move result-inter-versc-fpper+0(4) to gwa_payroll-year.
  move result-inter-versc-abkrs to gwa_payroll-abkrs.
  append gwa_payroll to gtab_payroll.
  gwa_payroll-text = 'In'.
  move result-inter-versc-fpper to gwa_payroll-date.
  move result-inter-versc-inper+4(2) to gwa_payroll-month.
  move result-inter-versc-inper+0(4) to gwa_payroll-year.
  move result-inter-versc-iabkrs to gwa_payroll-abkrs.
  append gwa_payroll to gtab_payroll.
  write: 'Results table: '(006).
  skip 1.
  loop at result-inter-rt into rt_header.
    perform re512t using result-inter-versc-molga
                         rt_header-lgart.
    write: / rt_header-lgart,
             t512t-lgtxt,
             rt_header-betrg currency rt_header-amt_curr.
move rt_header-lgart to gwa_result-lgart.
move t512t-lgtxt to gwa_result-lgtxt.
move rt_header-betrg to gwa_result-betrg.
append gwa_result to gtab_result.
  endloop.
endform.                    "print_rx
      FORM RE512T                                          *
      Read Wage Type Texts
form re512t using value(country_grouping)
                  value(wtype).
  check t512t-sprsl ne sy-langu
     or t512t-molga ne country_grouping
     or t512t-lgart ne wtype.
  select single * from t512t
              where sprsl eq sy-langu
              and   molga eq country_grouping
              and   lgart eq wtype.
  if sy-subrc ne 0.
    clear t512t.
  endif.
endform.                                                    "re512t

Similar Messages

  • SFLIGHT is NOT defined for the current logical database.

    I have just started learning ABAP and bought an ABAP Objects book by Horst Keller. I have installed 4.6d mini sap and SAP GUI 6.4 on win XP Prof. I executed S_FLIGHT_MODEL_DATA_GENERATOR to load DB tables.
    (1). When I tried to check a sample program, I get an error message SFLIGHT is not defined for the current logical database.
    Here is the partial code:
    REPORT zbcb01f1 .
    TABLES: sflight, sbook.
    DATA: BEGIN OF sr OCCURS 100,
          carrid LIKE sbook-carrid,
          connid LIKE sbook-connid,
          fldate LIKE sbook-fldate,
          bookid LIKE sbook-bookid,
          order_date LIKE sbook-order_date,
          loccuram LIKE sbook-loccuram,
          END OF sr.
    GET sflight.   <---- Error is pointed here
    (2). I am also not getting Graphical Screen Painter when selecting Layout for a screen. Instead, I am getting alphanumeric editor.
    Someone please help me.  
    Raizak.

    Hi Raizak,
    the easiest way is to go to service.sap.com/notes and enter the note number. For this time I've copied the 2 notes below.
    Best regards,
    Christian
    Symptom
    The Graphical Layout Editor of the Screen Painter either does not start or terminates.Error message 37527 is displayed in the session in which the call was made (Graphical Layout Editor not available.
    Additional key words
    () EUNOTE, EUSCREENPAINTER, 37 527
    Cause and prerequisites
    This note comprises all the common causes for error message 37527 and provides you with information on how to systematically trouble shoot the problem.
    1. Windows32 or UNIX/motif?
    As of Release 4.6B there is only the program version for 32bit Windows (NT, 95, 98, 2000 ff.).Up to Release 4.6A there was also a version for UNIX/Motif.All of the more current notes (with the exception of Note 45490) refer only to the Windows version.
    2. Termination at the start or during use?
    The following diagnostic steps refer to the causes of the errors which prevent the Graphical Layout Editor from starting. However, there are also known error causes, which result in the program terminating when the application is being used and which also produce the 37527 error message. This affects -
    Rel.4.6C/D: Termination when attempting to read texts in the logon language -> Note 375494
    Crash after transferring program and dictionary fields. Termination after transferring program and dictionary fields -> Note 189245
    Release 3.1I: Termination after inputting field text -> Note 113318
    3. Is the SAPGUI installation correct?
    The Graphical Layout Editor is automatically installed during the standard installation of the SAPGUI.If you chose a non-standard installation, then you should have explicitely selected its installation (component "Development Tools - Graphical Screen Painter").
    The program executable is called gneux.exe.During the SAPGUI installation it is placed in the same directory as the SAPGUI programms (for example, front.exe) (usually C:\Program Files\SAPpc\sapgui). The following belong to the program:
    - An additonal executable gnetx.exe (RFC starter program)
    - the DLL eumfcdll.dll
    - various eusp* data files (that is, the names all begin with eusp.)
    You can check the completeness of the program installation by starting the program gneux.exe locally in the SAPGUI directory (for example, by double-clicking on the program name in the Explorer window).The Layout Editor is displayed with German texts and an empty drawing area for the pseudo screen EUSPDYND 0000.
    If the installation is not complete, an error dialog box provides information regarding the cause of the error, for example, sometimes the DLL eumfcdll.dll is missing after reinstalling the SAPGUI. For example, the eumfcdll.dll DLL was sometimes missing after the SAPGUI was reinstalled.
    4. System link defined and okay?
    The Graphical Layout Editor is a separate program which is started by the Screen Painter Transaction (SE51) on the Frontend machine.
    Up to Release 3.0F, the programs communicated with each other via the graphics log of the SAPGUIs (gmux).The definition of the environment variable SAPGRAPH may be the cause for the program not being being found where it is.
    As of Release 3.1 G, the programs use a separate RFC link which is set up in addition to the SAPGUI's RFC link.Missing or incorrect definitions of the RFC destination EU_SCRP_WN32 or problems with the creation of the RFC link are the most frequent causes for error message 37527 being displayed.Below you can find the correct settings for the RFC destination EU_SCRP_WN32 (under "Solution").Note 101971 lists all the possible causes for problems with the RFC link set-up. Attention:The Graphical Layout Editor may not be operated through a firewall (for example between the SAP and the customer system) because this does not allow an additional RFC connection in addition to the SAPGUI.
    Solution
    ad 1 UNIX/Motif
    Note 45490 describes possible errors resulting from an incorrect program installation under UNIX/Motif (up to Release 4.6A).
    ad 2 Termination when using
    The above-mentioned notes may contain options for solving individual problems.However, you usually have to replace the program with an corrected version.You can do this either by downloading a patch from sapservX or by installing a more current SAPGUI.The patch is mentioned in the respective note.
    ad 3 Installation
    You either need to reinstall the SAPGUI or manually copy the missing file into the SAPGUI directory.In both cases you should make sure beforehand that a Graphical Layout Editor is no longer running.To do this you can either remove all processes gneux.exe from the process list by using a tool such as Task Manager (on WindowsNT) or exit the Graphical Layout Editor from the Screen Painter Transaction menu via Edit -> Cancel Graphical Screen Painter). Attention:For each session or system an individial Layout Editor process may exist so that, if need be, several processes should be cancelled.
    ad 4 System link
    Up to Release 3.0F:you can either delete the environment variable SAPGRAPH or copy all the files of the Graphical Layout Editor into the directory which is specified by SAPGRAPH.
    As of Release 3.1G:you can use Transaction SM59 to check the RFC destination EU_SCRP_WN32 (expand the TCP/IP connections, select destination EU_SCRP_WN32).If the destination is missing, then you should create it with the following settings:
    - Connection type "T" (start of an external program via ...)
    - Activation type "Start"
    - Start on "Front-end workstation"
    - Front-end workstation program "gnetx.exe" (caution! NOT gneux.exe)
    - Description (optional) "Graph. Screen Painter (Windows32)
      Start Program gneux.exe using the gnetx.exe starter program."
    If you want to start the program from a different directory than the SAPGUI standard directory, then replace the default value under Frontend work station by the complete path name for program gnetx.exe.Transaction SM59 also allows you to check the RFC connection via the pushbutton "Test connection").In this case the system attempts to localize and start the program gnetx.exe.If there are errors, a message is displayed regarding the possible causes (for example, gateway problem, timeout problem or the like).Note 101971 provides a detailed explanation of the problems involved with an RFC connection set-up.As the Graphical Screen Painter requires a functional RFC connection as of Release 3.1G, contact the System Administrator or create an message on the topic Middleware (BC-MID-RFC) if you encounter RFC problems.
    If the program gnetx.exe can be found and started, the banner dialog box with logo, release data and version number is displayed briefly.As the Layout Editor itself is not started, the error cause must be in the installation of the Layout Editor program gneux.exe if the connection test was successful.
    Release 4.5A to 4.6B: Use with Releases <3.1G>.
    The Graphical Layout Editor is downward-compatible as regards the system connection, that is, an RFC-based Layout Editor for example from Release 4.6C can also be used on a non-RFC-based Screen Painter, for example of Release 3.0F.However, the releases mentioned above have a program error which causes a crash due to memory violation in the start phase of the program.Note 197328 describes the solution by installation of the corrected program version.
    Important: Trace file dev_euspNNN!
    If none of the diagnosis steps leads to the cause of the error and to the solution of the problem via the corresponding note, then you should add the contents of the trace files dev_euspNNN (NNN = process number) to the message for SAP, if possible.You can find this file in the current directory of the SAP System, for example under Windows NT in C:\Winnt\Profiles\<user>\SAPworkdir.If several such trace files can be found there, make sure that you use the file which matches the termination time with respect to date and time of creation.In most cases the ERROR message in the last lines of this trace file provides an important note on the cause of the error.
    Source code corrections
    Symptom
    The graphic layout editor of the Screen Painter cannot be started (RFC version).
    Other terms
    () EUNOTE, EUSCREENPAINTER
    Reason and Prerequisites
    This is generally caused by the fact that the RFC connection between the frontend graphics layout editor and the calling screen painter program at the backend cannot be set up.
    Possibility 1: Route permission denied
    In the trace file dev_eusp<Process Id> of the graphics layout editor you find the entry "ERROR in RFCMgr_accept: not accepted", and in the RFC trace file dev_rfc.trc you have an entry of the form "ERROR route permission denied (<Front-Id> to <BackId>,<Service>)".
    If there is a firewall between frontend computer and application
    server, you need to decide whether the port for the RFC of the graphical layout editor can be released here (see Solution 1 below).
    In case no firewall exists between the frontend computer and the application server, in its route permission table, the SAProuter contains either no entry for the frontend computer, on which the graphics layout editor is started, or the entry says that the link is saved by a password.Since the connection is denied, the graphics editor processes exits again, and the screen painter switches to the alphanumeric layout editor.
    Possibility 2: Service 'sapgw<ServiceId>' unknown
    In the trace file dev_eusp<ProzessId> of the graphics layout editor you have the entry "ERROR in RFCMgr_accept: not accepted", and in the RFC trace file dev_rfc.trc you have an entry of the form "ERROR service 'sapgw<ServiceId>' unknown".
    The service sapgw<ServiceId> (for example, sapgw00) is not known on one of the computers participating in the RFC communication because the corresponding entry is missing in its service file. The affected computer can be the frontend computer or the gateway computer.
    Possibility 3: The system parameter gw/cpic_timeout value is too low
    This system parameter determines how many seconds the gateway is waiting for the RFC connection to be set up.In case of a high network load, the default value of 20 seconds is too small with the result that the connection cannot be created on time.Here the graphics layout editor process also exits with the trace file entry "ERROR in RFCMgr_accept: not accepted".
    Possibility 4: System parameter abap/no_sapgui_rfc set
    The profile parameter abap/no_sapgui_rfc of the system is set (that is, it has a value not equal to space or 0).This prevents the program of the graphics layout editor from being started with RFC at the frontend.
    Possibility 5: Unnecessary authorization check
    The error message "No RFC authorization for user xxxxxx" is generated although the check of the RFC authorization was deactivated by profile parameter auth/rfc_authority_check (value = space or 0). The problem is caused by a program error, that ignores the value of the profile parameter let during the call of the RFC authorization check (see Note 93254). This error can occur as of Release 4.5.
    Solution
    ad 1) If a Firewall is installed between frontend computer and the application server, you need to decide whether the port for the RFC link of the graphical layout editor shall be released in the firewall. This is port 33nn, where nn is the 2-digit system number of the SAP application server. As of Release 3.1G, the graphical layout editor needs an RFC link for communication with the application server in addition to the already existing linkof the SAP GUIs. Such a second link is not allowed by the firewall in general because it would contradict the security concept (password protection, logging of the connection).
    If no firewall exists, you should check whether the frontend computer can be added to the route permission table or whether the password option can be removed from out of the available entry.
    For details refer to chapter 4.4 of the attached Note 30289.
    ad 2) Include service sapgw<ServiceId> in the service file.
    Refer to Note 52959 for details.
    ad 3) Increase value for system parameter gw/cpic_timeout. 60 seconds should be sufficent as a timeout limit.
    ad 4) Set the system parameter abap/no_sapgui_rfc to space or 0
    Start the application server so that the new parameter value comes into effect.
    ad 5) Import the Support Package specified in the attachment for the release in question or implement the advance correction in the source code as described in the attached correction instructions.
    As a workaround, assign RFC authorizations as described in Note 93254.

  • Get mapl gives ' mapl not defined in the current logical database'.

    Hello,
    i am going through the report RCPDRK00, i found a statement get plkod , get mapl .
    When i try to run this statement in my test program it says ' not defined in the curent logical database' .
    How to link with  logical database.
    regards,
    kevin.

    GET statements will provide your program with database records based on the code for the logical database. The program in this case is SAPDBPNM.
    Each GET will be supplied with data by the corresponding PUT subroutine.
    Read the help about the logical databases. This is considered obsolete technology, but still, they can be very useful.
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm

  • Selective XML Index feature is not supported for the current database version , SQL Server Extended Events , Optimizing Reading from XML column datatype

    Team , Thanks for looking into this  ..
    As a last resort on  optimizing my stored procedure ( Below ) i wanted to create a Selective XML index  ( Normal XML indexes doesn't seem to be improving performance as needed ) but i keep getting this error within my stored proc . Selective XML
    Index feature is not supported for the current database version.. How ever
    EXECUTE sys.sp_db_selective_xml_index; return 1 , stating Selective XML Indexes are enabled on my current database .
    Is there ANY alternative way i can optimize below stored proc ?
    Thanks in advance for your response(s) !
    /****** Object: StoredProcedure [dbo].[MN_Process_DDLSchema_Changes] Script Date: 3/11/2015 3:10:42 PM ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- EXEC [dbo].[MN_Process_DDLSchema_Changes]
    ALTER PROCEDURE [dbo].[MN_Process_DDLSchema_Changes]
    AS
    BEGIN
    SET NOCOUNT ON --Does'nt have impact ( May be this wont on SQL Server Extended events session's being created on Server(s) , DB's )
    SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
    select getdate() as getdate_0
    DECLARE @XML XML , @Prev_Insertion_time DATETIME
    -- Staging Previous Load time for filtering purpose ( Performance optimize while on insert )
    SET @Prev_Insertion_time = (SELECT MAX(EE_Time_Stamp) FROM dbo.MN_DDLSchema_Changes_log ) -- Perf Optimize
    -- PRINT '1'
    CREATE TABLE #Temp
    EventName VARCHAR(100),
    Time_Stamp_EE DATETIME,
    ObjectName VARCHAR(100),
    ObjectType VARCHAR(100),
    DbName VARCHAR(100),
    ddl_Phase VARCHAR(50),
    ClientAppName VARCHAR(2000),
    ClientHostName VARCHAR(100),
    server_instance_name VARCHAR(100),
    ServerPrincipalName VARCHAR(100),
    nt_username varchar(100),
    SqlText NVARCHAR(MAX)
    CREATE TABLE #XML_Hold
    ID INT NOT NULL IDENTITY(1,1) PRIMARY KEY , -- PK necessity for Indexing on XML Col
    BufferXml XML
    select getdate() as getdate_01
    INSERT INTO #XML_Hold (BufferXml)
    SELECT
    CAST(target_data AS XML) AS BufferXml -- Buffer Storage from SQL Extended Event(s) , Looks like there is a limitation with xml size ?? Need to re-search .
    FROM sys.dm_xe_session_targets xet
    INNER JOIN sys.dm_xe_sessions xes
    ON xes.address = xet.event_session_address
    WHERE xes.name = 'Capture DDL Schema Changes' --Ryelugu : 03/05/2015 Session being created withing SQL Server Extended Events
    --RETURN
    --SELECT * FROM #XML_Hold
    select getdate() as getdate_1
    -- 03/10/2015 RYelugu : Error while creating XML Index : Selective XML Index feature is not supported for the current database version
    CREATE SELECTIVE XML INDEX SXI_TimeStamp ON #XML_Hold(BufferXml)
    FOR
    PathTimeStamp ='/RingBufferTarget/event/timestamp' AS XQUERY 'node()'
    --RETURN
    --CREATE PRIMARY XML INDEX [IX_XML_Hold] ON #XML_Hold(BufferXml) -- Ryelugu 03/09/2015 - Primary Index
    --SELECT GETDATE() AS GETDATE_2
    -- RYelugu 03/10/2015 -Creating secondary XML index doesnt make significant improvement at Query Optimizer , Instead creation takes more time , Only primary should be good here
    --CREATE XML INDEX [IX_XML_Hold_values] ON #XML_Hold(BufferXml) -- Ryelugu 03/09/2015 - Primary Index , --There should exists a Primary for a secondary creation
    --USING XML INDEX [IX_XML_Hold]
    ---- FOR VALUE
    -- --FOR PROPERTY
    -- FOR PATH
    --SELECT GETDATE() AS GETDATE_3
    --PRINT '2'
    -- RETURN
    SELECT GETDATE() GETDATE_3
    INSERT INTO #Temp
    EventName ,
    Time_Stamp_EE ,
    ObjectName ,
    ObjectType,
    DbName ,
    ddl_Phase ,
    ClientAppName ,
    ClientHostName,
    server_instance_name,
    nt_username,
    ServerPrincipalName ,
    SqlText
    SELECT
    p.q.value('@name[1]','varchar(100)') AS eventname,
    p.q.value('@timestamp[1]','datetime') AS timestampvalue,
    p.q.value('(./data[@name="object_name"]/value)[1]','varchar(100)') AS objectname,
    p.q.value('(./data[@name="object_type"]/text)[1]','varchar(100)') AS ObjectType,
    p.q.value('(./action[@name="database_name"]/value)[1]','varchar(100)') AS databasename,
    p.q.value('(./data[@name="ddl_phase"]/text)[1]','varchar(100)') AS ddl_phase,
    p.q.value('(./action[@name="client_app_name"]/value)[1]','varchar(100)') AS clientappname,
    p.q.value('(./action[@name="client_hostname"]/value)[1]','varchar(100)') AS clienthostname,
    p.q.value('(./action[@name="server_instance_name"]/value)[1]','varchar(100)') AS server_instance_name,
    p.q.value('(./action[@name="nt_username"]/value)[1]','varchar(100)') AS nt_username,
    p.q.value('(./action[@name="server_principal_name"]/value)[1]','varchar(100)') AS serverprincipalname,
    p.q.value('(./action[@name="sql_text"]/value)[1]','Nvarchar(max)') AS sqltext
    FROM #XML_Hold
    CROSS APPLY BufferXml.nodes('/RingBufferTarget/event')p(q)
    WHERE -- Ryelugu 03/05/2015 - Perf Optimize - Filtering the Buffered XML so as not to lookup at previoulsy loaded records into stage table
    p.q.value('@timestamp[1]','datetime') >= ISNULL(@Prev_Insertion_time ,p.q.value('@timestamp[1]','datetime'))
    AND p.q.value('(./data[@name="ddl_phase"]/text)[1]','varchar(100)') ='Commit' --Ryelugu 03/06/2015 - Every Event records a begin version and a commit version into Buffer ( XML ) we need the committed version
    AND p.q.value('(./data[@name="object_type"]/text)[1]','varchar(100)') <> 'STATISTICS' --Ryelugu 03/06/2015 - May be SQL Server Internally Creates Statistics for #Temp tables , we do not want Creation of STATISTICS Statement to be logged
    AND p.q.value('(./data[@name="object_name"]/value)[1]','varchar(100)') NOT LIKE '%#%' -- Any stored proc which creates a temp table within it Extended Event does capture this creation statement SQL as well , we dont need it though
    AND p.q.value('(./action[@name="client_app_name"]/value)[1]','varchar(100)') <> 'Replication Monitor' --Ryelugu : 03/09/2015 We do not want any records being caprutred by Replication Monitor ??
    SELECT GETDATE() GETDATE_4
    -- SELECT * FROM #TEMP
    -- SELECT COUNT(*) FROM #TEMP
    -- SELECT GETDATE()
    -- RETURN
    -- PRINT '3'
    --RETURN
    INSERT INTO [dbo].[MN_DDLSchema_Changes_log]
    [UserName]
    ,[DbName]
    ,[ObjectName]
    ,[client_app_name]
    ,[ClientHostName]
    ,[ServerName]
    ,[SQL_TEXT]
    ,[EE_Time_Stamp]
    ,[Event_Name]
    SELECT
    CASE WHEN T.nt_username IS NULL OR LEN(T.nt_username) = 0 THEN t.ServerPrincipalName
    ELSE T.nt_username
    END
    ,T.DbName
    ,T.objectname
    ,T.clientappname
    ,t.ClientHostName
    ,T.server_instance_name
    ,T.sqltext
    ,T.Time_Stamp_EE
    ,T.eventname
    FROM
    #TEMP T
    /** -- RYelugu 03/06/2015 - Filters are now being applied directly while retrieving records from BUFFER or on XML
    -- Ryelugu 03/15/2015 - More filters are likely to be added on further testing
    WHERE ddl_Phase ='Commit'
    AND ObjectType <> 'STATISTICS' --Ryelugu 03/06/2015 - May be SQL Server Internally Creates Statistics for #Temp tables , we do not want Creation of STATISTICS Statement to be logged
    AND ObjectName NOT LIKE '%#%' -- Any stored proc which creates a temp table within it Extended Event does capture this creation statement SQL as well , we dont need it though
    AND T.Time_Stamp_EE >= @Prev_Insertion_time --Ryelugu 03/05/2015 - Performance Optimize
    AND NOT EXISTS ( SELECT 1 FROM [dbo].[MN_DDLSchema_Changes_log] MN
    WHERE MN.[ServerName] = T.server_instance_name -- Ryelugu Server Name needes to be added on to to xml ( Events in session )
    AND MN.[DbName] = T.DbName
    AND MN.[Event_Name] = T.EventName
    AND MN.[ObjectName]= T.ObjectName
    AND MN.[EE_Time_Stamp] = T.Time_Stamp_EE
    AND MN.[SQL_TEXT] =T.SqlText -- Ryelugu 03/05/2015 This is a comparision Metric as well , But needs to decide on
    -- Peformance Factor here , Will take advise from Lance if comparision on varchar(max) is a vital idea
    --SELECT GETDATE()
    --PRINT '4'
    --RETURN
    SELECT
    top 100
    [EE_Time_Stamp]
    ,[ServerName]
    ,[DbName]
    ,[Event_Name]
    ,[ObjectName]
    ,[UserName]
    ,[SQL_TEXT]
    ,[client_app_name]
    ,[Created_Date]
    ,[ClientHostName]
    FROM
    [dbo].[MN_DDLSchema_Changes_log]
    ORDER BY [EE_Time_Stamp] desc
    -- select getdate()
    -- ** DELETE EVENTS after logging into Physical table
    -- NEED TO Identify if this @XML can be updated into physical system table such that previously loaded events are left untoched
    -- SET @XML.modify('delete /event/class/.[@timestamp="2015-03-06T13:01:19.020Z"]')
    -- SELECT @XML
    SELECT GETDATE() GETDATE_5
    END
    GO
    Rajkumar Yelugu

    @@Version : ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Microsoft SQL Server 2012 - 11.0.5058.0 (X64)
        May 14 2014 18:34:29
        Copyright (c) Microsoft Corporation
        Developer Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: ) (Hypervisor)
    (1 row(s) affected)
    Compatibility level is set to 110 .
    One of the limitation states - XML columns with a depth of more than 128 nested nodes
    How do i verify this ? Thanks .
    Rajkumar Yelugu

  • Node id does not exist for the current application server id  on forms

    Hi,
    We have a Two node RAC setup on which Oracle e-business suite R12.0.6 is setup
    We have CP and DB on two RAC nodes and Forms and Web on two separate server(non-RAC)
    while opening oracle forms we are getting" Node id does not exist for the current application server id "
    on checking Concurrent manager logfile we founf no error, we matched Application Server id from DBC file of all the 4 nodes with application table
    Fnd_nodes... which matches ( there is no mismatch of application server id) .
    We have also tried commenting the application server id in dbc file and executed adgendbc.sh to regenarate dbc file but we are facing the same issue.
    Also tried to clear setup with fnd_conc_clone.clean setup and again executing autoconfig on db and application tier but no result yet.
    Can some one guide as to which file has this message "Node id does not exist for the current application server id "
    and what could be the reason for this.
    Help is appreciated.
    Regards,
    Milan

    I already tried the mentioned metalink note id but it did not work.What did you try exactly?
    Can u help out as from where am i getting the message "Node id does not exist for the current application server id" It is already mentioned in the doc referenced above -- From the dbc file under $FND_SECURE directory.
    i mean from which file does the above message comes.Please clean FND_NODES table as per (How to Clean Nonexistent Nodes or IP Addresses From FND_NODES [ID 260887.1]), run AutoConfig on the database tier then on the application tier and check then.
    Thanks,
    Hussein

  • Err in PO creation-Sales document item is not defined for the transaction

    Hi,
    I am getting the following error while creating PO
    "Sales document item 30000183 000100 is not defined for the transaction
    Message no. V1 198
    Diagnosis
    You have tried to carry out a business transaction for this sales and distribution document item which, for this item, is not allowed.
    This may be due to the fact that this item is not part of a make-to-order production with cost management in the sales order."
    I have used an item category which is copy of TAB and the sales order line item is attached to WBS element.
    can any one guide me what needs to be done.
    thanks

    If you want the sales order creation to initiate a PO creation automatically, check if the "Create PO Automatically" button is ticked on for the item category in Transaction flow tab in tcode VOV7
    This will solve your problem, provided your configuration for PO on the MM side is fine.
    Reward if this helps.

  • Node id does not exist for the current application server id

    Hi gurus,
    when i start application services (adstrtal.sh) i encounter the following error: Node id does not exist for the current application server id.
    i executed the command select server_id from fnd_nodes and had the following output
    SERVER_ID
    991D192B1CFC10F2E043C0A8645210F226563381082071204628231314463687
    i also checked the .dbc files under $FND_TOP/secure, there were two HOSTNAME_SID.dbc files (IPPDDVP_VIS.dbc and ippddvp_vis.dbc) with different APPL_SERVER_ID
    ippddvp_vis.dbc == 9827D18C8C2E8816E043C0A86452881611641850934523625093287478849136
    IPPDDVP_VIS.dbc == 991D192B1CFC10F2E043C0A8645210F226563381082071204628231314463687
    Please help me out.
    thanks.

    i cleaned the FND_NODES TABLE as per metalink note 260887.1. i run autoconfig on db/apps tier. Now when i start the application, i encounter the following error:
    applmgr >./adstrtal.sh apps/apps
    You are running adstrtal.sh version 115.19
    Executing service control script:
    /dvp2/product/viscomn/admin/scripts/VIS_ippddvp/adapcctl.sh start
    script returned:
    adapcctl.sh version 115.55
    Cannot reconnect to gateway
    Cause: Application Object Library is unable to reconnect to your gateway ORACLE account after you unsuccessfully attempted to sign-on.
    Action: Check that your gateway environment variable is set correctly.
    Apache Web Server Listener is not running.
    Starting Apache Web Server Listener (dedicated HTTP) ...
    Cannot reconnect to gateway
    Cause: Application Object Library is unable to reconnect to your gateway ORACLE account after you unsuccessfully attempted to sign-on.
    Action: Check that your gateway environment variable is set correctly.
    Cannot reconnect to gateway
    Cause: Application Object Library is unable to reconnect to your gateway ORACLE account after you unsuccessfully attempted to sign-on.
    Action: Check that your gateway environment variable is set correctly.
    Apache Web Server Listener (PLSQL) is not running.
    Starting Apache Web Server Listener (dedicated PLSQL) ...
    Cannot reconnect to gateway
    Cause: Application Object Library is unable to reconnect to your gateway ORACLE account after you unsuccessfully attempted to sign-on.
    Action: Check that your gateway environment variable is set correctly.
    adapcctl.sh: exiting with status 0
    .end std out.
    .end err out.
    please what should i do next to resolve this problem.
    thanks

  • Sequence No. not defined for the location [Message 80072-11]

    Dear Friends,
         I have setup sequence for A/R Invoice, Incoming / Outgoing Payment and Excise Register, and created a few document successfully (with sequence number). But when I go to u201CTax Payment wizardu201D, in the 2nd stage on selection of any location give the following error and even the u201CSeq. Nameu201D does not show any sequence name.
    u201CSequence No. not defined for the location [Message 80072-11]u201D
         Can any one please tell me the reason behind for SAP B1 2007B SP0 PL7?

    Hi Narottam,
    Check this link
    Sequence Series
    Regards
    Jambulingam.P

  • Error : This balancing segment value is not valid for the current ledger

    Dear friend,
    Error : This balancing segment value is not valid for the current ledger.
    when I click Account Assignment in Budget Organization.
    I used R12
    Thank you
    Best regards,
    Hareyuya, Junior.

    Hi,
    Please see these documents.
    Note: 756765.1 - Cannot Use Parent Balancing Segment Values In Massbudget or MassAllocation Formula
    Note: 790339.1 - Cannot Select Parent Values In Mass Budgets
    Note: 437588.1 - Rel 12: Balancing Segment Value Is Not Valid For Current Ledger
    Regards,
    Hussein

  • ORA-13605: The specified task or object Get does not exist for the current

    Dear all,
    11.1.0.6 on solaris 10
    SQL>
    SQL> DECLARE
    2 taskname varchar2(100);
    3 taskdesc varchar2(128);
    4 task_id number;
    5 object_id number;
    6 timeLimit varchar2(25);
    7 numDaysToRetain varchar2(25);
    8 objectName varchar2(100);
    9 objectType varchar2(100);
    10 BEGIN
    11 taskname := 'SEGMENTADV_8980096';
    12 taskdesc :='Get';
    13 numDaysToRetain :='30';
    14 dbms_advisor.create_task('Segment Advisor','',taskname,taskdesc,NULL);
    15 dbms_advisor.create_object(taskname, 'TABLE', 'TRPT', 'CRM_CHECK', ' ', NULL, object_id);
    16 dbms_advisor.set_task_parameter(taskname, 'RECOMMEND_ALL', 'TRUE');
    17 dbms_advisor.set_task_parameter(taskname, 'DAYS_TO_EXPIRE', numDaysToRetain);
    18 END;
    19 /
    DECLARE
    ERROR at line 1:
    ORA-13605: The specified task or object Get does not exist for the current
    user.
    ORA-06512: at "SYS.PRVT_ADVISOR", line 4766
    ORA-06512: at "SYS.PRVT_ADVISOR", line 4637
    ORA-06512: at "SYS.DBMS_ADVISOR", line 56
    ORA-06512: at line 14
    Am running the above as sys user ..
    Any idea ?
    Kai

    Hi,
    This link may help:
    ORA-13605: The specified task or object ADDM:<task number> does not exist.
    Thanks and Regards,
    Rajesh K.

  • Withholding Tax not picking for the current Fiscal year 2014

    Dear Gurus,
    Withholding tax assigned to the vendor is getting picked up for the fiscal year 2013 but when the same vendor is invoiced for year 2014 with the same WHT tax code we could see that there is no tax line getting generated against the Vendor. All the configurations related to WHT are verified. As far as i Know we will not maintain any end date for WHT tax code. request yout to advance.
    Thanks in advance.
    Thanks & Regards
    Srikanth

    hi,
    Please check below mentioned Path - and check date from & to given period
    SPRO- Financial Accounting (New) - Financial Accounting Global Settings (New) -Withholding Tax -Extended Withholding Tax - Company Code -Assign Withholding Tax Types to Company Codes
    select WHT type against Company code -
    W/tax obligated frm 01.04.2010        Oblig.to w/tax until 31.12.2999
    and check vendor master data -
    Thanking you
    Regards
    Mahesh

  • Select options for the pnp logical database.

    Hi ,
    We get a default selection screen when we use logical database in HR ABAP.
    But we always get the selection elements as "PARAMETERS" and not as "SELECT-OPTIONS".
    How can we change it to select options ....
    I tried all the options in HR- Report categories but it is not working..
    Kindly Help..
    Regards,
    Ashwin.

    >
    ASHWIN JOHARI wrote:
    > Hi ,
    > But we always get the selection elements as "PARAMETERS" and not as "SELECT-OPTIONS".
    > Ashwin.
    Which fields? Almost all of them are defined SELECT-OPTIONS.. you dont' see the range option directly.. click on he options icon & you can enter the ranges.
    ~Suresh

  • Error: "posting period is not defined for fiscal year variant" in  FBICS3

    Hi,
    I got error  "posting period is not defined for fiscal year variant" when I execute t code FBICS3.
    I checked in OB29 &  t code FBIC010 & noted that the fiscal year variant had ben maintained.
    Please advice.

    HI,
    It was noted that the mentioned t code had been maintain but below mentioned error appear:
    Posting period  is not defined for fiscal year variant
    Message no. GU506
    Diagnosis
    You have tried to determine a posting date in fiscal year variant for period , fiscal year , but this period is not defined for the variant.
    Procedure
    You maintain fiscal year variants in table T009.
    It was referring to t code OB29. I have checked the detail, in OB29 also details maintain.
    Please advice why the error still prompt.

  • Unit of measure not defined for language ZH

    Hi,
    We were creating a PO when we encountered the error which states "Unit of measure not defined for language ZH".
    We executed CUNI to translate the units of measurement to our target language. System prompted "This object was segmented. Only new lines evaluated." What does this mean?
    We tried creating the PO again, however we encountered the same error that the unit of measure was not defined for the language.
    Please recommend action/s that we should take. Thank you.

    Take a look at the below threads. Your problem has the solution.
    Re: Unit of measure XX not defined for language DE
    Re: Unit of Measure Error in Purchase order

  • Sales document item is not defined for this transaction in Pur.Order

    hi,
    At the time of convertion of pr to po one error message received.
    Sales document item 46 000010 is not defined for the transaction
    Message no. V1198
    Diagnosis
    You have tried to carry out a business transaction for this sales and distribution document item which, for this item, is not allowed.
    This may be due to the fact that this item is not part of a make-to-order production with cost management in the sales order.
    Procedure
    Please check your entries.
      this is MAKE TO ORDER SCENARIO  THIS ERROR IS FOR RAW MATERIAL  CONVERTION  AGAINST SALES ORDER.

    Hi,
    Check in material master MRP3 view there is field called strategy group where you have option to define the planning strategy like make to order/make to stock & like.
    Regards
    Ravi Shankar.

Maybe you are looking for

  • Initial Compression of a Cube - Suggesions/Experience needed

    <b>Q: What experience have you have compressing an InfoCube with a large dataset on MSSQL?</b> I am looking into compressing an InfoCube for the first time. I ran it via PC in Dev, and I ended up having to kill the process b/c my transaction log fill

  • Changes in Approved PO

    Hi Guys, I have approved PO. I want make some changes in the PO, Is it possible?? Regards, Jackie

  • Trailing space in char field

    Hello there, I am a BW developer and I am currently having an issue with trailing spaces in an ABAP routine. This is the situation (example... In real life I use larger char fields): - From a source I get a text line that is let's say max. 60 charact

  • Collapse Spry accordion panels

    Is it possible to collapse the spry accordion panels when working in design view?  I want to put more content on the page below the accordion, but it is obstructing my view of the rest of the page.

  • Transfer data from iPod to PC

    I have an iPod Classic that I would like to get the library from, onto my Ipod Touch 3. Does anyone know if and how this can be done?