ABAP For HANA as secondary DB problem in execute query decleration.

Hello Experts,
I am fetching data from HANA DB as secondary database using ADBC. When I am going to concatenate native SQL query its geting more than 255 char and here is the problem.
Please suggest how can I deal with more than 255 char string query.
GV_SQL is query which is string.
e.g.  GO_RESULT = GO_SQL->EXECUTE_QUERY( GV_SQL ).
Regards,
Amol

Hi Fernando,
     1.Actually I am not facing any problem with ADBC. Just ABAP predefined type STRING is not accepting more than 255 character length.
     2.At the time of concatenating fields, HANA view path and where conditions it is getting more than 255 character, hence at the time execution of query getting failed.
     3.  GV_SQL type string.
GV_SQL =  |SELECT MANDT....(more than 255 character length)| &&
                   |FROM _SYS_BIC."dev.re.e10.cal.fi.tr/CV_COSTELEMENT_TEST" |
             && |('PLACEHOLDER' = ('$$IP_BUKRS$$', '{ P_WERKS }')) |.
GV_SQL storing only 255 character, I wanted a string to store more than 1000 character length.
Regards,
Amol

Similar Messages

  • Learn ABAP for HANA

    Hi
    I am interested in knowing more and learning about SAP HANA and ABAP for HANA.
    I found a few links on SDN, but am not sure where to start from. Is there any link where I can start learning about it from basics?
    Thanks

    Hello Yusuf,
    You can follow the thread Re: What is SAP HANA basic terms?
    which gives you some insight of basics.
    Also, You can start looking at the document
    ABAP for SAP HANA Reference Scenario
    Which includes many refernce scenario guides and end-end development guides.
    If this is not helpful please revert to me.
    Thanks
    Prakash K

  • ABAP for HANA certification

    I am ABAP consultant having 9 years of exp. I want to do certification for ABAP for Hana.I found one certification with name SAP Certified Development Specialist - ABAP for SAP HANA (Edition 2014). In that i found below line written "This certification is issued to candidates who successfully pass the certification exam for the "SAP Certified Development Associate - ABAP with SAP NetWeaver" (C_TAW12_70, C_TAW12_71, C_TAW12_731, P_ABAP_70)."
    Now my question is that I have not done any prior certification on ABAP. So Can i directly go for the ABAP for Hana certification or i have to first clear Abap with netWeaver first.

    Hi Amit,
    I haven't appeared for the ABAP certification
    But, I can guide where we can get the content & cost.
    Content:
    https://training.sap.com/shop/certification/c_taw12_71-sap-certified-development-associate---abap-with-sap-netweaver-702…
    Cost:
    DD for 35,000 INR+12.36% service tax (total of 39,326 INR) favoring SAP India Pvt. Ltd., payable at Bangalore or online transfer to SAP (NEFT Details)**
    (Suggesting you please send your mail to SAP help desk, you will get clear idea on this)

  • ABAP For HANA Development Environment

    Anybody Explain ETE Development Cycle of ABAP for HANA?

    Hi Muhammad,
    there's a nice E2E guide End to End Development Example with SAP NetWeaver 7.4 & SAP HANA targeted for ABAP 7.4 SP2 features.
    If you're interested in the latest greates ABAP 7.4 SP5 features (like CDS Views, ABAP managed database procedures) and a Fiori-like app... stay tuned, content is submitted and will arrive on our SCN Space ABAP for SAP HANA soon.
    Cheers,
      Jasmin

  • Where does SRTCM fit into preparing ABAP for Hana?

    I've seen and heard mention of transaction SRTCM (Runtime Check Monitor), to run in Production for one or two weeks to go alongside static code checks. I'm a little confused on how this fits into preparing our code for Hana though.
    If we use ATC/Code Inspector with the 'FUNCTIONAL_DB' and 'PERFORMANCE_DB' variants and then the SQL Monitor in Production, these are then plugged into transaction SWLT to provide a focused list on what we need to work on. SRTCM, however, does not seem to fit into this picture. There doesn't seem to be a way of plugging it into SWLT (unless I'm missing something?). Or is it meant as a stand alone tool?
    We're on SAP_BASIS 740, SP8, in case that makes the difference.
    thanks,
    Malcolm.

    Dear Malcolm,
    you are right, SRTCM is not integrated into SWLT. You can use it as standalone tool. But it is an additional source of information to find critical places in source code. You can also export SRTCM information from an productive system and import it into an development system.
    Best Regards, Thomas

  • Problem in executing query in browser and bex analyzer

    i am not able to execute query in browser nor bex analyzer...
    problem is that i dont have option to run in bex analyzer in query designer (menu bar seems missing in query designer and how can i get enabled
    and when execute the query in browser using bex query designer ..it prompts me with following error
    URL http://saperpdev.saperpdev.com:8002/sap/bw/BEx call was terminated because the corresponding service is not available
    Note
    ■The termination occurred in system ERD with error code 403 and for the reason Forbidden.
    ■The selected virtual host was 0
    ErrorCode:ICF-NF-http-c:000-u:SAPSYS-l:E-i:SAPERPDEV_ERD_02-v:0-s:403-r:Forbidden
    and i tried to open the query from bex analyzer  level
    it prompts me as follows
    macros are disabled because the security level is set to high and digitally signedtrusted certificate is not attached to the macros,to run the macros change the security level to lower settings
    pls suggest me

    hi suman,
    thanks for your response.. but let me be more clear
    i am using sap gui 7.20 front end and when i execute rrmx i am able to navigate to BEx analyzer but when i tried to open a report which i create i get following error message..
    you do not have sufficient authorization for infoprovider zic_proj
    function module  /SDF/AL_MAP_TRANSID_LOGH doesnt exit
    second thing is that i tried from bex query designer to execute the report ..but i am not able to execute the report...
    i hope some connections seems missing..please let me know what to do ASAP..
    and where can i post this question to get fast reply

  • Problem in Execute query on non-database block and database block together

    Hi All,
    In my form,i have
    1. First block is Non-database block with one non-database item.
    2. Second and third blocks are database blocks.
    Now the problem is that i want to perform execute-query for all the blocks.
    If the cursor is on the non-database item of 1st block and i clicks on the "Enter-query" then i am getting message " This function can not be performed here".
    If i click on the item of the database block and then clicks on the "Enter-query" and then "execute-query" it's working fine.
    But i don't want to do in this way.
    My cursor will be on the First block only and then it should perform execute-query.
    I am using this non-database item to copy value of this item to the item of the database block item.
    I think i make you understand about my problem.
    I am using forms 10g on Window xp.
    Please help me.

    Hi!
    Simply create a enter-query trigger on the non-database-block:
    begin
    go_block ( 'database_block' );
    enter_query;
    end;If your search criteria is in the non-database-item in the first block,
    you actually do not need the enter_query build-in.
    Just create a execute-query trigger on the first block like:
    begin
    go_block ( 'database_block' );
    execute_query;
    go_item ( :System.trigger_item );
    end;And in a pre-query trigger on the database-block copy the
    value of your seach item into the item you want to search for.
    Regards

  • Problem while executing query in BEX

    Hello Experts .
    Whenever I execute the standard query based on info cube 0PA_C01 in bex it gives following message for first time , but if excute the same query second time it wont gives the msg . Pls it is very urgent .
    msg :
    Characteristic 0CALMONTH was changed in InfoCube 0PA_C01. Adjust the query
    Characteristic 0EMPLOYEE was changed in InfoCube 0PA_C01. Adjust the query

    Hello Raghavendra,
    welcome aboard!!
    You need to make the change globally and save it by going in the change mode.
    when u next time execute the same after relogin u wont face this issue.
    Hope it helps...
    thanks,
    (pls. dont forget to assign points for helpful answers)

  • Problem in execute query?

    hello all,
    table structure:
    create table cor_dept_mst (dept_locn_code varchar2(6) not null,
    dept_code varchar2(2) not null, dept_name varchar2(200), constraint cordeptmst_pk primary key(dept_locn_code,dept_code));
    in form all 3 feilds dispaly.
    when i save new record.. save successfully.
    but when i execute query records not display (do not pass any value)
    records are display after execute if and only if i pass value to dept_code. in this case i pass 01 for dept_code and all records displaying...
    this very silly error.. i use block where clause.
    please help
    thanks
    yash

    oopss.....
    there was a silly code which halt the execute query...

  • Problem in executing query in RSCRM_BAPI  & output in application server!

    hi Experts,
    We executed a query using RSCRM_BAPI transaction and write it to the application server.We found the following problem.
    In the query we have restricted the keyfigures such that each have 2 decimal places but when we execute the query using RSCRM_BAPI and writing into the application server the more than 2 decimal places are coming in to the file.
    For example:
    In the query the value is 12.12 but in the application server its written as 12.1200000
    So the width gets elongated and some of the keyfigures are truncated.
    We have already have gone through the restrictions in the SAP Note Number 605208
    Please help us to find a solution to get output of keyfigures same as whatever coming in the output of query.
    Thanks in advance
    Somenath

    sorry, i mistakenly sent it in different id....this is my id.......if it is useful assign points to this id...
    Using RSCRM_BAPI, RSCRM_REPORT, suitable for simple query.
    In your query you are using Restricted, calculated keyfigure.in that case RSCRM_BAPI, RSCRM_REPORT has some restriction.
    Check OSS 605208 which describes RSCRM_BAPI restrictions .
    Re: Master Data Datasources
    You can Modify the Wrtiequery abap program for your requirement.
    or
    Create a ABAP program for extracting a bw query and upload it in Application server in csv format.
    Thanks,
    senthil kumar

  • BI 7.0 Problem while executing query on Infoset containing Infocubes

    Hi All,
    While executing quey on infoset containing infocubes we are getting following error message.
    EError while reading data; navigation is possible
    EError reading the data of InfoProvider A2PPI103
    EError when generating the SQL statement
    E[IBM][CLI Driver][DB2] DSNT408I SQLCODE = -204, ER ROR:  SAPR3.T00001 IS
    I>> Row: 11 Inc: RAISE_READ_ERROR Prog: CL_RSDRV_VPROV_BASE
    any idea what could be the reason ?

    Hi All,
    it's very interesting the question of HariPrasad because from yesterday i have the same problem in  a similar environment:
    @5C\QError@     Error reading the data of InfoProvider ZC1ITS02
    @5C\QError@     Error when generating the SQL statement
    @5C\QError@     [IBM][CLI Driver][DB2] DSNT408I SQLCODE = -204, ERROR:  SAPBWD.T00002 IS AN UNDEFINED NAME  DSNT41 8I SQLSTATE   = 42704 SQLSTA
    May the SQL generator does'nt work well whit cube and DB2 ??
    If i execute the Infoset with the debbugging option i can see the SQL code:
    ...........FROM "/BIC/PZC1CPROD0" "T00001",
    "T00002"
    WHERE................
    the first table is an infoobject, the second one is the "missing" cube...............
    Hari, did you solve the problem in the meantime ??
    Thank's to all, Ray.

  • Problem in executing query

    Hi
    I am executing a query where the query gets data from a source system through infosets. So query fetch the data by Infosets using synonym concept.We have structure in BW system and synonym is created in the source system pointing to the BW structure. data is not existed physically in BW system. There will be structure in BW but we wonu2019t store any data in BW system. We create link between source system and BW system through database.
    When i execute the query with certian parameters i am not able to pull the data for a particular posting date. But the data for that particular posting date is available in source system. If i execute without poating date or period i am able to see the data for all the posting date except the posting date which earlier i was looking for.
    Can anyone help me out with this, any possible reasons for the issue,
    Thanks in advance
    RRN-KAR

    So , are you searching for a solution still or not ? It is confusing to see 'Pls Ignore' and 'Not answered'.

  • Problem In Executing Query In JSP-Oracle

    I have one Query with some conditions in it. It showing error in JSP page when Run it like FROM keyword not found where expected, but this query running well in Oracle SQL Developer. The query is given below.
    SELECT SCC.STACK_ID, S.SEVERITY_LOWER AS SEVERITY, S.LOWERSPECLIMITRISK AS RISK, SCC.SENS, S.NMBR || ' - ' || S.DESCRIPTION AS STACK, 'LSL = ' || S.DESIGNLOWERSPECLIMIT AS "SPEC LIMIT", SCC.ROW_IN_STACK AS "STACK ROW" FROM STACKS S, STACK_CONT_C SCC WHERE S.STACK_ID = SCC.STACK_ID AND (SCC.CONT_ID = :c_id) AND (SCC.SENS < 0) AND (S.DESIGNLOWERSPECLIMIT IS NOT NULL) UNION SELECT SCC.STACK_ID, S.SEVERITY_UPPER AS SEVERITY, S.UPPERSPECLIMITRISK AS RISK, SCC.SENS, S.NMBR || ' - ' || S.DESCRIPTION AS STACK, 'USL = ' || S.DESIGNUPPERSPECLIMIT AS "SPEC LIMIT", SCC.ROW_IN_STACK AS "STACK ROW" FROM STACKS S, STACK_CONT_C SCC WHERE S.STACK_ID = SCC.STACK_ID AND (SCC.CONT_ID = :c_id) AND (SCC.SENS >= 0) AND (S.DESIGNUPPERSPECLIMIT IS NOT NULL) ORDER BY SEVERITY DESC

    Your sql string contains double quotes in it. Are you escaping them properly in Java?
    Please show your code for invoking this sql statement?
    What jdbc driver are you using? oracle thin? oci8? ODBC?

  • Problem with execute query

    Hi all,
    I am modifying a form,
    when i ran this form, in enter query(F7), i enter the value and do F8 but it returns no value
    but value exist in table in database,
    i do not know if i modifyed something related to (F7) and (F8)
    Do you have any idea?
    Thanks!
    Edited by: Tabit7 on 2012-02-27 15:31

    Tabit7 wrote:
    Hi all,
    I am modifying a form,
    when i ran this form, in enter query(F7), i enter the value and do F8 but it returns no value
    but value exist in table in database,
    i do not know if i modifyed something related to (F7) and (F8)
    Do you have any idea?
    Thanks!
    Edited by: Tabit7 on 2012-02-27 15:31In normal stage, i mean, when you press F8 in fresh form does it execute data ?

  • ABAP for SAP HANA

    Is there any difference in normal ABAP and ABAP for SAP HANA ? If yes , then please guide me how to proceed for learning ABAP for SAP HANA ?

    Hi Ruchi,
    There is a slight difference between ABAP and ABAP for HANA. If you are well aware of all ABAP concepts then you can easily understand the ABAP for HANA concepts.
    Some of the differnce which I observed.
    1.  New syntax for Open SQL is introduced, which includes support for comma separated lists, enhanced string expressions, the definition of host variables in a more standard fashion, and fewer restrictions for joins.
    eg:  SELECT so.matnr, so.mtart FROM mara AS so INTO TABLE @it_mara UPTO 10 ROWS.
    2.It uses the TOP DOWN approach so we can use HANA databases capabilities. you can get more information on this in this blog ABAP for HANA and "Code Push-Down"
    3. CDS (Core Data Services) View, AMDP (ABAP managed database procedures) are again new features. Refer this document. http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b01089ed-dead-3110-f28e-caa12aeb5e27?QuickLink=index&…
    Please go through this link It is helpful for you. https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&cad=rja&uact=8&ved=0CCsQFjAD&url=http%3A%2F%2Fsapinsid…
    If you want to learn more about ABAP for SAP HANA then please register for the self placed course on OPENSAP. Here is the link (ABAP Development for SAP HANA - Dr. Jasmin Gruschke and Jens Weiler). I have completed this course and it was very helpful for me to understand the concepts of ABAP for HANA, so I will suggest you to enroll for this course.
    Hope this will help you.
    Regards,
    Sneha.

Maybe you are looking for

  • Example xmlBeans not working in Workshop 7.0

    Hi, I have been trying to use the purchase order example for XMLBeans (http://workshop.bea.com/xmlbeans/docindex.html) in Workshop 7.0. I have the jar file for the schema and added it in the WEB-INF/lib of my Workshop 7.0 project. When i try to use i

  • Song stuck in my iphone

    A while ago I downloaded a song to my phone through the iPhone's iTunes store... Now it's stuck in my Library. I've tried checking and un-checking synced lists I've tried directly deleting it, the red delete button doesn't show up when I slide I've t

  • Return symbol pops up after every use of the return key.

    As I type in Appleworks word processing, the return symbol appears. I've searched Help with no success. I must have accidently made that happen, but I can't locate a place to change it. Thanks in advance for your help.

  • Difference b/w Offline & online Pdf's

    Hi Friends,    can any one tell me a what is the difference b/w offline and online Pdf's Thanks, vino

  • Default Mail Fonts?

    Can someone please list the default Mail fonts? I can't find them anywhere. I changed mine, don't like the new ones, and can't remember the old ones. Thanks!