MT100 Header Blocks problem
Hello expert,
I have a problem in MT100 generation.
File is generated with the correct payment information but I don't have headr block i mean tags 01, 02, 03, 04, 05, 06 and 07.
There is an option that i should set to print also header block?
Thank you in advance.
Thank you Gaurav.
I checked all MF of all events. There is no tags 1,2..7. In the event 30, the MF creates tags 20 until 72.
The bank sent me the file format MT100 expected. There are two blocks: header Block (Tag from 1 to 7) and payment information block (Tag from 20 to 72). I have no problem with the payment block is what generate SAP and i found those tags in event 30.
by cons I do not know how to enable the generation of header block?
1- This block could be generated by standard SAP ? What i must to set?
2- Or i must use MF to add myself this header block? (Specific dev)
Just for information, header block is like that:
:01: Refrence --> YYMMDDNN when NN is the file number --> Mandatory for the bank
:02: Total amount --> Mandatory for the bank
:03: No orders --> Mandatory for the bank
:04: Paying Bank --> SWIFT --> Mandatory for the bank
:05: Ordering party --> Ordering party name and adress --> Mandatory for the bank
:06: User No --> User No at the paying bank -->optional
:07: File name -->optional
Thank you very much for your help.
Similar Messages
-
Commit in Header Block, but cannot Commit in Control Block
I am new to Oracle Forms, and would really appreciate your kind response.
I am using Oracle Forms 6i, Client/Server environment, and no base tables.
The DATA BLOCKS is divided into two areas: 1) HEADER, and 2) CONTROL. I successfully commit from the HEADER area, but cannot COMMIT nor CLEAR_FORM in the CONTROL area after Inserting records. What is causing this, and how can I get the application to Commit and Clear_Form?
I also notice in Data Block - Control that I am still in QUERY mode after INSERTING records. Shouldn't I be in CHANGED mode, and if so how do I make sure I am in the correct mode after inserting records?
Thanks in advance.
Below is a sample of my codes:
Data Block: HEADER
- Items: CLONE_ITEMS
- Triggers: WHEN-BUTTON-PRESSED
create_security_id(:security_id,:first_name,:last_name,:middle_name,:prefix,:suffix,:ti_title_class);
:header.CT_SECURITY_ID := :header.SECURITY_ID;
go_item('cf_security_id');
Program Units: CREATE_SECURITY_ID
This section inserts the User_ID into the All_Users System table, and adds a record into the user defined SECURITY_USERS table. COMMIT is successfully done in this section.
------------------------------- Problems here - COMMIT not successful ---------------------------
So we tried using: FORMS_DDL('COMMIT'); which works. However we cannot get the Clear_Block to Work. All other codes commented out does not work.
Data Block: CONTROL
- Items: COPY_USER
- Triggers: WHEN-BUTTON-PRESSED
Copy_User_Role_locations (:CT_SEUS_ID, :CF_SEUS_ID);
IF :System.Form_Status <> 'QUERY' THEN
Message('Error prevented Commit');
RAISE Form_Trigger_Failure;
End if;
IF :System.Form_Status = 'QUERY' THEN
Display_Message('QUERY MODE');
END IF;
IF :System.Form_Status = 'CHANGED' THEN
Display_Message('CHANGED MODE');
END IF;
IF :System.Form_Status = 'NEW' THEN
Display_Message('NEW/INSERT');
END IF;
IF Form_Success THEN
display_message('Security user created Sucessfully '||:ct_seus_id);
FORMS_DDL('COMMIT'); ---------This works
FORMS_DDL('CLEAR_BLOCK'); --Does not work
-- do_key('commit_form'); --Does not work
-- clear_block; --Does not work
-- set_block_property( 'header', INSERT_ALLOWED, PROPERTY_true);
-- clear_form(DO_COMMIT); --Does not work
END IF;
Program Units: COPY_USER_ROLE_LOCATIONS
This section fetches records with matching Security-ID, and INSERTS a copy of the record with the new ID. No commits is done in this section.Gerd,
No the Header Block was not created through the Block_Wizard. The Form was copied from another, and modified accordingly. I inherited it with these issues which I am trying to fix.
Omar,
I tried using the Go_Block procedure with Clear_Block, but unfortunately it still did not work. I also tried doing Clear_Form, same results. Below are the codes I used in SAVE button, where I tried to commit and clear_block (Note that Display_Message is an inhouse function):
Data Block: CONTROL
Items: SAVE
Triggers: When_Button_Pressed
Display_Message('save..');
FORMS_DDL('COMMIT');
IF Form_Success THEN
Display_Message('Transaction Completed Sucessfully');
else
Display_Message('Failure to Commit Security_User');
end if;
Go_Block('CONTROL');
CLEAR_BLOCK ;
---CLEAR_FORM;
IF Form_Success THEN
Display_Message('Transaction Cleared Sucessfully');
else
Display_Message('Transaction Not Cleared');
end if;
Whereas the message "Transaction Completed Successfully" was received when I used FORMS_DDL('COMMIT'), I still got a "Transaction Not Cleared" message, and the data was not cleared from the screen. I would really like to to resolve this issue.
I also would be grateful if someone could clarify what mode I should be in after Inserting records. Should I be in the Query Mode, or Changed Mode.
Thanks a mil.
Sonia. -
ORA-27047: unable to read the header block of file
My Windows 2003 crashed which was running Oracle XE.
I installed Oracle XE on Windows XP on another machine.
I coped my D:\oracle\XE10g\oradata folder of Win2003 to the same location in WinXP machine.
When I start the database in WinXP using SQLPLUS i get the following message
SQL> startup
ORACLE instance started.
Total System Global Area 146800640 bytes
Fixed Size 1286220 bytes
Variable Size 62918580 bytes
Database Buffers 79691776 bytes
Redo Buffers 2904064 bytes
ORA-00205: error in identifying control file, check alert log for more info
I my D:\oracle\XE10g\app\oracle\admin\XE\bdump\alert_xe I found following errors
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
starting up 4 shared server(s) ...
Oracle Data Guard is not available in this edition of Oracle.
Wed Apr 25 18:38:36 2007
ALTER DATABASE MOUNT
Wed Apr 25 18:38:36 2007
ORA-00202: control file: 'D:\ORACLE\XE10G\ORADATA\XE\CONTROL.DBF'
ORA-27047: unable to read the header block of file
OSD-04001: invalid logical block size (OS 2800189884)
Wed Apr 25 18:38:36 2007
ORA-205 signalled during: ALTER DATABASE MOUNT...
ORA-00202: control file: 'D:\ORACLE\XE10G\ORADATA\XE\CONTROL.DBF'
ORA-27047: unable to read the header block of file
OSD-04001: invalid logical block size (OS 2800189884)
Please help.
Regards,
ZulqarnainTry to install win 2003 server software, do the fresh installation of oracle software, now copy the datafiles and controlfiles to same locations as you did on winxp.
get back to us, if still not out of the woods. I still doubt that a simple restore would do the trick, since you doing it across different platforms, might be I can be wrong, but this is what I personally feel, you not able to start the database on winxp.
hare krishna
Alok -
Req Help to Update LIKP-LIFSK,Delivery Header block through custom program.
Hi everyone,
Can you please suggest a FM or BAPI to update the delivery header block field, LIFSK, in LIKP table through FM or a BAPI.
I tried using 'BAPI_OUTB_DELIVERY_CHANGE' as below to update the LIKP-LIFSK, but it is not working.
DATA : ls_likp TYPE likpvb,
ls_dlv_header TYPE bapiobdlvhdrchg,
lt_dlv_items_control TYPE STANDARD TABLE OF bapiobdlvitemctrlchg,
ls_dlv_item_control TYPE bapiobdlvitemctrlchg.
DATA : ls_dlv_hdr_control TYPE bapiobdlvhdrctrlchg,
ls_dlv_techn_control TYPE bapidlvcontrol,
lt_bapireturn TYPE STANDARD TABLE OF bapiret2,
ls_bapireturn TYPE bapiret2,
lt_bapiext2 TYPE STANDARD TABLE OF bapiext,
ls_bapiext2 TYPE bapiext.
DATA : BEGIN OF ls_mns_of_del,
vbeln TYPE likp-vbeln, "delivery number
lifsk TYPE likp-lifsk, "means of transport
END OF ls_mns_of_del.
CONSTANTS : lc_del_blck TYPE bapiext-param VALUE 'LIKP-LIFSK'.
PARAMETERS : p_dlv TYPE likp-vbeln OBLIGATORY." OBLIGATORY.
SELECT SINGLE *
FROM likp
INTO ls_likp
WHERE vbeln = p_dlv.
CHECK sy-subrc = 0.
CLEAR : ls_bapiext2.
ls_mns_of_del-vbeln = ls_likp-vbeln.
ls_mns_of_del-lifsk = 'BX'.
ls_bapiext2-param = lc_del_blck .
ls_bapiext2-value = ls_mns_of_del.
APPEND ls_bapiext2 TO lt_bapiext2.
CALL FUNCTION 'MAP2E_LIKPVB_TO_BAPIOBDLVHDRCH'
EXPORTING
likpvb = ls_likp
CHANGING
bapiobdlvhdrchg = ls_dlv_header.
CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
EXPORTING
header_data = ls_dlv_header
header_control = ls_dlv_hdr_control
delivery = ls_likp-vbeln
techn_control = ls_dlv_techn_control
TABLES
extension2 = lt_bapiext2[]
return = lt_bapireturn[]
EXCEPTIONS
communication_failure = 1
system_failure = 2
OTHERS = 3.
IF lt_bapireturn[] IS INITIAL.
COMMIT WORK AND WAIT.
MESSAGE 'Success' TYPE 'I' DISPLAY LIKE 'S'.
LEAVE LIST-PROCESSING.
ELSE.
MESSAGE 'Error' TYPE 'I' DISPLAY LIKE 'E'.
LEAVE LIST-PROCESSING.
ENDIF.Hi ,
After seeing your code, you are not passing any parameters to header control data. once check the below code, it might useful.
DATA: h_data like bapiobdlvhdrchg,
h_control like bapiobdlvhdrctrlchg,
delivery like bapiobdlvhdrchg-deliv_numb,
item_data like bapiobdlvitemchg occurs 0 with header line,
item_control like bapiobdlvitemctrlchg occurs 0 with header line,
return like bapiret2 occurs 0 with header line.
CLEAR: h_data, h_control, delivery, item_data, item_control,
return.
REFRESH: item_data, item_control, return.
h_data-deliv_numb = gst_alv_table-c6_vbeln.
h_data-dlv_block = p_new_del_blck. "the new delivery block
h_control-deliv_numb = gst_alv_table-c6_vbeln.
h_control-dlv_block_flg = 'X'.
delivery = gst_alv_table-c6_vbeln.
CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
EXPORTING
header_data = h_data
header_control = h_control
delivery = delivery
TABLES
return = return .
"Check if return table got an error.
READ TABLE return WITH KEY type = 'E'.
IF NOT sy-subrc IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
ELSE.
ROLLBACK WORK.
ENDIF.
Regards,
Parupelly -
ORA-27044: unable to write the header block of file / IBM AIX RISC System/6
We are getting an error like this...
Oracle 11.2.0.2
AIX 5.3
Error:
CREATE CONTROLFILE REUSE DATABASE "CLMST" RESETLOGS NOARCHIVELOG
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-00200: control file could not be created
ORA-00202: control file: '/clmst02/UAT/oradata/control/control01.ctl'
ORA-27044: unable to write the header block of file
IBM AIX RISC System/6000 Error: 89: Invalid file system control data detected
Additional information: 3
Additional information: -1
Additional information: 1ORA-09817 IBM AIX RISC System/6000 Error: 89
Oracle 11.2.0.2
AIX 5.3
Related Errors:-
Mon Nov 05 18:33:51 2012
ARC3 started with pid=30, OS id=954622
ARC1: Becoming the 'no FAL' ARCH
ARC1: Becoming the 'no SRL' ARCH
ARC2: Becoming the heartbeat ARCH
Errors in file /clmst01/UAT/oracode/app/oracle/diag/rdbms/clmst/clmst/trace/clmst_ora_2514960.trc (incident=17053):
ORA-00600: internal error code, arguments: [kccugg_end], [], [], [], [], [], [], [], [], [], [], []
Errors in file /clmst01/UAT/oracode/app/oracle/diag/rdbms/clmst/clmst/trace/clmst_m000_2105586.trc:
ORA-00313: open failed for members of log group 3 of thread 1
ORA-00312: online log 3 thread 1: '/clmst02/UAT/oradata/redo/redo03A.log'
ORA-27037: unable to obtain file status
IBM AIX RISC System/6000 Error: 2: No such file or directory
CREATE CONTROLFILE REUSE DATABASE "CLMST" RESETLOGS NOARCHIVELOG
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-00200: control file could not be created
ORA-00202: control file: '/clmst02/UAT/oradata/control/control01.ctl'
ORA-27044: unable to write the header block of file
IBM AIX RISC System/6000 Error: 89: Invalid file system control data detected
Additional information: 3
Additional information: -1
Additional information: 1
Cause:-
Your /clmst02/ mount point might be corrupted.
Check:-
fsck /clmst02
The current volume is: /dev/fslv00
File system is currently mounted.
Primary superblock is valid.
fsck: Performing read-only processing does not produce dependable results.
*** Phase 1 - Initial inode scan
*** Phase 2 - Process remaining directories
*** Phase 3 - Process remaining files
*** Phase 4 - Check inode allocation map
File system inode map is corrupt (NOT FIXED)
fsck: 0507-278 Cannot continue.
File system is currently mounted.
fsck: Performing read-only processing does not produce dependable results.
Fix:-
Either you can change the file location to another mount points or shutdown the database and run the fsck on /clmst02 mount point to fix the corrupted one & start the database.
Fix:-
Recreate the affected Redolog files
alter database add logfile group 3 (
'/clmst02/UAT/oradata/redo/redo03A.log',
'/clmst03/UAT/oradata2/redo/redo03B.log',
'/clmst04/UAT/oradata3/redo/redo03C.log') size 50m reuse; -
How to get header block in oracle datafile?
Which oracle view will be helpful?To corrupt a block in datafile use the " dd " command,
dd if=/dev/zero of=/oracle/oradata/ORCL/datafile/test.dbf bs=8k conv=notrunc seek=10 count=1
How to corrupt an Oracle 10g Database to test repair
Thanks -
Hi @ all,
found a new problem!
At the footer I am using variables to display what position of text is shown at the current page.
Running H/F 1 <$paratext[Heading 1]>
Running H/F 2<$paratext[Heading 2]>
But the problem is already that by reaching a new heading 1, the old heading 2 is displayed until a new heading 2 appears. but in some cases there will be no new heading 2, because the heading 1 stands alone like "Checklist" which got no heading 2. But the foote again displays the heading 2 from the heading before. not beautiful...
solutions?
Thanks MichaelFM's rule for using the <$paratext[...]> building block is to search backwards from the current page to satisfy the requested condition. So, if there is no Heading2 tagged content, it looks backwards until it finds one to use. There are a few ways to get around this issue.
1. Use the <$marker1> and <$marker2> building blocks instead, but that means you have to populate these and place resets (i.e. empty contents) every time you start a new Headimg1 level.
2. Use an empty Heading2 paratag after your Heading1 (ugly and not really recommended).
3. Use the building blocks multiple tag feature to specify an alternate paratag to pick up, e.g. <$paratext[Heading2, EmptyHeading]>. Then format the EmptyHeading to be as invisible as possible on the page with no content. When there is a Heading1 with no correesponding Heading2 on a page, just the EmptyHeading paratag. Tip: you can insert this paratag in an anchored frame (text frame within the anchored frame) and hang this out in the margins to keep the flow of text in the body unaffected. -
SSRS 2012: Report Header PrintOnFirstPage-problem after report migration from SSRS 2008
Hi ,
I developed my report using VS 2008 IDE and the report header property "PrintOnFirstPage" is set to False.
The content of the header are some textboxes and lines that should show only on page number > 1.
This works fine in VS 2008 IDE in preview mode as well as with reports rendered by SSRS 2008 report server.
Recently I migrate&convert the same report to SSRS 2012 I noticed a different rendering behaviour of my report.
So in VS 2010 preview mode, the page headers content (textboxe etc.) is not visible on first page but the headers space did not colapse as it does in VS 2008 IDE preview mode.
I checked all the report properties but unable to find a solution to my problem.
I was able to reprduce the same behaviour by creating a new report using VS2010 IDE.
Any ideas are greatly appreciated
Thanks
BodoHi BodoHH,
I have tested on my local enviorment and can't reproduce the issue, the issue can be caused by many factors, it can be caused by the properties setting and can also caused by the visual studio, Detais information below for your reference:
As you mentioned that you have check all the report properties, please also check the tablix,Page Header,report body properties to see if the size are the same with that in the SSRS2008.
Please open this rdl report in the report builder to see if the print layout is correct, if it works fine, the issue can be caused by the visual studio.
Please also try to upload the rdl report to report manager to check the layout.
Please also provide the snaphot of the layout in VS2010 to let us better analysis about the issue.
If you still have any problem, please feel free to ask.
Regards,
Vicky Liu
If you have any feedback on our support, please click
here.
Vicky Liu
TechNet Community Support -
number of data block
is there any limit for the number of datablocks in a form?
i have a form that has 8 blocks and all of them are none base,
some times when i use this form it suddenly closed and a special file (ifrun60_dump file)
is created.i donot know the reson and i cannot solve the problem
if you have any idea about this ,plz help me?
thanks in advance.
regards ,
shoja.Restriction on the number of objects is documented in the Help topic "Limits" - There is no practical limit to the number of blocks in a form. Certainly 8 is a timy number compared with mosdt forms.
Contact support and supply them with the dump file, that should help to identify the issue you have. -
JOptionPane event blocking problem
Hi,
JOptionPane is causing me a problem.
I have a simple frame that contains a text field and a button.
Pressing the button should write something to the standard output.
When the text field loses focus a JOptionPane in poped to the user.
The following scenario is problematic:
1. The text field owns the focus.
2. The user presses the button.
Expected result:
The JOptionPane appears due to the lost focus event on the text field.
After closing it some text is written to the standard output due to the action event on the button.
The actual result:
The JOptionPane does appears but after closing it nothing is written to the standard output. The button stays in a curious state (when the mouse hovers over the button the button looks pressed, and when the mouse doesn't hover over the button the button looks unpressed).
Probable reason for this behaviour:
The JOptionPane blocks all awt/swing events while it is opened. Some of the button code is perfomed due to the button press, but the ActionListener's actionPerformed method is not invoked.
I need the actionPerfomed method to be invoked.
Can anyone help me?
Here is the source code:
package test;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.text.*;
import java.awt.*;
import java.awt.event.*;
public class Test {
public Test() {
public static void main(String[] args) {
//Test test1 = new Test();
final JFrame f = new JFrame("Test");
JButton b = new JButton("Click Here");
JTextField tField = new JTextField("Text", 10);
f.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
b.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
System.out.println("Button pressed!");
tField.addFocusListener(new FocusAdapter() {
public void focusLost(FocusEvent e) {
if (e.isTemporary()) return;
JOptionPane.showMessageDialog(f,
"Focus lost",
"Title",
JOptionPane.INFORMATION_MESSAGE);
JPanel content = (JPanel)f.getContentPane();
content.setLayout(new BoxLayout(content, BoxLayout.X_AXIS));
content.add(tField);
content.add(Box.createHorizontalStrut(5));
content.add(b);
f.pack();
f.show();
Thanks,
ShaiHello Shai.
The JOptionPane seems to consume all events when its shown. (Check the stack after JOptionPane is shown.) I've solved a similar problem with the SwingUtilities.invokeLater() method. Maybe the following example will help:
Runnable doDlgError = new Runnable() {
public void run() {
JOptionPane.showMessageDialog(this, "Error", "Error",
JOptionPane.ERROR_MESSAGE);
SwingUtilities.invokeLater(doDlgError);
-Olaf -
GP - Sequential Block Problem with input structure
Hi all
My scenario is as follows:
I have three Actions A1 , A2, A3
every action has collable object of type WebDynproComponent : CO1 CO2 CO3
CO1 has only output parameters that i have mapped to input parameters of CO2 .
Output parameters of CO2 are apped to input parameters of CO3 .
I have created sequential block with Actions A1 , A2, A3.where target of A1 is A2 and that of A2 is A3
I have created IVIEW of this GP process .
when i open iview , ideally it should directly open the webdynpro comp of collable object CO1.
*But my problem is its before instantiation asking me to fill values for input parameters of CO2 which is in sequence to CO1.*
*Is there any setting that i have missed while creating block?*
Regards,
SheetalHi,
If you expose parameters at the process level, it will ask you to provide values while instaniation.
If it is not a mandatory parameter, you can proceed with out providing values.
The best way is don't expose paramters, if is not required at process level.
You have to expose a parameter at process level, only if you want to use that parameter in other processes.
by default, it will be exposed. You have to uncheck it, If you don't want to expose it.
thanks -
Thread Problem - (Thread Blocking Problems?)
Hi Friends
In my program while using thread i found a problem in this code .
In this whlie running the 'msg' was printen only after all 5 inputs are given .
why i was not getting output after one input.why the thread out was waiting for remaining threads input.
my code is
import java.io.*;
class MyThread extends Thread
BufferedReader bin;
MyThread()
super();
start();
public void run()
try
bin=new BufferedReader(new InputStreamReader(System.in));
String msg=bin.readLine();
System.out.println(msg);
catch(IOException e)
System.out.println(e);
public class Threads
public static void main(String args[])
for(int i=0;i<5;i++)
new MyThread();
}Hi Friends
In my program while using thread i found a problem
em in this code .
In this whlie running the 'msg' was printen only
after all 5 inputs are given .
why i was not getting output after one input.why
hy the thread out was waiting for remaining threads
input.Probably because of how the scheduler was rotating among the threads while waiting for input and queueing up output.
When you call readLine, that thread blocks until a line is available. So it probably goes to the next thread's readLine, and so on. All threads are probably blocked waiting for input before you enter a single character.
Something inside the VM has to coordinate the interaction with the console, and between that and your threads, the out stuff just doesn't get a chance to display right away.
In general, you can't predict the order of execution of separate threads. -
Hi Friends,
I am facing a issue. Can some one help to overcome this issue please
1. We have created PO with item value Rs 100 and GR is not done yet.
2. Then we created Invoice for value Rs 20. Invoice got blocked due to Quantity (because GR is not done)
3. Now,I am creating subsequent debit for the same PO for the remaining value of Rs 80. But this subsequent document is not getting blocked . According to me this subsequent document should also get blocked. Can some one help me why this problem. Is it a standard SAP functionality that subsequent document will not get blocked?
DevaPlease have a look for details
http://help.sap.com/saphelp_erp60_sp/helpdata/en/a8/b99725452b11d189430000e829fbbd/content.htm
Subsequent Debits/Credits are used in cases where the quantity is in the original invoice is to remain the same. For eg.
PO 10 - $10
Gr 10 - $10
LIV 10 - $11 (Logistics Invoice Verification)
The vendor invoice is more than that in the Purchase Order. In order to correct, the Vendor may send in another invoice for
the Increased amount or a credit memo for the increased amount.
If you approve of the price increase, post the subsequent invoice received as a Subsequent Debit/Credit Invoice.
If it is a credit memo that has been received, then post the credit memo as Subsequent Debit/Credit.
This would retain the quantity but reduce the amount.
Subsequent Debit/Credit is for the case when the credit is not for the full amount eg. if the Vendor decided to credit
only the $1 overcharged.
Credit memo is for the credit of the full amount and value.
Edited by: Sridhar Jayavarapu on Feb 12, 2009 2:34 PM -
OBIEE 11g Initialization Block problem with WLS User
Hello,
a brief description of my environment:
- I have one machine with all OBIEE 11.1.1.6.2 components (build 120604.0813 BP1 64bit) and Oracle Database 11gR2;
- In a separate machine I have the OID - Oracle Internet Directory where I have all business users with access to OBI Presentation Services;
- In Weblogic Console I created a user named "weblogic" and this one is the administrator of all BI environment, this user is member of BIAdministrator and Administrators group, also this user is used to perform the communication between Fusion Middleware and Weblogic;
- In weblogic Console I created a second user named "init_test" and he have the BIAuthor Role like the users that come from OID;
- I have no problem logging in with all users OID and weblogic.
Problem:
- I created a simple Initalization Block and a variable to contain the result of the follow sql: SELECT region FROM adm_test_region WHERE city='Lisboa'
- Initialization Blocks for Session variables are not working for "weblogic" user. For all other users everything is working as expected (users from OID and "init_test").
Question:
- There is any restriction in terms of Initialization Blocks for Session variables regarding the user that is linking Oracle Fusion Middleware with Oracle Weblogic?
Thank you in advance,950780 wrote:
Hello,
a brief description of my environment:
- I have one machine with all OBIEE 11.1.1.6.2 components (build 120604.0813 BP1 64bit) and Oracle Database 11gR2;
- In a separate machine I have the OID - Oracle Internet Directory where I have all business users with access to OBI Presentation Services;
- In Weblogic Console I created a user named "weblogic" and this one is the administrator of all BI environment, this user is member of BIAdministrator and Administrators group, also this user is used to perform the communication between Fusion Middleware and Weblogic;
- In weblogic Console I created a second user named "init_test" and he have the BIAuthor Role like the users that come from OID;
- I have no problem logging in with all users OID and weblogic.
Problem:
- I created a simple Initalization Block and a variable to contain the result of the follow sql: SELECT region FROM adm_test_region WHERE city='Lisboa'
- Initialization Blocks for Session variables are not working for "weblogic" user. For all other users everything is working as expected (users from OID and "init_test").
Question:
- There is any restriction in terms of Initialization Blocks for Session variables regarding the user that is linking Oracle Fusion Middleware with Oracle Weblogic?
Thank you in advance,When you say they are not working:
1) You are using the session variables in a data filter in the RPD and for weblogic, the filter does not get applied?
2) When trying to display the value of the sessoin variable in an analysis query, it errors out saying no value?
As a BI Administrator, no data filters gets applied to the reports from the RPD unless you explicitly add them in the front end to the reports.
You can also open the RPD in online mode, and go to sessions and kill everything, login using weblogic and monitor the sessions to see if a session is being created and the list of variables getting intilialized upon weblogic's entry into analytics.
Thanks,
-Amith. -
Creating temporary table in pl/sql block problem
hello
i have a problem in creating and using temporary table in pl/sql block
please verify below block
begin
execute immediate 'create global temporary table alitemp1 (co_t varchar2(10),color varchar2(10))';
insert into alitemp1 (co_t,color) values ('001','red');
execute immediate 'DROP TABLE alitemp1';
end;
when i execute that block i will receive this error
insert into alitemp1 (co_t,color) values ('001','red');
ERROR at line 3:
ORA-06550: line 3, column 14:
PL/SQL: ORA-00942: table or view does not exist
ORA-06550: line 3, column 2:
PL/SQL: SQL Statement ignored
i think it because that alitemp1 table don't create
but two below block run fine
begin
execute immediate 'create global temporary table alitemp1 (co_t varchar2(10),color varchar2(10))';
execute immediate 'DROP TABLE alitemp1';
end;
begin
execute immediate 'create global temporary table alitemp1 (co_t varchar2(10),color varchar2(10))';
end;
select table_name from user_tables where table_name='ALITEMP1';
TABLE_NAME
ALITEMP1
it means that problem is when the below line exists in block
insert into alitemp1 (co_t,color) values ('001','red');
if may please guide meIn addition to the comments by Justin and 3360, you cannot do what you want the way you are doing it.
All objects referred to in a PL/SQL block must exist at the time the block is compiled. In your case, since it is an anonomous block, that is run time. Since you are dynamically creating the temporary table you need to refer to it dynamically as well. More like:
BEGIN
EXECUTE IMMEDIATE 'create global temporary table alitemp1 (co_t varchar2(10),
color varchar2(10))';
EXECUTE IMMEDIATE 'insert into alitemp1 (co_t,color) values (:b1,:b2)' USING '001', 'red';
EXECUTE IMMEDIATE 'DROP TABLE alitemp1';
END;However, don't do that it is a really bad idea. Just create the temporary table, if you really need it, once and use it in your processing.
In most cases, things that SQL Server needs temporary tables for can be done easily in Oracle with a single SQL statement,
John
Maybe you are looking for
-
How do I combine separate user libraries into one public library
In Windows Vista, most of the iTunes files (musing & movies) are in the public folder. But, my kids have files in their separate user folders. My question is how do I copy the files from the separate user folders to the public folder so that any of t
-
Data Guard configuration-Archivelogs not being transferred
Hi Gurus, I have configured data guard in Linux with 10g oracle, although I am new to this concept. My tnsping is working well both sides. I have issued alter database recover managed standby using current logfile disconnect command in standby site.
-
Hi i am doing a project for my univ. i am writing an applet that reads info from a database and change the names in checkboxes. there isnt much security threat since only 2 of the computers are going to use this program. School doesnt want the applet
-
I have a broken Itunes configuration... It affects several things. I have an Macbookpro, running snow leopard. It had Itunes 11.4 running on it. My apple ID for app purchases etc is (lets say .... )[email protected] (This is in the australian store
-
i have given a break-point in the include .Its the first statement. I have activated the code . when i do syntax check , it gives the error saying statement not accessible.