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.
Similar Messages
-
Mac OS X version 10.6.8 but cannot access 'mission control'?
I have Mac OS X version 10.6.8 but cannot access 'mission control'. I have read about it being really good but don't have it on my desktop? I'm not sure if my laptop is too old and needs to be updated or what, but have no idea why I can't find out ANYWHERE how to get it onto my laptop.
SarahMIssion control is a feature introduced in OS X 10.7. Prior to that, it was called Expose (with an accent mark over the 2nd e). See this Apple note on how to use Expose.
-
I am sorry if my inquiry here seem dumb but I am a new iMovie user and cannot figure this out. I inserted a png image into my video clip in the project as PIP, I can see it and move it and can also see it playing with the main clip if I move the play head manually, I can also see the PIP part only playing along with the undelying main clip if I use the Play button in the preview window when the PIP section is selected, however, for the life of me I cannot get it to play with the main clip all together for previewing the entire video via the video play button. What happens is that the video plays normally and when the PIP section comes in, the video clip stop all motion during the duration of the PIP section and the PIP image itself is simply NOT showing. Am I missing something really stupid here? It seems as it the Picture On Picture is a separate clip that plays with the underlying main video clip if selected and played by itself but it is not part of the video clip and will not play with it. What am I missing here, can anyone please help?
ShonyThe easiest way to get up and running is to convert your MP3s to MP4s (obviously there won't be a video track). The following link links to a file that was an MP3 that I converted to an MP4 using QT Player Pro. When you go to export the files, make sure you click on "Options" and then check the box for "Enable Streaming" in the Streaming tab. It should stream flawlessly using QT Player. rtsp://rhsstreamit.rih.org/testmp4/Scorpion.mp4
Make sure you place the media to be streamed in the proper folder. You should only get a "404" message if the physical file doesn't exist.
Good luck! -
operating system os x 10.6.8 safari 5.1.10. am told on checking that 16.0.305 is installed but not in application. have downloaded install app but cannot carry out the installation. can anyone help? am unable to use any application requiring flash player.
thank you!Hi Anne,
Your version of Safari is still supported. Please see Adobe Flash Player | Tech specs for supported OS and browsers.
If the Flash Player plugin is in the Plug-ins (disabled) folder it's because it's an older version that Apple has disabled in Safari. This has nothing to do with whether or not Flash Player supports the browser.
I'm not sure what you mean by "when i click on flash player itself i am told there is no application to open it." Flash Player.plugin only works in the browser to view Flash content in the browser. The plugin does not open files outside of the browser. If you have SWF files you'd like to view outside of the browser, then you'll need the Flash Player projector. However, based on your previous comments this doesn't appear to be what you are trying to do.
Google Chrome does embed Flash Player in it, while Firefox does not. Mozilla has also recently started blocking older versions of Flash Player in Firefox similar to what Apple is doing in Safari.
Following the 'clean install' instructions should result in you having the latest version of Flash Player installed that will not be blocked by the browser.
Maria -
Downloaded Mt Lion Yesterday and my Tool bar has disappeared. I can still access the individual tools but cannot see my header. I used 'help' and did what it suggested. slected 'hide tool bar' and then 'show toolbar'. I also restarted etc.
Good point BDAqua, the Escape key helps get me back to reality in Lion.
While I've only dabbled around a little in Lion since it's release (I upgraded a 10.6 Clone to Lion on one of my FireWire Drives) now I'm currently downloading Mountain Lion (to upgrade a Clone of that Lion Clone) so that now I can continue to move forward in madness.
P.S. Trust me, I'm not laughing. -
Where can I find the pathway to upgrade my 6.1 iMac to the Lion 7.1 and then to the Montian Lion 10.1. I think I have to update to Lion before I can update to montian Lion but cannot find the upgrade to take me from 6.1 to 7.1
What are we talking about here? You've posted in a Windows forum, but seems you are referring to an iMac. But you are not referring to OS X version numbers. Maybe you should make clear what you want.
-
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 -
Re-installed itunes but cannot get iphone 4 to upgrade?
I've been having problems getting my iphone to synv with my computer. Reinstalled itunes, but cannot get software installed on iphone 4
This device is not eligible for the requested build: Also sometimes displayed as an "error 3194." If you receive this alert, update to the latest version of iTunes. Third-party security software or router security settings can also cause this issue. To resolve this, follow Troubleshooting security software issues.
Downgrading to a previous version of iOS is not supported. If you have installed software to perform unauthorized modifications to your iOS device, that software may have redirected connections to the update server (gs.apple.com) within the Hosts file. First you must uninstall the unauthorized modification software from the computer, then edit out the "gs.apple.com" redirect from the hosts file, and then restart the computer for the host file changes to take affect. For steps to edit the Hosts file and allow iTunes to communicate with the update server, see iTunes: Troubleshooting iTunes Store on your computer, iPhone, iPad, or iPod—follow steps under the heading Blocked by configuration (Mac OS X / Windows) > Rebuild network information > The hosts file may also be blocking the iTunes Store. If you do not uninstall the unauthorized modification software prior to editing the hosts file, that software may automatically modify the hosts file again on restart. Also, using an older or modified .ipsw file can cause this issue. Try moving the current .ipsw file, or try restoring in a new user to ensure that iTunes downloads a new .ipsw.
Error 3194: Resolve error 3194 by updating to the latest version of iTunes. "This device is not eligible for the requested build" in the updater logs confirms this is the root of the issue. For more Error 3194 steps see: This device is not eligible for the requested build above. -
I am able to receive email from Iphone (am on Time werner cable, Roadrunner) but cannot reply or sent email, have checked ip address and turned on system on iphone, anyone have further suggestions?
Time Warner does not have an authenticated SMTP server for RoadRunner accounts, so unless you are connected to Time Warner for internet access via an available wi-fi network, you will have problems sending email with the account or you won't be able to send at all.
Most, if not all internet service providers block the use of SMTP servers that are outside of their network or not provided by the ISP being used for your internet connection at the time unless the SMTP server is authenticated. This restriction is part of an overall effort to prevent spam emanating from an ISP's domain which probably doesn't help much in preventing spam since the majority of spam emanates from PCs running that swiss cheese for security OS that is Windows that have being taken over remotely. -
how to install elements 9 on a mac book pro? i click install icon but cannot start because it sais that is from unidentified developer
any suggestions?Mac Unidentified Developer Issue
Here's how to open apps that apple should not be blocking:
http://www.imore.com/how-open-apps-unidentified-developer-os-x-mountain-lion -
Using iphone to print to hp 8500a plus, but cannot get the picture centered on the photo paper
using iphone to print to hp 8500a plus, but cannot get the picture centered on the photo paper installed hp photo app on iphone to utilize printer
Are you using Page Setup within Firefox?
https://support.mozilla.org/en-US/kb/how-print-websites#w_changing-the-page-setup
See - Margins and Header/ Footer -
HT1414 phone is in recovery mode but cannot restore with error code 21,26
After my latest update on my iPhone 4 my phone started just shutting down and restarting by itself. I have tried to restore the phone with the latest version of iTunes but now get the error message that iTunes has detected a phone in recovery mode. Well that's fine, I selected recovery and when it appears that the recovery mode is going to go through the recovery mode returns an error code.
The first code I received is the error 1656, then a 26, then the final attempt I got an error code 21.
This phone has never been dropped, mishandled, or taken any physical damage. It was working great before I attempted to update.
Please if anyone else has experienced this let me know how you resolved these errors.
I have attempted every trouble-shooting step indicated on the Apple support site.
HELP!If you have seen and attempted as per the guidelines and not been successful, see the Red text.
Error 20, 21, 23, 26, 28, 29, 34, 36, 37, 40
These errors typically occur when security software interferes with the restore and update process. Follow Troubleshooting security software issues to resolve this issue. In rare cases, these errors may be a hardware issue. If the errors persist on another computer, the device may need service.
Also, check your hosts file to verify that it's not blocking iTunes from communicating with the update server. See iTunes: Advanced iTunes Store troubleshooting—follow steps under the heading Blocked by configuration (Mac OS X / Windows) > Rebuild network information > Mac OS X > The hosts file may also be blocking the iTunes Store. If you have software used to perform unauthorized modifications to the iOS device, uninstall this software prior to editing the hosts file to prevent that software from automatically modifying the hosts file again on restart. -
can anyone help please.. since iCloud came on the scene My all in one printer keeps saying it is not USB connected. what do I do
I have been looking for over a week now and even chatted with the USA but cannot get it to work.
I am really strugglingThanks
someone named Eloisa she gave me a phone no. or visit hp.com/uk
cannot make head nor tale of it all. I am old. and find everything hard to undertstand -
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 -
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.
Maybe you are looking for
-
My HP Touchsmart was sent back in to HP for repairs under warranty. I was advised to make a copy of my harddrive because they may erase my hard drive, which they did, if the problem had to do with a faulty motherboard, which it was. They replaced my
-
I should preface this with I'm not a Linux noob, but I am no expert either (I get by). Also I hope this is the right forum to post in. So after I updated about a week ago I start seeing errors at boot. Never could quite see exactly what they were s
-
Windows 7 home premium 64bit installation problem
HI, all, I installed oracle 11g r2 enterprise version database on windows 7 home premium laptop, everything looks fine after installation, but whenever I restart the computer or relogin to the computer, the screen is only back. Could anyone tell me w
-
Calling a method in another JVM instance
I know you can use RMI to call the methods from classes across the network, but if the class is on the same machine, just in another JVM instance, is there a way to bypass the network layer and have the JVMs communicate directly with each other?
-
Lion taking an age to download from the app store
Hi, I'm currently downloading Lion from the app store but its taking several hours to complete, from the progress bar it looks like it is approx 75% complete but may be stalled, any one else experienced this or does anyone have any suggestions to re