SAP B1 HANA - Query conversion

hello
how would I change this to work in SAP b1 HANA Sbo trns notification stored procedure?
IF @OBJECT_TYPE='17' AND @TRANSACTION_TYPE in ('U','A')
BEGIN
IF exists
(select count(*) from rdr1 T0 inner join oitm T1 on T0.ItemCode = T1.ItemCode inner join OITW t2 on t2.ItemCode = t1.ItemCode and t0.WhsCode = t2.WhsCode     
where T1.U_ALLOWNEG = 'No'      
  AND T0.DocEntry = @list_of_cols_val_tab_del     
having  SUM(t2.OnHand + t2.OnOrder - t2.IsCommited ) < 0 )   
select TOP 1 @ERROR = 1 ,@ERROR_MESSAGE = 'This Item Cannot be Ordered - Causing Negative Stock' END

Hi,
Please check this document http://scn.sap.com/docs/DOC-47664
Thanks & Regards,
Nagarajan

Similar Messages

  • How can we remove the commas from the Formula value in SAP BW BEx query

    Hi All,
    How can we remove the commas from the Formula value in SAP BW BEx query
    We are using the formula replacing with characteristic.The characteristic value needs to be display as number with out commas.
    Regards
    Venkat.

    Do you want to remove the commas when you run the query on Bex Web or in RSRT?
    Regards

  • Designer support for Subquery against SAP BW Bex Query

    BusinessObjects designer has an option in the paramaters window to turn on "Allow Sub-Queries" in a universe that has been created using a olap source.  SAP BW BEX Query to be specific.  Once turned on, you can build a query and the subquery button and functionality is actually enabled and allows you to build it.  When running the query I get an error message "A filter contains a wrong value. You cannot run this query". 
    Now, I am pretty sure this functionality is not supported on a BW or OLAP source but, I can not find anything definitive from SAP stating that it is not supoorted.  So I want to make sure that this is not one of those situations where everyone just says "It's not supported" but really just doesn't know.  Does anyone have the official word or link to an SAP statement that this functionality is officially not supported.

    What I would say is, it won't support. The reason could be, as its not support any structure view in universe designer, that means we cannot create any derived tables where we could use sql query.
    I believe the same applies  here too. Even if you look at LOV defintions in universe, it won't show any query.
    So the same applies to reports.
    Hope this helps.
    Regards
    Gowtham

  • Connecting Crystal Reports to SAP BW BEx query

    Post Author: mfrank
    CA Forum: Data Connectivity and SQL
    We have used Crystal Enterprise 8.5 to connect to an SAP BW BEx query in the past, however we are having some difficulties.  Rather than trying to upgrade our old CE system, I've been told that we should be able to connect Crystal Reports (2008?) directly to the BW BEx query.  I've been trying to accomplish this, but can't seem to find any drivers that will allow the connectivity.  When I try to set up a connection using OLAP, the only two options listed are Hyperion and Microsoft OLAP.  I have an old version of Brio Query (now Hyperion, now Oracle) that does show up with a driver for BW, but this doesn't show up in my Crystal options.
    Can someone give me some advice as to how to connect Crystal Reports to SAP BW?  I realize there are licensing issues with running live data without using Crystal Enterprise (or later BO products), but I'm just looking to print a report to a PDF.
    Thanks

    Post Author: A Kumar
    CA Forum: Data Connectivity and SQL
    Hi mfrank,
    I am also facing a similar kind of a problem. Did you get any solution to your problem. If yes, kindly let me know.
    Thanks
    A kumar

  • How to work with sap bw bex query structure

    Dear Friends,
    How can we use SAP BW bex query structure in crystal reports.
    Thanks with regards.
    Malik

    i have two structure in my query.
    and structure is comming in my Crystal report.
    i have 10 memebers in that structure and i make display off for some of members .
    but in crystal all of members are comming either its property is hidden or not.
    any help higly appricated.
    Regards
    Malik

  • Jar file containing: com.sap.aii.messaging.adapter.Conversion package??

    Hi! Gurus
    Can you please let me know the name of the Jar/library file containing com.sap.aii.messaging.adapter.Conversion package.
    Your help is greatly appreciated!!
    Thank you,
    Patrick

    > Can you please let me know the name of the Jar/library file containing com.sap.aii.messaging.adapter.Conversion package.
    aii_msg_runtime.jar
    http://wiki.sdn.sap.com/wiki/display/XI/WheretogetthelibrariesforXI+development

  • Replicate in Two Locations? SAP B1 HANA High Availability

    Hello Experts!  Hope this message finds you well.
    Can we replicate SAP B1 HANA to a standby server that is in another location? 
    Example Active Server\Central Server at my New York Data Center and Standby Server in Ohio
    What would be needed in terms of high speed pipe between locations and NTP to synch time to a common time server.
    Thank you for your advice.
    Ed

    Hi Ed,
    Currently the two locations have to be within ~100 KM of each other.  You find this in section 14 of the HANA admin guide for SP6.   You can open a support ticket asking what to consider if you want a distance greater than 100KM.
    Best regards,
    Duncan

  • OVerseas SAP BI/HANA jobs and Visa possibilities.

    HI All,
    can anyone please tell me job market for SAP BI/HANA in overseas and what is employer expectations.
    is it posisble to get a job for other countries and suggest me how to apporach.
    Regards,
    Sakthivel S

    Job opportunities are available in the overseas market. Get a certification in BI/HANA as you mentioned, then you can try for the applying the job.
    if you have experience, possibility of getting job is easier.
    apply jobs through job portals
    Thanks
    Sudhir Krishna Kumar Singh

  • SAP B1 HANA Installation Problem

    Hi,
    Please help, we are trying to install SAP B1 HANA PL04.
    Here's the scenario;
    1. Installation of SLE Server - Done
    2. Installation of SAP HANA Server - Done (was able to access HANA Studio, install DB client)
    3. Installation of SAP B1 HANA - Failed
    It seems that Tomcat causes the problem.
    Please help on how to resolve this.
    TIA,
    Norman

    Hi Duncan,
    after manually cleaning up previous installation of Server Components we proceed with the full install of PL11 and this time it worked! The new installer is much better than PL04 since it also includes the B1 Analytics and is eventually able to rollback failed components.
    In our case we had a problem with XApp Framework but hopefully we will figure it out.... support suggested to upgrade the AFL first however we were already using the latest AFL from rev.69.
    Do you have any idea why the XApp failed and rolled back?
    All other systems and services installed and run flawlessly now!
    Thanks.
    Best regards,
    Fabrizio

  • SAP BW Query Vs SAP BW MDX Query

    Dear Gurus,
    Can someone please tell me the difference and advantages of connecting Crystal Reports2008 to  "SAP BW Query" & "SAP BW MDX Query"while .
    My main concern being SAP BI resource is , we don't create SAP MDX queries in BW.
    Regards,
    -Neha

    Hi Ingo ,
    So the Crystal report  datasource will be SAP BEx queries when we select the connection SAP BW MDX Queries .
    My question is do we have to write MDX statements somewhere in SAP BW  or the system will automatically generate when we select the SAP BW MDX Queries ?
    Regards,
    -Neha

  • Difference between sap query and sap ad hoc query

    Hello Experts-
    Is there any difference between sap query and sap ad hoc query. If yes, I will appreciate if you can provide some input.
    Thanks,

    Hi,
    SAP Query
    Purpose
    The SAP Query application is used to create reports not already contained in the default. It has been designed for users with little or no knowledge of the SAP programming language ABAP.
    SAP Query offers users a broad range of ways to define reports and create different types of reports such as basic lists, statistics, and ranked lists.
    Features
    The SAP Query comprises five components: Queries, InfoSet Query, InfoSets, User Groups and Translation/Query.
    Classic reporting- the creation of lists, statistics and ranked lists- are covered by the InfoSet Query and Queries components. Other components’ range of functions cover the maintenance of InfoSets, the administration of user groups and also the translation of texts created in the SAP Query.
    All data required by a user for a report can be read from various tables.
    To define a report, you first have to enter individual texts, such as titles, and select the fields and options which determine the report layout. In the WYSIWYG mode, you can edit the lists using Drag & Drop and various toolbars.
    AD Hoc Query
    Definition
    A Web item that enables you to create and change queries in a Web application on an ad-hoc basis.
    Use
    You can use the  Ad-hoc Query Designer Web item in the Web Application Designer to structure Web applications in which you create or change queries. The Web item is as a tool for designing ad-hoc queries in a Web environment.
    In particular it enables you to:
    ·        Create queries by assigning characteristics from an InfoProvider to rows, columns, filters, and free characteristics, and including key figures from the InfoProvider in the key figure structure of the query.
    ·        Restrict or filter key figures and characteristics
    ·        Use predefined key figure structures and restricted or calculated key figures in the query
    ·        Set or change query properties and key figure/characteristic properties in the query
    ·        Create or change conditions and exceptions
    When compared with the BEx Query Designer, the Ad-hoc Query Designer Web item has the following restrictions when creating or changing queries:
    ·        You cannot integrate variables into the query directly.
    However, you can use variables in reusable structures, or restricted or calculate key figures, which are used in the Ad-hoc Query Designer
    ·        The query can contain only one structure. This structure has to be the key figure structure and be in the rows or columns of the query.
    -        You cannot use key figures or key figure structures in the filter.
    -        You cannot define exception cells, since this requires two structures.
    You cannot create the following objects using the Ad-hoc Query Designer Web item:
    -         Reusable structures
    -         Reusable restricted key figures
    -         Reusable calculated key figures
    -        Local calculated key figures
    You can create local, restricted key figures using the Ad-hoc Query Designer Web item.
    You can edit existing queries in the Ad-hoc Query Designer Web item, if the queries adhere to the restrictions laid out above The Ad-hoc Query Designer checks these requirements when loading a query. If the query is too complex, the query can be loaded into the Ad-hoc Query Designer but you cannot change it there. You then receive the appropriate message. You can still check and execute the query.
    "Ad Hoc" is a Latin phrase which means "for this purpose" and in today's parlance generally means "on the fly," or "spontaneously."
    An ad hoc query is a query that is run at the spur of the moment, and generally is never saved to run again. These queries are run using a SQL statement created by a tool or an administrator. So therefore, such a query is one that might suit a situation which is only there for the moment and later on will become irrelevant.
    As queries become more complex, it can be difficult to write them correctly ad-hoc. To help with this, one can instead write the knowledge needed for queries as business rules in English, and then use a system called "Internet Business Logic" to automatically generate and run the SQL queries. One can then get explanations of the results, in English, at the business level.
    Check these links....
    http://help.sap.com/saphelp_nw04/helpdata/en/1f/03223c5f00612be10000000a11402f/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80bf2f79-021d-2a10-5082-dadc79aaa92c
    http://www50.sap.com/businessmaps/27FEEF3A12444F89A8524CCACAF4F5BF.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/15/00a042b443c56ae10000000a155106/content.htm
    Reward points if useful....
    Regards
    AK

  • SAP HANA Query

    Hello, I have a query about SAP HANA. If I want to bring BSEG table in HANA from ECC but do not want to do Live update(SLT) and do not want to create all the fields that exist in BSEG in ECC one by one. what features of native HANA would I use to do that?
    Thanks.

    Hi Venkat,
    You can go with BODS or SLT.
    In BODS, you can select required fields from BSEG table in ECC and map the same to HANA table.
    You can also go with SLT, do one time load using LOAD option. Even here you can select reruired fields, not all the fields from BSEG table.
    Regards,
    Chandu.

  • SAP LT 2.0 && SLT Replication in HANA : query

    Hello LT experts,
    I am sure that we could use SAP SLT Replication (Data provisioning method) using HANA with source system as SAP or Non SAP SYSTEMS.
    Please advise if the same works with SAP LT.20 for system landscape transformation project.I mean source for SAP LT2.0 would be Non-sap and target ofcourse would be SAP (which could be consolidation of many existing SAP productive systems).
    Thank you
    Shishupal.

    Hi Shishupal,
    If I understand correctly, you are looking for difference between SLT in HANA and SAP Landscape Transformation 2.o(SLT again ). Both these two tools are from same framework. But SLT in HANA is used as a replication tool, whereas, as you said we use HANA as a secondary database and the source is may be SAP or NON SAP. In case of SLT 2.0, this tool is used in during company marge, merging company code, merge profit area (used basically when two company merge scenario etc). May be you already know that for SLT in HANA requires DMIS addon in 7.02 netweaver systems like wise for SLT 2.0 DMIS is required for SLT 2.0 ad additionally one more addon component SHC_CONT is required. So we have two things
    SLT replication tool
    SLT 1.0 or 2.0
    Regards,
    Rafikul

  • ABAP Query conversion

    Hello All,
    While creating an SAP Query using SQ01, SQ02 transactions on an ECC 6 IDES system, a message appears : "Convert First"
    The detailed message is as :
    Convert First
    Message No. AQ898
    Diagnosis
    Before you work with queries, functional areas or user groups in this query area, you must convert the objects.
    Procedure
    Get your system administrator to convert the objects. The ABAP Query Release Information for Release 4.0A describes how to convert these objects. Also read Note 92124
    I have read the note, but that doesnt apply in my case. This is on ECC 6 IDES system, 700 kernel.
    Please help me resolve.
    Thanks,
    Shahid Ahmed.

    Thanks for your replies.
    For the programs mentioned above, what should be the inputs inorder to execute it?
    And are these programs and the conversion, compatible with the 700 kernel?
    I have just recently installed the latest patch of 710 GUI. I dont think that would be the reason for the conversion of objects.
    Thanks,
    Shahid.

  • SAP CAL HANA errors

    SAP HANA, developer edition 1.0 SPS 09 created from SAP CAL running on AWS.
    I am receiving the following errors when executing a query in HANA via jdbc.
    The first execution runs for 6 minutes then produces this error:
    Caused by: com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [2]: general error: Allocation failed $REASON$
    Caused by: com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [2048]: column store error:  [9] Memory allocation failed
    I re execute the query it runs for 25 minutes then produces the same error.
    Then the instance is unresponsive.
    If I look in HANA studio general overview there is plenty of memory and cpu available to the HANA instance.
    There is also a crush dump listed in the log files.
    I see the following errors in the indexserver_alert_vhcalhdbdb.trc on the HANA server:
    [3742]{-1}[-1/-1] 2015-03-18 18:41:42.430797 e Licensing   
    LicenseMeasurementPersistence.cpp(00161) : Error storing license measurement for application id '000670', value 26 at ' 2015-03-18 18:41:39.3910000', internal error
    [3742]{-1}[-1/-1] 2015-03-18 18:41:42.430999 e Licensing   
    LicensePluginRegistry.cpp(00394) : Error storing license measurement: internal error
    [3732]{300601}[27/-1] 2015-03-18 18:30:16.406867 e Executor    
    PlanExecutor.cpp(00825) : pop1245 (rc 9, Memory allocation failed)
    pop = RowPlanOperator() # pop1245
    pop.setDetails('')
    [3732]{300601}[27/-1] 2015-03-18 18:30:16.406890 e Executor    
    PlanExecutor.cpp(00825) : pop1243 (rc 9, Memory allocation failed)
    [4437]{300601}[27/-1] 2015-03-18 18:28:13.921145 e Memory      
    ReportMemoryProblems.cpp(00799) :  8: 0x00007f0b1ba7a8c5 in ptime::TrexPlanOp::executePtimeOp(ltt_adp::vector<Executor::PlanData*, ltt::integral_constant<bool, true> > const&, ltt_adp::vector<Executor::PlanData*, ltt::integral_constant<bool, true> > const&, TRexCommonObjects::TRexApiError&, Executor::ExecutionInfo const&)+0x41 at trex_plan.cc:340 (libhdbcswrapper.so)
    The memory errors are repeated many times.
    What is the recommendation to investigate this issue?
    Thank you.

    The file indexserver_alert_vhcalhdbdb.trc contains the following errors:
    [4175]{300560}[23/-1] 2015-03-19 10:57:26.017346 e Executor    
    X2.cpp(02961) :  1: 0x00007f049f94df0a in _ZN5ptime3pcc16MonitorAllocBase14throwExceptionEv.isra.53+0x22 at pcc_MonitorAlloc.h:61 (libhdbrskernel.so)
    [4175]{300560}[23/-1] 2015-03-19 10:57:26.017346 e Executor    
    X2.cpp(02961) :  2: 0x00007f049f9403f5 in ptime::Transaction::Transaction(ptime::Connection*, bool, bool, bool, bool)+0x18f1 at pcc_MonitorAlloc.h:114 (libhdbrskernel.so)
    [4175]{300560}[23/-1] 2015-03-19 10:57:26.017346 e Executor    
    X2.cpp(02961) :  3: 0x00007f049ca15949 in ptime::TrexTempIndex::clearIndex() const+0x25 at trex_itab.cc:3020 (libhdbcswrapper.so)
    [4175]{300560}[23/-1] 2015-03-19 10:57:26.017346 e Executor    
    X2.cpp(02961) :  4: 0x00007f049eb7bd74 in ptime::TrexObjectFactory::destroyTrexTempIndexObject(char const*, char const*, char const*)+0x40 at trex_object_factory.cc:1386 (libhdbrskernel.so)
    [4175]{300560}[23/-1] 2015-03-19 10:57:26.017346 e Executor    
    X2.cpp(02961) :  5: 0x00007f049ca4e706 in ptime::TrexPlanData::~TrexPlanData()+0x1d2 at trex_plan_data.cc:49 (libhdbcswrapper.so)
    6: 0x00007f049ca4e849 in ptime::TrexPlanData::~TrexPlanData()+0x5 at trex_plan_data.cc:53 (libhdbcswrapper.so)
    7: 0x00007f04c44739ed in Executor::X2ConnectorValue::deleteItsValue()+0x29 at X2.cpp:323 (libhdbexecutor.so)
    8: 0x00007f04c4488101 in Executor::X2::failPop(int)+0xb0 at X2.h:176 (libhdbexecutor.so)
    9: 0x00007f04c44879b4 in Executor::X2::finishValue(Executor::X2ConnectorValue&, int&, bool)+0x110 at X2.cpp:920 (libhdbexecutor.so)
    10: 0x00007f04c4488163 in Executor::X2::failPop(int)+0x110 at X2.cpp:3571 (libhdbexecutor.so)
    11: 0x00007f04c44879b4 in Executor::X2::finishValue(Executor::X2ConnectorValue&, int&, bool)+0x110 at X2.cpp:920 (libhdbexecutor.so)
    12: 0x00007f04c4488163 in Executor::X2::failPop(int)+0x110 at X2.cpp:3571 (libhdbexecutor.so)
    13: 0x00007f04c44938d0 in Executor::X2::runPopTask(Executor::X2::PopTaskInfo&, int&, ltt::allocator&, ltt::allocator&)+0x1290 at X2.cpp:3548 (libhdbexecutor.so)
    14: 0x00007f04c4494e32 in Executor::X2::runPopJob(Executor::X2Job*)+0x80 at X2.cpp:2956 (libhdbexecutor.so)
    15: 0x00007f04c44956b8 in Executor::X2Job::run(Execution::JobObject&)+0x224 at X2.cpp:5294 (libhdbexecutor.so)
    16: 0x00007f04ab3ec1fe in Execution::JobObjectImpl::run(Execution::JobWorker*)+0x72a at JobExecutorImpl.cpp:822 (libhdbbasis.so)
    17: 0x00007f04ab3fadd2 in Execution::JobWorker::runJob(ltt::smartptr_handle<Execution::JobObjectForHandle>&)+0x2e0 at JobExecutorThreads.cpp:205 (libhdbbasis.so)
    18: 0x00007f04ab3fbd24 in Execution::JobWorker::run(void*&)+0x1a0 at JobExecutorThreads.cpp:370 (libhdbbasis.so)
    19: 0x00007f04ab433759 in Execution::Thread::staticMainImp(void**)+0x875 at Thread.cpp:492 (libhdbbasis.so)
    [4175]{300560}[23/-1] 2015-03-19 10:57:26.017346 e Executor    
    X2.cpp(02961) : 20: 0x00007f04ab4343bd in Execution::Thread::staticMain(void*)+0x39 at ThreadMain.cpp:26 (libhdbbasis.so)
    [4190]{300560}[23/-1] 2015-03-19 10:57:26.576080 e Memory      
    ReportMemoryProblems.cpp(00799) : OUT OF MEMORY occurred.
    Host: sid-hdb
    Executable: hdbindexserver
    PID: 3599
    Failed to allocate 131088 byte.
    Current callstack:
    1: 0x00007f04ab5a07fd in MemoryManager::PoolAllocator::allocateNoThrowImpl(unsigned long, void const*)+0x2a9 at PoolAllocator.cpp:1139 (libhdbbasis.so)
    2: 0x00007f049dcfca79 in ptime::pcc::SingletonAlloc<ptime::pcc::MonitorAlloc<ptime::pcc::HeapAlloc>, ptime::pcc::GlobalScope>::allocate(unsigned long)+0x15 at pcc_MonitorAlloc.h:97 (libhdbrskernel.so)
    3: 0x00007f049e095b50 in ptime::fastvector<void*, 16ul>::__allocate(unsigned long)+0x50 at fastvector.h:325 (libhdbrskernel.so)

Maybe you are looking for

  • Library buttons greyed out. No loops available.

    Hi, Thought I finally should start learning Garageband. A couple of years ago, I bought a couple of jam packs. As I recall, I had them included in GB then. But in this version, the library buttons are greyed out and there's no loops included. How do

  • SQL INSERT trouble- please help

    I'm having an trouble,to INSERT a record to my db.(MySQL) This is the condition. There is a form to validate the NicNo,which is input by the user.If it it exist, then the system displays an error msg. If it is not,display a new form to enter the cand

  • Percent on Running totals

    Post Author: llcoolt CA Forum: Formula I have a couple of group running totals: TotalItems TotalCompleteAtExp I need to create a formula that finds the percentage of the two.  Any help?  Would this be in a running total?

  • Check on cache folder redirection

    So lately my 10.5 server has been hitting the CPU ceiling and eating all my memory as well.  In my research I came across the redirecting of the Library/cache folder and followed the steps here: http://houseofmac.wordpress.com/2010/11/03/os-x-network

  • Address book attacked

    I recently found more and more spam was getting by my spam filter in Mail, so I checked my address book. Sure enough, it was filled with spam addresses. This happened to me before, and I was able to resolve the issue by going into time machine and re