SAP HANA Articles - Page 32 of 58

Creating context for JNDI in SAP NetWeaver Developer Studio

SAP Expert
Updated on 30-Jul-2019 22:30:20

187 Views

You have to use following properties while running tests outside NWDS:java.naming.factory.initial=com.sap.engine.services.jndi.InitialContextFactoryImpl java.naming.provider.url={our nw host}:50004

Checking implementation of interface IF_EX_IDOC_CREATION_CHECK in SAP ABAP

SAP Expert
Updated on 30-Jul-2019 22:30:20

647 Views

IDOC_DATA_CHECK – This method is used to check IDoc Data to see If an IDoc is Generated.You can check documentation of this interface IF_EX_IDOC_CREATION_CHECK by using T-Code: SE24 or SE80You can refer this Method by using this syntax: CALL METHOD IF_EX_IDOC_CREATION_CHECK=>methodname EXPORTING/IMPORTING...Now come to you issue, an Exit statement takes program out of the loop. Incase you have loop as only processing block, it will also exit the method. You need to call BADI/method for each Idoc.

Generating result of SAP transaction automatically

SAP Expert
Updated on 17-Feb-2020 10:30:07

170 Views

There are different approaches that you can follow −First approach would be that you schedule a job and send the result to a mailbox instead of printing it. Then you can use any programming code to read that email and export in desired format.Other approach would be to check available BAPI’s. These BAPI’s can be called from an external program but for this you need to use SAP ABAP.Checkout this SAP blog that tells how to generate a report in background and send result to user email id −SAP blogYou can define distribution list in T-Code − SO23Read More

Moving to SAP BOXI 4.0 from BO XIR2

SAP Expert
Updated on 30-Jul-2019 22:30:20

177 Views

This could be cause of usage of different versions of cryptocme2.dllThis is location of CA's file: C:\Program Files\CA\SC\ETPKI\lib\cryptocme2.dll [Additional Info: File Version: Not Available, Timestamp: 2/29/2012 9:43 PM, size 3, 188 KB] Location of SAP's file : D:\Program Files\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\cryptocme2.dll [ Additional Info: File Version 3.0.0.0 , TimeStamp: 2/25/2011 6:55 PM, size: 1704 KB]To fix this issue: you need to rename dll C:\Program Files\CA\SC\ETPKI\lib\cryptocme2.dll to cryptocme2_ca.dllNext is to copy D:\Program Files\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\cryptocme2.dll to C:\Program Files\CA\SC\ETPKI\lib\Next is to uninstall BO XI 4.0 SDK via Control Panel.You have to restart the Box and stop ... Read More

Can I use Custom Error pages in SAP HANA?

SAP ABAP Expert
Updated on 30-Jul-2019 22:30:20

183 Views

You are correct as XSA supports the custom error pages but classic does not support custom error messages.In case you need to do in any way, then what you can try out is you need to parse all requests through a load balancer or a proxy and then show custom error message. And it is not a easy and maintainable approach.

Is Pivot available in SAP HANA

SAP ABAP Expert
Updated on 12-Dec-2019 08:20:20

1K+ Views

As per my understanding, for requirement #1 you can do something as below:SELECT    Prod.Product_ID, JOB.Job_ID, SUM(J.Time) FROM    TABLE_1 Prod  INNER JOIN TABLE_2 Job ON Prod.Job_Id = Job.Job_ID GROUP BY     Prod.Product_ID, Job.Job_IDSAP HANA does not support Pivot built-in as done by SQL but majorly it looks as a UI requirement. So what you can do is send the entire result to report and apply transformation in the report as per your requirement.

Fetch max date and other field from the same row of a table grouped by other fields in SAP HANA

SAP ABAP Expert
Updated on 12-Dec-2019 08:59:54

1K+ Views

You have done partially correct but just missed one step further to get the desired result. The case where after grouping you need to pick one of the rows from the results, use rank number or rank function.You need to partition your data based on your requirement, then order them as per your requirement again then pick the desired row.ExampleFor e.g. partition your data by Item Number and Shop Id. Then order them in descending order of Date column. Then pick the row with row number as 1select date, Order_Number   from   (SELECT  *, row_number() over ( partition by ... Read More

Need to update MySQL and SAP database at the same time from a Form

SAP ABAP Expert
Updated on 30-Jul-2019 22:30:20

243 Views

Yes, you can do that but if you are thinking of making the changes in the existing PHP script so that it takes care of both the tasks. Then it will be quite tough.But if you want to have two operations in parallel then you can have it.You can go for writing a web service which can do the DB update activity. You can also try using the SAP API to do the updates. SAP API has the most common and used methods to do the updates.So you might be able to find the ones for your requirement.You can also ... Read More

Getting error message: Scalar type not allowed in SAP HANA

karthikeya Boyini
Updated on 11-Dec-2019 08:57:53

869 Views

Few points about your code to create a Stored Procedure, that you can edit and tryPROCEDURE "SLT_DELETE"."HCDW.IT.IT::TO_TIMESTAMP_CALL" (IN IN_DATE DECIMAL(15),    OUT OUT_DATE TIMESTAMP)    LANGUAGE SQLSCRIPT AS    --DEFAULT SCHEMA    --READS SQL DATA AS BEGIN    select to_timestamp(IN_DATE) into OUT_DATE FROM DUMMY; END;In Line32, you have used below:SELECT: ORGID_ARTIKEL intoHowever correct syntax should be like:SELECT "ORGID_ARTIKEL" into

Store data in format of XML string in SAP HANA system

Sharon Christine
Updated on 12-Mar-2020 12:45:14

676 Views

In older SAP HANA versions, no XML functions were provided. With HANA 2.0, these two functions are provided- XMLEXTRACT and XMLEXTRACTVALUE for extracting XML string in SAP HANA.Use of XMLEXTRACTXMLEXTRACT(, [, ])Syntax to use −Specifies an XML document of type CLOB, NCLOB, VARCHAR, or NVARCHAR.Specifies an XPath expression of type VARCHAR or NVARCHAR.Specifies a namespace declaration of type VARCHAR or NVARCHAR.DescriptionReturns the matching XML element. The return value is of type VARCHAR/NVARCHAR or CLOB/NCLOB depending on the type given for .If an XML element is empty (for example, ), then an empty result is returned. If an XML element ... Read More

Advertisements