Why dbms_metadata.get_ddl can not work for db link?
db: 10.2.4
os: RH linux 5
our problem is that we can not get ddl from dbms_metadata.get_ddl for database link, however the db link does exist here as below.
SQL> select * from dba_db_links where owner='XXRPTH';
OWNER DB_LINK USERNAME HOST CREATED
XXR TO_DOPDB.XXR.COM TEST db_opdb 18-FEB-08
XXR XXRPTH_OPDBC.XXR.COM TEST db_opdb 15-JUL-08
XXR XXRPTH_BLIS.XXR.COM BLIS dbls 02-JUN-08
SQL> select dbms_metadata.get_ddl('DB_LINK','XXRPTH_OPDBC.XXR.COM','XXR') from dual;
ERROR:
ORA-31603: object "XXRPTH_OPDBC.XXR.COM" of type DB_LINK not found in schema "XXR"
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
ORA-06512: at "SYS.DBMS_METADATA", line 2806
ORA-06512: at "SYS.DBMS_METADATA", line 4333
ORA-06512: at line 1
appreciate for any guides
thanks
I ran into this in a slightly different form, I can't remember all the rules and details, but to work around it I had to specify a fake name appendage in the db link creation in order to keep it from automatically appending the global domain.
Something like
create database link abcdef.remotealias connect to ... using 'remotealias'
rather than
create database link abcdef connect to... using 'remotealias'
At least I think it was fake, I was flopping around trying things until I got it to work, and I wound up making it the same as the tnsnames alias. I think I decided I didn't have to, but left it as the lesser of two confusions, and was miffed that the creation scripts I had been using for years suddenly had to be fixed. Yeah, it was my own damned fault, but I still think the way this works is crazy. Now hopefully someone will explain this simply so I look foolish.
Similar Messages
-
Why my PermissionsCommand can not work?
Thers is a SAP standard command named "permissions" that you can find in "System Admin>System configuration>content management>user interface>commands".It is drived from the java class "com.sapportals.wcm.rendering.uicommand.cm.UIPermissionsCommand".
I download the java class and decompile into java file.In netweaver development studio,I create a new project and copy the java code into a new class of the project and deploy it into my portal.In portal I link the class to a command named "permisssiontest",but unlucky the command doesnot work.
Why my permission command can not work?Hi Shi,
Could you give me more details about this issue ? After deploy, have you created a new command and assign it a group command in a layout set.
Here:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/kmc/Knowledge%20Management%20and%20Collaboration%20Developers%20Guide.html
You can find this example: SimpleOneStepScreenFlow. You can use it as template.
We had to write a new permission command and it worked fine.
Patricio. -
Why att store can not help for unlocking the phone
I followed the instructions to unlock our two old iphones after having iPhone 6. I received "unlock" message for one phone and did not receive the message for other phone. I am not sure if the phone has been unlocked. I went to AT&T store at Bridgewater Commons, NJ. and like to know if it Is unlocked. I was told that they can not tell and I need go to T mobile store to find out. I stopped by T mobile and found out the phone is still locked. So I went back to the AT&T store to try getting help. Because I already tried to unlock this phone three times before. There were 10 ATT people in the store and only two or three customers there. I asked one of employees to tell me what I need to do. I was told that they do not have the service to help unlocking and I need to call customer service. I said to her that you have 10 employees here and why can not help, I would like to speak to the store manager. The store manager Dawn was there and she told me the same thing. They can not help and I need to call the customer service. I kept asking but why you can not help. Finally she said that she can help me to call the customer. She called and the phone was not go through. Finally the employee asked me the phone number and I thought that maybe she will help me to unlock. Actually she just made another unlock request online for me and I need to wait the email in 24 hours and redo the unlock process later. I would to know why att store can not help the customers to unlock their old phones after getting the new phones. Why att keeps 10 employees in one store and can not help to solve customer problems.
Xiyufu wrote:
... I would to know why att store can not help the customers to unlock their old phones after getting the new phones. Why att keeps 10 employees in one store and can not help to solve customer problems.
AT&T keeps 10 employees at a store in case they need them to assist customers with purchasing items, or with items recently purchased.
The Store representatives can't help you with the unlock portion because it requires access to systems they are not authorized to access. If store employees could access the unlock system (other than the very same portal you can access) then there would be a high risk that there would be inapropriate unlocks by employees for their friends & relatives. AT&T's solution is to not allow them access to those systems, and have everyone go through the same process so that everyone gets the same treatment. If you are having problems with your unlock requests through the portal, try contacting customer support or you can send a private message to the escalation team at ATT Customer Care and someone will get in touch with you in two to three business days to help you get a resolution to your problems.
To check for their reply, click the little blue envelope. in the top bar near your username. -
Why is developer exchange not working for me?
My developer exchange has not been working recently? In fact, I doubt this will even be posted. Any help?
jdaltonnal,
Not sure what might be happening, also not sure if NI goes into a 'Save or 'Under Contruction' mode at times, but 99% of the time it seems to work for me.
Are you at risk for any 'local' network traffic problems?
Also, I've attached a link that goes directly to the "Developer Exchange Feedback' group - it might be a more direct way to find resolve for connectivity issues.
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=8&RFORMNUMBER=2&RHIDETAG=TRUE&UCATEGORY_0=_11&UCATEGORY_S=0
Good luck with it,
Doug -
Edit Original not working for PSD links
Ok, so I just recently upgraded to CS3 from CS2 and am still getting used to some of the changes that were made. For some reason, I keep having this problem:
In the links panel, you can click on a link and click "Edit Original" to open the file in whichever program it was created in, of course. This is a feature I use ALL THE TIME. Well, for some reason, my CS3 grays out the Edit Original icon on the links panel whenever I select a .psd link. Jpeg, fine. Eps, no sweat. Ai file, not a problem. But once I select a .psd file, the icon grays out. And this is for ALL linked .psd files.
Anyone had this problem or know of a possible solution? I just hope it's not something dreadfully obvious...First thing to check: will Windows open Photoshop if you click on a file in Explorer?
Check that you have .PSD correctly associated with Photoshop in Explorer > Tools > Folder Options > File Types
k -
Why does the /s not work for me in the commandline?
We have a HD webcam pointed at a pooltable in our local poolbar. We use FMLE to stream to Dacast. To finish the project we want to automate the process: only stream between 17.00 and 01.00 hours every day.
It looks like FMLEcmd + batch/cmd files + scheduled tasks can make this possible.
I am diving into FMLEcmd. Starting up works fine. But stopping gives me troubles. I use the command: fmlecmd /s rtmp://live-ams.dacast.com/201346/21653+xxxx
Reply is: "Stop command send to FMLE."
Then i do fmlecmd /s and it says " All running FMLE sessions are: rtmp://live-ams.dacast.com/201346/21653+xxxx".
Questions:
1. What am i doing wrong here?
2. When starting a session through cmd, will it be visible when you open FMLE Gui?
Plan is to make two batchfiles: One to start FMLE streaming on a daily basis at 17.00 hours. And one to stop FMLE streaming at 01.00 in the morning. If somebody already has similar batchfiles ready for me to use, please let me know! If somebody has another solution for the above, also let me know!
Already implemented the reconnect interval and times in the XML file... that was needed...
Maybe stupid question: When i do the command "FMLEcmd", encoding starts, text displays "streaming to server", and i see bitrates moving. Is the only option then to close the command window? Because i see no cursor anymore?
Thanks in advance, any help is appreciated.
Marten Hoekstra
ADDON: I just restarted my computer to stop the streaming session. But doing fmlecmd /s still says:
C:\Program Files\Adobe\Flash Media Live Encoder 3.2>fmlecmd /s
Adobe(R) Flash(R) Media Live Encoder Command Line Utility v 3.2
Copyright(C) 2009-10 Adobe Systems Incorporated. All rights res
Fri Jun 21 2013 17:34:18 : All running FMLE sessions are:
rtmp://live-ams.dacast.com/201346/21653+xxxxHi Vikrantt
Many thanks for your reply.
It doesn't give me an error message, it simply does not search. I type in my search term and it appears to search the document but then a dialogue box appears which says that my search term has not been found. This even happens when I am looking at a page in which my search term is clearly visible!
I am shutting down now until the morning as I have been working almost 12 hours. -
Why is notification center not working for mail?
Im not receiving mail on notification center, why is that happening?
Good, glad it worked.
If you find you're getting too many notifications and get fed up, you can set it in Mail to VIP (smart mailbox).
You can make people VIPs by clicking the star symbol in front of their names and Notification Center will only notify you about emails from these certain people. -
Why is StyleClass attribute not working for me
I have an af:input field I am trying to use a custom style with, but using the StyleClass attribute for the component doesn't do what I'm expecting it to, here is my af:input tag I've created:
<af:inputText label="Password:" id="it12" secret="true" styleClass="jq_pswd"></af:inputText>
But this is what the tag is rendering as in my browser:
<table class="jq_pswd x1u" id="pt1:pt_r4:0:it12" cellpadding="0" cellspacing="0" border="0" summary=""><tbody><tr><td class="xu"><label for="pt1:pt_r4:0:it12::content">Password:</label></td><td valign="top" nowrap class="xpn"><input id="pt1:pt_r4:0:it12::content" name="pt1:pt_r4:0:it12" class="x25" size="0" type="password" autocomplete="off"></td></tr></tbody></table>
In other examples of uses of the StyleClass attribute on the web I thought that class="jq_pswd"
would show up in my password input component, but as you see above I get class="x25" instead, and a class="jq_pswd x1u" in a auto generated surrounding table instead.
Where is "x25" and "jq_pswd x1u" coming from and how can I get class="jq_pswd" in my input tag?
I have a jquery script relying on the class="jq_pswd" to be in the input tag in order for my script functionality to work.Here is a sample based on your use-case:
Sample.jspx:
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document title="Sample.jspx" id="d1">
<af:resource type="css">
.jq_pswd {
color: Red;
background-color: Red;
</af:resource>
<af:form id="f1">
<af:inputText label="Password:" id="it12" secret="true" styleClass="jq_pswd"></af:inputText>
</af:form>
</af:document>
</f:view>
</jsp:root>
Once you disable the compression as mentioned above by setting the context param in the web.xml - you could see the following content delivered to the browser.
*<table id="it12" class="jq_pswd af_inputText" cellspacing="0" cellpadding="0" border="0" summary="">*
<tbody>
<tr>
<td class="af_inputText_label">
<label for="it12::content">Password:</label>
</td>
<td class="AFContentCell" valign="top" nowrap="">
<input id="it12::content" class="af_inputText_content" type="password" autocomplete="off" name="it12">
</td>
</tr>
</tbody>
</table>
Thanks,
Navaneeth -
Why does installation cd not work for new hard drive for 2009 MacBook pro?
my hard drive died in my 2009 MacBook pro so I bought a 1tb ssd drive and had the store physically install the drive only. I arrived home and stuck in the original installation disc and pressed and held the c key after the chime. Nothing happened. after a minute or so the screen turned black and rebooted up again with the chime. It would continue to reboot whether I pressed the c key or not. when i pressed the d key it would say:
"Apple hardware test does not support this machine"
why why isn't this working like it is supposed to?
thsnksRyan,
Have you tried using the Startup Manager (holding down the option key) whilst booting? If everything works as it should, you should be given the option to choose the DVD to boot. Holding down the 'D' key should load the Apple Hardware Test.
Good luck,
Clinton
MacBook Pro (15” Late 2011), OS X 10.??, 16GB Crucial RAM, 960GB M500 Crucial SSD, 27” Apple Thunderbolt Display -
I have the Linksys WRT54G wireless router, and for a while now it has worked well for my desktop computer, my sister's laptop, my PS3 and my PSP. Recently I got an Ipod touch and tried to set up my wireless connection and nothing worked, so I checked on my PS3 and PSP and they aren't connecting either. It always says something like exchanging key information, and still doesn't work. I'm getting very aggravated, I've reset the router several times and nothing. Keep in mind that my desktop computer, and my sister's laptop still works just fine, all the others devices don't work anymore. What can I do to fix this?
Upgrade the firmware on the router to the latest one and then set up WEP security on the router and change wireless channel to 11.
-
Why this code is not working for alv
Dear
Regards,
i have implemented the same program for ALV which i have used earlier in the reports. but now it is showing no output:
*& Report ZTCT1_ALV2 *
REPORT ztct1_alv2 .
CLASS lcl_event_receiver DEFINITION DEFERRED.
* INCLUDING TABLES.
TABLES: vbrk,
vbrp,
kna1,
t001w,
makt.
* DECLARATION OF INTERNAL TABLES.
DATA: BEGIN OF itab OCCURS 0, "Including the fields of VBRK and VBRP
kunag LIKE vbrk-kunag, "Customer Code
name1 LIKE kna1-name1, "Customer Name
vbeln LIKE vbrk-vbeln, "Invoice #
fkdat LIKE vbrk-fkdat, "Invoice Date
werks LIKE vbrp-werks, "Plant
name2 LIKE t001w-name1,"Plant Description
matnr LIKE vbrp-matnr, "Material #
maktx LIKE makt-maktx, "Material Description
meins LIKE vbrp-meins, "Unit of Measure
fklmg LIKE vbrp-fklmg, "Quantity
netwr LIKE vbrp-netwr, "Amount
END OF itab,
BEGIN OF itnm OCCURS 0, "Including the fields of VBRK and KNA1
kunag LIKE vbrk-kunag, "Customer Code
name1 LIKE kna1-name1, "Customer Name
END OF itnm,
BEGIN OF itpt OCCURS 0, "Including the fields of VBRP and T001W
werks LIKE vbrp-werks, "Plant
name1 LIKE t001w-name1,"Plant Description
END OF itpt,
BEGIN OF itmt OCCURS 0, "Including the fields of VBRP and MAKT
matnr LIKE vbrp-matnr, "Material #
maktx LIKE makt-maktx, "Material description
END OF itmt,
BEGIN OF itsm OCCURS 0,
kunag LIKE kna1-kunnr,
name1 LIKE kna1-name1,
fklmg LIKE vbrp-fklmg,
netwr LIKE vbrp-netwr,
END OF itsm,
ok_code LIKE sy-ucomm,
save_ok LIKE sy-ucomm,
g_max TYPE i VALUE 100,
g_repid LIKE sy-repid,
gs_layout TYPE lvc_s_layo,
g_container TYPE scrfname VALUE 'CUST_CONT',
grid1 TYPE REF TO cl_gui_alv_grid,
g_custom_container TYPE REF TO cl_gui_custom_container,
grid2 TYPE REF TO cl_gui_alv_grid,
gt_sort TYPE lvc_t_sort,
gt_fieldcatalog TYPE lvc_t_fcat,
w_tot_qty LIKE vbrp-fklmg,
w_tot_amt LIKE vbrp-netwr,
* Reference to Dialogbox Container.
dialogbox_container TYPE REF TO cl_gui_dialogbox_container,
* Reference to local class that handles events of GRID1 and
* DIALOGBOX_CONTAINER
event_receiver TYPE REF TO lcl_event_receiver.
* SELECT-OPTIONS
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN BEGIN OF BLOCK input WITH FRAME TITLE text-000.
SELECT-OPTIONS: s_werks FOR vbrp-werks, "Plant
s_kunag FOR vbrk-kunag, "Customer
s_matnr FOR vbrp-matnr, "Material Number
s_fkdat FOR vbrk-fkdat. "Invoice Date
SELECTION-SCREEN END OF BLOCK input .
SELECTION-SCREEN SKIP 1.
* START-OF-SELECTION
START-OF-SELECTION.
SET SCREEN 100.
* CLEARING INTERNAL TABLES.
CLEAR: itab,
itnm,
itmt,
itpt.
* QUERY FOR JOINING TABLES VBRK AND VBRP
SELECT vbrk~kunag
vbrk~vbeln
vbrk~fkdat
vbrp~werks
vbrp~matnr
vbrp~meins
vbrp~fklmg
vbrp~netwr
INTO CORRESPONDING FIELDS OF TABLE itab
FROM vbrk
INNER JOIN vbrp
ON vbrk~vbeln = vbrp~vbeln
WHERE vbrk~kunag IN s_kunag
AND vbrk~fkdat IN s_fkdat
AND vbrp~matnr IN s_matnr
AND vbrp~werks IN s_werks.
* QUERY FOR JOINING TABLES VBRK AND KNA1
SELECT kna1~kunnr AS kunag
kna1~name1
INTO TABLE itnm
FROM kna1
WHERE kna1~kunnr IN s_kunag.
* QUERY FOR JOINING TABLES VBRP AND T001W
SELECT t001w~werks
t001w~name1
INTO TABLE itpt
FROM t001w
WHERE t001w~werks IN s_werks.
* QUERY FOR JOINING TABLES VBRP AND MAKT
SELECT makt~matnr
makt~maktx
INTO TABLE itmt
FROM makt
WHERE makt~matnr IN s_matnr.
* SORTING INTERNAL TABLES.
SORT itab BY kunag.
* LOOP AT itab.
* CLEAR: itmt, itnm, itpt.
* READ TABLE itnm WITH KEY kunag = itab-kunag.
* READ TABLE itmt WITH KEY matnr = itab-matnr.
* READ TABLE itpt WITH KEY werks = itab-werks.
* itab-name1 = itnm-name1.
* itab-maktx = itmt-maktx.
* itab-name2 = itpt-name1.
* MODIFY itab.
* ENDLOOP.
* PERFORM fieldcatalog_init USING gt_fieldcatalog[] 'KUNAG' 'C' 'Customer Code'.
* PERFORM fieldcatalog_init USING gt_fieldcatalog[] 'NAME1' 'C' 'Customer Name'.
* PERFORM fieldcatalog_init USING gt_fieldcatalog[] 'VBELN' 'C' 'Invoice #'.
* PERFORM fieldcatalog_init USING gt_fieldcatalog[] 'FKDAT' 'DATS' 'Invoice Date'.
* PERFORM fieldcatalog_init USING gt_fieldcatalog[] 'WERKS' 'C' 'Plant'.
* PERFORM fieldcatalog_init USING gt_fieldcatalog[] 'NAME2' 'C' 'Plant Description'.
* PERFORM fieldcatalog_init USING gt_fieldcatalog[] 'MATNR' 'C' 'Material #'.
* PERFORM fieldcatalog_init USING gt_fieldcatalog[] 'MAKTX' 'C' 'Material Description'.
* PERFORM fieldcatalog_init USING gt_fieldcatalog[] 'MEINS' 'C' 'UoM'.
* PERFORM fieldcatalog_init USING gt_fieldcatalog[] 'FKLMG' 'QUAN' 'Quantity'.
* PERFORM fieldcatalog_init USING gt_fieldcatalog[] 'NETWR' 'CURR' 'Amount'.
LOOP AT itab.
CLEAR itsm.
READ TABLE itnm WITH KEY kunag = itab-kunag.
itsm-kunag = itab-kunag.
itsm-name1 = itnm-name1.
itsm-fklmg = itab-fklmg.
itsm-netwr = itab-netwr.
COLLECT itsm.
ENDLOOP.
PERFORM fieldcatalog_init USING gt_fieldcatalog[] 'KUNAG' 'C' 'Customer Code'.
PERFORM fieldcatalog_init USING gt_fieldcatalog[] 'NAME1' 'C' 'Customer Name'.
PERFORM fieldcatalog_init USING gt_fieldcatalog[] 'FKLMG' 'QUAN' 'Quantity'.
PERFORM fieldcatalog_init USING gt_fieldcatalog[] 'NETWR' 'CURR' 'Amount'.
PERFORM sort_build USING gt_sort[].
PERFORM layout_init USING gs_layout.
* LOCAL CLASSES: Definition
CLASS lcl_event_receiver DEFINITION.
PUBLIC SECTION.
METHODS:
handle_double_click
FOR EVENT double_click OF cl_gui_alv_grid
IMPORTING e_row e_column,
handle_close
FOR EVENT close OF cl_gui_dialogbox_container
IMPORTING sender.
PRIVATE SECTION.
DATA: dialogbox_status TYPE c. "'X': does exist, SPACE: does not ex.
ENDCLASS. "lcl_event_receiver DEFINITION
* LOCAL CLASSES: Implementation
CLASS lcl_event_receiver IMPLEMENTATION.
* §3.At doubleclick(1): The event DOUBLE_CLICK provides
* parameters of the clicked row and column.
* Use row parameter to select a line of the
* corresponding internal table.
METHOD handle_double_click.
DATA: ls_sm LIKE LINE OF itsm,
wa_itab LIKE ITAB.
* read selected row from internal table gt_sflight
READ TABLE itsm INDEX e_row-index INTO ls_sm.
* §4.At Doubleclick(2): Select booking data
* READ TABLE ITAB WITH KEY KUNAG = LS_SM-KUNAG. .
READ TABLE ITAB INTO WA_ITAB WITH KEY KUNAG = LS_SM-KUNAG.
* §5.At doubleclick(3): Create dialogbox to show detail list
* (if not already existent)
IF dialogbox_status IS INITIAL.
dialogbox_status = 'X'.
PERFORM create_detail_list.
ELSE.
CALL METHOD dialogbox_container->set_visible
EXPORTING
visible = 'X'.
CALL METHOD grid2->refresh_table_display.
ENDIF.
ENDMETHOD. "handle_double_click
METHOD handle_close.
* §6.Handle the CLOSE-button of the dialogbox
* set dialogbox invisible
* (the dialogbox is destroyed outomatically when the user
* switches to another dynpro).
CALL METHOD sender->set_visible
EXPORTING
visible = space.
* In this example closing the dialogbox leads
* to make it invisible. It is also conceivable to destroy it
* and recreate it if the user doubleclicks a line again.
* Displaying a great amount of data has a greater impact on performance.
ENDMETHOD. "handle_close
ENDCLASS. "lcl_event_receiver IMPLEMENTATION
* lcl_event_receiver (Implementation)
*=====================================================================
* FORM EXIT_PROGRAM *
FORM exit_program.
CALL METHOD g_custom_container->free.
CALL METHOD cl_gui_cfw=>flush.
IF sy-subrc NE 0.
* add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'Error in FLush'(500).
ENDIF.
LEAVE TO SCREEN 0.
ENDFORM. "exit_program
* MODULE PBO_ALV OUTPUT
MODULE pbo_alv OUTPUT.
SET PF-STATUS 'MAIN'.
SET TITLEBAR 'MAIN100'.
g_repid = sy-repid.
IF g_custom_container IS INITIAL.
READ TABLE itsm.
CREATE OBJECT g_custom_container
EXPORTING
container_name = g_container
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
IF sy-subrc NE 0.
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'The control could not be created'(510).
ENDIF.
CREATE OBJECT grid1
EXPORTING
i_parent = g_custom_container.
gs_layout-grid_title = 'Invoice Summary'.
CALL METHOD grid1->set_table_for_first_display
EXPORTING
is_layout = gs_layout
CHANGING
it_outtab = itsm[]
it_fieldcatalog = gt_fieldcatalog
it_sort = gt_sort.
CREATE OBJECT event_receiver.
SET HANDLER event_receiver->handle_double_click FOR grid1.
ENDIF.
CALL METHOD cl_gui_control=>set_focus
EXPORTING
control = grid1.
ENDMODULE. "PBO_ALV OUTPUT
* MODULE PAI_ALV INPUT
MODULE pai_alv INPUT.
CALL METHOD cl_gui_cfw=>dispatch.
CASE sy-ucomm.
WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. "PAI_ALV INPUT
*& Form fieldcatalog_init
* text
* -->LT_FIELDCATtext
* -->VALUE(FIELDtextE)
* -->VALUE(FIELDtextE)
* -->VALUE(FIELDtextT)
FORM fieldcatalog_init USING lt_fieldcatalog TYPE lvc_t_fcat
value(field_name) value(field_type) value(field_text).
DATA: ls_fieldcatalog TYPE lvc_s_fcat.
CLEAR ls_fieldcatalog.
ls_fieldcatalog-fieldname = field_name.
ls_fieldcatalog-datatype = field_type.
ls_fieldcatalog-reptext = field_text.
ls_fieldcatalog-coltext = field_text.
ls_fieldcatalog-seltext = field_text.
ls_fieldcatalog-tooltip = field_text.
APPEND ls_fieldcatalog TO lt_fieldcatalog.
ENDFORM. "fieldcatalog_init
*& Form sort_build
* text
* -->LT_SORT text
FORM sort_build USING lt_sort TYPE lvc_t_sort.
DATA: ls_sort TYPE lvc_s_sort.
ls_sort-fieldname = 'KUNAG'. "Fieldname on which to sort
ls_sort-up = 'X'. "Sort Ascending
APPEND ls_sort TO lt_sort.
ls_sort-fieldname = 'NAME1'. "Fieldname on which to sort
ls_sort-up = 'X'. "Sort Ascending
APPEND ls_sort TO lt_sort.
ENDFORM. "sort_build
*& Form layout_init
* text
* -->LS_LAYOUT text
FORM layout_init USING ls_layout TYPE lvc_s_layo.
ls_layout-zebra = 'X'.
ls_layout-grid_title = 'Customer Details'.
ls_layout-sel_mode = 'A'.
ls_layout-cwidth_opt = 'X'.
ENDFORM. "layout_init
*& Form create_detail_list
* text
* --> p1 text
* <-- p2 text
FORM create_detail_list.
* create dialogbox container as dynpro-instance
* When the user switches to another screen, it is
* destroyed by lifetime mangagement of CFW
CREATE OBJECT dialogbox_container
EXPORTING
top = 150
left = 150
lifetime = cntl_lifetime_dynpro
caption = 'INVOICE DETAILS'(200)
width = 800
height = 200.
CREATE OBJECT grid2
EXPORTING i_parent = dialogbox_container.
* Register ABAP OO event 'CLOSE'. It is not necessary to register this
* event at the frontend (this is done during creation).
SET HANDLER event_receiver->handle_close FOR dialogbox_container.
* display data
gs_layout-grid_title = 'Invoice Details'(100).
CALL METHOD grid2->set_table_for_first_display
EXPORTING
i_structure_name = 'itab'
is_layout = gs_layout
CHANGING
it_outtab = itab[]
it_fieldcatalog = gt_fieldcatalog
it_sort = gt_sort.
CALL METHOD cl_gui_control=>set_focus
EXPORTING
control = grid2.
ENDFORM. " create_detail_list[code][/
code]Hi,
I also copied and pasted the same code check once again by copying this code and create screens by double clicking on 100.
CLASS lcl_event_receiver DEFINITION DEFERRED.
* INCLUDING TABLES.
TABLES: vbrk,
vbrp,
kna1,
t001w,
makt.
* DECLARATION OF INTERNAL TABLES.
DATA: BEGIN OF itab OCCURS 0, "Including the fields of VBRK and VBRP
kunag LIKE vbrk-kunag, "Customer Code
name1 LIKE kna1-name1, "Customer Name
vbeln LIKE vbrk-vbeln, "Invoice #
fkdat LIKE vbrk-fkdat, "Invoice Date
werks LIKE vbrp-werks, "Plant
name2 LIKE t001w-name1,"Plant Description
matnr LIKE vbrp-matnr, "Material #
maktx LIKE makt-maktx, "Material Description
meins LIKE vbrp-meins, "Unit of Measure
fklmg LIKE vbrp-fklmg, "Quantity
netwr LIKE vbrp-netwr, "Amount
END OF itab,
BEGIN OF itnm OCCURS 0, "Including the fields of VBRK and KNA1
kunag LIKE vbrk-kunag, "Customer Code
name1 LIKE kna1-name1, "Customer Name
END OF itnm,
BEGIN OF itpt OCCURS 0, "Including the fields of VBRP and T001W
werks LIKE vbrp-werks, "Plant
name1 LIKE t001w-name1,"Plant Description
END OF itpt,
BEGIN OF itmt OCCURS 0, "Including the fields of VBRP and MAKT
matnr LIKE vbrp-matnr, "Material #
maktx LIKE makt-maktx, "Material description
END OF itmt,
BEGIN OF itsm OCCURS 0,
kunag LIKE kna1-kunnr,
name1 LIKE kna1-name1,
fklmg LIKE vbrp-fklmg,
netwr LIKE vbrp-netwr,
END OF itsm,
ok_code LIKE sy-ucomm,
save_ok LIKE sy-ucomm,
g_max TYPE i VALUE 100,
g_repid LIKE sy-repid,
gs_layout TYPE lvc_s_layo,
g_container TYPE scrfname VALUE 'CUST_CONT',
grid1 TYPE REF TO cl_gui_alv_grid,
g_custom_container TYPE REF TO cl_gui_custom_container,
grid2 TYPE REF TO cl_gui_alv_grid,
gt_sort TYPE lvc_t_sort,
gt_fieldcatalog TYPE lvc_t_fcat,
w_tot_qty LIKE vbrp-fklmg,
w_tot_amt LIKE vbrp-netwr,
* Reference to Dialogbox Container.
dialogbox_container TYPE REF TO cl_gui_dialogbox_container,
* Reference to local class that handles events of GRID1 and
* DIALOGBOX_CONTAINER
event_receiver TYPE REF TO lcl_event_receiver.
* SELECT-OPTIONS
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN BEGIN OF BLOCK input WITH FRAME TITLE text-000.
SELECT-OPTIONS: s_werks FOR vbrp-werks, "Plant
s_kunag FOR vbrk-kunag, "Customer
s_matnr FOR vbrp-matnr, "Material Number
s_fkdat FOR vbrk-fkdat. "Invoice Date
SELECTION-SCREEN END OF BLOCK input .
SELECTION-SCREEN SKIP 1.
* START-OF-SELECTION
START-OF-SELECTION.
SET SCREEN 100.
* CLEARING INTERNAL TABLES.
CLEAR: itab,
itnm,
itmt,
itpt.
* QUERY FOR JOINING TABLES VBRK AND VBRP
SELECT vbrk~kunag
vbrk~vbeln
vbrk~fkdat
vbrp~werks
vbrp~matnr
vbrp~meins
vbrp~fklmg
vbrp~netwr
INTO CORRESPONDING FIELDS OF TABLE itab
FROM vbrk
INNER JOIN vbrp
ON vbrk~vbeln = vbrp~vbeln
WHERE vbrk~kunag IN s_kunag
AND vbrk~fkdat IN s_fkdat
AND vbrp~matnr IN s_matnr
AND vbrp~werks IN s_werks.
* QUERY FOR JOINING TABLES VBRK AND KNA1
SELECT kna1~kunnr AS kunag
kna1~name1
INTO TABLE itnm
FROM kna1
WHERE kna1~kunnr IN s_kunag.
* QUERY FOR JOINING TABLES VBRP AND T001W
SELECT t001w~werks
t001w~name1
INTO TABLE itpt
FROM t001w
WHERE t001w~werks IN s_werks.
* QUERY FOR JOINING TABLES VBRP AND MAKT
SELECT makt~matnr
makt~maktx
INTO TABLE itmt
FROM makt
WHERE makt~matnr IN s_matnr.
* SORTING INTERNAL TABLES.
SORT itab BY kunag.
LOOP AT itab.
CLEAR itsm.
READ TABLE itnm WITH KEY kunag = itab-kunag.
itsm-kunag = itab-kunag.
itsm-name1 = itnm-name1.
itsm-fklmg = itab-fklmg.
itsm-netwr = itab-netwr.
COLLECT itsm.
ENDLOOP.
* END-OF-SELECTION.
* If not itsm[] is initial.
* CALL SCREEN 100.
* endif.
* LOCAL CLASSES: Definition
CLASS lcl_event_receiver DEFINITION.
PUBLIC SECTION.
METHODS:
handle_double_click
FOR EVENT double_click OF cl_gui_alv_grid
IMPORTING e_row e_column,
handle_close
FOR EVENT close OF cl_gui_dialogbox_container
IMPORTING sender.
PRIVATE SECTION.
DATA: dialogbox_status TYPE c. "'X': does exist, SPACE: does not ex
ENDCLASS. "lcl_event_receiver DEFINITION
* LOCAL CLASSES: Implementation
CLASS lcl_event_receiver IMPLEMENTATION.
* §3.At doubleclick(1): The event DOUBLE_CLICK provides
* parameters of the clicked row and column.
* Use row parameter to select a line of the
* corresponding internal table.
METHOD handle_double_click.
DATA: ls_sm LIKE LINE OF itsm,
wa_itab LIKE ITAB.
* read selected row from internal table gt_sflight
READ TABLE itsm INDEX e_row-index INTO ls_sm.
* §4.At Doubleclick(2): Select booking data
* READ TABLE ITAB WITH KEY KUNAG = LS_SM-KUNAG. .
READ TABLE ITAB INTO WA_ITAB WITH KEY KUNAG = LS_SM-KUNAG.
* §5.At doubleclick(3): Create dialogbox to show detail list
* (if not already existent)
IF dialogbox_status IS INITIAL.
dialogbox_status = 'X'.
PERFORM create_detail_list.
ELSE.
CALL METHOD dialogbox_container->set_visible
EXPORTING
visible = 'X'.
CALL METHOD grid2->refresh_table_display.
ENDIF.
ENDMETHOD. "handle_double_click
METHOD handle_close.
* §6.Handle the CLOSE-button of the dialogbox
* set dialogbox invisible
* (the dialogbox is destroyed outomatically when the user
* switches to another dynpro).
CALL METHOD sender->set_visible
EXPORTING
visible = space.
* In this example closing the dialogbox leads
* to make it invisible. It is also conceivable to destroy it
* and recreate it if the user doubleclicks a line again.
* Displaying a great amount of data has a greater impact on
*performance.
ENDMETHOD. "handle_close
ENDCLASS. "lcl_event_receiver IMPLEMENTATION
* lcl_event_receiver (Implementation)
*=====================================================================
* FORM EXIT_PROGRAM *
FORM exit_program.
CALL METHOD g_custom_container->free.
CALL METHOD cl_gui_cfw=>flush.
IF sy-subrc NE 0.
* add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'Error in FLush'(500).
ENDIF.
LEAVE TO SCREEN 0.
ENDFORM. "exit_program
*& Module STATUS_0100 OUTPUT
* text
module STATUS_0100 output.
SET PF-STATUS 'MAIN'.
SET TITLEBAR 'MAIN100'.
g_repid = sy-repid.
IF g_custom_container IS INITIAL.
READ TABLE itsm.
CREATE OBJECT g_custom_container
EXPORTING
container_name = g_container
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
IF sy-subrc NE 0.
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'The control could not be created'(510).
ENDIF.
CREATE OBJECT grid1
EXPORTING
i_parent = g_custom_container.
gs_layout-grid_title = 'Invoice Summary'.
PERFORM fieldcatalog_init USING gt_fieldcatalog[] 'KUNAG' 'C'
'Customer Code'.
PERFORM fieldcatalog_init USING gt_fieldcatalog[] 'NAME1' 'C'
'Customer Name'.
PERFORM fieldcatalog_init USING gt_fieldcatalog[] 'FKLMG' 'QUAN'
'Quantity'.
PERFORM fieldcatalog_init USING gt_fieldcatalog[] 'NETWR' 'CURR'
'Amount'.
PERFORM sort_build USING gt_sort[].
PERFORM layout_init USING gs_layout.
CALL METHOD grid1->set_table_for_first_display
EXPORTING
is_layout = gs_layout
CHANGING
it_outtab = itsm[]
it_fieldcatalog = gt_fieldcatalog
it_sort = gt_sort.
CREATE OBJECT event_receiver.
SET HANDLER event_receiver->handle_double_click FOR grid1.
ENDIF.
CALL METHOD cl_gui_control=>set_focus
EXPORTING
control = grid1.
endmodule. " STATUS_0100 OUTPUT
* MODULE PAI_ALV INPUT
MODULE USER_COMMAND_0100.
CALL METHOD cl_gui_cfw=>dispatch.
CASE sy-ucomm.
WHEN 'BACK' OR 'EXIT' OR 'CANC'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. "PAI_ALV INPUT
*& Form fieldcatalog_init
* text
* -->LT_FIELDCATtext
* -->VALUE(FIELDtextE)
* -->VALUE(FIELDtextE)
* -->VALUE(FIELDtextT)
FORM fieldcatalog_init USING lt_fieldcatalog TYPE lvc_t_fcat
value(field_name) value(field_type)
value(field_text).
DATA: ls_fieldcatalog TYPE lvc_s_fcat.
CLEAR ls_fieldcatalog.
ls_fieldcatalog-fieldname = field_name.
ls_fieldcatalog-datatype = field_type.
ls_fieldcatalog-reptext = field_text.
ls_fieldcatalog-coltext = field_text.
ls_fieldcatalog-seltext = field_text.
ls_fieldcatalog-tooltip = field_text.
APPEND ls_fieldcatalog TO lt_fieldcatalog.
ENDFORM. "fieldcatalog_init
*& Form sort_build
* text
* -->LT_SORT text
FORM sort_build USING lt_sort TYPE lvc_t_sort.
DATA: ls_sort TYPE lvc_s_sort.
ls_sort-fieldname = 'KUNAG'. "Fieldname on which to sort
ls_sort-up = 'X'. "Sort Ascending
APPEND ls_sort TO lt_sort.
ls_sort-fieldname = 'NAME1'. "Fieldname on which to sort
ls_sort-up = 'X'. "Sort Ascending
APPEND ls_sort TO lt_sort.
ENDFORM. "sort_build
*& Form layout_init
* text
* -->LS_LAYOUT text
FORM layout_init USING ls_layout TYPE lvc_s_layo.
ls_layout-zebra = 'X'.
ls_layout-grid_title = 'Customer Details'.
ls_layout-sel_mode = 'A'.
ls_layout-cwidth_opt = 'X'.
ENDFORM. "layout_init
*& Form create_detail_list
* text
* --> p1 text
* <-- p2 text
FORM create_detail_list.
* create dialogbox container as dynpro-instance
* When the user switches to another screen, it is
* destroyed by lifetime mangagement of CFW
CREATE OBJECT dialogbox_container
EXPORTING
top = 150
left = 150
lifetime = cntl_lifetime_dynpro
caption = 'INVOICE DETAILS'(200)
width = 800
height = 200.
CREATE OBJECT grid2
EXPORTING i_parent = dialogbox_container.
* Register ABAP OO event 'CLOSE'. It is not necessary to register this
* event at the frontend (this is done during creation).
SET HANDLER event_receiver->handle_close FOR dialogbox_container.
* display data
gs_layout-grid_title = 'Invoice Details'(100).
CALL METHOD grid2->set_table_for_first_display
EXPORTING
i_structure_name = 'itab'
is_layout = gs_layout
CHANGING
it_outtab = itab[]
it_fieldcatalog = gt_fieldcatalog
it_sort = gt_sort.
CALL METHOD cl_gui_control=>set_focus
EXPORTING
control = grid2.
ENDFORM. " create_detail_list
Nothing wrong in the code i am able to see the output with five records and the pop-up screen on double clicking a value.
Kindly close the thread or revert back -
Why does my camera not work for Skype?
I downloaded Skype from the app store but for some reason my camera does not turn on. I have seen several responses on other various forums. I guess part of my problem is also the fact that I am not as technically sound as others and I get lost in the verbage being used. I tune out when the dialogue response gets too long.
in sted of using the Skype app from the app store i would do it munualy from the website. befor using the camera though on some apps or websites it should/might ask you to use the camera you will need to enter the password (if you have on) and click yes its a small box looks like something from windows. Hope that helped let me know if you have any further questions!!
-
Form can not work for certain user.
We have one customized request search form. We meet ‘'ORA-01403: no data found’ for ONLY one users. It works fine for all other users. I checked the user responsibilities. All users have the same responsibilities. And other function and form works fine for this user. So only this form failed for this user. Any comments?
The important thing to work out is what query is giving the ORA-1403? Without knowing that, it could be caused by anything. My guess would be that there is some data condition that is false for the user that is failing but true for all other users. However, without knowing the query giving the error, you don't know which data to look at.
-
If in the Windows Explorer of Windows 7 I double-click the name of a file that is mentioned as being a Firefox file by its file type symbol, it should be launched. But this doesn't happen. If I select "Open with" > Firefox" in the file's context menu, nothing happens. But if I select another browser, the file will be launched.
Hi,
You can try to right-click a file > '''Open with''' > '''Choose default program''' > '''Browse''' (disregard any existing entry) and select Firefox, and also enable (tick) '''Always use the selected program to open this kind of file'''. -
Why does Touch ID not work for reviews?
Why do I have to always put in my Apple ID password to submit a review on an iPhone 6 with Touch ID?
That took me ages just fix your day and time
Maybe you are looking for
-
Safari 5.0.2 crashes when I login to Facebook
Each time I get on Facebook, Safari crashes. I've read previous discussions and someone said to go to Macintosh HD and then click the Firstaid tab...but I do not have a Firstaid tab. This is the message that pops up: Process: Safari [367] Path: /User
-
Data Recovery.....HELP ME!!!!!
I by accident deleted my movies and tv shows that were on my itunes!!!! I know this isnt the most direst of emergencies, but i do need them back. With the leapard upgrade, how far back can you go with time machine? Will apple help me though this proc
-
Updates include the following Bridge CS5 4.0.5 Update Extension Manager CS5.0 Update Illustrator CS5 15.0.2 Update Pixel Bender Toolklit 2.5 Update InDesign CS5 7.0.4 Update Dreamweaver CS5 11.0.4 Update Fireworks CS5 11.0.2 Update Photoshop 12.0.4 U
-
SQL SERVER 2012 cube deployment error
I am a first time SQL server user trying to do the Analysis Services Tutorials. I am on the last part of Lesson 2 where the cube is deployed. Here is my error message. Note: I did have permission issues originally when trying upload AdventureWorksDW2
-
N8 PR1.1 meeting requests by email fixed ?
I updated my N8:00 (product code 059D4S1) today from 011.012 to 013.016 I see the new Quick office 6.4 but I tried a meeting request by email (office 2010) got the email but its blank ? no way to accept or reject meeting ? Is this this