Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all 6412 articles
Browse latest View live

Authorization in SQL view

$
0
0

Hi everyone,

 

I created a SQL view, displaying data from _sys_statistics. Even though all other users have select on _sys_statistics and the relevant schema which is containing the SQL view, nobody else is able to see the data. I´m using Rev 85. Any thoughts?

 

Regards, Christoph.


Strange error calling an R script

$
0
0

Hello Expert,

 

I'm studying on SAP HANA R Integration, and following the examples I wrote an R script by my self, which is not working:

 

DROP TABLE PR_TEST_R_ROW_TABLE;
CREATE ROW TABLE PR_TEST_R_ROW_TABLE ( result0 varchar(5000) ) ;
DROP PROCEDURE PR_TEST_R_2;
CREATE PROCEDURE PR_TEST_R_2( OUT result0 "PR_TEST_R_ROW_TABLE")
LANGUAGE RLANG AS
BEGIN  result0 <- data.frame("R");
END;
CALL PR_TEST_R_2(?);

 

when I CALL my procedure the error is:

 

Could not execute 'CALL PR_TEST_R_2(?)' in 208 ms 323 µs .

SAP DBTech JDBC: [2048]: column store error: search table error:  [34086] Convert data error: Convert Data from R to NewDB failed.;Column 'RESULT0' not computed from R.

 

So I try to fix:

 

DROP TABLE PR_TEST_R_ROW_TABLE;
CREATE ROW TABLE PR_TEST_R_ROW_TABLE ( result0 varchar(5000) ) ;
DROP PROCEDURE PR_TEST_R_2;
CREATE PROCEDURE PR_TEST_R_2( OUT result0 "PR_TEST_R_ROW_TABLE")
LANGUAGE RLANG AS
BEGIN  RESULT0 <- data.frame("R");
END;
CALL PR_TEST_R_2(?);

 

but now the error is:

 

Could not execute 'CALL PR_TEST_R_2(?)' in 250 ms 911 µs .

SAP DBTech JDBC: [2048]: column store error: search table error:  [34084] Receive error: get result error.;Error: object 'result0' not found

stack trace:

No traceback available

 

I took a read of R Output Column Store Error but still cannot make it working, which is confusing me A LOT.

 

Any help is really appreciated,

 

thanks in advance

 

Pierre

Deriving a Calculated column by looping

$
0
0

Hi,

I have to derive the "custom date" in the below table using the date from the "Text" column where the value is GW3. The GW3 date should be filled in all the rows of the same Category. How can I model this?

 

 

CategoryTextDatecustom date
1000GW1Jan 1Mar 31
1000GW2Feb 20Mar 31
1000GW3Mar 31Mar 31
1000GW4Apr 10Mar 31
2000GW1Sep 10Oct 10
2000GW2Sep 30Oct 10

2000

GW3Oct 10Oct 10
3000GW7Apr 15Null
3000GW8Apr 27Null
3000GW9May 5Null

 

Thanks,

Suresh

HANA Studio latest version?

$
0
0

wanted to know the latest Hana studio version available ?   also the download link

 

hana studio version.png

 

the current version which available, I am unable to add cloud platform tools.

 

regards//Rajeesh.

Column level encryption in SAP HANA

$
0
0

Hello Experts,

 

Is there a way I can encrypt a column in a table like what in MS SQL ? When I searched for the answers for this in SCN, I can find an answer that till SPS05 column level encryption is not implemented, but there may be chances for this feature in newer versions. Please guide me on this.

 

Thanks in advance!

 

 

Regards,

Nithin

Calc View Parameters Mapped to Result View Param

$
0
0

Hello,


I have a result view that has 3 parameters. The result view is being passed into a calculation view. I would like to use the input parameters of my calculation view and pass those to the result view. When right clicking the calculation view Input Parameters folder it shows that there is no input mapping for the result view parameters.

 

So far I have:

- confirmed that the result view can be passed parameters

- setup the calculation view inputs as: parameter type - direct; is mandatory; with a default constant

 

How can I do this?


Capture.PNG

Appreciate the help!


Chris

capture specific column updates using HANA procedure

$
0
0

hi all,

we have a requirement to capture the specific column update of a table into another table(log table). i have already found that TRIGGERS can be used to achieve this requirement, but i wanted to know if same can be done using PROCEDURES. Also among TRIGGER and PROCEDURE ,which method is best suitable to achieve this. The important points in the requirement are as below:

 

1) The details to be captured are field name which is updated, old value,new value ,person responsible, date of update and time.

 

2) The above details should be captured automatically.i.e there should not be calling of the procedure after each time the field is updated, rather on the update of the field ,the details should automatically be captured in another table.

 

3) The fields of the table for which we need to capture the value changes will be maintained in a table(say config table), and the procedure should log the changes only for the fields are  maintained in config table. example- say my table has 100 fields and i want to capture the changes for only 5 specific fields which i will maintain in a table ,later on i wanted to capture the changes of 2 more fields ,so i will just add those 2 fields in the table and the procedure should be able to capture changes for those 2 fields also. same case when i no longer want to capture changes for  a field then i will remove it from config table and the procedure should not capture changes for that field anymore.

 

4)  we should not call the procedure manually every time the fields gets updated. instead it should get triggered automatically.

 

please let me know your views.

Link Sales Order to Vendor Invoice

$
0
0

I'm trying to link vendor invoice information (specifically shipping information) to sales orders in a HANA Live system.  My client has a requirement to compare the freight billed to the customer to that billed by the vendor.  In addition, the client wants to have both open and cleared freight.  If I understand things correctly, the DMBTR field from the BSIK and BSAK tables should give me the freight charged by the vendor.  The problem is that I can't find any way to join this data to the sales order item data in order to compare the freight billed to the customer to the freight billed from the vendor.  Can someone please provide some information about how to link the information in the BSIK and BSAK tables to the sales order line item data in the VBAP table?

 

Any help would be greatly appreciated.

 

Thanks,

Rob


Extend logical Volume lvhanaback HELP

$
0
0

AWS Cloud

SAP HANA 97
SUSE linux server 11 sp3

 

I have added large 1000GB AWS SSD volume to my SUSE linux hana master on our a 3 node multi-host hana system.

 

mkfs.xfs /dev/xvdg

 

fdisk /dev/xvdg

 

##Added one primary partition of type 8e - LVM

 

pvcreate /dev/xvdg

 

vgextend vghanaback /dev/xvdg

 

lvextend -L+900G /dev/vghanaback/lvhanaback

 

 

Using stripesize of last segment 256.00 KiB

  Extending logical volume lvhanaback to 1.36 TiB

  Insufficient suitable allocatable extents for logical volume lvhanaback: 227330 more required

 

Have tried to use YaST with no success.

 

Any insight would be great.. Cannot take backups as it is filling volume 100%

 

 

 

lvdisplay /dev/vghanaback/lvhanahback

--- Logical volume ---

  LV Name                /dev/vghanaback/lvhanaback

  VG Name                vghanaback

  LV UUID                l4XUBJ-Kajf-38nU-xJJe-hmfJ-7Uo0-Q16Q0W

  LV Write Access        read/write

  LV Creation host, time imdbmaster, 2015-06-24 15:41:21 +0000

  LV Status              available

  # open                 1

  LV Size                488.00 GiB

  Current LE             124928

  Segments               1

  Allocation             inherit

  Read ahead sectors     auto

  - currently set to     2048

  Block device           253:0

 

vgdisplay

--- Volume group ---

  VG Name               vghanaback

  System ID

  Format                lvm2

  Metadata Areas        3

  Metadata Sequence No  7

  VG Access             read/write

  VG Status             resizable

  MAX LV                0

  Cur LV                1

  Open LV               1

  Max PV                0

  Cur PV                3

  Act PV                3

  VG Size               1.46 TiB

  PE Size               4.00 MiB

  Total PE              383997

  Alloc PE / Size       124928 / 488.00 GiB

  Free  PE / Size       259069 / 1011.99 GiB

  VG UUID               B78ryQ-9t2Y-WmnR-x6Xc-fF2a-tiya-N4akoY

Xs Admin Page Broken.

$
0
0

I updated to 96.. Wanted to use the webdispatcher admin page but I did not have the roles.. I found i needed to install xs base Delievery Unit.
After I installed the Delievery Unit xs admin was broken and login page not responsive..I went into ide and changed to legacy login and admin .html pages.. It is working .. but that sucks..

 

I have just updated to hana 97 do i have to install xs base delievery unit for upgrades to take place at xs engine level?

 

Please advise.

Thanks
Zachary.

Xsengine crashing

$
0
0

IN distributed hana system can i distribute xs engine?

 

Can you direct me to current documentation about the procedure to distribute Xs Engine

 

 

 

[CRASH_STACK]  Stacktrace of crash: (2015-08-31 06:44:19 778 Local)

----> Pending exceptions (possible root cause) <----

exception  1: no.71000129  (ptime/storage/tm/transdtx.cc:2062)

    statement snapshot set failed: access failure to 127.0.0.1:30003:

NO exception throw location recorded. Stack generation suppressed.

----> Symbolic stack backtrace <----

  0: 0x0000000000000000 <symbol name not found>

         SFrame: IP: 0x0000000000000000 FP: 0x00007fdf3ad23180 SP: 0x00007fdf3ad23178 RP: 0x00007fe5c10ee4b5

         Params: 0x7fd0f395f800, 0x7fdf3ad23710, 0x6e69206e61207962, 0xfffffffffffffff4, 0x7fb9aed6f5c8, 0x7fb9aed6f5e1

         Regs: rax=0x7fe59efac6d0, rbx=0x7fe1635bd220, rcx=0xfffffffffffffff4, rdx=0x6e69206e61207962, rsi=0x7fdf3ad23710, rdi=0x7fd0f395f800, rbp=0x7fdf3ad23710, rsp=0x7fdf3ad23178, r8=0x7fb9aed6f5c8, r9=0x7fb9aed6f5e1, r10=0x0, r11=0x7fe5c16dee10, r12=0x7fdf3ad23710, r13=0x7fe14b622ea8, r14=0x7fdf3ad23710, r15=0x7fd8bf8620c0

         NOTE: Missing frame information, following frames may be invalid (fallback unwinder)

         NOTE: Frame instruction pointer is invalid (doesn't point to a known code segment)

     -----------------------------------------

  1: bool odata::DB::close<ptime::Statement>(ptime::Statement*&, odata::error::Report&) + 0x25

         Symbol: _ZN5odata2DB5closeIN5ptime9StatementEEEbRPT_RNS_5error6ReportE

         SFrame: IP: 0x00007fe5c10ee4b5 (0x00007fe5c10ee490+0x25) FP: 0x00007fdf3ad231a0 SP: 0x00007fdf3ad23180 RP: 0x00007fe5c1110ae7

         Params: 0x7fd0f395f800, 0x7fdf3ad23710, 0x6e69206e61207962, 0xfffffffffffffff4, 0x7fb9aed6f5c8, 0x7fb9aed6f5e1

         Regs: rax=0x7fe59efac6d0, rbx=0x7fe1635bd220, rcx=0xfffffffffffffff4, rdx=0x6e69206e61207962, rsi=0x7fdf3ad23710, rdi=0x7fd0f395f800, rbp=0x7fdf3ad23710, rsp=0x7fdf3ad23180, r8=0x7fb9aed6f5c8, r9=0x7fb9aed6f5e1, r10=0x0, r11=0x7fe5c16dee10, r12=0x7fdf3ad23710, r13=0x7fe14b622ea8, r14=0x7fdf3ad23710, r15=0x7fd8bf8620c0

         Source: DB.h:54

         Module: /usr/sap/HDB/HDB00/exe/libxsengine.so

     -----------------------------------------

  2: odata::Result::execute() + 0xf87

         Symbol: _ZN5odata6Result7executeEv

         SFrame: IP: 0x00007fe5c1110ae7 (0x00007fe5c110fb60+0xf87) FP: 0x00007fdf3ad23310 SP: 0x00007fdf3ad231a0 RP: 0x00007fe5c110e7b9

         Params: ?, ?, 0x7fdf3ad23200

         Regs: rbx=0x7fe1635bd220, rdx=0x7fdf3ad23200, rbp=0x7fe1635bd200, rsp=0x7fdf3ad231a0, r12=0x7fdf3ad23710, r13=0x7fe14b622ea8, r14=0x7fdf3ad23710, r15=0x7fd8bf8620c0

         Source: Result.cpp:263

         Module: /usr/sap/HDB/HDB00/exe/libxsengine.so

     -----------------------------------------

  3: odata::ResultBuilder::execute() + 0x159

         Symbol: _ZN5odata13ResultBuilder7executeEv

         SFrame: IP: 0x00007fe5c110e7b9 (0x00007fe5c110e660+0x159) FP: 0x00007fdf3ad233e0 SP: 0x00007fdf3ad23310 RP: 0x00007fe5c110975d

         Params: ?, ?, 0x7fe1635bd200

         Regs: rbx=0x7fe1635bd220, rdx=0x7fe1635bd200, rbp=0x7fdf3ad23420, rsp=0x7fdf3ad23310, r12=0x7fdf3ad23400, r13=0x7fd8bf8620c0, r14=0x7fdf3ad23710, r15=0x7fd8bf8620c0

         Source: Result.cpp:40

         Module: /usr/sap/HDB/HDB00/exe/libxsengine.so

     -----------------------------------------

  4: odata::BaseSerializer::buildResult() + 0x13d

         Symbol: _ZN5odata14BaseSerializer11buildResultEv

         SFrame: IP: 0x00007fe5c110975d (0x00007fe5c1109620+0x13d) FP: 0x00007fdf3ad23480 SP: 0x00007fdf3ad233e0 RP: 0x00007fe5c10a9593

         Params: ?, ?, 0x7fdf3ad23490

         Regs: rbx=0x7fe1635bd220, rdx=0x7fdf3ad23490, rbp=0x7fdf3ad23520, rsp=0x7fdf3ad233e0, r12=0x7, r13=0x7fdf3ad23520, r14=0x7fdf3ad23710, r15=0x7fd8bf8620c0

         Source: BaseSerializer.cpp:37

         Module: /usr/sap/HDB/HDB00/exe/libxsengine.so

     -----------------------------------------

  5: odata::JsonSerializer::serialize(odata::StringOutStream&) + 0x63

         Symbol: _ZN5odata14JsonSerializer9serializeERNS_15StringOutStreamE

         SFrame: IP: 0x00007fe5c10a9593 (0x00007fe5c10a9530+0x63) FP: 0x00007fdf3ad23510 SP: 0x00007fdf3ad23480 RP: 0x00007fe5c10a5050

         Params: ?, ?, 0x7fdf3ad23520

         Regs: rbx=0x7fe1635bd220, rdx=0x7fdf3ad23520, rbp=0x7fdf3ad23510, rsp=0x7fdf3ad23480, r12=0x7, r13=0x7fdf3ad23520, r14=0x7fdf3ad23710, r15=0x7fd8bf8620c0

         Source: JsonSerializer.cpp:52

         Module: /usr/sap/HDB/HDB00/exe/libxsengine.so

     -----------------------------------------

  6: odata::SerializationFacade::serialize(odata::RequestContext&, xsengine::WebResponse&) + 0x160

         Symbol: _ZN5odata19SerializationFacade9serializeERNS_14RequestContextERN8xsengine11WebResponseE

         SFrame: IP: 0x00007fe5c10a5050 (0x00007fe5c10a4ef0+0x160) FP: 0x00007fdf3ad23580 SP: 0x00007fdf3ad23510 RP: 0x00007fe5c1043ce9

         Params: ?, ?, 0x7fdf3ad23820

         Regs: rbx=0x7fe1635bd220, rdx=0x7fdf3ad23820, rbp=0x7fd6398ffee0, rsp=0x7fdf3ad23510, r12=0x7, r13=0x7fdf3ad23520, r14=0x7fdf3ad23710, r15=0x7fd8bf8620c0

         Source: SerializationFacade.cpp:150

         Module: /usr/sap/HDB/HDB00/exe/libxsengine.so

     -----------------------------------------

  7: xsengine::ODataSuffixHandler::execute(xsengine::WebRequestInternal const&, xsengine::WebResponseInternal&, xsengine::ResourceHandler::Context const&, ltt::smartptr_handle<xsengine::RepositoryCache::CachedBinary> const&, odata::tracking::ExecutionTracker&, xsengine::ODataSuffixHandler::DBCleanupCallback*&) + 0x659

         Symbol: _ZN8xsengine18ODataSuffixHandler7executeERKNS_18WebRequestInternalERNS_19WebResponseInternalERKNS_15ResourceHandler7ContextERKN3ltt15smartptr_handleINS_15RepositoryCache12CachedBinaryEEERN5odata8tracking16ExecutionTrackerERPNS0_17DBCleanupCallbackE

         SFrame: IP: 0x00007fe5c1043ce9 (0x00007fe5c1043690+0x659) FP: 0x00007fdf3ad23a40 SP: 0x00007fdf3ad23580 RP: 0x00007fe5c1045dc0

         Params: ?, ?, 0x7fdf3ad23f60

         Regs: rbx=0x7fe1635bd220, rdx=0x7fdf3ad23f60, rbp=0x7fdf3ad23710, rsp=0x7fdf3ad23580, r12=0x7fdf3ad23680, r13=0x7fe14b622ea8, r14=0x7fd6398ffee0, r15=0x7fe1418a6670

         Source: ODataSuffixHandler.cpp:217

         Module: /usr/sap/HDB/HDB00/exe/libxsengine.so

     -----------------------------------------

  8: xsengine::ODataSuffixHandler::handleRequest(xsengine::WebRequestInternal const&, xsengine::WebResponseInternal&, xsengine::ResourceHandler::Context const&) + 0x290

         Symbol: _ZN8xsengine18ODataSuffixHandler13handleRequestERKNS_18WebRequestInternalERNS_19WebResponseInternalERKNS_15ResourceHandler7ContextE

         SFrame: IP: 0x00007fe5c1045dc0 (0x00007fe5c1045b30+0x290) FP: 0x00007fdf3ad23c90 SP: 0x00007fdf3ad23a40 RP: 0x00007fe5c100004a

         Params: ?, ?, 0x7fdf3ad23f60

         Regs: rbx=0x7fe1635bd220, rdx=0x7fdf3ad23f60, rbp=0x7fdf3ad23a78, rsp=0x7fdf3ad23a40, r12=0x7fd6d69d2600, r13=0x7fe1418a6660, r14=0x7fe32bc4f800, r15=0x7fdf3ad23b00

         Source: CheckContext.h:72

         Module: /usr/sap/HDB/HDB00/exe/libxsengine.so

     -----------------------------------------

  9: xsengine::RequestHandler::handleRequest(ltt::smartptr_handle<xsengine::HttpRequestContext>&, int) + 0x3b2a

         Symbol: _ZN8xsengine14RequestHandler13handleRequestERN3ltt15smartptr_handleINS_18HttpRequestContextEEEi

         SFrame: IP: 0x00007fe5c100004a (0x00007fe5c0ffc520+0x3b2a) FP: 0x00007fdf3ad257a0 SP: 0x00007fdf3ad23c90 RP: 0x00007fe5a808be11

         Params: ?, ?, 0x7fd9e061af00

         Regs: rbx=0x7fe1635bd220, rdx=0x7fd9e061af00, rbp=0x7fdf3ad243d0, rsp=0x7fdf3ad23c90, r12=0x0, r13=0x7fe1418a6400, r14=0x7fba3ff04f30, r15=0x7fe007462820

         Source: RequestHandler.cpp:657

         Module: /usr/sap/HDB/HDB00/exe/libxsengine.so

     -----------------------------------------

10: Execution::JobObjectImpl::run(Execution::JobWorker*) + 0x7f1

         Symbol: _ZN9Execution13JobObjectImpl3runEPNS_9JobWorkerE

         SFrame: IP: 0x00007fe5a808be11 (0x00007fe5a808b620+0x7f1) FP: 0x00007fdf3ad25c30 SP: 0x00007fdf3ad257a0 RP: 0x00007fe5a809a7d2

         Params: ?, ?, 0x7fd051a2e300

         Regs: rbx=0x7fe1635bd220, rdx=0x7fd051a2e300, rbp=0x7fe007462800, rsp=0x7fdf3ad257a0, r12=0x7fdf3ad25830, r13=0x7fe5a84a1300, r14=0x7fdf3ad257f0, r15=0x0

         Source: JobExecutorImpl.cpp:843

         Module: /usr/sap/HDB/HDB00/exe/libhdbbasis.so

     -----------------------------------------

11: Execution::JobWorker::runJob(ltt::smartptr_handle<Execution::JobObjectForHandle>&) + 0x2e2

         Symbol: _ZN9Execution9JobWorker6runJobERN3ltt15smartptr_handleINS_18JobObjectForHandleEEE

         SFrame: IP: 0x00007fe5a809a7d2 (0x00007fe5a809a4f0+0x2e2) FP: 0x00007fdf3ad26100 SP: 0x00007fdf3ad25c30 RP: 0x00007fe5a809b724

         Params: ?, ?, 0x7fe33e921a88

         Regs: rbx=0x7fe1635bd220, rdx=0x7fe33e921a88, rbp=0x7fe007462800, rsp=0x7fdf3ad25c30, r12=0x7fd051a2e300, r13=0x7fe33e921600, r14=0x0, r15=0x7fdf3ad25d00

         Source: JobExecutorThreads.cpp:205

         Module: /usr/sap/HDB/HDB00/exe/libhdbbasis.so

     -----------------------------------------

12: Execution::JobWorker::run(void*&) + 0x1a4

         Symbol: _ZN9Execution9JobWorker3runERPv

         SFrame: IP: 0x00007fe5a809b724 (0x00007fe5a809b580+0x1a4) FP: 0x00007fdf3ad26560 SP: 0x00007fdf3ad26100 RP: 0x00007fe5a80d3879

         Params: ?, ?, 0x7fe007462800

         Regs: rbx=0x7fe1635bd220, rdx=0x7fe007462800, rbp=0x7fe007462820, rsp=0x7fdf3ad26100, r12=0x0, r13=0x7fe5a84a1300, r14=0x7fe5a86459e0, r15=0x7fe5a8645ae0

         Source: JobExecutorThreads.cpp:370

         Module: /usr/sap/HDB/HDB00/exe/libhdbbasis.so

     -----------------------------------------

13: Execution::Thread::staticMainImp(void**) + 0x879

         Symbol: _ZN9Execution6Thread13staticMainImpEPPv

         SFrame: IP: 0x00007fe5a80d3879 (0x00007fe5a80d3000+0x879) FP: 0x00007fdf3ad26a60 SP: 0x00007fdf3ad26560 RP: 0x00007fe5a80d44dd

         Params: ?, ?, 0x7fe007462820

         Regs: rbx=0x7fe1635bd220, rdx=0x7fe007462820, rbp=0x7fdf3ad26a50, rsp=0x7fdf3ad26560, r12=0x7fdf3ad26660, r13=0x7fd6c49ff4e8, r14=0x7fe5a86459e0, r15=0x7fe5a8645ae0

         Source: Thread.cpp:496

         Module: /usr/sap/HDB/HDB00/exe/libhdbbasis.so

     -----------------------------------------

14: Execution::Thread::staticMain(void*) + 0x3d

         Symbol: _ZN9Execution6Thread10staticMainEPv

         SFrame: IP: 0x00007fe5a80d44dd (0x00007fe5a80d44a0+0x3d) FP: 0x00007fdf3ad26a90 SP: 0x00007fdf3ad26a60

         Params: ?, ?, 0x7fdf3ad26a80

         Regs: rbx=0x7fe1635bd220, rdx=0x7fdf3ad26a80, rbp=0x7fdf3ad26a80, rsp=0x7fdf3ad26a60, r12=0x7fe5a80d1a56, r13=0x7fdf3ad27ce0, r14=0x7fe0da171eb0, r15=0x7fe0da171eb0

         Source: ThreadMain.cpp:26

         Module: /usr/sap/HDB/HDB00/exe/libhdbbasis.so

[OK]

--

Add Host Redistribution - Transaction Rolled back lock wait Timeout

$
0
0

My Friends!
HANA on AWS
SUSE LINUX 11 sp3

HANA 97

 

Adding 4th host, during redistribution a very large table is failing.
Your expertise is advised..

 

The Last time I added hosts I had to Export the table, drop the table, distribute then import the table.. THe table is about 250GB partitioned into 3 parts..

 

Every time I try to export binary of table it has failed..

 

Need help!

Please and THank you!

Zachary

Using Gmail To Send Email in HANA XSJS

$
0
0

Hi Experts ,

 

I am trying to send mail from HANA using gmail's smtp settings but not able to figure it out.

I have gone through the following  blogs but could not find much help.

How to send email from sap hana xs server using javascript

SAP HANA SPS 09: New Developer Features; New Core XSJS APIs

https://scn.sap.com/thread/3738248

 

Following is the smtp server settings:

smtp-gmail.PNG

 

Below is the XSJS code

 

//create email from JS Object and send  
var mail = new $.net.Mail({      sender: {address: "*******@gmail.com"},      to: [{ address: "******@gmail.com"}],      subject: "XSJS Email Test",      parts: [ new $.net.Mail.Part({          type: $.net.Mail.Part.TYPE_TEXT,          text: "The body of the mail.",          contentType: "text/plain"      })]  
});  
var returnValue = mail.send();  
var response = "MessageId = " + returnValue.messageId + ", final reply = " + returnValue.finalReply;
$.response.setBody(response);

Usually i am getting the following error

 

Error: error coulnd't establish connection (line 12 position 1 in *******/SEND_MAIL.xsjs)

 

Am I missing any step or something wrongly configured?

 

It would  be great if somebody can help me on this.

Problems with adm user during upgrade from rev95 to rev97.1

$
0
0

Hi,

 

I am going to upgrade our production database from rev 95 to rev97.1 and face an issue with the password of the <sid>adm user not being "correct". However when I log in directly to the Hana appliance using the same user/password combination it works fine. The DB I try to upgrade is the secondary node of a replicated system. I had no such issue with the QA system that has the same setup nor any of the other databases that I upgraded earlier.

 

I have tried to stop/start the database, I restarted the entire appliance but nothing seems to work. I created an oss message a few days ago but SAP has not started looking into this yet and my downtime to do the upgrade is this upcoming weekend.

 

Has anyone had similar problems and found a solution for it?

 

best regards,

Kristian

HANA Email authentication failure

$
0
0

Hi All,

 

Could you please describe me the step by step procedures for sending an email from HANA Database using python script on Windows environment. I also followed the How to send emails from HANA  I am getting the given below error message while trying to connect the Database using Python script ::

------------------------------------------------------------------------------------------

>>>

Traceback (most recent call last):

  File "C:\Users\Python\xyz.py", line 1, in <module>

   import dbapi

ImportError: No module named 'dbapi'

>>>

---------------------------------------------------------------------------------------------

 

Please help me out to resolve the issue.


Communication link failure;-10709 Connect failed (no reachable host left)>. Notify Customer Support.

$
0
0

Hi Team,

 

I am trying to load data from Oracle Database to HANA using SAP BODS tool.


Below are the steps performed:

 

1. Successfully Created Data store to connect to HANA using ODBC Driver.

2. Imported required target Table from HANA.

3. When I select "View Data" from HANA table, BODS is able to show the HANA table with 0 records.

4. When I map this HANA table as target table in a DataFlow and execute the job, am getting below error.

 

 

"Communication link failure;-10709 Connect failed (no reachable host left)>. Notify Customer Support."

 

Am able to Ping and Telnet to HANA Server successfully.

 

Could you please provide your help on rectifying this.

 

Thank You

Satheesh M

Scheduling flow graphs/ tasks in HANA SPS09

$
0
0

Hi All,

 

Please suggest any ideas/ process for Scheduling Flowgraphs or Task flows in HANA SPS09 which can match the conventional job scheduling we have in BO Data Services?

 

 

Thanks in advance!!

 

 

Regards,

Dhruva

SAP HANA - passing multiple input parameter values from BO report to HANA

$
0
0

Hello,

 

I need help with passing the input parameter selection from a BO report to a HANA view.

 

In HANA I've built two graphical calculation views:

 

  1. CV_KNA1 - view of select customers data
  2. CV_T005 - list of countries found on the T005 table.

 

In IDT in the Data Foundation layer named DF_CUSTOMERS I have the two views defined under Tables. 

 

I have also created a list of values for the countries named LOV_COUNTRIES, based on the following SQL:

 

  SELECT DISTINCT LAND1
  FROM CV_T005
  ORDER BY LAND1

 

I then built UN_CUSTOMERS Business Layer folder for the DF_CUSTOMERS.  I have associated the customer country field in UN_CUSTOMERS with the LOV_COUNTRIES list of values.

 

I have created a BO report BO_CUSTOMERS based on UN_CUSTOMERS. 

 

In the BO_CUSTOMERS Data view query panel I have defined Country Key Query Filter with the following attributes:

 

  Prompt
  In List
  Prompt with list of values
  Keep last values selected
  Select only from list
  Optional prompt.

 

Upon executing the report the user is presented with an input parameter for the country key.  The user may select multiple country keys to filter the data for the countries desired or leave the selection blank to view all the data.

 

With this design if the user restricts the data for certain county key(s) all the data is returned from HANA and the filtering occurs in the BO report.

 

What I would like to do is to be able to pass the user selection to HANA so that the filtering occurs at the database level in order to improve the report performance and reduce the network traffic. 

 

Can anyone please suggest the design changes I need to make to be able to pass the user selection, which may include multiple values, from BO_CUSTOMERS all the way to CV_KNA1? 

 

Thank you,
Victoria

HANA session switches automatically to SYSTEM schema.

$
0
0

Hi Developers,

 

We're facing an issue in which during our work with HANA the session switches to the system database after a period of idie activity against the DBMS.

 

For example we have the SCHEMA ABC and in it the table XYZ,

 

We've got the code the query:

 

"SET SCHEMA ABC"

 

...

...

After a while we have the query

 

SELECT * FROM XYZ;

 

but sometimes we get the error:

 

[SAP AG][LIBODBCHDB DLL][HDBODBC] Base table or view not found;259 invalid table name:  Could not find table/view XYZ in schema SYSTEM

 

Can you please assist?

 

Thank you,

 

Tal.

Need to get list of entities for a xsodata file

$
0
0

Hi ,

 

I would like to know if is there a procedure or process to get the list of Entities(Entityset names) from a give xsodata file.

We could find the the entire file content of xsodata inthe CDATA(clob datatype)field in _SYS_REPO.RUNTIME_OBJECTS table. But we are having challenges reading this content and pulling the entity sets out.

 

So we are looking for any solution/approach to get the list of entities for any given xsodata file.

 

Regards

Lokesh

Viewing all 6412 articles
Browse latest View live


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