Text Tables in ABAP Queries

Can we use Text Tables in ABAP Query?

HI,
yes we can use text tables in ABAP SQL Queries example MAKT is a text table for material descriptions
we can have the query on this table.
regards
sarves

Similar Messages

  • In which Table all ABAP queries store?

    Hi Guys,
    In which Table all ABAP queries store?
    Thanks,
    Sa nkar

    Hi..
    ABAP Queries are also stored in the Table TADIR along with other Repository Objects.
    the following fields must be checked to Find ABAP Queries in this Table:
    PGMID = 'R3TR'
    OBJECT = 'AQQU' "For ABAP Queries
    This will help u to retrieve the ABAP queries from this table TADIR.
    sample code:
    data: itab type table of TADIR.
    SELECT * FROM TADIR into table ITAB.
    WHERE PGMID = 'R3TR'
    and OBJECT = 'AQQU'
    and (OBJ_NAME like 'Z%' or OBJ_NAME like 'Y%').
    REWARD IF HELPFUL.

  • Re: join cluster table into transperant table in ABAP Queries

    Hi gurus
    How to join cluster tables into transperant tables in ABAP Queries,
    I want to join KNA1, KNB2, BSEG(cluster table)
    pls explain me
    amk

    Hi
    You can use join for KNA1 and KNB1 which will much faster
    then use for all entries of this itab to get the BSEG to improve the performance
    here you need to do some trial and error method by joining  removing the tables and also for all entries
    regards
    Shiva

  • How to create text table

    can anyone tell, how to create text table in abap.

    Hi,
    Follow this procedure
    To create a text table for a table ZABC,
    1. you have to create a ZABCT table with the field = all the primary fields of table ZABC + SPRSL type SPRAS + Text field.
    2. Every other field except the text field should be primary key fields.
    3. Maintain a foreign key relationship between ZABC and ZABCT over the field required field (in TSTCT the required field is TCODE).
    4. Activate the table.
    5. Now you should be able to traverse to the text table ZABCT from ZABC (menu path: Goto->Text Table)
    Hope this will help.
    Regards,
    Nishit

  • F4 Help with text table in WD abap

    Hi,
    i am using country related input help with check table T005 in one of table and i want to display the country text along with country id in my table, f4 for country is coming however if i select country from f4 it showing country id in the input field of table.
    i want to have country text also in one of my input fields in the table, i have seen f4 help works if we have explicit search help and using parameter assignment we can have id and text defaulted if we use same context for id and text fields,  however in this case country table t005 has check table t005 where texts are stored in text table t005t so web dynpro abap is't picking up the texts??
    please suggest how can i get the texts as soon as i select country in the f4??

    Hi Kranthi,
    You merely have to have an internal table storing list of countries, which you only need to do once, e.g. on load of application (method WDDOINIT of COMPONENTCONTROLLER). In your view, you have to declare a method for event onEnter of the input field, but this method doesn't have to have any code. Your code will be in method WDDOBEFOREACTION, where you read get country name from country key. Once you've got country name, transfer value to a context attribute to which you've already mapped as a source for attribute value of the UI element.
    Check out SAP Webdynpro component FITV_IMG_DEFHTLCATA -> view V_ITEM.

  • ABAP Queries table

    Hi,
    can any bady help me that there is a one table which stores all custom abap queries , i need that table urgently

    Hi,
    in table AQGDB table there is 5 fields , in which filed i have give qurey name to search is there or not

  • Key/Text table - usage in an ABAP program

    Hi Abapers!
    I need help about usage of key and text tables.
    I have created key and text table and now i want to use them in the abap program. My problem is, that i don't know how to properly read data into internal table from these two tables, so i can show these data in the table control. I also want to know how to save data from text boxes into key and text table (text boxes: txtid, txtlang, txttext).
    Key Table:
    name: ztbl1
    fields: mandt, id
    key fields: mandt, id
    Text table:
    name: ztbl2
    fields: mandt, lang, id, text
    key fields: mandt, lang, id
    Tables are connected together as they should be.
    And i don't want to use sm30 for editing table data.
    Regards,
    Egi

    My Dear,
    u are loosing the concept of Text table...
    Text table are generally used for multi lingual F4 (i.e you enter vaious F4 list to be displayed for a perticular field when a user from differenct lang log on)
    for eg...
    in urr text table u have .. 2 key itemm
    item_code     ||      lang     ||     text
    10111         ||      E        ||     Eng_Chicken
    10111         ||      D        ||     Chickeno (translation from eng to germen)
    10111         ||        F      ||     Ghoose..
    so when a user with logon lang as 'E' will log on and when he press F4 on item_code he ill see Eng_chicken
    but when a user with logon lang as 'D' will log on and when he press F4 on item_code he ill see Chickeno not Eng_chicken..
    i hope u understood the whole concept...
    No rewards Plz...

  • Deleting row from table in ABAP webdynpro

    Hi all,
    Can anyone help me regarding deletion of a row from a table in ABAP webdynpro.
    I have written a code like this :
        DATA:
          NODE_STUDINFOSYS                    TYPE REF TO IF_WD_CONTEXT_NODE,
          ELEM_STUDINFOSYS                    TYPE REF TO IF_WD_CONTEXT_ELEMENT,
          STRU_STUDINFOSYS                    TYPE IF_COMPONENTCONTROLLER=>ELEMENT_STUDINFOSYS .
      navigate from <CONTEXT> to <STUDINFOSYS> via lead selection
        NODE_STUDINFOSYS = WD_CONTEXT->GET_CHILD_NODE( NAME = IF_COMPONENTCONTROLLER=>WDCTX_STUDINFOSYS ).
      get element via lead selection
        ELEM_STUDINFOSYS = NODE_STUDINFOSYS->GET_ELEMENT(  ).
    deleting data selected via lead selection
        NODE_STUDINFOSYS->REMOVE_ELEMENT( ELEMENT = ELEM_STUDINFOSYS ).
    *But I am getting an error:*
    Error when processing your request
    What has happened?
    The URL http://hsdnt24s11.hclt.corp.hcl.in:8000/sap/bc/webdynpro/sap/znet310_add_del_sech/ was not called due to an error.
    Note
    The following error text was processed in the system HE6 : The lead selection has not been set. VIEW_ADD_DEL_01
    The error occurred on the application server hsdnt24s11_HE6_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: RAISEELEMENT_NOT_FOUND of program CL_WDR_CONTEXT_NODE===========CP
    Method: PATH_TABLE_GET_ELEMENT2 of program CL_WDR_CONTEXT_NODE===========CP
    Method: GET_BOUND_ELEMENT of program CL_WDR_VIEW_ELEMENT_ADAPTER===CP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system HE6 in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server hsdnt24s11_HE6_00 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server hsdnt24s11_HE6_00 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 800 -u: SUMANK -l: E -s: HE6 -i: hsdnt24s11_HE6_00 -w: 0 -d: 20081220 -t: 155832 -v: RABAX_STATE -e: UNCAUGHT_EXCEPTION
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    Can anyone help me???

    Hi Suman,
    this issue seems to be not specific to the FPM. I would like to suggest you to address this problem in the ABAP forum.
    Best regards,
    Thomas

  • How to transfer data in change log table of dso to z-table using abap code

    Hi  can you please explain me how to transfer data in change log table of dso to z-table using abap code ,with out using Function module concept

    PROGRAM NAME:   ZBW_DELTA_TO_GSTAR                                 **
    report ZBW_DELTA_TO_GSTAR no standard page heading
                                     line-size 120
                                     line-count 75
                                     message-id ZBW_MSG_CLS.
    tables:   ZGIV_DLTA_EBV_BB,
              ZGIV_DLTA_EM2_BL,
              ZGIV_DLTA_EM2_BK.
    Selection Screen Definitions
    SELECTION-SCREEN: BEGIN OF BLOCK INNER WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN: SKIP 1.
    PARAMETERS:       EBVBB RADIOBUTTON GROUP ROLL,
                      EM2BL RADIOBUTTON GROUP ROLL,
                      EM2BK RADIOBUTTON GROUP ROLL.
    SELECTION-SCREEN: END OF BLOCK INNER.
    Data:  WS_UPDATE_FLAG  Type C,
           UCounter(9)      Type N,
           ICounter(9)      Type N.
    DATA:  T_ZGIV_DLTA_EBV_BB Type Standard Table of ZGIV_DLTA_EBV_BB,
           s_ZGIV_DLTA_EBV_BB LIKE line of T_ZGIV_DLTA_EBV_BB.
    DATA:  T_ZGIV_DLTA_EM2_BK Type Standard Table of ZGIV_DLTA_EM2_BK,
           s_ZGIV_DLTA_EM2_BK LIKE line of T_ZGIV_DLTA_EM2_BK.
    DATA:  T_ZGIV_DLTA_EM2_BL Type Standard Table of ZGIV_DLTA_EM2_BL,
           s_ZGIV_DLTA_EM2_BL LIKE line of T_ZGIV_DLTA_EM2_BL.
    Standard Internal Tables - Describe usage.
    data: begin of i_AEPSD_O0140 occurs 0.
            include structure /BIC/AEPSD_O0140.
    data: end of i_AEPSD_O0140.
    data: begin of i_AEPSD_O0240 occurs 0.
            include structure /BIC/AEPSD_O0240.
    data: end of i_AEPSD_O0240.
    data: begin of i_AEPSD_O0340 occurs 0.
            include structure /BIC/AEPSD_O0340.
    data: end of i_AEPSD_O0340.
    data: begin of i_GIV_DLTA_EBV_BB occurs 0.
            include structure ZGIV_DLTA_EBV_BB.
    data: end of i_GIV_DLTA_EBV_BB.
    data: begin of i_GIV_DLTA_EM2_BK occurs 0.
            include structure ZGIV_DLTA_EM2_BK.
    data: end of i_GIV_DLTA_EM2_BK.
    data: begin of i_GIV_DLTA_EM2_BL occurs 0.
            include structure ZGIV_DLTA_EM2_BL.
    data: end of i_GIV_DLTA_EM2_BL.
    Miscellaneous Program Variables and Constants.
    TOP-OF-PAGE
    top-of-page.
    START-OF-SELECTION
    start-of-selection.
      Clear: i_GIV_DLTA_EBV_BB,
             i_GIV_DLTA_EM2_BK,
             i_GIV_DLTA_EM2_BL,
             UCounter, ICounter.
      IF EBVBB = 'X'.
        PERFORM 100_EXTRACT_EBV_BB_DELTA_RECS.
      ELSEIF EM2BK = 'X'.
        PERFORM 100_EXTRACT_EM2_BK_DELTA_RECS.
      ELSE.
        PERFORM 100_EXTRACT_EM2_BL_DELTA_RECS.
      ENDIF.
    FORM 100_EXTRACT_EBV_BB_DELTA_RECS
    FORM 100_EXTRACT_EBV_BB_DELTA_RECS.
      Refresh:   i_AEPSD_O0140,
                 i_GIV_DLTA_EBV_BB.
      Clear:      UCounter, ICounter, s_ZGIV_DLTA_EBV_BB .
      Select * From /BIC/AEPSD_O0140
        Into TABLE i_AEPSD_O0140.
      IF SY-Subrc = 0.
        LOOP AT i_AEPSD_O0140.
          MOVE-CORRESPONDING i_AEPSD_O0140 TO s_ZGIV_DLTA_EBV_BB.
          MOVE SY-DATUM to s_ZGIV_DLTA_EBV_BB-create_dt.
          INSERT ZGIV_DLTA_EBV_BB FROM s_ZGIV_DLTA_EBV_BB.
          IF SY-Subrc = 0.
            ICounter = ICounter + 1.
          ELSE.
            UPDATE ZGIV_DLTA_EBV_BB FROM  s_ZGIV_DLTA_EBV_BB.
            IF SY-Subrc = 0.
              UCounter = UCounter + 1.
            ELSE.
              Message E067 with SY-DATUM ' ' SY-UZEIT ' '.
            ENDIF.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    "100_EXTRACT_EBV_BB_DELTA_RECS
    FORM 100_EXTRACT_EM2_BK_DELTA_RECS
    FORM 100_EXTRACT_EM2_BK_DELTA_RECS.
    Refresh:   i_AEPSD_O0240,
               i_GIV_DLTA_EM2_BK.
      Clear:      UCounter, ICounter, s_ZGIV_DLTA_EM2_BK .
      Select * From /BIC/AEPSD_O0240
        Into TABLE i_AEPSD_O0240.
      IF SY-Subrc = 0.
        LOOP AT i_AEPSD_O0240.
          MOVE-CORRESPONDING i_AEPSD_O0240 TO s_ZGIV_DLTA_EM2_BK.
          MOVE SY-DATUM to s_ZGIV_DLTA_EM2_BK-create_dt.
            INSERT ZGIV_DLTA_EM2_BK FROM s_ZGIV_DLTA_EM2_BK.
          IF SY-Subrc = 0.
            ICounter = ICounter + 1.
          ELSE.
            UPDATE ZGIV_DLTA_EM2_BK FROM  s_ZGIV_DLTA_EM2_BK.
            IF SY-Subrc = 0.
              UCounter = UCounter + 1.
            ELSE.
              Message E067 with SY-DATUM ' ' SY-UZEIT ' '.
            ENDIF.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    "100_EXTRACT_EM2_BK_DELTA_RECS
    FORM 100_EXTRACT_EM2_BL_DELTA_RECS
    FORM 100_EXTRACT_EM2_BL_DELTA_RECS.
    Refresh:   i_AEPSD_O0340,
               i_GIV_DLTA_EM2_BL.
      Clear:      UCounter, ICounter, s_ZGIV_DLTA_EM2_BL .
      Select * From /BIC/AEPSD_O0340
        Into TABLE i_AEPSD_O0340.
      IF SY-Subrc = 0.
        LOOP AT i_AEPSD_O0340.
          MOVE-CORRESPONDING i_AEPSD_O0340 TO s_ZGIV_DLTA_EM2_BL.
          MOVE SY-DATUM to s_ZGIV_DLTA_EM2_BL-create_dt.
            INSERT ZGIV_DLTA_EM2_BL FROM s_ZGIV_DLTA_EM2_BL.
          IF SY-Subrc = 0.
            ICounter = ICounter + 1.
          ELSE.
            UPDATE ZGIV_DLTA_EM2_BL FROM  s_ZGIV_DLTA_EM2_BL.
            IF SY-Subrc = 0.
              UCounter = UCounter + 1.
            ELSE.
              Message E067 with SY-DATUM ' ' SY-UZEIT ' '.
            ENDIF.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    "100_EXTRACT_EM2_BL_DELTA_RECS
    END-OF-SELECTION
    end-of-selection.
      perform D1000_REPORT_DATA.
    D1000_REPORT_DATA
    form D1000_REPORT_DATA.
    *Display the title of the program
      write: /25 SY-TITLE.
      skip.
    Diaplay the details of the user and time
      write: /1 'Executed by', 15 SY-UNAME, 30 'Date',
      38 SY-DATUM, 53 'Time', 60 SY-UZEIT.
      skip 2.
      write: /  'Delta Records have been extracted  ',
             /   'Updates : ', UCounter,
             /   'Inserts : ', ICounter.
      skip.
      skip 3.
      write: /20 'End of the report'.
    endform.                                           "D1000_REPORT_DATA
    chgeck it out this also may hep you

  • Executing Abap Queries in Abap Code and processing the result

    Hi,
    I want to execute ABAP Queries (designed by sq01) in an abap report and processing the result in an internal table.
    How could it be work?
    Thanks a lot for your responses,
    with kind Regards
    Reinhold Strobl

    Hello,
    GO to SQ01 and select your query. Go to Menu QUERY-->More Functions->Display Report Name.
    You can then take that report name and go to SE38. Copy the code before END-OF_SELECTION and then modify as per your own requirements.
    Regrads
    Saket Sharma

  • ABAP Queries

    We have just upgraded from 4.6 to 6.0. I have noticed lot of differences in the code behind the ABAP queries that is generated once the queries are created. In some instances they are form bunch of include programs like the ones below but in some other queries its the regular code of a query program like it used to be in 4.6 . I also noticed that the extra coding I did in the END_OF_SELECTION event of the Infoset is not getting picked when I execute the query. Have any of you encountered these things?
    *report AQICZSD_CORP====Z_DIR_SALE_NEW.*
    *include /1BCDWB/IQ000000000725DAT.*
    *data %dtab type standard table of /1BCDWB/IQ000000000725 with header line.*
    *data %subrc type sy-subrc.*
    *include /1BCDWB/IQ000000000725SSCR.*
    *include /1BCDWB/IQ000000000725SSCRAT.*
    *start-of-selection.*
      *if %runmode-extr_on <> space.*
        *call function '/1BCDWB/IQ000000000725EXTR'*
             *tables     %selopt = %seloptions*
                        *%dtab   = %dtab*
             *changing   %rtmode = %runmode*
             *exceptions no_data = 1*
                        *others  = 2.*
        *%subrc = sy-subrc.*
        *call function 'RSAQRT_CHECK_EXTR'*
             *exporting extr_subrc = %subrc*
             *tables    dtab   = %dtab*
             *changing  rtmode = %runmode.*
      *endif.*
    *end-of-selection.*
      *if %runmode-show_on <> space.*
        *call function '/1BCDWB/IQ000000000725SHOW'*
             *tables   %dtab   = %dtab*
             *changing %rtmode = %runmode.*
      *endif.*
       special code for old API and BW extractor calls**
    *form %set_data changing p_lines type i.*
      *import ldata to %dtab from memory id 'AQLISTDATA'.*
      *describe table %dtab lines p_lines.*
      *free memory id 'AQLISTDATA'.*
    *endform.*
    *form %get_data tables p_dtab  structure %dtab*
                   *using  p_first type i*
                          *p_last  type i.*
      *append lines of %dtab from p_first to p_last to p_dtab.*
    *endform.*
    *form %get_ref_to_table using p_lid   type aql_lid*
                                 *p_ref   type ref to data*
                                 *p_subrc type i.*
      *if p_lid = %iqid-lid.*
        *create data p_ref like %dtab[].*
        *p_subrc = 0.*
      *else.*
        *p_subrc = 4.*
      *endif.*
    *endform.*

    Hi Jak,
    I guess all ur questions are answered except 2.
    Ans2. Well a correction is a change done to a original SAP object, while a repair is done to a duplicate SAP objects. (I hope its not vice vers, I am bit confused wid that : ) )
    Lets take an example. All the object on a customer system are duplicate object since they are all copy of Original SAP object. So if u make a modification to an existing SAP object at a customer system it comes under the category of Repair i.e all customer modifications of SAP standard objects are repairs.
    While if SAP makes changes to its original object it comes under Corrections. i.e all support packages / Notes comes wid correction requests.
    Now what if a customer has its own object changed .. .then it wil come under the cateogry of correction and not repair.
    Now the trick is which system Dev , Test , Prod ...
    well ofcourse Development .. since your test and production system contains a copy of the objects in Development system.  : )
    hope this help .... but please verify the answer I may not be 100 percent correct.
    regards,
    Sumeet Mishra

  • Translation of table entries with text table attached via SE63

    ZMRAREA(Custom) table has a text table(ZMRAREAT) attached to it.I want to copy the English text in all the other language codes for one of its text field.
    But when I try with the main object i.e. ZMRAREA,it throws "No object found" and when I try to translate using its text table( ZMRAREAT)
    it says "no text found in  source language"even though maintained in English.
    Unlike ZMRAREA, if I try with some other tables with no text table linkage then I could easily do the translation using the path :Translation>> ABAP OBJECTS >> Short Text>> A1 Application Texts >>  Tab TABLE >>CSKU<table name>  >> Edit  >> Edit >> Select the required record and proceed with the translation.
    Please give me the path for translation of text tables in SE63

    Hi
    Hope this will work for you.
    Reward if help.
    Transaction SE63 enables you to perform the following activities:
    - Call up an individual object to translate it directly
    - Call up a worklist to find and translate objects requiring translation and belonging to packages assigned to you
    - Define your translator settings to suit the way you want to work with the translation tools
    This helps in translating the text to different language.
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/b4/54601d77f38e429ffad9e3e11c1b25/frameset.htm

  • Creating ABAP queries with t-code SQ01 in SRM

    Hi.
    What tables are available for me to use ABAP queries with t-code in SRM as we currently use this for MM.
    Please can someone tell me if a list of usefull tables for Carts, Approvals, PO are available in SRM as I cannot find these in SE11. We have no BW and need ABAP query for fullfilings any business requirements.
    Thankyou.
    Vijay.

    Please search the documents in transaction BBP_PD. When you click the details it will give you the table details as well.
    Additionally check this thread for details
    good source for tables and reports
    Regards
    Kathirvel

  • Text table creation

    hi all,
      can you explain me , How to create text tables for transaparent table in abap dictionary..
    Thanks in Advance.
    parashuram
    Moderator message: please search for available information.
    Edited by: Thomas Zloch on Feb 6, 2012

    Hi
    I've just created a table and its text table for a my developoment (I haven't yet generated maintenance program for SM30)
    When I defined the text table I've inserted:
    MANDT       (foreign key with T000), key field                                                                         
    SPRAS       (foreign key with T002), key field
    <my field>   (foreign key with my z-table, checked text table, cardinality 1:CN), key field
    descr          (domain BEZEI40)
    Now I see the record of my z-table by SE16 I can see the descr field of text table
    Max

  • Custom Master Text Tables

    Hi,
    I'm creating a customer master report and having problem determining the text tables of some fields:
    a.) Sales Region
    b.) Sales Office
    c.) Customer Group
    d.) Delivery Priority
    e.) Shipping Conditions
    f.) Delivering Plant
    g.) Partial delivery per item (Complete delivery indicator)
    h.) Terms of payment
    i.) Acct assgmt group
    Appreciate any helpful hints.
    Regards,
    Mawi

    currently, i dont hv SAP access, so, just am answering generically,
    - you can get them with check tables relationship, in either SE11 or SE16
    - use WHERE USED LIST of that particular field, then pick the table, which possess the T in the last position of the name
    - also check, VALUE TABLEs at domain level in SE11
    thanq
    Edited by: SAP ABAPer on May 6, 2009 4:40 AM

Maybe you are looking for

  • Mid 2012 Macbook Pro 15" Crashing

    My Macbook is out of warranty fyi My macbook pro mid 2012 is freezing so that I have to do a hard restart. When I first got it I put ram that was the wrong speed in it, so it was messed up for a while and froze a lot. Now I have 16GB ram that is righ

  • Embedding SlideshowPro in a Flash Website

    Hello everyone at the Flash forums! I am currently trying to make a Flash website for my cousin's business, and his website should feature a portfolio gallery to display the work he has done (He is a contractor). I am trying to use the SlideshowPro p

  • 'phantom' fields appearing several edits down the line...

    I've been transferring stuff from PAL composite video via a Canopus ADVC300: http://desktop.grassvalley.com/products/ADVC300/index.php It creates huge AVI files which I then convert to a size I want to work with. I've been working on something that w

  • How to change iMovie Project from iSight to DV-NTSC?

    I noticed my iMovie project says it's an iSight project, meaning everything will be converted to motion-JPEG's on export in full quality. But my project has both DV and MJPEG clips and I prefer to export my DV clips untouched, not converted to MJPEG.

  • Are there any iPhone headsets that allow volume control?

    The new Apple In-Ear headphones are shipping at last, and I am considering buying some. I am currently looking to upgrade to some high-quality headphones from my standard iPhone buds, but I would like to have a working microphone and remote like thos