I want to create serial communicatios between two notebooks via Bluetooth
Hi,
I'm trying to accomplish serial communications between two laptops via a Bluetooth connection.
The two laptops are NOT Toshiba notebook, but they are both running the Toshiba Bluetooth Stack For Windows. They are also both using the default Bluetooth Manager program that is supplied by Toshiba and Dell (just rebadged?).
Basically I can set up a connection no problems, but then I send serial data from one computer and watch the receiving serial port on the other computer but nothing ever arrives.
Are there any good tutorials for this? It would be nice to have something for the Toshiba Bluetooth Manager in particular as the windows and buttons will have the names as explained in the tutorial.
Thanks in advance.
Adam
I tried it for tests purpose via a hyperterminal connection and it worked.
Maybe the description contains also some helpful information for you.
Here is it:
PC1:
Start "Bluetooth Settings->Custom Mode->Select Remote PC->Select 'Serial Port'->Accept proposed COM port (in my case COM40)->Confirm wizard windows
until setup is finished".
PC2:
Start "HyperTerminal->Select COM7"
PC1:
Start "HyperTerminal->Select COM40 (in my case. See step 1 above)"
PC1, PC2:
Enter the same Passkey if security is turned on e.g. "0000"
PC1:
Everything what you type into HyperTerminal should be visible in HyperTerminal of PC2 and vice versa.
Similar Messages
-
Can i play a game between two ipads using bluetooth
Can I play games betwwen two ipads using bluetooth
It depends on the game. The app has to be specifically written to allow play between two devices via Bluetooth.
Regards. -
Create AlE Relationship between two company code F210 to FN21 (UHP To UPI)
Hi,
I want to know how to create ALE realtion ship between two company code ( F210 to FN21(Server name UHP to UPI ) and how to process it?
Please reply ASAP.
Regards,
AchinHi Sathish,
Thanks for reply!..
But My question I want to Add ALE relationship between two company code F210 to FN21 (UHP(Production server) To UPI(Third Party System)).
Regards!
Achin -
I want to create an ALV with two row fields name
Hi
I want to create an ALV with two row fields name. please suggest how to do it or send some sample code
thanksHi,
see this link
http://****************/Tutorials/ALV/ALVMainPage.htm
http://www.alvrobot.com.ar/tutorial.php
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b09ac4d5-e3ad-2910-6a81-96d1b861928c
http://abapprogramming.blogspot.com/2007/11/alv-check-boxes-sample-code.html
REPORT zalv5 NO STANDARD PAGE HEADING.
Description----
TOPICS INTRODUCED:
1. Learn about the u2018Standardu2019 PF-Status that comes as default.
2. Exclude function codes from u2018Standardu2019 PF-Status and customize it.
TYPE-POOLS: slis.
DATA: BEGIN OF i_data OCCURS 0,
qmnum LIKE qmel-qmnum,
qmart LIKE qmel-qmart,
qmtxt LIKE qmel-qmtxt,
ws_row TYPE i,
ws_char(5) TYPE c,
chk,
END OF i_data.
DATA: report_id LIKE sy-repid.
DATA: ws_title TYPE lvc_title VALUE 'An ALV Report'.
DATA: i_layout TYPE slis_layout_alv.
DATA: i_fieldcat TYPE slis_t_fieldcat_alv.
DATA: i_events TYPE slis_t_event.
DATA: i_header TYPE slis_t_listheader.
DATA: i_extab TYPE slis_t_extab.
SELECT qmnum
qmart
qmtxt
INTO TABLE i_data
FROM qmel
WHERE qmnum <= '00030000010'. LOOP AT i_data. i_data-ws_row = sy-tabix. i_data-ws_char = 'AAAAA'. MODIFY i_data. ENDLOOP. report_id = sy-repid. PERFORM f1000_layout_init CHANGING i_layout. PERFORM f2000_fieldcat_init CHANGING i_fieldcat. PERFORM f3000_build_header CHANGING i_header. PERFORM f4000_events_init CHANGING i_events. CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' * I_BYPASSING_BUFFER = * I_BUFFER_ACTIVE = ' ' i_callback_program = report_id * I_CALLBACK_PF_STATUS_SET = ' ' * I_CALLBACK_USER_COMMAND = ' ' * I_CALLBACK_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_END_OF_LIST = ' ' * i_structure_name = ' ' * I_BACKGROUND_ID = ' ' i_grid_title = ws_title * I_GRID_SETTINGS = is_layout = i_layout it_fieldcat = i_fieldcat * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' i_save = 'A' * IS_VARIANT = it_events = i_events * IT_EVENT_EXIT = * IS_PRINT = * IS_REPREP_ID = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * IT_ALV_GRAPHICS = * IT_ADD_FIELDCAT = * IT_HYPERLINK = * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = i_data EXCEPTIONS program_error = 1 OTHERS = 2 . IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*& Form F1000_Layout_Init
FORM f1000_layout_init USING i_layout TYPE slis_layout_alv.
CLEAR i_layout.
i_layout-colwidth_optimize = 'X'.
i_layout-edit = 'X'.
ENDFORM. " F1000_Layout_Init
*& Form f2000_fieldcat_init
FORM f2000_fieldcat_init CHANGING i_fieldcat TYPE slis_t_fieldcat_alv.
DATA: line_fieldcat TYPE slis_fieldcat_alv.
CLEAR line_fieldcat.
line_fieldcat-fieldname = 'QMNUM'. " The field name and the table
line_fieldcat-tabname = 'I_DATA'. " name are the two minimum req.
line_fieldcat-key = 'X'. " Specifies the column as a key (Blue)
line_fieldcat-seltext_m = 'Notification No.'. " Column Header
APPEND line_fieldcat TO i_fieldcat.
CLEAR line_fieldcat.
line_fieldcat-fieldname = 'QMART'.
line_fieldcat-ref_tabname = 'I_DATA'.
line_fieldcat-hotspot = 'X'. " Shows the field as a hotspot.
line_fieldcat-seltext_m = 'Notif Type'.
APPEND line_fieldcat TO i_fieldcat.
CLEAR line_fieldcat.
line_fieldcat-fieldname = 'QMTXT'.
line_fieldcat-tabname = 'I_DATA'.
line_fieldcat-seltext_m = 'Description'.
APPEND line_fieldcat TO i_fieldcat.
CLEAR line_fieldcat.
line_fieldcat-fieldname = 'WS_ROW'.
line_fieldcat-tabname = 'I_DATA'.
line_fieldcat-seltext_m = 'Row Number'.
APPEND line_fieldcat TO i_fieldcat.
CLEAR line_fieldcat.
line_fieldcat-fieldname = 'WS_CHAR'.
line_fieldcat-tabname = 'I_DATA'.
line_fieldcat-seltext_l = 'Test Character Field'.
line_fieldcat-datatype = 'CHAR'.
line_fieldcat-outputlen = '15'. " You can specify the width of a
APPEND line_fieldcat TO i_fieldcat. " column.
CLEAR line_fieldcat.
line_fieldcat-fieldname = 'CHK'.
line_fieldcat-tabname = 'I_DATA'.
line_fieldcat-seltext_l = 'Checkbox'.
line_fieldcat-checkbox = 'X'. " Display this field as a checkbox
line_fieldcat-edit = 'X'. " This option ensures that you can
" edit the checkbox. Else it will
" be protected.
APPEND line_fieldcat TO i_fieldcat.
ENDFORM. " f2000_fieldcat_init
*& Form f3000_build_header
FORM f3000_build_header USING i_header TYPE slis_t_listheader.
DATA: gs_line TYPE slis_listheader.
CLEAR gs_line.
gs_line-typ = 'H'.
gs_line-info = 'This is line of type HEADER'.
APPEND gs_line TO i_header.
CLEAR gs_line.
gs_line-typ = 'S'.
gs_line-key = 'STATUS 1'.
gs_line-info = 'This is line of type STATUS'.
APPEND gs_line TO i_header.
gs_line-key = 'STATUS 2'.
gs_line-info = 'This is also line of type STATUS'.
APPEND gs_line TO i_header.
CLEAR gs_line.
gs_line-typ = 'A'.
gs_line-info = 'This is line of type ACTION'.
APPEND gs_line TO i_header.
ENDFORM. " f3000_build_header
*& Form f4000_events_init
FORM f4000_events_init CHANGING i_events TYPE slis_t_event.
DATA: line_event TYPE slis_alv_event.
CLEAR line_event.
line_event-name = 'TOP_OF_PAGE'.
line_event-form = 'F4100_TOP_OF_PAGE'.
APPEND line_event TO i_events.
CLEAR line_event.
line_event-name = 'PF_STATUS_SET'.
line_event-form = 'F4200_PF_STATUS_SET'.
APPEND line_event TO i_events.
ENDFORM. " f3000_events_init
FORM F4100_TOP_OF_PAGE *
FORM f4100_top_of_page.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = i_header.
ENDFORM.
FORM F4200_PF_STATUS_SET *
FORM f4200_pf_status_set USING i_extab TYPE slis_t_extab.
REFRESH i_extab.
PERFORM f4210_exclude_fcodes CHANGING i_extab.
SET PF-STATUS 'STANDARD' OF PROGRAM 'SAPLSALV' EXCLUDING i_extab.
ENDFORM.
*& Form f4210_exclude_fcodes
FORM f4210_exclude_fcodes USING i_extab TYPE slis_t_extab.
DATA: ws_fcode TYPE slis_extab.
CLEAR ws_fcode.
ws_fcode = '&EB9'. " Call up Report.
APPEND ws_fcode TO i_extab.
ws_fcode = '&ABC'. " ABC Analysis.
APPEND ws_fcode TO i_extab.
ws_fcode = '&NFO'. " Info Select.
APPEND ws_fcode TO i_extab.
ws_fcode = '&LFO'. " Information.
APPEND ws_fcode TO i_extab.
ENDFORM. " f4210_exclude_fcodes
thanks
karthik
reward me if usefull -
Create view link between two view objects (from programmatic data source)
Hi Experts,
Can we create a link between two view objects (they are created from programmatic datasource ; not from either entity or sql query). If yes how to create the link; ( i mean the like attributes?)
I would also like to drag and drop that in my page so that i can see as top master form and the below child table. Assume in my program i will be only have one master object and many child objects.
Any hits or idea pls.
-tEasiest way to do this is to add additional transient attributes to your master view object, and then include those additional transient attributes in the list of source attributes for your view link. This way, you can get BC4J to automatically refer to their values with no additional code on your part.
-
How to create radio button between two slection screen
hello all.
could you please guide me how to create radio button between two SELECTION-SCREEN in screen painter.
Thank you,
srinivashi
SEE THIS CODE
REPORT ZNNR_REPORT NO STANDARD PAGE HEADING MESSAGE-ID ZNNR LINE-SIZE 100 LINE-COUNT 65(4).
******DATA DECLARATIONS**********
DATA : BEGIN OF IT_PLANT OCCURS 0,
MATNR LIKE MARA-MATNR,
WERKS LIKE MARC-WERKS,
PSTAT LIKE MARC-PSTAT,
EKGRP LIKE MARC-EKGRP,
END OF IT_PLANT.
DATA : BEGIN OF IT_PONO OCCURS 0,
EBELN LIKE EKKO-EBELN,
EBELP LIKE EKPO-EBELP,
MATNR LIKE EKPO-MATNR,
WERKS LIKE EKPO-WERKS,
LGORT LIKE EKPO-LGORT,
END OF IT_PONO.
TABLES EKKO.
********END OF DATA DECLARATIONS*********
********SELECTION SCREEN DESIGN ***********
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETER : P_WERKS LIKE MARC-WERKS MODIF ID S1.
SELECT-OPTIONS : S_EBELN FOR EKKO-EBELN NO INTERVALS MODIF ID S2.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : R3 RADIOBUTTON GROUP G2 DEFAULT 'X'.
SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R3.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : R4 RADIOBUTTON GROUP G2.
SELECTION-SCREEN COMMENT 5(20) TEXT-004 FOR FIELD R4.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-004.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : R1 RADIOBUTTON GROUP G1 DEFAULT 'X'.
SELECTION-SCREEN COMMENT 5(20) TEXT-002 FOR FIELD R1.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : R2 RADIOBUTTON GROUP G1.
SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R2.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B2.
******END OF SELECTION SCREEN DESIGN****************
<b>rEWARD IF USEFULL</b> -
How to create the reation between two tables without creating relation
Hi,
I have three tables.( A,B and C)
I created relation between A,B and A,C.
I want to create the relation between B,C without using realtion in oracle forms.
Please do the needful.ok, now i understand your problem. It is a case of one-many-many relation between three blocks.
In this situation what i personally follow that - save records in between when it ask for a commit. And i shall advice you to follow that only. This is the safe and easy method.
Otherwise,
1> make your third block a non-database block.
2> When finish entering/modifying each data set related to 2nd block - insert/update/delete the data grammatically into a temporary table. and after that clear the 3rd block.
3> you need to reload the record in 3rd block from the temporary table when you move to a record of 2nd block that has already been entered.
4> now when you finally commit your form the insert/update/delete record from the temporary table into the final 3rd table.
Now follow which ever steps is suitable for you.
Regards,
Tarun -
Want to connect my ipod to another ipod via bluetooth ????
want to connect my ipod to another ipod via bluetooth ???? and send and reciev files can i do so ????
You can with this app. There may also be other apps too.
App Store - Bluetooth FileShare
Connie99, be careful when you say there are no solutions. -
Why does not connect properly macpro my motorola bluetooth headphones S10? I get a connection error message and there is no sound. (I want to use headphones to listen to music via bluetooth from my macpro)
the s10 works perfectly on my ipod touch 4g.this is
ERROR HAS OCCURRED Bluetooth audio.
It failed to establish connection with their
audio device. make sure it is on and
in the range. you may need to restart the
audio section of the program you were using
STOP USING THE HEADSET WITH MICROPHONE.
ALSO HAVE A MOTOROLA BLUETOOTH SPEAKERS WHICH EQ5 work seamlessly with the Mac -
Programmatically create a relationship between two positions in HR
Hi,
I have a requirement to create relationships in HRP1001 between two given positions with a start and end date.
I need to write an upload program to do this but want to avoid Batch Input if possible.
Are there any relevant function modules that can do what transaction PP01 does?
Many Thanks
DavidHi,
Try using this code
LOOP AT T_MAINTAIN INTO WA_MAINTAIN.
WA_MAINTAIN-FCODE = 'INSE'.
WA_MAINTAIN-PLVAR = '01'.
WA_MAINTAIN-ISTAT = '1'.
*Relate account to project
IF WA_MAINTAIN-OTYPE = 'O' AND WA_MAINTAIN-SCLAS = 'O'.
WA_MAINTAIN-RSIGN = 'B'.
WA_MAINTAIN-RELAT = '002'.
*Relate position to project
ELSEIF WA_MAINTAIN-OTYPE = 'O' AND WA_MAINTAIN-SCLAS = 'S'.
WA_MAINTAIN-RSIGN = 'B'.
WA_MAINTAIN-RELAT = '003'.
*Relate job to position
ELSEIF WA_MAINTAIN-OTYPE = 'S' AND WA_MAINTAIN-SCLAS = 'C'.
WA_MAINTAIN-RSIGN = 'B'.
WA_MAINTAIN-RELAT = '007'.
*Relate employee to position
ELSEIF WA_MAINTAIN-OTYPE = 'S' AND WA_MAINTAIN-SCLAS = 'P'.
WA_MAINTAIN-RSIGN = 'A'.
WA_MAINTAIN-RELAT = '008'.
ENDIF.
*Relate position to position
ELSEIF WA_MAINTAIN-OTYPE = 'S' AND WA_MAINTAIN-SCLAS = 'S'.
WA_MAINTAIN-RSIGN = 'A'.
WA_MAINTAIN-RELAT = '002'.
ENDIF.
WA_MAINTAIN-ENDDA = '99991231'.
*FM to create relationship
CALL FUNCTION 'RH_RELATION_MAINTAIN'
EXPORTING
ACT_FCODE = WA_MAINTAIN-FCODE
ACT_PLVAR = WA_MAINTAIN-PLVAR
ACT_OTYPE = WA_MAINTAIN-OTYPE
ACT_OBJID = WA_MAINTAIN-OBJID
ACT_ISTAT = WA_MAINTAIN-ISTAT
ACT_RSIGN = WA_MAINTAIN-RSIGN
ACT_RELAT = WA_MAINTAIN-RELAT
ACT_SCLAS = WA_MAINTAIN-SCLAS
ACT_SOBID = WA_MAINTAIN-SOBID
ACT_BEGDA = WA_MAINTAIN-BEGDA
ACT_ENDDA = WA_MAINTAIN-ENDDA
ACT_PROZT = WA_MAINTAIN-PROZT
EXCEPTIONS
MAINTAINANCE_FAILED = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
WRITE : WA_INPUT-OBJID.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDLOOP. -
Create line extension between two SPA-3102
I`m having problems to create a line extension between two SPA-3102
I have one SPA-3102 connected to an analog PBX system with IP 192.168.0.201, and the other SPA-3102 with analog phone and IP 192.168.0.200
I succesfully setup them to make a call from the first to the second
But I couldn`t setup them to make a call from the second (192.168.0.200) and give me the dialtone of the PBX connected to the first SPA-3102 (192.168.0.201).
I could setup a hot line on the second SPA-3102 (192.168.0.200) and call to 192.168.0.201, but it doesn`t take the line to hear the pstn dialtone.
I saw many answers about this problem, but no one resolve the problem, i have the latest firmware. please, anyone could help me and if it`s possible to work please send me all the configuration needed.
Thanks againHi Jeremy,
I have a similar problem, I have one PSTN line (say Line1) with free minutes to mobiles, so its good for outgoing calls. The other line (say Line2) which i have is acually VoIP but it comes with its own hardware (magicJack if you have heard) so I can't use a SIP client and have to use the supplied Hw client, but it does give me an option to connect any normal phone to this magicJack (i suppose that would make it a fxs port). Now this magicJack is cheap for other people to call me.
I want to find a solution so that all the calls I receive on Line2 get forwarded to my mobile number via Line1. And if I receive any calls on Line1 they should be treated normally (my home phone rings). Do you have some idea how I can achieve this with minimal spend? Thanx
Atif -
How to create Doc Link between two document numbers?
Hi Folks,
I have two document numbers with different transaction type.
I want to create a Document link between these two documents, i.e. each documents should come in Dock Flow of each other.
How to acheive this target.
I tried to do it by using FM CRM_DOC_FLOW_MAINTAIN_OW, but not able to achieve it.
So please tell me how to do this thing.
Regards
PGHi PG,
The FM CRM_DOC_FLOW_MAINTAIN_OW should work , I am not sure what parameters you are passing. Any way you can use the CRM_ORDER_MAINTAIN as well which will eventually call CRM_DOC_FLOW_MAINTAIN_OW . Have a look of the sample code, This will give you some idea
lw_input_field_names-fieldname = 'GUID'.
INSERT lw_input_field_names INTO TABLE lt_input_field_names.
CLEAR lw_input_fields.
lw_input_fields-ref_kind = gc_object_kind-orderadm_h.
lw_input_fields-objectname = gc_object_name-orderadm_h.
lw_input_fields-ref_guid = lw_orderadm_h1-guid.
lw_input_fields-field_names = lt_input_field_names.
INSERT lw_input_fields INTO TABLE lt_input_fields.
lw_doc_link1-objkey_a = lw_orderadm_h-guid.
lw_doc_link1-brel_kind = gc_brel_kind-header_header.
lw_doc_link1-brel_mode = gc_mode-create.
lw_doc_link1-reltype = gc_bin_rel_type-predecessor_successor.
INSERT lw_doc_link1 INTO TABLE lt_doc_link1.
lw_doc_flow1-ref_guid = lw_orderadm_h1-guid.
lw_doc_flow1-ref_kind = gc_object_kind-orderadm_h.
lw_doc_flow1-doc_link = lt_doc_link1.
INSERT lw_doc_flow1 INTO TABLE lt_doc_flow1.
CLEAR lw_input_fields.
REFRESH lt_doc_link1.
lw_input_fields-ref_kind = gc_object_kind-orderadm_i.
lw_input_fields-objectname = gc_object_name-orderadm_i.
lw_input_fields-ref_guid = lw_orderadm_i1-guid.
lw_input_fields-field_names = lt_input_field_names.
INSERT lw_input_fields INTO TABLE lt_input_fields.
lw_doc_link1-objkey_a = lw_orderadm_i-guid.
lw_doc_link1-brel_kind = gc_brel_kind-item_item.
lw_doc_link1-brel_mode = gc_mode-create.
lw_doc_link1-reltype = gc_bin_rel_type-predecessor_successor.
INSERT lw_doc_link1 INTO TABLE lt_doc_link1.
lw_doc_flow1-ref_guid = lw_orderadm_i1-guid.
lw_doc_flow1-ref_kind = gc_object_kind-orderadm_i.
lw_doc_flow1-doc_link = lt_doc_link1.
INSERT lw_doc_flow1 INTO TABLE lt_doc_flow1.
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
CHANGING
ct_orderadm_h = lt_orderadm_h1
ct_input_fields = lt_input_fields
ct_doc_flow = lt_doc_flow1
EXCEPTIONS
error_occurred = 1
document_locked = 2
no_change_allowed = 3
no_authority = 4
OTHERS = 5.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
RAISE error_occurred .
ENDIF.
Hope this will help.
Thanks,
Vikash. -
Create Foreign Keys between two Schemata
Hello,
I use Oracle 10g and I trying to create a ForeignKey constraint between two tables in different schemata.
This is my DDL-Script
SQL> CREATE TABLE PROJECT.LOCATION (
ID INTEGER NOT NULL,
MAIN INTEGER,
KURZ VARCHAR(40),
NAME VARCHAR(40),
STRASSE VARCHAR(40),
ORT VARCHAR(40),
TELEFON VARCHAR(40),
FAX VARCHAR(40),
EMAIL VARCHAR(40),
PLZ VARCHAR(40),
CONSTRAINT PK_LOCATION PRIMARY KEY (ID)
Tablespace PROJECT;
CREATE TABLE Diary.Diary (
ID INTEGER NOT NULL,
LOCATION_ID INTEGER NOT NULL,
CONSTRAINT PK_Diary PRIMARY KEY (ID)
Tablespace Diary;
ALTER TABLE Diary.Diary
ADD CONSTRAINT FK_Diary_Has_LOCATION
FOREIGN KEY (LOCATION_ID) REFERENCES PROJECT.LOCATION (ID);
This is the Message that gives my SQLplus :
SQL> ALTER TABLE Diary.Diary
2 ADD CONSTRAINT FK_Diary_Has_LOCATION
3 FOREIGN KEY (LOCATION_ID) REFERENCES PROJECT.LOCATION (ID);
FOREIGN KEY (LOCATION_ID) REFERENCES PROJECT.LOCATION (ID)
FEHLER in Zeile 3:
ORA-00942: Tabelle oder View nicht vorhanden
All Grants (select,alter,references) are given to the User for the tables.
Whats then Problem?You miss some priviledge:
SQL> create user project identified by project;
Utente creato.
SQL> grant connect, resource to project;
Concessione riuscita.
SQL> create user diary identified by diary;
Utente creato.
SQL> grant connect, resource to diary;
Concessione riuscita.
SQL> CREATE TABLE PROJECT.LOCATION (
2 ID INTEGER NOT NULL,
3 MAIN INTEGER,
4 KURZ VARCHAR(40),
5 NAME VARCHAR(40),
6 STRASSE VARCHAR(40),
7 ORT VARCHAR(40),
8 TELEFON VARCHAR(40),
9 FAX VARCHAR(40),
10 EMAIL VARCHAR(40),
11 PLZ VARCHAR(40),
12 CONSTRAINT PK_LOCATION PRIMARY KEY (ID)
13 )
14 ;
Tabella creata.
SQL> CREATE TABLE Diary.Diary (
2 ID INTEGER NOT NULL,
3 LOCATION_ID INTEGER NOT NULL,
4 CONSTRAINT PK_Diary PRIMARY KEY (ID)
5 )
6 ;
Tabella creata.
SQL> ALTER TABLE Diary.Diary
2 ADD CONSTRAINT FK_Diary_Has_LOCATION
3 FOREIGN KEY (LOCATION_ID) REFERENCES PROJECT.LOCATION (ID);
FOREIGN KEY (LOCATION_ID) REFERENCES PROJECT.LOCATION (ID)
ERRORE alla riga 3:
ORA-00942: tabella o vista inesistente
-- DIARY CAN'T SEE PROJECT.LOCATION
SQL> grant select on project.location to diary;
Concessione riuscita.
SQL> ALTER TABLE Diary.Diary
2 ADD CONSTRAINT FK_Diary_Has_LOCATION
3 FOREIGN KEY (LOCATION_ID) REFERENCES PROJECT.LOCATION (ID);
FOREIGN KEY (LOCATION_ID) REFERENCES PROJECT.LOCATION (ID)
ERRORE alla riga 3:
ORA-01031: privilegi insufficienti
-- DIARY CAN SEE PROJECT.LOCATION BUT CAN'T REFERENCE IT
SQL> grant references on project.location to diary;
Concessione riuscita.
SQL> ALTER TABLE Diary.Diary
2 ADD CONSTRAINT FK_Diary_Has_LOCATION
3 FOREIGN KEY (LOCATION_ID) REFERENCES PROJECT.LOCATION (ID);
Tabella modificata.
-- NOW IT'S ALL OK!!Max
[My Italian Oracle blog|http://oracleitalia.wordpress.com/2009/12/18/table-elimination-oppure-join-elimination-lottimizzatore-si-libera-della-zavorra/] -
How to create an relation between two block
Oracle forms 6i
Hai All
I have created a form in that i have four button ADD, QUERY, SAVE ,EXIT.
I have two block named Leader and members.
Four fields in leader block namely name , codeno, deptcode, unitid.
When i pressed query button and the cursor goes to name field in leader when i enter the name of leader and click
enter i gives the codeno, deptcode and unitid of the leader_name.
so now i have created another block in tabular structure to bring the members in the same deptcode that belongs to Leader_name.
So pls tell me the steps how to create the relation between these two blocks.
when i enter the leader_name and gives enter it needs to bring the codeno, deptcode, unitid and
I also need to gives the members in that deptcode..
Thanks In Advance
Srikkanth.MIf it is possible to create relationship with one table No.
Or
I have created a pre-Query in the detali block and my code is
set_block_property ('block_name', default_where, 'deptcode = (select deptcode from emplmaster where name like :block_in_which_leader_name.leader_name_field');BTW no need of joining here it can be solve by set the block's where clause as u said in ur earlier post above. Just changing the little bit this statement and then try.
If numeric
set_block_property ('block_name', default_where, 'deptcode = '||:block_in_which_leader_name.leader_name_field);
Otherwire
set_block_property ('block_name', default_where, 'deptcode = '''||:block_in_which_leader_name.leader_name_field||'''');-Ammad -
How to create a View between two Ztables?
Hi experts,
I have two ztables TableA and TableB both has one common field.
Now Which type of view (Database,Maintanance,Projection or Help) I should create? If so what are the steps I should follow.
What I suppose to do in Table/Join Condition tab ,View Flds ,Selection Conditions and Maint stsus tab.
Reply with the detailed steps.
Thanks in Advance,
DharaniHi,
selection of view is depends on the type of requirement you have.
1. To create the view go to Se11
2. select the type of the view you required.
3.Enter the name of the two z table in the tables and click on the relation button so that it will automatically create the relationship between 2 table.
4. add the addition condition if required in the join condition.
5. In view field select the number of the field required to display in the view from both the table.
6. specify the selection criteria in the to select the values.
7. In maintenance tab select the appropriate option as per you requirement.
8. save and activate the view.
Maybe you are looking for
-
Please help me integrate aperture to ilife '11 (specifically iPhoto!)
I have "shared previews" turned on in aperture. But when I load iphoto ('11), I don't see anything. I have the aperture update (3.1). When I click "see aperture library" - I just see a gob of my thousands of photos. I want to open iphoto and be able
-
Combining relation facts with dimensions from an Essbase cube
Hi! I am having trouble combining relational measures (from EBS) with dimensions from an Essbase cube. The dimensions that we want to use for reporting (drilling etc) are in an Essbase cube and the facts are in EBS. I have managed to import both the
-
When will the iphone get audio directions in the maps app like the droid?
When will the iphone get audio directions in the maps app like the droid?
-
How can I retrieve the inbound XML messages (invoices) by ABAP program?
Where are the inbound XML messages (invoices) saved in XI box? How can I retrieve the inbound XML invoices in XI box by ABAP program? Is there any method/BADI/function module to retrieve these XML invoices, so I can output these XML invoices in an AB
-
where can i get movies for my Zen vision m? Please help.Message Edited by sth_lng on 2-5-200602:4 PM