ProC semantic checking without db connection, how to handle views.....

Hello!
We would like to run ProC with sqlcheck=semantics without connecting to a database..
To do this we insert an
EXEC SQL INCLUDE definitions.pc;
in each of our source files containing embedded sql. The file definitions.pc contains
a set of statements of the form "EXEC SQL DECLARE xxx TABLE ( .... );". This file
is generated from another file containing "CREATE TABLE" statements.
This seems to work, if our embedded SQL does not agree with the table definitions in definitions.pc then ProC complains.
We would now like to get semantic checking for embedded SQL that refers to views
but are unsure how to achieve this. There does not seem to be a statement "EXEC SQL DECLARE xxxx VIEW".
One way to "cheat" would be to add "EXEC SQL DECLARE xxx TABLE" statements to definitions.pc for each view in the database. Writing a tool that translate a set of
"CREATE TABLE" into a set of "EXEC SQL DECLARE TABLE" is easy, but translating
"CREATE VIEW" into a corresponding faked "EXEX SQL DECLARE xxx TABLE" seems much harder.
Is there a way to achieve semantic checking without connecting to a database or
without writing a tool that parses full "create view" statements?
Thanks,
Lars

There is a forum for OCI and OCCI. Please post your questions where they are on-topic.

Similar Messages

  • I cannot access my face time.When i do that I get a message that I cannot sign in and to check my internet connection. how can i fixed that?

    i cannot access my face time.When i do that I get a message that I cannot sign in and to check my internet connection. how can i fixed that?

    What version of iTunes are you using?  The latest is 10.6.3. In iTunes, choose Help -> About iTunes to check the version number. If it's lower than 10.6.3, download the latest version from here.
    B-rock

  • Duplicate check via BAS (ADDRESS_SEARCH)-- how to handle non-crm customer?

    Dear all,
    I'm implementing a duplicate check and using the BADI Address_search. Within this BADI I use the method "Address_Search" for calling a third party software tool with customer information. This tool checks whether the entered customer is already available in CRM AND in other system in our company holding.
    The method provides me a list of all found duplicates (incl. non-crm customers)
    My problem is that I need to fill a export table "ex_t_search_result" (type adkey_indx_tab) of this method which expects ADRC number. For the CRM customer it is not a problem. I can figure them out by table BUT020 and the customer number. But for the non-crm customer I do not have a ADRC number.
    I know there are some methods for creating addresses in BAS (function group SZA0), but actually Im not sure how to handle them.
    Does anybody of you had faced a similar issue?
    Thanks for your help
    Firat C.

    hello,
    BP is BDT (Business Data toolset) enabled (you can check it by adding break point in FM BUS_PBO and executing BP transaction). You can add your check directly to standard view (the check will be executed each time when user pushes enter) or you could add you check to appropriate action (during saving etc.) there are number of actions which you could use it depends on your requirements. You can find a lot of info about BDT (if you are not familiar) in Wiki.
    br,
    dez_

  • How to handle views in material master while doing BDC

    Hi,
    I am doing BDC for three material types and the views are different for all the three types. Please anyone tell me how to handle the views for all these three material types.
    Thanks in advance.

    Hi,
    Refer following code which i have used for MRP 1-2-3-4 view selection
                CALL FUNCTION 'MATERIAL_BTCI_SELECTION_NEW'
                  EXPORTING
                    MATERIAL                  = IT_UPLOAD-MATNR  " Material number
                    MATERIALART               = GI_MARA-MTART          " Material Type
                    SELECTION                 = 'D'              " PSTAT(maintenance status) value for MRP.
                    TCODE                     = 'MM01'           " Tcode where view's are called.
                  TABLES
                    BTCI_D0070                = IT_BDCDATA_VIEW
                  EXCEPTIONS
                    MATERIAL_NOT_FOUND        = 1
                    MATERIAL_NUMBER_MISSING   = 2
                    MATERIAL_TYPE_MISSING     = 3
                    MATERIAL_TYPE_NOT_FOUND   = 4
                    NO_ACTIVE_DYNPRO_SELECTED = 5
                    NO_AUTHORITY              = 6
                    OTHERS                    = 7.
                READ TABLE IT_BDCDATA_VIEW WITH KEY FVAL  = 'X'.
                IF SY-SUBRC = 0.
                  V_SELECTION = IT_BDCDATA_VIEW-FNAM.
                  VAR = IT_BDCDATA_VIEW-FNAM+17(2).
                  CONCATENATE 'MSICHTAUSW-KZSEL(' VAR ')' INTO VAR1."MRP1
                  PERFORM BDC_FIELD       USING VAR1 "'MSICHTAUSW-KZSEL(12)'
                                                'X'.
                  VAR = VAR + 1.
                  CONCATENATE 'MSICHTAUSW-KZSEL(' VAR ')' INTO VAR1."MRP1
                  PERFORM BDC_FIELD       USING VAR1 "'MSICHTAUSW-KZSEL(13)'
                                               'X'.
                  VAR = VAR + 1.
                  CONCATENATE 'MSICHTAUSW-KZSEL(' VAR ')' INTO VAR1."MRP1
                  PERFORM BDC_FIELD       USING VAR1 "'MSICHTAUSW-KZSEL(14)'
                                                'X'.
                  VAR = VAR + 1.
                  CONCATENATE 'MSICHTAUSW-KZSEL(' VAR ')' INTO VAR1."MRP1
                  PERFORM BDC_FIELD       USING VAR1 "'MSICHTAUSW-KZSEL(15)'
                                                'X'.
    Regards,
    Pritish

  • Surprisingly, My contact data vanished without any connection, How it is possible and what to do to get back from ICloud.

    I have an Iphone 4s, I did the back up a month ago with Icloud. yesterday, all of a sudden, without any computer or any connection, My contact data which added during last month (after back up) vanished. I am confused what might has happened and is there any way to get the contact details back?

    Hi Michael Gorsline1,
    I understand that you turned off iCloud on your Mac and subsequently lost all of your contacts, notes, and reminders. If your information, remains on iCloud.com, you can merge that information back onto your Mac by signing back into iCloud and selecting the services you would like to sync. 
    Apple - iCloud - Learn how to set up iCloud on all your devices.
    Best regards,
    Joe

  • When your Shuffle is connected- How do you View the songs that are on it?

    So when I connect the shuffle to the computer it shows up in itunes. I can click on it and it takes me to the summary page with several tabs (music, podcast, etc), but I can't seem to figure out how to see what songs I have uploaded to the device? Any ways to figure this out, your help is appreciated

    Hello ThatcherWatts,
    And welcome to Apple Discussions!
    You need to click the small arrow on the left hand side your iPod's device name in the left hand pane of iTunes as seen in this photo (in this case the name of the iPod is in fact iPod ). Doing so will open up a small menu underneath.
    !http://www.lboro.ac.uk/it/mobile/iphone-images/itunes.png!
    B-rock

  • How to handle Views in MM02 for corresponding materials

    Hi,
      I got an requirment in MM02, here view is changing depending on the materials, how can i handel this.
    Reply fast plz. i have to finish today.
    Sample codings also
    Regards
    Justin Jayaraj

    1) u  make  the condition type  based  on material type.
    using select query.
    2)do the recording for  all view.
    3)now  for perticular material type.
    make x for view field come  in recording for perticular material type.
    suppose one material type required 3 view.u can write cond like
    if mat_type = 'RAW'.
    bdc code....
    make  x to the view  which are required...
    othervise better option is   lsmw .

  • ProC - sqlcheck=semantics without connection to a database - handling views

    Hello!
    I have a question about ProC and embedded SQL. I'm not sure if this falls under
    the OCCI umbrella but when I originally posted my question to the SQL forum I
    was directed to the OCCI forum. My apologies if my question is off-topic here as well.
    We would like to run ProC with sqlcheck=semantics without connecting to a database..
    To do this we insert an
    EXEC SQL INCLUDE definitions.pc;
    in each of our source files containing embedded sql. The file definitions.pc contains
    a set of statements of the form "EXEC SQL DECLARE xxx TABLE ( .... );".
    This file is generated from another file containing "CREATE TABLE" statements.
    This seems to work, if our embedded SQL does not agree with the table definitions
    in definitions.pc then ProC complains.
    We would now like to get semantic checking for embedded SQL that refers to views
    but are unsure how to achieve this. There does not seem to be a statement
    "EXEC SQL DECLARE xxxx VIEW".
    One way to do this would be to add a fake "EXEC SQL DECLARE xxx TABLE"
    statement to definitions.pc for each view in the database. Writing a tool that translates
    a set of "CREATE TABLE" into a set of "EXEC SQL DECLARE TABLE" is easy, but
    translating "CREATE VIEW" into a corresponding faked "EXEX SQL DECLARE xxx TABLE"
    seems much harder.
    Is there a way to achieve semantic checking of embedded SQL that refers to views
    without connecting to a database or without writing a tool that parses full "create view"
    statements?
    Thanks,
    Lars

    I'm not sure if this falls under the OCCI umbrellaOnly in the same way that questions about chalk fall under the cheese umbrella.
    Pro*C and OCCI are different subjects.
    We would like to run ProC with sqlcheck=semantics without connecting to a database.Sorry, that's impossible; it's a direct contradiction. sqlcheck=semantics REQUIRES a connection to the database, otherwise the SQLCHECK cannot check the SEMANTICS; to do that it needs to connect to the database.
    If you cannot connect to a database then you can't use sqlcheck=semantics, which in turn means you can't use embedded PL/SQL.
    However you can use Dynamic PL/SQL, which means you have the PL/SQL in a character string and explicitly code what Pro*C does for you automatically. There are very few changes needed to accomplish this, and no change in performance as what you would be doing explicitly in code is exactly the same as what Pro*C does for you in the background; the only difference is syntactic sugar.
    If code changes are impossible and you must have a database, then you will have to install one on the development machine and load into it the objects that Pro*C needs to check in order to complete the semantic check. What isn't checked is that the database at precompile time is the same as the database at runtime, so this is a valid solution.

  • How can we handle view position in bdc

    can any body tell me how to handle view position in bdc

    Hi
    It seems u want to handle views from dictionary.....thats why u have posted a question in this forum. Just post the question in the appropriate forum for BDC...
    and by the way, there are a lot of cases which need to be handled in BDC....so, please be more clear on your question.....
    Reward points if useful
    Regards

  • How can I get Lightroom help to work in 5.6? I get error that it is unavailable and that I should check my internet connection.

    F1 gives me the following error.
    "Online help for Lightroom is not available.  Please check your internet connection and try again.  Help files can also be installed locally using the Adobe Community Help Tool."
    How can I remedy this?

    This is not a bug, it is intended behavior.
    In search fields you might want to search for parts of the name, using a wildcard, that's why the auto-complete is not working there.
    If an end user wants to search the complete name, he can use the LOV to pick a value.
    Steven Davelaar,
    JHeadstart Team.

  • HT4943 I am deploying to Afghanistan and I will not have wifi access.  I will have a hardline access to internet.  How do I sync my apps, newsstand, etc without wifi connection?

    I am deploying to Afghanistan and I will not have wifi access.  I will have a hardline access to internet.  How do I sync my apps, newsstand, etc without wifi connection?

    About the only other way I can think of is to have a computer with you or use one there, if you can put iTunes on it and download all your new stuff to the computer, then sync your iPad to that computer.
    In switching computers you will lose previous content, but, as I understand it anyway, downloaded content will be the same as long as the same apple ID is used.

  • I have tried to update my iphone 3gs and i need to get ios5 and when i click on check for updates it says that itunes can not be contacted and check my internet connection but i have internet? how else can i get ios5 on my phone?

    i have tried to update my iphone 3gs and i need to get ios5 and when i click on check for updates it says that itunes can not be contacted and check my internet connection but i have internet? how else can i get ios5 on my phone?

    edit the hosts file on your computer and remove any lines that contain gs.apple.com. Disable your antivirus and firewall.

  • Please do the following: -Close any running programs -Empty your temporary folder -Check your internet connection (Internet-based Setups) Then try to run setup again. Error code -6003. How do I empty temporary folder?. Thanks. Allan

    I am having a problem installing Nikon Codec, software to view photos and get this error error message: Setup has experienced an error. Please do the following: -Close any running programs -Empty your temporary folder -Check your internet connection (Internet-based Setups) Then try to run setup again. Error code -6003. How do I empty temporary folder?. Thanks. Allan

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    *http://support.mozilla.com/kb/Deleting+cookies
    *http://support.mozilla.com/kb/How+to+clear+the+cache

  • How to resolve: "Update server not found (check your internet connection)"?

    When doing Help / Check for Updates, I get "Update server not found (check your internet connection)". This has been the case for 6-8 weeks or longer but auto update worked fine before. Not sure if something changed on my MacBook Pro. If so, I can't pinpoint it.
    MacBook Pro (Intel Core 2 Duo)
    Mac OS 10.6.6
    Firefox 3.6.13
    Firefox set to "No Proxy"

    See iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect to your computer & click on the "Update your device using iTunes".
    Tip - Disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. After you update to iOS 5.x, the next update can be installed via wifi (i.e., not connected to your computer).
     Cheers, Tom

  • How to use spell checker without mouse?

    Hi,
    how to use spell checker without mouse?
    And how to quickly change between languages related to documents, and be able to quickly get back to the main language setting that should be the default for the system?

    And how to quickly change between languages related to documents
    If you are talking about input keyboards, this is controlled by shortcuts that are explained at the top right of system prefs/language & text/input sources.

Maybe you are looking for

  • Finder not showing individual files

    When I am looking at finder, there are no files in any folder. Applications is empty, Downloads is empty, folders I have created are empty. Yet if I I do a search on a file or application it shows it being there. I am running 10.9.4 on an 2009 iMac.

  • Multiple Docks in the Sidebar

    I am encountering an odd problem: in the sidebar in all of my Save dialogs and in the Finder windows themselves, I am seeing multiple Docks. I have tried to correct this by resetting the Finder preferences--to no avail. In fact, if I remove all of th

  • How to cancel BT phone?

    I am the account holder of BT phone. I have used BT for more than 1 year. My package is Unlimited Evening and Weekend Plan. I'll be back my country this May. Do I need to pay for cancelling my contract? If yes, How much does it cost? Many thanks, An.

  • Help on Sitecatalyst Integration

    All, Need help with Sitecatalyst Integartion. Using AEM 5.6. Referred to the below link, https://dev.day.com/docs/en/cq/5-6/administering/integrating_with_adobe_marketing_cloud/si tecatalyst.html Could someone please guide me with steps . I set up a

  • Using Terminal.app with X11

    Dear Apple Discussions, I am trying to get X11 and Terminal.app to work together. I read on the forums here that it is possible by going here. I followed the instructions to the best of my abilities, yet when I try and open up Emacs in Terminal.app (