Quantcast
Channel: SCN : All Content - ABAP for SAP HANA
Viewing all 831 articles
Browse latest View live

FPM application of CDS View with Input Parameters

$
0
0

Hi,

 

is it possible to create an FPM application via the wizard of a CDS View with Input Parameters?

 

Regards,

Bram


Error Message - Identifier must be declared

$
0
0

Hello all,

 

We are trying to create an AMDP joining a few tables, applying some where clauses and returning a list of records. In this we are trying to dynamically pass the LIMIT and OFFSET parameters to the AMDP. Here we declare the values to be passed in the signature of the AMDP as importing parameters. But HANA Studio keeps throwing an error message saying the identifiers must be declared.

 

Here is our code:

 

The method definition

CLASS-METHODS execute

IMPORTING VALUE(iv_top) TYPE int4

                     VALUE(iv_skip) TYPE int4.

EXPORTING VALUE(et_result) <relevant type>

 

The method implementation

METHOD execute BY DATABASE PROCEDURE FOR HDB LANGUAGE SQLSCRIPT

OPTIONS READ-ONLY  USING <some tables>.

 

et_result = SELECT <required columns> FROM <tables, joins and where conditions>

                  LIMIT :iv_top OFFSET :iv_skip;

 

ENDMETHOD.

 

The error message displayed is this:

error.JPG

Would appreciate some pointers.

 

Thanks!

ATC Online Check Variants Missing

$
0
0

Hello Experts,

 

We are not able to locate ATC Online Check Variants in our system. System is only showing default variant.

ATC check.JPG

 

 

We are at following BASIS level, do we need to install some note to get those variants?

 

SAP_BASIS7400010SAPKB74010SAP Basis Component
SAP_ABA7400010SAPKA74010Cross-Application Component

 

 

Any suggestions please.

 

Thanks,

Kapil.

commit work taking more time in hana system

$
0
0

Hello All,

 

One of my client move to Hana system from ecc. but in some objects we found performance degradation . As we analyse its happen due to database commits. we are using some finance BAPI and using Bapi transactions commits. In this case data base commits taking 4 times more then non HANA systems .

So please suggest me , what we can do in this. because its become a challenge to our team.

Select From Calculation View With PLACEHOLDER.

$
0
0

Dear All,

We are trying to select data from a calculation view with placeholder.

We tried the following:

1. Create a class that performs the selection.

2. We are trying to use the input parameter in the following way:

 

1.jpg

 

But we get a syntax error. Is it possible?

 

Thanks,

Moshik

SAP Object DDLS cannot be assigned to package

$
0
0

I've just got my hands on a HANA system for the first time this morning. I'm trying to create a CDS view but I keep getting the following message:

 

"SAP object DDLS .... cannot be assigned to package ....."

 

It doesn't give me any further information so I have no clue what I'm doing wrong. Any ideas?

 

thanks.

ABAP for SAP HANA Reference Scenario - Tutorials

$
0
0

getting_started_bw.pngTutorials.pngSupport_Packages_bw.pngVideos_bw.png


 

 

Important Note:

The recommended techniques to leverage the power of SAP HANA in ABAP-based applications are ALV with Integrated Data Access, Open SQL, ABAP Core Data Services (CDS) views and ABAP Managed Database Procedures (AMDP) - Top-Down approach. The proxy-based approach using External View and Database Procedure Proxy objects should be avoided and only used for special cases - Bottom-Up approach.

Overview of the Bottom-Up & Top-Down approaches

 

 

End-to-End Development Guides

 

Tutorials & Overviews (Single Features)

Top-Down Approach (Recommended approach)


Bottom-Up Approach

 

How-To...

...get the development tools & ABAP for HANA 7.4 trial

... use analytics for transactional data

 


Back to the top

ABAP for SAP HANA Reference Scenario - Video Tutorials

$
0
0

getting_started_bw.pngTutorials_bw.pngSupport_Packages_bw.pngVideos_co.png


This page provides a collection of video tutorials about ABAP for SAP HANA developements based on SAP NetWeaver AS ABAP 7.4 (and beyond). You can find more videos in the different playlists of the ABAP channel on Youtube.

 

Latest News : 

Feb 2, 2015: New videos available for CDS, AMDP and ABAP Channels.

 

 

ABAP Core Data Services (CDS)

Here are videos about the advanced view building based on ABAP CDS.

 

Introduction into advanced View Building - ABAP 7.4 SP5

Building CDS views in ABAP on SAP HANA - ABAP 7.4 SP5

CDS views with Input Parameters - ABAP 7.4 SP8 (New)

Modification-free Enhancement of CDS views - ABAP 7.4 SP8(New)

 

Back to the top

 

ABAP Managed Database Procedures (AMDP)

The AMDP framework allows to create and manage database procedures from the ABAP environement. AMDPs are currently only supported in the SQLScript language for SAP HANA database.

 

Introduction into AMDP
- ABAP 7.4 SP05

Implementation of AMDP on HANA - ABAP 7.4 SP05

Debugging of AMDP on HANA
- ABAP 7.4 SP05

Modification-free Enhancement of AMDP using BAdIs - ABAP 7.4 SP08 (New)

Back to the top

 

Other Capabilities

SAP List Viewer with Integrated Data Access - ABAP 7.4 SP05

Search Help with Type-Ahead and Fuzzy Search ABAP 7.4 SP05

 

 

Performance Tooling

Find optimizable Custom Code with the SQL Performance Tuning Worklist - ABAP 7.4 SP05

 

 

ABAP Channels (New)

All three videos below are based on AS ABAP 7.4 SP05.

 

Working with ABAP Push Channels (APC)

Working with ABAP Messaging Channels (AMC)

Implementing Collaboration Scenarios using APC & AMC

Back to the top

 

Proxy-based Consumption of HANA artifacts

This approach, aka Bottom-Up approach, should only be used in special use cases. The Top-Down approach based on ABAP Core Data Services or ABAP Managed  Database Procedures should be used instead. Read more...

All three videos below are based on AS ABAP 7.4 SP2.

 

Using native HANA procedures in ABAP (Related SCN document)

Using native HANA Views in ABAP

(Related SCN document)

Using the HANA Transport Container

(Related SCN document)

 


Back to the top


Open SQL access to DAYDATE field

$
0
0

Hi !

 

I have some table in HANA with DAYDATE field

 

create table zbseg2 (f1 daydate,f2 integer);

insert into zbseg2 values ('2012-03-01', 100);

insert into zbseg2 values ('2012-03-02', 200);

 

I have secondary connection from ABAP application server to HANA named hb1_test. In application server table ZBSEG2 described in data dictionary like this

Field nameType
F1DATS
F2INT4

 

The next code works correct:

REPORT zhana_zbseg2_conn.

DATA l_str LIKE zbseg2.

SELECT SINGLE * INTO CORRESPONDING FIELDS OF l_str FROM zbseg2 CONNECTION hb1_test.

MESSAGE s000(00).

I receive first record from HANA table with correct field F1.

 

But next code has dump as a result

REPORT zhana_zbseg2_conn.

DATA l_str LIKE zbseg2 OCCURS 0.

SELECT * INTO CORRESPONDING FIELDS OF TABLE l_str FROM zbseg2 CONNECTION hb1_test.

MESSAGE s000(00).


Dump is "Database error text: "SQL message: DB type (14) of selected column (0) and ABAP type TYPDATE (1) of target field (0) are not compatible"


Is there a workaround for this case? May be I need to use another type in data dictionary description? I try different types but no result.

How to transport ABAP for SAP HANA applications with HTC

$
0
0

Latest News

June 15, 2015:  Read about SAP HANA Transport for ABAP (HTA) which is the successor of HTC.

 

This document gives you a compact overview of the SAP HANA Transport Container (HTC) and demonstrates how to use it. You can also access a related video here.

What is the SAP HANA Transport Container all about?

With SAP NetWeaver 7.4 numerous SAP HANA related optimizations are provided which enable developers to easily leverage of the power of SAP HANA in ABAP-based applications. ABAP for SAP HANA applications - meaning applications containing ABAP and HANA development entities – can now be easily developed, updated, corrected and enhanced (Access to diverse ABAP for SAP HANA tutorials).
Well, this means that - as usually done for reasons of quality assurance – the different ABAP and HANA development entities have to be transported through the system landscape; typically from the development system to the consolidation/quality system, and then to the productive system.
Here comes the SAP HANA Transport Container (HTC) in action!
HTC is an ABAP development object which is required to integrate HANA repository content into the standard Change and Transport System (CTS). As of AS ABAP 7.4, HTC is seamlessly integrated into the Transport Organizer of AS ABAP and so integrating the HANA repository content into CTS. It ensures an efficient delivery process of applications built out of ABAP and HANA content by means of the proven ABAP transport mechanism.
In short, ABAP for SAP HANA applications are transported as normal as any classic ABAP-based application through the system landscape.

Let's see how it works!

Prerequisites

  • SAP HANA Studio is installed and running
  • ABAP Development Tools for SAP NetWeaver is installed and running
  • AS ABAP 7.4 runs on SAP HANA database
  • The connection to the ABAP backend is configured in the ABAP perspective
  • The connection to the SAP HANA database is configured in the Modeler perspective

Assumption

A well-structured package hierarchy (main packages and sub-packages) has been defined for your project. The SAP HANA entities will be / are contained in those Packages.
Info 1: Package system-local is meant for local objects which are not intended to be transported. It means that all its sub-packages are also by definition not transportable and so cannot be attached to a delivery unit. It means that SAP HANA entities contained in a Package below system-local cannot be transported between SAP systems.

Procedure Overview

The picture below shows the main steps involved in the whole process. The development of a demo application – ABAP and HANA content - is not part of this demonstration in order to plainly focus on HTC. (Access diverse ABAP for SAP HANA tutorials here).
HTC_ProcedureOverview.png

Step-by-Step Procedure

Step 1: Create a Delivery Unit (DU) and Assign the relevant packages

Info 2: SAP HANA Delivery Units are application-specific and are used to group and transport repository content. Find more information about DUs in the Help under menu path Help > Help contents.
  1. Start the SAP HANA Studio and go to the Modeler perspective by selecting menu path Window > Open Perspective > Others … and choosing Modeler from the opened dialog.
    Step_1.1.png
  2. Open the Quick Launch view of the Modeler perspective - if not already opened - by selecting menu path Help > Quick Launch
  3. Select the relevant system - if not yet selected - by clicking on the Select System… button located in the upper area of the view.
    Note that the system connection must have been previously added to the Modeler perspective.
    Step_1.3.png
  4. Now, click on the link Delivery Units… under the Setup section area
    Click on the Create… button in the upper right area of the Delivery Units dialog.
    Maintain the required information in the New Delivery Unit dialog and press on OK.
    Detailed information about the different DU properties is available in the Help. You can for example open the integrated Help window by clicking on the Help icon located bottom left on the dialog.
    Step_1.4.png
  5. Assign the relevant package(s) to the DU.
    In case the packages to be assigned to the DU already exist and are not yet assigned to another DU, then just select the relevant DU and click on the Add button in the lower right area.
    You can now select the relevant packages (zdemo in my case) and confirm the action.
    If the sub-packages of the selected node have to be selected too, then make sure the appropriate checkbox is checked.
    Step_1.5.png

    Other ways to assign a package to a DU:
    • (a) The package is not yet created: In this case you just have to select the appropriate value in the Delivery Unit dropdown field in the New Package dialog.
      Step_1.5a.png
    • (b) The package already exists and is already assigned to another DU: The easiest way is to maintain the new DU name is to select the relevant package and change the DU value in its Properties pane.
    • (c) The package exists, but is not yet assigned to a DU (like in the present example): The previous handling is also applicable here
      Step_1.5b.png

Step 2: Create a HANA Transport Container (HTC)

  1. Now switch to the ABAP perspective by selecting menu path Window > Open Perspective > Others..., then ABAP and confirming the opened dialog.
  2. Select the package to which the DU belongs to, open its context menu (by right-clicking on it) and select New > Other ABAP Repository Objects and then select entry Others > HANA Transport Container (you can filter for ‘transport’) and press on Next.
    The New HANATransport Container dialog is now opened.
  3. Enter the name of the DU in the field HANA Delivery Unit Name and press on Next.
    The name of the delivery unit will automatically be assigned to the new HTC object (e.g. zepm_oia_demo in my case).
    Info 3: There is a one-to-one relationship between HANA Transport Container objects and Delivery Units.
    Tip 1: Whenever available, you can use the Content Assist functionality of a given field by setting the cursor in it and pressing Ctrl+Space
  4. Now select the appropriate Transport Request and press on Finish.
    Step_2.4.png
    The new HTC has now been successfully created and you can have a look at its content (so-called Snapshot) on the Content tab.
  5. Activate the new object
    Step_2.5.png
    Info 4: HANA Transport Container objects are not updated automatically. The update of the  snapshot (content) of a given HTC must be triggered manulay by developers anytime the content of the underlying delivery unit has been modified.
    This is done by executing the function Take a Snapshot and Save on the Overview pane of the relevant HANA Tranport Ccontainer object.
    It is strongly recommended to execute this function before releasing a transport request.

Step 3: Release the Transport Request in AS ABAP

Assumption: you are ready with your development tasks.
  1. Open a SAPGUI window for the relevant project (Ctrl+6)
  2. Go to Transport Organizer (SE09 or SE01) and display the transport request  and its tasks.
  3. Check the request consistency and release the tasks and then the transport request.
  4. Check the Export result in the Logs.
    Step_3.3.png
    You can later also check whether the import in the follow-on SAP HANA system was successful, by checking the transport logs under the step 'Execution of programs after import (XPRA)'.

Step 4: Activate the HANA Repository Content in Target Systems

 

Info 5: About the automatic activation of imported HANA content
The automatic activation of imported HANA content is controlled in the AS ABAP via the entries in the table SNHI_DUP_PREWORK, which contains two fields SOFTWARE_COMPONENT and PREWORK_DONE. This table is used to switch on/off the automatic activation. It means a DU – its content more precisely – is automatically activated after its import, if the field PREWORK_DONE is set (‘X’) for the software component to which the corresponding HTC belongs to.

A maintenance view is available for table SNHI_DUP_PREWORK in transaction SM30.

 

E.g. Create an entry with 'HOME' as software component and 'X' as prework done if the HTC belongs to software component HOME and the DU should be activated in the SAP HANA repository during import.

 

The prework entries are required in all relevant systems in the landscape. Table SNHI_DUP_PREWORK is a customizing table and its customizing data can be maintained in each system manualy or transported through the system landscape using Customizing Request.

 

The PREWORK_DONE field should only be set in a given ABAP system if the schema mapping has been configured in the underlying SAP HANA database.
Tip 2: You can you find the software component for which you have to maintain an entry in the table SNHI_DUP_PREWORK for the automatic activation by clicking on the NHDU object in the transport request. From there you can get to the package and then find out the software component there. In most cases, customers shall maintain an enttry for the software component HOME. For partners or large customers, it may also be for the corresponding namespace prefix.
Info 6: About the manual activation of HANA objects
If the automatic activation is not switched on, then your database user must be granted with special privileges in order to perform the activation manually and even to be able to see the inactive objects on SAP HANA. For example the user <SID>ADM can always perform these tasks as it is the one writing the inactive objects in the database.

 

You need to trigger the activation manually if the PREWORK_DONE field is not set for the software component your HTC belongs to in your target system. How to proceed in this case is described below.
  1. Go to the Quick Launch view of the f the Modeler perspective and select the relevant target system. (Refer to Step1->1&2)
    The relevant target system connection must have previously been added to the Modeler perspective.
  2. Click on link Activate... located in the Content area of the view.
    A dialog will open showing the inactive objects available in the system.
  3. Now select the relevant repository objects and activate them.
    Step_4.png
Don't be irritated not to see the objects that were used in steps 1 to 3. The process is the same as shown in the screenshot above.

Additional Step: Update HANA Content already transported into Target systems

Once a HANA Transport Container has been transported into target systems, it is usual that the content of the underlying Delivery Unit gets modified in the source system: New objects (e.g. packages and HANA entities) are added or existing ones are modified.
The main question here is: How to get these updates from the source system into the target systems?
In such a scenario, you do not have to create a new HANA Transport Container object - or delete and re-create one. You simply have to update the existing one and then transport it.
How do you do this?
Do as followed:
  1. Go to the ABAP perspective and open the relevant ABAP project
  2. Open the HANA Transport Container related to the modified Delivery Unit
    PS: Do not forget: Both have the same name.
  3. Execute the functionTake a Snapshot and Save (press on the link) on the Overview pane (Refere to the screenshots in Step 2.5).  The HTC content (aka Snapshot) will be updated.
  4. Assign a transport request and confirm
  5. Activate the updated object

The updated HTC is now ready to be transported. You can check the update on the Content pane.

 

As already mentioned in Step 2.5, do not forget that a HANA Trasnport Container is not updated automatically. In order to avoid inconsistencies in the target systems, it is strongly recommended to take a Snapshot before releasing the transport request.

Summary

This was a short introduction on the HANA Transporter Container (HTC) showing how easy it is to transport applications built out of ABAP and HANA content - so-called ABAP for SAP HANA applications -  between SAP systems!

Related Content

 

Featured Content for ABAP for SAP HANA

$
0
0

Handling of SELECT-OPTIONS parameters within AMDP

One difficulty faced by developers when working with AMDP methods is the handling of SELECT-OPTIONS parameters (selection tables or range tables). This blog written by Carine blog exactly tackles that topic.

 

DEV201@SAP TechEd && d-code 2014 Las Vegas and Berlin

This blog series compiles the demo-rich session DEV201 (Overview of ABAP 7.4 Development for SAP HANA) that was held at SAP TechEd && d-code 2014 in Las Vegas and Berlin. Start with Part 1.

 

openSAP course "ABAP Development for SAP HANA" now in self-paced mode

Enroll yourself to the self-paced openSAP course ABAP Development for SAP HANA and learn what it means to develop ABAP-based applications optimized for SAP HANA. Read this blog by Jasmin. November 27, 2014

 

Want to try ABAP for SAP HANA yourself ? Check out the brand new E2E Development Guide

This document guides you through an end-to-end development example for SAP NetWeaver 7.4 SP5 on SAP HANA. You'll learn to leverage the power of SAP HANA via the code-pushdown capabilities provided by AS ABAP 7.4. Have a look in it here. April 24, 2014

 

See more recently featured content.

Recently Featured Content in ABAP for SAP HANA

$
0
0

ABAP@SAP TechEd && d-code 2014

This blog provides a selection of ABAP-related sessions at the upcoming SAP TechEd && d-code 2014 in Las Vegas and Berlin. August 28, 2014


Upcoming openSAP course: ABAP Development for SAP HANA

Enroll yourself now to the openSAP course ABAP Development for SAP HANA starting on September 25, 2014! August 11, 2014

 

What's new in SAP NetWeaver AS ABAP 7.4 SP5?

The newly released AS ABAP 7.4 SP5 brings the interplay between ABAP and SAP HANA to another level and provides enhanced capabilities in regards to the ABAP for HANA development following the “code-to-data” paradigm. Find more information about the new ABAP for HANA features in Jens Weiler's blog here. January 23 2014


Cookbook SAP Business Suite on SAP HANA

Recently we have published a new version of the SAP Business Suite powered by SAP HANA Cookbook.You find it here. It includes a lot of interesting information for developers. You find interesting information related to code migration and optimization there. Moreover you find also nice overview videos. January 13, 2014

 

SQL Monitor Unleashed

Have you heard about the SQL Monitor already? It can be used to detect custom code which can be optimized (in the context of the migration to SAP HANA, but also independent of that). If you like to learn more, read Johannes Marbach's blog series. You find the first blog here. November 18, 2013

 

SAP ICC: Readiness Assessment for ABAP Add-Ons

As software solution provider you can get help from the SAP Integration and Certification Center (SAP ICC) for making your add-on ready for SAP HANA. If you are interested, you can find more details here. November 18, 2013

 

Now Available! ABAP 7.4 on HANA trial systems!

Finally our ABAP 7.4 on HANA trial systems are available. You can get your individual appliance through the SAP Store. Find more details here.July 30, 2013

 

Now Available! SAP NetWeaver AS ABAP 7.4

SAP NetWeaver AS ABAP 7.4 provides non-disruptive innovations and enhancements for the proven and reliable ABAP technology and is optimized for SAP HANA, Cloud, and Mobile. Learn about the most significant values and capabilities of the SAP NetWeaver AS ABAP 7.4.

 

Learn more about NetWeaver 7.4 in blogs by Bjoern Goerke and Karl Kessler:

SAP NetWeaver 7.4 Made Generally Available (GA)

New landing page published for SAP NetWeaver 7.4

 

Explore the ABAP Development on SAP HANA step by step using ABAP for SAP HANA Reference Scenario Open Items Analytics which is an integral part of the SAP NetWeaver AS ABAP 7.4 May 13, 2013

Concat function or equivalent for CDS view?

$
0
0

Trying to create a CDS view and looking to combine multiple character fields (e.g. first_name + last_name) and am wondering if this is possible? Am on CRM NW 7.4 SP5 on HANA.

 

Using the arithmetic function gives me the following.

 

Data type CHAR is currently not supported in an arithmetic expression

 

Looking at the official documentation here, it doesn't appear to be included?

 

ABAP Keyword Documentation

 

I can always create a AMDP or even a HANA native view, just wondering if anyone has come across the same issue and found a solution within CDS view?

 

Thanks in advance,
Sean.

Why the ATC message "DB Operation SELECT for ... found" is a problem ?

$
0
0

I´m analysing the ATC report and have a doubt about the Check Message: "DB Operation SELECT for ... found."

 

The code is:

 

" SELECT <columnA> <columnB> FROM <table>

            INTO CORRESPONDING FIELDS OF TABLE <ti_table>

            FOR ALL ENTRIES IN <another_ti_table>

            WHERE <where clause>."

           

Whats the problem with code above? Why ATC marks it as a problem?

 

Thanks!       

ABAP INFOSETS IN SAP HANA

$
0
0

Hi Friends,

 

In one of my project, need to create views based on Infosets created in ABAP after migration from ECC to HANA. Let me know the possibility and if so, how make it happening this scenario?

 

 

 

 

Thanks,

Prasad GVK.


HANA Fuzzy Search in ABAP

$
0
0

Hi you all,

 

we are starting with text searches in HANA, and 'in' HANA it all works fine.

Is it correct that this option is not yet available in Open SQL, neither directly in ABAP, nor in CDS-views? I don't find any direct clues in the documentation.

So, to be able to use it, we need to use native SQL (e.g. with ADBC)?

 

Thanks for any reaction.

Regards.

Kris

cl_shdb_seltab not available in system

$
0
0

Hello,

 

I am trying to create select statement using class 'cl_shdb_seltab' but it is not available in the system.

Please help in finding reason.

 

Thanks,

Manish

How to do native development on a HANA system

$
0
0

Hello,

 

I have access to HANA system and I am able to connect to it in eclipse and develop ABAP related objects. Now, I want to do native development in eclipse on this HANA system but I am not sure from where should I start? What are the settings which I should ask my basis people to do or which components we need to have to make this possible.

 

Please help me in getting started.

 

Thanks,

Manish

Inner Join(Giving duplicate entries) - SAP HANA AMDP

$
0
0

The below query is giving duplicate entry when INNER JOIN used with CEPCT  , where there exist only 1 entry against profit-center.

 

 

et_actual =

SELECT r.prctr AS prctr, r.racct AS racct, r.actual AS actual, r.plan AS plan, s.ltext AS ltext, r.segment AS segment

                    FROM (

                        SELECT prctr AS prctr, racct AS racct,

                                SUM( ( CASE when iv_rpamxl <= 1 AND iv_rpmaxh >= 1 THEN hsl01 ELSE 0 end ) +

                                     ( CASE when iv_rpamxl <= 2 AND iv_rpmaxh >= 2 THEN hsl02 ELSE 0 end ) +

                                     ( CASE when iv_rpamxl <= 3 AND iv_rpmaxh >= 3 THEN hsl03 ELSE 0 end ) +

                                     ( CASE when iv_rpamxl <= 4 AND iv_rpmaxh >= 4 THEN hsl04 ELSE 0 end ) +

                                     ( CASE when iv_rpamxl <= 5 AND iv_rpmaxh >= 5 THEN hsl05 ELSE 0 end ) +

                                     ( CASE when iv_rpamxl <= 6 AND iv_rpmaxh >= 6 THEN hsl06 ELSE 0 end ) +

                                     ( CASE when iv_rpamxl <= 7 AND iv_rpmaxh >= 7 THEN hsl07 ELSE 0 end ) +

                                     ( CASE when iv_rpamxl <= 8 AND iv_rpmaxh >= 8 THEN hsl08 ELSE 0 end ) +

                                     ( CASE when iv_rpamxl <= 9 AND iv_rpmaxh >= 9 THEN hsl09 ELSE 0 end ) +

                                     ( CASE when iv_rpamxl <= 10 AND iv_rpmaxh >= 10 THEN hsl10 ELSE 0 end ) +

                                     ( CASE when iv_rpamxl <= 11 AND iv_rpmaxh >= 11 THEN hsl11 ELSE 0 end ) +

                                     ( CASE when iv_rpamxl <= 12 AND iv_rpmaxh >= 12 THEN hsl12 ELSE 0 end ) +

                                     ( CASE when iv_rpamxl <= 13 AND iv_rpmaxh >= 13 THEN hsl13 ELSE 0 end ) +

                                     ( CASE when iv_rpamxl <= 14 AND iv_rpmaxh >= 14 THEN hsl14 ELSE 0 end ) +

                                     ( CASE when iv_rpamxl <= 15 AND iv_rpmaxh >= 15 THEN hsl15 ELSE 0 end ) +

                                     ( CASE when iv_rpamxl <= 16 AND iv_rpmaxh >= 16 THEN hsl16 ELSE 0 end ) ) AS actual,

                                  0 AS plan,

                                  segment AS segment

                            FROM faglflext

                            WHERE ryear = iv_ryear

                              AND rldnr = iv_rldnr

                              AND rrcty = '0'

                              AND rvers = '001'

                              AND rbukrs = 'IN10'

                              AND racct = '0052550001'

                              AND prctr = 'IN1010106F'

                              AND kokrs = iv_kokrs

                            GROUP BY prctr, racct, segment

                         ) AS r

                         INNER JOIN cepct AS s

                    ON r.prctr = s.prctr

                    WHERE s.spras = iv_langu

                      AND s.kokrs = iv_kokrs

                    ORDER BY r.prctr, r.racct DESC ;

*** ERROR => Connect to database failed, rc=1, rcSQL=10 SQLERRTEXT : invalid username or password "

$
0
0

Hello,

 

We have SAP SLT system on SAP HANA DB(1.0 SPS 9 revision 93) . It is distributed system.

 

Yesterday while taking restart of system we are unable to connect Db with R3trans -d  RC12.

trans.log is giving error "*** ERROR => Connect to database failed, rc=1, rcSQL=10. SQLERRTEXT : invalid username or password "

 

Kindly help to solve as I am very new to HANA DB.

 

 

trans.log

 

4 ETW000 R3trans version 6.25 (release 742 - 11.02.15 - 14:06:42).

 

4 ETW000 unicode enabled version

 

4 ETW000 ===============================================

 

4 ETW000

 

4 ETW000 date&time   : 03.04.2015 - 05:35:31

 

4 ETW000 control file: <no ctrlfile>

 

4 ETW000 R3trans was called as follows: R3trans -d

 

4 ETW000  trace at level 2 opened for a given file pointer

 

4 ETW000  [     dev trc,00000]  Fri Apr  3 05:35:31 2015                                                 124  0.000124

 

4 ETW000  [     dev trc,00000]  db_con_init called                                                        17  0.000141

 

4 ETW000  [     dev trc,00000]  set_use_ext_con_info(): usage of ssfs switched off (rsdb/ssfs_connect=0)

 

4 ETW000                                                                                                  51  0.000192

 

4 ETW000  [     dev trc,00000]  determine_block_commit: no con_hdl found as blocked for con_name = R/3

 

4 ETW000                                                                                                  19  0.000211

 

4 ETW000  [     dev trc,00000]  create_con (con_name=R/3)                                                 16  0.000227

 

4 ETW000  [     dev trc,00000]  Loading DB library '/usr/sap/SLT/SYS/exe/run/dbhdbslib.so' ...            33  0.000260

 

4 ETW000  [     dev trc,00000]  DlLoadLib() success: dlopen("/usr/sap/SLT/SYS/exe/run/dbhdbslib.so"), hdl 0, count 1, addr 2065de0

 

4 ETW000                                                                                                6278  0.006538

 

4 ETW000  [     dev trc,00000]  Library '/usr/sap/SLT/SYS/exe/run/dbhdbslib.so' loaded                    14  0.006552

 

4 ETW000  [     dev trc,00000]  function DbSlExpFuns loaded from library /usr/sap/SLT/SYS/exe/run/dbhdbslib.so

 

4 ETW000                                                                                                  18  0.006570

 

4 ETW000  [     dev trc,00000]  Version of '/usr/sap/SLT/SYS/exe/run/dbhdbslib.so' is "742.06", patchlevel (0.38)

 

4 ETW000                                                                                                  86  0.006656

 

4 ETW000  [     dev trc,00000]  function dsql_db_init loaded from library /usr/sap/SLT/SYS/exe/run/dbhdbslib.so

 

4 ETW000                                                                                                  16  0.006672

 

4 ETW000  [     dev trc,00000]  function dbdd_exp_funs loaded from library /usr/sap/SLT/SYS/exe/run/dbhdbslib.so

 

4 ETW000                                                                                                  34  0.006706

 

4 ETW000  [     dev trc,00000]  } DbSlHDBControl(rc=0)                                                    23  0.006729

 

4 ETW000  [     dev trc,00000]  { DbSlHDBControl(con_hdl=-1,command=39,arg_p=(nil))                       13  0.006742

 

4 ETW000  [     dev trc,00000]  } DbSlHDBControl(rc=0)                                                    16  0.006758

 

4 ETW000  [     dev trc,00000]  { DbSlHDBControl(con_hdl=-1,command=10,arg_p=7fff553bba30)                12  0.006770

 

4 ETW000  [     dev trc,00000]  } DbSlHDBControl(rc=0)                                                    11  0.006781

 

4 ETW000  [     dev trc,00000]  New connection 0 created                                                  10  0.006791

 

4 ETW000  [     dev trc,00000]  0: name = R/3, con_id = -000000001, state = DISCONNECTED, tx = NO , bc = NO , oc = 000, hc = NO , perm = YES, reco = NO , info = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO , prog =

 

4 ETW000                                                                                                  27  0.006818

 

4 ETW000  [     dev trc,00000]  { DbSlHDBControl(con_hdl=-1,command=10,arg_p=1896960)                     19  0.006837

 

4 ETW000  [     dev trc,00000]  } DbSlHDBControl(rc=0)                                                    11  0.006848

 

4 ETW000  [     dev trc,00000]  db_con_connect (con_name=R/3)                                             10  0.006858

 

4 ETW000  [     dev trc,00000]  determine_block_commit: no con_hdl found as blocked for con_name = R/3

 

4 ETW000                                                                                                  20  0.006878

 

4 ETW000  [     dev trc,00000]  find_con_by_name found the following connection:                          10  0.006888

 

4 ETW000  [     dev trc,00000]  0: name = R/3, con_id = 000000000, state = DISCONNECTED, tx = NO , bc = NO , oc = 000, hc = NO , perm = YES, reco = NO , info = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO , prog =

 

4 ETW000                                                                                                  19  0.006907

 

4 ETW000  [     dev trc,00000]  { DbSlHDBConnect(con_info_p=(nil))                                        37  0.006944

 

4 ETW000  [     dev trc,00000]  DBHDBSLIB : version 742.06, patch 0.038 (Make PL 0.100)                   18  0.006962

 

4 ETW000  [     dev trc,00000]  HDB shared library (dbhdbslib) patchlevels (last 10)                      17  0.006979

 

4 ETW000  [     dev trc,00000]    (0.038) Close all result sets (note 2124493)                            12  0.006991

 

4 ETW000  [     dev trc,00000]    (0.038) Initialization of deferred LOB writing for ZDO changed (note 2106186)

 

4 ETW000                                                                                                  17  0.007008

 

4 ETW000  [     dev trc,00000]    (0.032) DBSL supports deferred lob writing with HANA SP9 (note 2106186)

 

4 ETW000                                                                                                  21  0.007029

 

4 ETW000  [     dev trc,00000]    (0.031) Read last SQL message after the connection is closed (note 2104804)

 

4 ETW000                                                                                                  20  0.007049

 

4 ETW000  [     dev trc,00000]    (0.031) Check Enable_Select_Into_Scalar_UDF before the ALTER call (note 2105480)

 

4 ETW000                                                                                                  31  0.007080

 

4 ETW000  [     dev trc,00000]    (0.029) Certain SAP applications hang for several minutes (note 888312)

 

4 ETW000                                                                                                  21  0.007101

 

4 ETW000  [     dev trc,00000]    (0.029) Structure DBSL_CA initialized (note 2094457)                    15  0.007116

 

4 ETW000  [     dev trc,00000]    (0.027) Data aging for the service connection (note 2090613)            23  0.007139

 

4 ETW000  [     dev trc,00000]    (0.026) Use prepared statements for R3szchk (note 1952609)              14  0.007153

 

4 ETW000  [     dev trc,00000]    (0.025) Use bulk fetch on a result set of a procedure call (note 2082661)

 

4 ETW000                                                                                                  20  0.007173

 

4 ETW000  [     dev trc,00000]                                                                             9  0.007182

 

4 ETW000  [     dev trc,00000]   -> init()                                                                19  0.007201

 

4 ETW000  [     dev trc,00000]    STATEMENT_CACHE_SIZE = 1000                                             40  0.007241

 

4 ETW000  [     dev trc,00000]   -> init()                                                               866  0.008107

 

4 ETW000  [     dev trc,00000]   -> loadClientRuntime()                                                   20  0.008127

 

4 ETW000  [     dev trc,00000]  Loading SQLDBC client runtime ...                                         11  0.008138

 

4 ETW000  [     dev trc,00000]  SQLDBC Module  : /usr/sap/SLT/hdbclient/libSQLDBCHDB.so                 8256  0.016394

 

4 ETW000  [     dev trc,00000]  SQLDBC Runtime : libSQLDBCHDB 1.00.82.00 Build 0394270-1510               59  0.016453

 

4 ETW000  [     dev trc,00000]  SQLDBC client runtime is 1.00.82.00.0394270                               31  0.016484

 

4 ETW000  [     dev trc,00000]   -> quiesceConnection()                                                   14  0.016498

 

4 ETW000  [     dev trc,00000]   -> getNewConnection()                                                    12  0.016510

 

4 ETW000  [     dev trc,00000]   <- getNewConnection(con_hdl=0)                                           66  0.016576

 

4 ETW000  [     dev trc,00000]   -> checkEnvironment(con_hdl=0)                                           20  0.016596

 

4 ETW000  [     dev trc,00000]   -> connect(con_info_p=(nil))                                             31  0.016627

 

4 ETW000  [     dev trc,00000]  Try to connect via secure store (DEFAULT) on connection 0 ...             43  0.016670

 

4 ETW000  [dbhdbsql.cpp,00000]  *** ERROR => Connect to database failed, rc=1, rcSQL=10                 7276  0.023946

 

4 ETW000  [     dev trc,00000]  SQLCODE    : 10                                                           26  0.023972

 

4 ETW000  [     dev trc,00000]  SQLERRTEXT : invalid username or password                                 13  0.023985

 

4 ETW000  [     dev trc,00000]   -> SetSdbDbslCA(errcode=10)                                              16  0.024001

 

4 ETW000  [     dev trc,00000]   -> freeConnection(con_hdl=0)                                             19  0.024020

 

4 ETW000  [     dev trc,00000]     close all opened locators of connection 0                              13  0.024033

 

4 ETW000  [     dev trc,00000]  } DbSlHDBConnect(rc=99)                                                   45  0.024078

 

4 ETW000  [    dblink  ,00000]  ***LOG BY2=>sql error 10     performing CON                               55  0.024133

 

4 ETW000  [    dblink  ,00000]  ***LOG BY0=>invalid username or password                                  14  0.024147

 

4 ETW000  [     dev trc,00000]  { DbSlHDBControl(con_hdl=0,command=41,arg_p=d774d8)                       41  0.024188

 

4 ETW000  [     dev trc,00000]  } DbSlHDBControl(rc=0)                                                    25  0.024213

 

4 ETW000  [     dev trc,00000]  { DbSlHDBControl(con_hdl=0,command=14,arg_p=7fff553b2420)                 14  0.024227

 

4 ETW000  [     dev trc,00000]  } DbSlHDBControl(rc=0)                                                    11  0.024238

 

4 ETW000  [     dev trc,00000]  { DbSlHDBControl(con_hdl=0,command=50,arg_p=7fff553b2438)                 12  0.024250

 

4 ETW000  [     dev trc,00000]  } DbSlHDBControl(rc=0)                                                    14  0.024264

 

4 ETW000  [     dev trc,00000]  { DbSlHDBControl(con_hdl=0,command=13,arg_p=7fff553b2390)                 28  0.024292

 

4 ETW000  [     dev trc,00000]  } DbSlHDBControl(rc=0)                                                    13  0.024305

 

4 ETW000  [     dev trc,00000]  { DbSlHDBControl(con_hdl=0,command=52,arg_p=7fff553b23e0)                 12  0.024317

 

4 ETW000  [     dev trc,00000]  } DbSlHDBControl(rc=0)                                                    11  0.024328

 

2EETW169 no connect possible: "DBMS = HDB                              ---  SERVER = '' PORT = ''"

 

4 ETW000  [     dev trc,00000]  release memory of the SIBU buffers                                        67  0.024395

 

4 ETW000  [     dev trc,00000]  release memory of the STATEMENT CACHE                                     13  0.024408

Viewing all 831 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>