Database View is not appearing in the ABAP Coding

Dear Friends,
I am very much new in the ABAP. Actually I worked last 8 years in the Oracle PL/SQL. Recently, my company implements SAP. The database is Oracle 10g. I would like to use my oracle experience in the project. But in everywhere I faced some problem.
I have created one Database view by the Native sql. Here I am giving you the code.
Create OR REPLACE view ZVMVSL_ALLTPORT
AS
SELECT T1.MVESSEL_NO, T1.MVESSEL_NAME, T1.SHIPPINGLINE, T2.MVOYAGENUMBER,
T2.TRANSHIPMENTA AS TPORT, T2.ETDTSHIPMENTA AS ETD_TPORT,
T3.MVESSEL_SRL_NO,
T3.PORTOFDISCHARGE POD, T3.ETAPORT
FROM ZSD_MOTHER_MST T1, ZSD_MOTHER_DTL T2, ZSD_MOTHER_VIA T3
WHERE T1.MANDT = T2.MANDT
AND T1.MVESSEL_NO = T2.MVESSEL_NO
AND T1.MVESSEL_NO = T3.MVESSEL_NO
AND T2.MVOYAGENUMBER = T3.MVOYAGENUMBER
AND T2.TRANSHIPMENTA <>' '
UNION
SELECT T1.MVESSEL_NO, T1.MVESSEL_NAME, T1.SHIPPINGLINE, T2.MVOYAGENUMBER,
T2.TRANSHIPMENTB AS TPORT, T2.ETDTSHIPMENTB AS ETD_TPORT,
T3.MVESSEL_SRL_NO,
T3.PORTOFDISCHARGE POD, T3.ETAPORT
FROM ZSD_MOTHER_MST T1, ZSD_MOTHER_DTL T2, ZSD_MOTHER_VIA T3
WHERE T1.MANDT = T2.MANDT
AND T1.MVESSEL_NO = T2.MVESSEL_NO
AND T1.MVESSEL_NO = T3.MVESSEL_NO
AND T2.MVOYAGENUMBER = T3.MVOYAGENUMBER
AND T2.TRANSHIPMENTB <>' '
This view i could not use from ABAP codes, ABAP/4 only identified by views which we would create from T-code se11. Now tell me how could I solve this issue. Because in this query i did some UNION which is not directly available in teh se11.
Please help me how to handle this situation. Because if I can use this sort of native sql views, I could solve lot of things in the development.
rgds
Farhad

>
Farhad Islam wrote:
> This view i could not use from ABAP codes, ABAP/4 only identified by views which we would create from T-code se11. Now tell me how could I solve this issue. Because in this query i did some UNION which is not directly available in teh se11.
>
>
> Please help me how to handle this situation. Because if I can use this sort of native sql views, I could solve lot of things in the development.
>
> rgds
> Farhad
You can use real SQL to query non SE11 created database tables - look at the SAP help on EXEC SQL - but this is really not a good idea.  For example, it is database specific which removes one of the 'advantages' of SAP ie that it is portable between different database platforms;using SAP's Open SQL should mean that if your company moves to eg SQL Server it shouldn't be necessary to doing any re-coding whereas anything you've done in Oracle SQL will have to be re-coded. There are also other disadvantages of using real SQL eg you don't get any help from the syntax checker and I think you would bypass the whole SAP security level - SAP security is defined at application level and not via database grants.
I would bet a reasonable amount of money that there is nothing that you can do in real SQL that you can't replicate in SAP's Open SQL .  Ok the Open SQL solution might be a bit more convoluted and possibly less elegant but you can make it do the same thing.  If you want to stick with Oracle then I guess you should look for a job that uses Oracle rather than SAP.

Similar Messages

  • The course I did to gain OCP certification in Oracle Database 11g does not appear on the courses submission list on the website of pearson vue.

    The course I did to gain OCP certification in Oracle Database 11g does not appear on the courses submission list on the website of pearson vue, I sent an email to [email protected] from < email address deleted by moderator >, without an answer in 7 days since 01/28/2015, the email is below, the title of my course is in Portuguese.  What should I do in this case ?
    Dear Oracle.
    I am sending this email because recently I passed in the exam 1Z0-053 Oracle Database 11g: Administration II, which is the last examination necessary to acquire the OCP Certification. However, in the path to the certification I need to prove that I participated in an Oracle Official Training.
    Searching for the course on the pearson vue site, I have not found the course name on the list. So I am sending this email with the course information required for certification. I attended to the course in college FIAP (http://www.fiap.com.br/en/conheca-a-fiap/parcerias-estrategicas/), in the city of São Paulo, Brazil, from March/2010 to March/2011. Accessing the link above is possible to verify that the educational institution is an Oracle Partner. The title that I got was "Graduate in Oracle Database Management".
    In this email I attached a copy of the FIAP Certified Course (front.jpg certificate, certificate back.jpg). I’m also sending the data from my profile in the pearson vue site (Pearson VUE - My profile.pdf), and my scores in the exams for OCP certification (1Z0-051.pdf, 1Z0-052.pdf, 1Z0-053.pdf ).
    If you need any further information just let me know and I will provide.
    Please acknowledge this information and grant me the OCP certification (Oracle Database 11g Administrator Certified Professional).
    Regards.
    Italo Moisés dos Santos.
    Oracle Testing ID:  < deleted by moderator >

    Sorry, I expressed myself badly.
    When I access http://www.pearsonvue.com/oracle/course/ and start submission process  of the course, in the first step “Select the track for which you have completed a certification requirement” I selected the option “Oracle Database 11g Administrator OCP”, in the second step I selected “ILT = Instructor Led Training”,  but when I got on the third step “Which course or requirement did you complete?”  I have to choose the course name that I did, the course name that I did does not appears in that list, so I do not know which one to select, even having at the end of the form the option “Other ...(Course or requirement is not shown above. Please enter title below.)” the course name I did is in Portuguese/Brazil, the name is “MBA em gestão de banco de dados oracle” in Portuguese, which in English would look like "Graduate in Oracle Database Management".
    I sent an email to [email protected] containing the information that I found necessary to obtain certification.
    But if I have to do the process in the pearson vue site, should I put the course name in Portuguese or in English ?
    Only the email I sent is not enough ?
    Thanks for the help, and sorry for my english !

  • Cross Reference Sources appearing in Story Editor view but not appearing in the Cross Ref pane

    I have imported a Word document containing working cross references into an InDesign document. The vast majority of these cross references import correctly and link to their destinations within the document, however there are some that are not working. If I view the text frame in the story editor view, I can see these "broken" cross reference sources that came in from the Word doc but on selecting them I can see that there isnt a corresponding entry for it in the cross reference pane. As said, there are only a few that are behaving like this.
    What could be causing these not to appear in the cross reference pane?
    Obviously as they are not appearing in the list of cross references I can't update them, and also, as they are technically broken cross references, because a source exists for them but there is no corresponding entry in the pane, then on export to epub, InDesign crashes (If there is one broken cross reference in a document, export to Epub will crash indesign).
    Also, to clarify, in the Word doc if I navigate to a cross reference that is failing once in InDesign, I can update it properly, and also navigate to its destination in the Word doc, so it's not as though these cross references are broken before coming into InDesign. Also I believe the destinations for these "broken" cross references are coming across properly to indesign too as I can see them in the story editor view.
    Supposed Cross Reference source selected in Story Editor view on left, but no corresponding cross reference highlighted in pane on right:
    Technical Details:
    InDesign CS5.5 - Version 7.5.3
    Microsoft Word 2010, File type .docx

    I have found the possible cause of this problem!
    If a table is used within the Word document somewhere between where the cross reference source is and its destination then that particular cross reference will be broken as described above in my initial post.
    So the "fix" is to remove any occurances of a table in the Word document and the cross references come into InDesign perfectly. This is actually not a fix at all. I need to use tables in the Word document for layout purposes so if they break cross references if they stand between them and their destinations then I have to compromise, i.e. use tables but with no cross references in the document or vice versa.
    I found a similar issue recently with index markers in Word causing a shift on the cross reference tags when bought into InDesign. The "fix" again for that was to remove all index markers from the Word document. See post about this here: http://forums.adobe.com/thread/1043981
    InDesign really needs to sort out the issues with importing of Word documents with cross references in them. If I can't use index markers and tables in a Word document without breaking its cross references then they can't claim to have the ability to import a Word document while maintaining its cross references into an InDesign document. It just doesnt work as ive painstakingly proven.

  • Z Database view is not showing all the entries?

    Hello
    Last year I have created a Z table, say, its name is Z_TABL_1, its working fine, say, there is around 1000 entries in PRD, well
    Last week I have created another 2nd Z table, its name is Z_TABLE_2, now it has 50 entries in PRD
    In both tables the key field os the same (VISITOR_NUMBER) and there is only one key field in both tables, its the same
    When creating the 2nd table I forgot to specify the CHECK table relationship in 2nd table refering 1st table, I mean, dependent table is 2nd whereas reference is 1st table
    Now, I created a database view, say, my_db_view on these 2 tables.
    When I opened this my_db_view in SE16, I expected 1000 (this 1st table count) entries, but am seeing just 50 (the 2nd table has only 50 entries) entries!!
    Pls. let me know how can I view all the 1000 entries in SE16 for my_db_view?
    Thank you

    Hi,
    in your DB view tables are joined and database views implement an inner join (you can check here: http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ecab446011d189700000e8322d00/content.htm), that's why the system extracts only 50 records.
    It's not possible to have all the 1000 records using a database view.
    Marco

  • SRM 7.0 New custom fields added to view do not appear in the component conf

    Hi
    I added two custom fields to the view V_QTE_DOFC_I_DESC of the WD componenet /SAPSRM/WDC_DODC_QTE_I_DS. This view gets called when bidder is trying to create a bid and clicks on add Substitute Item in the Item tab. This view is simply a popup window where we can enter ther substitute item.
    I added two custom fields to the context of the above view and placed on the layout of the view as input fields. Then I tried to modify the component configuration /SAPSRM/WDCC_DODC_QTE_I_DS_SUB. When I look in t he web dynrpo built-in for the view V_QTE_DOFC_I_DESC, I don't see the custom fields that I just added. As a result, these custom fields are not displayed when I try to substitute an item. Could anyone tell me how to brining in these two custom fields into the component configuration.
    Any help is greatly appreciated.

    Hi Prasuna,
    Sorry ..You are right..I was looking at some other WDC related to contract data..It you map the CUFs to /SAPSRM/S_CLL_CTR_ITEM which has the include structure INCL_EEW_PD_ITEM_CSF_CTR then it should work fine.
    If you do this, are you able to view the new fields on the screen?
    you mentioned that you are not able to save the data to the table.
    Include your fields in INCL_EEW_PD_ITEM_CSF as well because if you add CUF to any of those doc types, you also have to add those CUF to the global structure for CUF documents.
    Also Check if you fields are there in structures BBPS_CTR_CUF_ITEM,BBPS_CTR_UI_ITEM and BBPS_CTR_ITEM.
    Check whether you have implemented the BADI's like BBP_DOC_CHECK_BADI ,BBP_DOC_CHANGE_BADI and BBP_DOC_SAVE_BADI . check out the structures (whether they having the CUFS) used in those if you have implemented any of them .
    Regards
    Lavanya
    Edited by: LAVANYA CHAVA on Aug 25, 2010 10:10 AM

  • View-does not exist on the database

    Hi Experts,
       Our Data Source/Extract Structure (R/3) is based on a view.
    There is an Issue with the View/DAta Source
    If i go to SE11>view Name> Display then i am getting
       'View ZART_ATTRS is not in the database' and then the next screen is the view definition
    This is a database view which is defined in the ABAP/4 Dictionary but does not exist on the database. No data can be read for this reason
    If i go to RSO2 and enter data source name and select display...
    Then it will display data source status as 'Saved' how can i activate it
    and i go to RSA6 select my Z data source which is based on the above view....context menu display data source/Check data source...when i get error
    'Only Tables and views are permitted for extraction'
    How can i overcome it

    Hi,
    As your view is existing in ABAP DICTIONARY , you need to take help of your DBA to get this created in the underlying database. This can be created using Database utility se14 transaction code. But it is good to have your DBA involved so that you have proper table space allocated to it.
    Hope this helps..
    Regards
    Manga(Assign points if it helps)

  • Police does not appear in the left corner iMovie11 viewer, any idea?

    Police does not appear in the left corner iMovie11 viewer, any idea?

    Hi Bengt,
    actually I just found what is the problem, if I choose the Halo effect in the Title navigator (sorry if the words are not exactly it, mine is in French so I translate) I do not have the "show the polices" in the upper left corner of the viewer, but if I choose another one like a lateral effect, it appears and I can modify the polices and colors of my title. Go figure?!
    I spent maybe 2 hours trying to understand that, well I think it is a glitch, but maybe just on the French version, I don't know.

  • Fcx4 bin clips are not appearing in the viewer after clicking on them.

    fcx4 bin clips are not appearing in the viewer after clicking on them , i need help getting them to appear in the viewer.

    I have the same issue. I am using apex.oracle.com for some test applications, but for last couple of weeks when I login and click the "Application builder" I could not see my applications there (around 4-5 of them)! It says No applications found.
    Neither I have any application groups setup nor do any criteria given in "Application" search field under "Application builder".
    The only way I could access some, if not all, of my applications is to pull it from the link under the context box "Recent" (which you can see in the right hand side of the "Application builder" page.)
    Any help is greatly appreciated. This issue is not a show stopper as I could still pull out my critical applications from the recent link, but its definitely a worrisome issue.
    Thanks in advance
    Regards
    Ligon Gopinathan

  • Newly added Cal.View Measure does not appear in the BEX Designer

    Hi,
    anybody come about this :
    A newly added Cal.View Measure does not appear in the BEX Designer:
    I got a runnig query in Bex Designer, based on a transient InfoProvider which is based on a HANA Calculation View
      and
    added a new measure to the Calculation View
      and
    added a Reference InfoObject in the Publisher to the (transient) InfoProvider.
      and
    see the newly added filed in the Listccube of the(transient)   InfoProvider with a technical generated name
      and do not
    get the newly added measure in the BEX Designer.
    Whats wrong ? What needs to be done ?
    Thank You
    Martin

    Hi Martin,
    Are you trying to consume the HANA Calc View in BEx Front End Tool - Query Designer.Could you also check the data preview of the Calc View shows the newly added Measure.Check the definition of Calc View under SYS_BIC schema ->Column Views.
    Rgds,
    Murali

  • RV13B is not defined in the ABAP dictionary

    Hi Experts,
    Iu2019ve a requirement to create a smartform,and then save it as a pdf and email. I have all of this done except for one part. At present my email address (for testing purposes) is hard coded as the email address. However I want to automatically pick up the email address to which my form is to be sent.
    The email address is found in transaction mn22. The pdf will be emailed to RV13B-PARNR (Partner) based on KOMB-LGORT (storage location). Each storage location is unique.
    Iu2019ve put in the following code:
    SELECT PARNR FROM RV13B INTO CORRESPONDING FIELDS OF TABLE it_vemail[]
    WHERE stor_loc EQ KOMB-LGORT.
    However Iu2019m getting the error RV13B is not defined in the ABAP dictionary as a table, projection view or database view.
    Could anyone give me some help?
    Thanks,
    Mike.

    Mike,
    F1 Technical help will not give you the table name in some cases.Instead of the table it will refer to the structure.In such a case you need to get the corresponding table for that field either from SQL trace or searching the possible tables with such field using SE84 which requires a bit of analysis in zeroing on the correct table where you can get the appropriate data related to that field.
    SE84>>ABAP Dictionary>>Fields>>table fields.
    Give PARNR and get the list of the possible tables containing PARNR as a field.If one is aware of the functionality then it will be easier to zero in on the field and the corresponding table from that list.
    SQL trace can help you in tracing out the possible tables used by a transaction code.ie if you do a SQL trace on VA01 you will come to know all the possible tables of VA01.
    Thanks,
    K.Kiran.

  • Common Services portal does not appear on the LMS 3.0 homepage

    Hi,
    I am encountering a problem on Ciscoworks LMS 3.0 wherein the Common Services portal does not appear on the homepage. This was after I tried to upgrade CW to LMS 3.2 but does not seem to work so I revert back to LMS 3.0. I even did a restore of the backup database but still no Common Services on the homepage.
    How do i resolve this?
    Appreaciate your help. Thanks in advance!

    If you're not seeing the Common Services application portlet on the Functional Portal View, then you need to open a TAC service request to get the steps to manually re-register all of the installed applications from the command line.

  • The new column designed not appears in the form

    Dear All Gurus/Experts,
    I created new column directly in the database stored in the SQL server 2000,in table IGN1, right click --> select design table, then right click --> insert column, I write U_copqty, numeric data type, 9 is its length and allow nulls check mark.
    I can't understand why the field is not appeared in the form settings like other columns so that I can thick and make it appear in the form IGN1 (receipt from production). I have read development training files but I am confusing if it is really need VB.net to do that. I also know about user defined field but it doesn't what I need because I have created UDF in the production order row but I can't find it in the receipt from production form, so I just did create the new field/column directly in its database but I fail to make it appear in the form settings when I need it to be available in the receipt from production form. would you pls help me ? I appreciate your answer. TIA
    Rgds,
    Steve

    Hello Steve,
    The reason you can not see the directly added field is because that there is another table CUFD which holds all the User Defined Field information. So, you need to add a new record in that table. However, the approach is really not SAP recommended. Directly handling database could be very risky. Please create the user defined field according to the steps.
    Regarding why you can not view the field you created, did you create a row or document level field?
    Hope this helps,
    Nick

  • Database View do not refresh in ADF application

    Greetings,
    im facing a weird problem in my application (JDeveloper 11.1.2.4.0 - ADF). All this time i was working directly with tables (VO), but now i also started using database views.
    Everything works fine, when i add a new row in a table that my Database Views is associated with, it refresh properly.
    BUT if i delete rows manually from my database, the View do not refresh in my application, not by refreshing the page,
    redeploying application, even executing the view object query inside the view object. The only way for the DB View to be
    refresh inside the JDeveloper and on deployment time is by restart JDeveloper. I try adding an action on my OV to re-execute them when
    i do something specifically, hopefully the will reset the cache and retrieve the DB view again, but with no luck..
    Correction: now it doesnt even refresh on restart jdeveloper.
    Just for the clarification, im talking about Database Views, and not just Object Views. I create a Object View inside the application to retrieve the data
    from the Database View results.
    Can you help me on this please?

    Yes the queries in SQLDeveloper was showing me correct results.
    But i feel disappointed.. When i went to close SQLDeveloper to try something, it pop me a message to commit/rollback changes.
    After i commit them, my app show correct results too.

  • I can´t sync my iphone, it do not appears on the itunes screen, what can i do?

    i can´t sync my music to my iphone beacause it do not appears on the itunes screen, i have do all the itunes support but it doesn´t help me.

    Please Click on the 'Print Screen' for better view.

  • Strategy escalation not appearing in the escalation node of UWQ.

    Hi,
    Module: Advanced Collections
    Customer has done the following test case:
    There are three work items in the collection strategy. First two work items are automatic and completed successfully. Third work item is manual and need to be escalated to manager, if it is not closed within time limit.
    Escalation for third Work Item has been setup. On the expiry of the time limit, system sends a email notification to the manager of the collector but this escalation is not appearing in the escalation node of the collectors work queue.
    Checked the collections implementation guide and found the following:
    "In the Escalation section, enter Yes and a closure time if you want an "automatic"
    notification sent to the collector’s manager if the work item is not completed in the
    specified time period"
    It has not specified whether the escalation appears in the workqueue node of the manager.
    I would like to know whether the escalations should appear in the escalation work queue node or is this an intended functionality.
    Thanks and regards,
    Hareesh

    Hareesh,
    As I see the work items a resource after esclation will only in the escalated node but not in the queue of the manager.
    My requirement was to show the UQW items of the subordinates of a manager in the UWQ apart from his own. I am not sure the R11.10 and above with some patch levels has that functionality out of the box, but I had to change the metadata view defnition to show that info in the UWQ.
    Going back to your question, escalations use task architecture. As the task owner is still the resource who holds the task of completing it, the task is not "assigned" to the manager but just a mail is sent keeping in the different bucket.
    Hence that **May** not show in the manager queue. But if you change the metadata views, you can show all of my subordinates tasks to the manager as well which includes the escalations.
    You can try using the task escalations screen to reassign the owner to be manager thus taking the task out my list and showing it up in my manager's list.
    I have not tested this but you can try this option and use as a process step.
    Thanks
    Nagamohan

Maybe you are looking for

  • Mac to Pc webcam connection

    Hey i have a macbook pro(10.5.5) and go to college while my girlfriend has a pc and is back home. What should i do as far using webcams/isight so that we video chat successfully.Thanks

  • Can't place music manually in correct genre

    Hi, Within the music library you have several tabs like "genre, albums, artists,..." My problem specificly is that some songs i have are in my opinion placed in the wrong genre, tho i cant find a way to place them into the genre i want it in. I can c

  • Servlet.service() Error. java.lang.OutOfMemoryError: Java heap space

    Hi All, I would be very grateful if you would draw some light for this error I got from running a online database connected image viewer (applet). The application is quite simple, applet connect to servlet, servlet send 3 SQL statements to MySQL and

  • What happened to Oracle by Example?

    What happened to the Oracle By Example Section of OTN? This was a great tutorial which showed how to set up the Oracle database, Application Server etc. It also had case studies showing how to use different features of the database. I was using it as

  • I am  unable to access internet on my ipad  mini

    my ipad is not supporting any other nertwork except airtel