Problem when using IF and ENDIF in SAPScript
Hi everyone,
I'm still new at using sapscript. I want to use IF....ENDIF but i confused how to use it in my sapscript. Here is the logic that i get from my functional designer :
IF t8jvb03-ceind = 'C' THEN
<E>JIBCL_N /* Element JIBCL_N */
&t8jvb11-jibcl& &t8jv11-cltext&
IF t8jvb11-jibsa <> '99999' THEN
<E>JIBSA_N
&t8jvb11-jibsa& &t8jvb11-satext&
ENDIF
<E>COBJT_E
&t8jvb11-cotype& &t8jvb11-cobject& &t8jvb11-fcmamt& &t8jvb11-fydamt& &t8jvb11-fidamt&
<E>JIBCL_E
Total: &t8jvb11-jibcl& &t8jvb11-cltext& &t8jvb11-fcmamt& &t8jvb11-fydamt& &t8jvb11-fidamt&
ELSEIF t8jvb03-ceind = 'O' THEN
IF t8jvb11-jibsa <> '99999' THEN
<E>JIBCL_N
&t8jvb11-jibcl& &t8jv11-cltext&
<E>JIBSA_N
&t8jvb11-jibsa& &t8jvb11-satext& &t8jvb11-fcmamt& &t8jvb11-fydamt& &t8jvb11-fidamt&
ENDIF
<E>JIBCL_E
Total : : &t8jvb11-jibcl& &t8jvb11-cltext& &t8jvb11-fcmamt& &t8jvb11-fydamt& &t8jvb11-fidamt&
ELSEIF t8jvb03-ceind = 'W' THEN
When i activate this logic, it's said that there is double element written(example JIBCL_N in IF t8jvb03-ceind = 'C' and in ELSEIF t8jvb03-ceind = 'O' THEN). Is this ok ? or is there any better way to do this ? For your information i copy the form from standard form ''JV_IN_EXP_JIB". Thank you.
Hi
have to use the commands before the lines as below
/: IF t8jvb03-ceind = 'C' THEN
/E JIBCL_N /* Element JIBCL_N */
/ &t8jvb11-jibcl& &t8jv11-cltext&
/: IF t8jvb11-jibsa <> '99999' THEN
/E JIBSA_N
/ &t8jvb11-jibsa& &t8jvb11-satext&
/: ENDIF
/E COBJT_E
/ &t8jvb11-cotype& &t8jvb11-cobject& &t8jvb11-fcmamt& &t8jvb11-fydamt&
= &t8jvb11-fidamt&
/E JIBCL_E
/ Total: &t8jvb11-jibcl& &t8jvb11-cltext& &t8jvb11-fcmamt& &t8jvb11-fydamt&
= &t8jvb11-fidamt&
/: ELSEIF t8jvb03-ceind = 'O' THEN
/: IF t8jvb11-jibsa <> '99999' THEN
/E JIBCL_N
/ &t8jvb11-jibcl& &t8jv11-cltext&
/E JIBSA_N
/ &t8jvb11-jibsa& &t8jvb11-satext& &t8jvb11-fcmamt& &t8jvb11-fydamt&
= &t8jvb11-fidamt&
/: ENDIF
/E JIBCL_E
/ Total : : &t8jvb11-jibcl& &t8jvb11-cltext& &t8jvb11-fcmamt& &t8jvb11-fydamt& = &t8jvb11-fidamt&
/: ELSEIF t8jvb03-ceind = 'W' THEN
Regards
Anji
Similar Messages
-
CL_GUI_ALV_GRID Problems when using enter and f4 in one ALV
Hi guys,
i have the following problem:
I Use a ALV, which has a column MATNR. The ALV provides the standard search help for this field automatically. so far so good. BUT i also need to read additional data, such as GLD, Material shortext etc, when the users presses the Enter Key.
Here is my coding:
CLASS lcl_events DEFINITION
CLASS lcl_events_0300 DEFINITION.
PUBLIC SECTION.
METHODS:
handle_data_changed
FOR EVENT data_changed OF cl_gui_alv_grid
IMPORTING er_data_changed sender.
ENDCLASS. "lcl_events DEFINITION
The problem that occurs: if i select a material via f4, i just can add one material to the alv. if i place the cursor into the second line, press f4 again, the alv overwrites the MATNR in the first line
i think the problem has to do with the fact, that the alv runs throug my enter event, when pressing f4.
thats how i registered my event:
g_o_alv_grid_bart_0300->register_edit_event(
EXPORTING
" i_event_id = g_o_alv_grid->MC_EVT_MODIFIED ).
i_event_id = g_o_alv_grid->mc_evt_enter ).
...und EventHandler zuweisen
CREATE OBJECT g_o_alv_events_0300.
SET HANDLER g_o_alv_events_0300->handle_data_changed FOR g_o_alv_grid_bart_0300.
kind regards, mark
Edited by: Mark Wagener on Aug 19, 2010 11:39 AM
Edited by: Mark Wagener on Aug 19, 2010 11:40 AMSorry for forgetting the impl. part of the class!
CLASS lcl_events_0300 IMPLEMENTATION
CLASS lcl_events_0300 IMPLEMENTATION.
METHOD handle_data_changed.
HandleDataChanged ***
DATA: ls_good TYPE lvc_s_modi.
FIELD-SYMBOLS: .
alle Inhalte der geänderten Zellen in die interne Tabelle schreiben
LOOP AT er_data_changed->mt_good_cells INTO ls_good.
Dazu auf die richtige Zeile in der ITAB positionieren:
READ TABLE INDEX ls_good-row_id.
IF sy-subrc = 0.
Und das geänderte Feld dem Feldsymbol zuweisen
ASSIGN COMPONENT ls_good-fieldname OF STRUCTURE .
IF sy-subrc = 0.
Feldwert zuweisen
-matnr
AND bwkey = werks.
ENDLOOP.
Und neu ausgeben
g_o_alv_grid_bart_0300->refresh_table_display( ).
ENDMETHOD. "handle_data_changed -
Problems when using outlook and outlook express, cannot send more than app 100 KB.
Since app 6 weeks ago we have problems when sending pictures etc, we cannot send more than app 100KB. If we send more there is error code
Socket Error 10053, Error number 0x800CCC0F. Your server has unexpectedly terminated the connection.
I have made no changes to either computer. Restoring the laptop to Nov 2011 made no difference.We use Outlook Exlorer and Outlook.
When I take my laptop to my neighbors house, who has Time Warner, I can send 10MB files without any problems, using the EXACT same settings.
Spending over 2 hours with a very informed Verizon technician on the phone did nothing.
I first blamed our server, turns out the culprit is Verizon.
Any ideas?
EugeneGood Morning,
Are you able to send attachments on webmail.verizon.net?
Shamika_Vz
Verizon Support
Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or Plan. -
Facing problem when using SYNC and ASYNC bridge in ID
Hi all,
In BPM i am using SYNC/ASYNC bridge for that Outbound Interface and BPM Sync Interface has the same structure is it mapping necessary for that intercaces.
In interface determination it is showing error duplicate interfaces in ID test configuration , when i loading the Interface mapping for the same.
In the Receiver determination i am sending the message based on the conditions to the particular receives through different receivers Business Systems from the Sync interface showing error.
Give me solution how should i do the Interface determination and receiver determination.
Please help me any one .
Thanks in advance,
Manohar.
Edited by: Manohar S on Feb 28, 2008 9:50 AMSorry for delay.
Tough question.
Oracle® Database High Availability Best Practices 11g Release 2 (11.2) E10803-01 August 2011
Under "5.1.8 Set LOG_BUFFER Initialization Parameter to a Minimum 8 MB"
States :
"If you are using Oracle Data Guard with asynchronous redo transport, you may need to increase the value of the
LOG_BUFFER parameter to avoid disk I/Os to online redo logs."
Nothing about "Synchronous".
I agree with you on Oracle Support Note 951152.1, its vague.
Additional links on the subject
This also seems to imply :
http://joordsblog.vandenoord.eu/2010/08/data-guard-optimizing-async-redo.html
So does this ( With ASYNC, increase log buffer size if necessary )
http://www.oracle.com/technetwork/database/features/availability/316925-175283.pdf
This one has a very nice Synchronous and Asynchronous compare.
http://www.datadisk.co.uk/html_docs/oracle_dg/architecture.htm
New Zealand, Someday I may have to travel there.
Best Regards
mseberg -
Anyone having this problem when using iPhoto and iMovie?
I've posted this question in the iMovie forum without much luck. I hope someone here may have some ideas.
I make iMovies that are largely composed of still photos. Recently I'm having trouble with the preview screen in iMovie. When I click on a photo in the media browser it will not show up in the Preview pane but the little scrubber runs across the bottom anyway. If I click "apply" the photo will import into the iMovie timeline and I can then see it in the preview pane...sometimes. Sometimes not. It is the erratic nature of this problem that is driving me buggy (pardon the pun).
Sometimes the picture will do exactly what it supposed to -- pop up in Preview and I can make adjustments. Other times, no. Sometimes it is pictures right next to one another -- one works the other doesn't.
Is anyone else having a problem like this. My thought now is that it may be related to the size of the library since the problem seems to be on large libraries whereas projects that I do with 100 pictures or so (in a seperate project library) don't give me any grief but my large travel libraries do.
Thanks.
iMac G5 Mac OS X (10.4.8) iLife '06Another possibility might be the color profile bug that was introduced with iPhoto 6.0.5 and, maybe, Quicktime 7.1.3. It's a long shot but if Terence's suggestion doesn't help you can try the following:
1 - download the "Embed sRGB Profile" Automator application from Toad's Cellar.
2 - unzip it and drop the files that are giving you problems onto it.
3 - import those newly embedded files into iPhoto and see if they work.
As I said it's a long shot but worth a try if other attempts fail.
Do you Twango?
TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
I've written an Automator workflow application, iPhoto dB file backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file. -
Utf-16 problems when using writeUTFBytes and readUTFBytes
I'm really confused about the 'unicode' chatset as it does not seem to do what I would think it would do.
Every utf16 character is represented by 2 bytes. So a "C" would have 2 bytes [67,0], a chinese character would have 2 bytes also.
var testStr:String = '漢語';
var testBA:ByteArray = new ByteArray();
testBA.writeMultiByte(testStr,'unicode');
testBA.position = 0;
for(var a=0;a<testBA.length;a++)
trace(testBA[a]);
var str:String = testBA.readMultiByte(testBA.length,'unicode');
trace(str);
OUTPUT:
63
63
The testBA should have 4 bytes shouldnt it?
Can anyone show an example of how to convert my test String to and then back from UTF-16?Surely there is a simply answer to this? Why have the string conversions if they dont work?
-
Hi all, I bought one iphone and 3 ipads, i set up all on one apple ID. Now i have a problem when using messages: when sending message from one device it appears again on screen from the other 3 devices. I need help on how to set up messages on each device separately and to start using messages app on each device independently. Thanks
search google for "iphone remove picture from contact"
-
I have problems when using the camera on my iPhone 4S (the same for my daughter with a iPhone4)
A veil around the blurred photo, a development impossible and completely unable to read the bar code or QR code. What to do?Sounds kind of stupid, but check to make sure that your iphone case cover is not blocking the edge of the camera lens. I had a silicone case on my 3S and when it got older, it started tot slip and the edges of my pictures were blurred.
-
I upgraded to Lion and then all video clips on for instance Youtube freeze every tenth second to buffer more data. I have a MacBook Pro and never had any problems when using Snow Leopard. Has Lion problems with this?
Ulf, SwedenUse the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps. -
Problem when filling Node and Item tables for the metho add_nodes_and_items
Hi Experts,
I am facing problem when filling Node and Item internal tables for the method add_nodes_and_items.
as i have written the below logic:
LOOP AT gt_partner INTO wa_partner.
CLEAR lvs_tc_root.
l_key = l_key + 1.
lvs_tc_root-node_key = l_key. "wa_partner-sndprn.
* lvs_tc_root-relatkey = lvf_tc_node_key.
* lvs_tc_root-relatship = cl_gui_column_tree=>relat_last_child.
lvs_tc_root-last_hitem = wa_partner-sndprn.
lvs_tc_root-hidden = ' '.
lvs_tc_root-disabled = ' '.
lvs_tc_root-isfolder = 'X'.
lvs_tc_root-n_image = icon_folder.
lvs_tc_root-exp_image = icon_folder.
lvs_tc_root-expander = 'X'.
APPEND lvs_tc_root TO gvt_tc_node_table.
CLEAR lvs_tc_root.
lvs_tc_root-node_key = 'A'. "Successfull
lvs_tc_root-relatkey = l_key.
lvs_tc_root-relatship = cl_gui_column_tree=>relat_last_child.
lvs_tc_root-last_hitem = wa_partner-sndprn.
lvs_tc_root-hidden = ' '.
lvs_tc_root-disabled = ' '.
lvs_tc_root-n_image = icon_green_light.
APPEND lvs_tc_root TO gvt_tc_node_table.
CLEAR lvs_tc_root.
lvs_tc_root-node_key = 'B'. "Errors
lvs_tc_root-relatkey = l_key .
lvs_tc_root-last_hitem = wa_partner-sndprn.
lvs_tc_root-hidden = ' '.
lvs_tc_root-disabled = ' '.
lvs_tc_root-n_image = icon_red_light.
APPEND lvs_tc_root TO gvt_tc_node_table.
CLEAR lvs_tc_root.
lvs_tc_root-node_key = 'C'. "Deleted
lvs_tc_root-relatkey = l_key .
lvs_tc_root-last_hitem = wa_partner-sndprn.
lvs_tc_root-hidden = ' '.
lvs_tc_root-disabled = ' '.
lvs_tc_root-n_image = icon_yellow_light.
APPEND lvs_tc_root TO gvt_tc_node_table.
* LOOP AT gt_partner_item INTO wa_partner_item WHERE sndprn = wa_partner-sndprn
LOOP AT gt_partner INTO wa_partner_item WHERE sndprn = wa_partner-sndprn.
CLEAR lvs_item.
lvs_item-node_key = l_key.
lvs_item-item_name = 'Column1'.
lvs_item-text = wa_partner-sndprn.
lvs_item-class = cl_gui_column_tree=>item_class_text.
APPEND lvs_item TO gvt_tc_item_table. CLEAR lvs_item.
lvs_item-node_key = 'A'.
lvs_item-item_name = 'Column1'.
lvs_item-text = 'Successful'.
lvs_item-class = cl_gui_column_tree=>item_class_text.
APPEND lvs_item TO gvt_tc_item_table. CLEAR lvs_item.
lvs_item-node_key = 'B'.
lvs_item-item_name = 'Column1'.
lvs_item-text = 'Errors'.
lvs_item-class = cl_gui_column_tree=>item_class_text.
APPEND lvs_item TO gvt_tc_item_table. CLEAR lvs_item.
lvs_item-node_key = 'C'.
lvs_item-item_name = 'Column1'.
lvs_item-text = 'Deleted'.
lvs_item-class = cl_gui_column_tree=>item_class_text.
APPEND lvs_item TO gvt_tc_item_table. CLEAR lvs_item.
ENDLOOP.
ENDLOOP.
CALL METHOD go_tree->add_nodes_and_items
EXPORTING
node_table = gvt_tc_node_table
item_table = gvt_tc_item_table
item_table_structure_name = 'MTREEITM'
EXCEPTIONS
failed = 1
cntl_system_error = 3
error_in_tables = 4
dp_error = 5
table_structure_name_not_found = 6.
If the internal table has more than 1 record getting dump...Runtime Errors MESSAGE_TYPE_X
Plase let me know how to overcome the problem..
Thanks,
Rajasekhar
Edited by: RajasekharReddy Nevali on Nov 29, 2010 3:43 PM
Edited by: Neil Gardiner on Nov 30, 2010 12:41 PMHi ,
U can undestand the code and one more thing dynamically display record for automcally here i am using root nodes please look at that one Same requiremtn i done previously.
cLEAR item.
item-node_key = c_nodekey-root. "partner1
item-item_name = c_column-column1.
item-class = cl_gui_column_tree=>item_class_text.
item-alignment = cl_gui_column_tree=>align_at_top.
item-font = cl_gui_column_tree=>item_font_prop.
item-text = 'APPLICATION'.
item-length = 30.
APPEND item TO item_table.
DATA:lv_name TYPE tv_itmname VALUE '1',
lv_nkey TYPE i,
lv_nkey2 TYPE i,
lv_nkey_c TYPE string,
lv_nkey_c2 TYPE string,
lv_nkey_c3 TYPE string,
lv_nkey_c4 TYPE string,
LV_NKEY_C5 TYPE STRING,
lv_itmkey TYPE i,
lv_itmkey_c TYPE string,
LV_INDEX TYPE I.
************************************************LOOP FOR APPLICATION*********
LOOP AT i_otypes INTO wa_otypes.
read table it_appl into wa_appl with key appl = wa_otypes-applic." BINARY SEARCH.
if sy-subrc = 0.
lv_apdes = wa_appl-text1.
endif.
CLEAR:item,lv_nkey_c.
lv_nkey_c = sy-tabix.
LV_INDEX = SY-TABIX.
CONDENSE lv_nkey_c.
CONCATENATE 'N' lv_nkey_c INTO lv_nkey_c.
node-node_key = lv_nkey_c.
node-relatkey = c_nodekey-root.
node-relatship = cl_gui_list_tree=>relat_last_child.
node-isfolder = 'X'.
APPEND node TO node_table.
CLEAR item.
item-node_key = lv_nkey_c.
item-item_name = c_column-column1.
item-class = cl_gui_column_tree=>item_class_text.
item-font = cl_gui_column_tree=>item_font_prop.
item-text = wa_otypes-APPLIC.
item-length = 30.
APPEND item TO item_table.
CLEAR item.
item-node_key = lv_nkey_c.
item-item_name = c_column-column2.
item-class = cl_gui_column_tree=>item_class_text.
item-font = cl_gui_column_tree=>item_font_prop.
item-text = lv_apdes.
item-length = 30.
APPEND item TO item_table.
v_acount = v_acount + 1.
v_acount1 = v_acount1 + 1.
clear lv_apdes.
*****************************************LOOP FOR ARCHIV OBJECTS***************************
loop at it_obj into wa_obj where applic = wa_otypes-applic.
CLEAR:item,lv_nkey_c2.
lv_nkey_c2 = SY-TABIX.
CONDENSE lv_nkey_c2.
CONCATENATE 'SN' lv_nkey_c2 INTO lv_nkey_c2.
node-node_key = lv_nkey_c2.
node-relatkey = lv_nkey_c.
node-relatship = cl_gui_list_tree=>relat_last_child.
node-isfolder = 'X'.
APPEND node TO node_table.
CLEAR item.
item-node_key = lv_nkey_c2.
item-item_name = c_column-column1.
item-class = cl_gui_column_tree=>item_class_text.
item-font = cl_gui_column_tree=>item_font_prop.
item-text = wa_obj-object.
item-length = 30.
APPEND item TO item_table.
CLEAR item.
item-node_key = lv_nkey_c2.
item-item_name = c_column-column2.
item-class = cl_gui_column_tree=>item_class_text.
item-font = cl_gui_column_tree=>item_font_prop.
item-text = wa_obj-objtext.
item-length = 30.
APPEND item TO item_table.
****count all object for final displaying*******
v_ocount1 = v_ocount1 + 1.
LV_STR = LV_STR + 1.
ENDLOOP.
*********************LOOP FOR ARCH OBJECT ALL PROGRAMS*******************************************
LOOP AT IT_PRG INTO WA_PRG WHERE OBJECT = WA_OBJ-OBJECT.
****************1PRG**********************
IF wa_PRG-REORGA_PRG IS NOT INITIAL.
read table it_trdirt into wa_trdirt with key name = wa_prg-reorga_prg BINARY SEARCH.
if sy-subrc = 0.
lv_text = wa_trdirt-text.
endif.
CLEAR:item,lv_nkey_c3.
data : v_no type sy-tabix.
v_no = v_no + 1.
lv_nkey_c3 = v_no.
CONDENSE lv_nkey_c3.
CONCATENATE 'SSN' lv_nkey_c3 INTO lv_nkey_c3.
node-node_key = lv_nkey_c3.
node-relatkey = lv_nkey_c2.
node-relatship = cl_gui_list_tree=>relat_last_child.
node-isfolder = 'X'.
NODE-N_image =' '.
APPEND node TO node_table.
CLEAR NODE.
CLEAR item.
item-node_key = lv_nkey_c3.
item-item_name = c_column-column1.
item-class = cl_gui_column_tree=>item_class_text.
item-font = cl_gui_column_tree=>item_font_prop.
item-text = 'WRIT'."wa_PRG-REORGA_PRG.
item-length = 30.
APPEND item TO item_table.
CLEAR item.
item-node_key = lv_nkey_c3.
item-item_name = c_column-column2.
item-class = cl_gui_column_tree=>item_class_text.
item-font = cl_gui_column_tree=>item_font_prop.
item-text = 'WRITE PROGRAM'."lv_text."'WRITE PROGRAM'.
item-length = 30.
APPEND item TO item_table.
clear lv_text.
************************SSSN NODE***********************
CLEAR:item,lv_nkey_c4.
data : v_no1 type sy-tabix.
v_no1 = v_no1 + 1.
lv_nkey_c4 = v_no1.
CONDENSE lv_nkey_c4.
CONCATENATE 'SSSN' lv_nkey_c4 INTO lv_nkey_c4.
node-node_key = lv_nkey_c4.
node-relatkey = lv_nkey_c3.
node-relatship = cl_gui_list_tree=>relat_last_child.
node-isfolder = 'X'.
NODE-N_image =' '.
APPEND node TO node_table.
CLEAR NODE.
CLEAR item.
item-node_key = lv_nkey_c4.
item-item_name = c_column-column1.
item-class = cl_gui_column_tree=>item_class_text.
item-font = cl_gui_column_tree=>item_font_prop.
item-text = wa_PRG-REORGA_PRG.
item-length = 30.
APPEND item TO item_table.
CLEAR item.
item-node_key = lv_nkey_c4.
item-item_name = c_column-column2.
item-class = cl_gui_column_tree=>item_class_text.
item-font = cl_gui_column_tree=>item_font_prop.
item-text = lv_text."'WRITE PROGRAM'.
item-length = 30.
APPEND item TO item_table.
clear lv_text.
*******COUNT TYPE WRITE PROGRAMS****************
V_WCOUNT = V_WCOUNT + 1.
CLEAR item.
V_WCOUNT = V_WCOUNT.
item-node_key = lv_nkey_c3.
item-item_name = c_column-column3.
item-class = cl_gui_column_tree=>item_class_text.
item-font = cl_gui_column_tree=>item_font_prop.
item-text = V_WCOUNT."lv_text."'WRITE PROGRAM'.
item-length = 30.
APPEND item TO item_table.
CLEAR V_WCOUNT.
ENDIF.
*endif.
*****************2PRG*****************
IF wa_PRG-RETRIE_PRG IS NOT INITIAL.
read table it_trdirt into wa_trdirt with key name = wa_prg-retrie_prg.
if sy-subrc = 0.
lv_text = wa_trdirt-text.
endif.
CLEAR:item, NODE, lv_nkey_c3.
v_no = v_no + 1.
lv_nkey_c3 = v_no.
CONDENSE lv_nkey_c3.
CONCATENATE 'SSN' lv_nkey_c3 INTO lv_nkey_c3.
node-node_key = lv_nkey_c3.
node-relatkey = lv_nkey_c2.
node-relatship = cl_gui_list_tree=>relat_last_child.
node-isfolder = 'X'.
APPEND node TO node_table.
CLEAR item.
item-node_key = lv_nkey_c3.
item-item_name = c_column-column1.
item-class = cl_gui_column_tree=>item_class_text.
item-font = cl_gui_column_tree=>item_font_prop.
item-text = 'successful'."wa_PRG-RETRIE_PRG.
item-length = 30.
APPEND item TO item_table.
CLEAR item.
item-node_key = lv_nkey_c3.
item-item_name = c_column-column2.
item-class = cl_gui_column_tree=>item_class_text.
item-font = cl_gui_column_tree=>item_font_prop.
item-text = 'sucessful PROGRAM'.
item-length = 60.
APPEND item TO item_table.
*********************************SSSN NODE*******************************
CLEAR:item,lv_nkey_c4,node.
data : v_no1 type sy-tabix.
v_no1 = v_no1 + 1.
lv_nkey_c4 = v_no1.
CONDENSE lv_nkey_c4.
CONCATENATE 'SSSN' lv_nkey_c4 INTO lv_nkey_c4.
node-node_key = lv_nkey_c4.
node-relatkey = lv_nkey_c3.
node-relatship = cl_gui_list_tree=>relat_last_child.
node-isfolder = 'X'.
NODE-N_image =' '.
APPEND node TO node_table.
CLEAR NODE.
CLEAR item.
item-node_key = lv_nkey_c4.
item-item_name = c_column-column1.
item-class = cl_gui_column_tree=>item_class_text.
item-font = cl_gui_column_tree=>item_font_prop.
item-text = wa_PRG-RETRIE_PRG.
item-length = 30.
APPEND item TO item_table.
CLEAR item.
item-node_key = lv_nkey_c4.
item-item_name = c_column-column2.
item-class = cl_gui_column_tree=>item_class_text.
item-font = cl_gui_column_tree=>item_font_prop.
item-text = lv_text."'WRITE PROGRAM'.
item-length = 30.
APPEND item TO item_table.
clear lv_text.
**********COUNT THE RELOADPR*******************
V_WCOUNT = V_WCOUNT + 1.
CLEAR item.
V_WCOUNT = V_WCOUNT.
item-node_key = lv_nkey_c3.
item-item_name = c_column-column3.
item-class = cl_gui_column_tree=>item_class_text.
item-font = cl_gui_column_tree=>item_font_prop.
item-text = V_WCOUNT."lv_text."'WRITE PROGRAM'.
item-length = 30.
APPEND item TO item_table.
CLEAR V_WCOUNT.
ENDIF.
ENDIF.
****************3PRG**********************
IF wa_PRG-DELETE_PRG IS NOT INITIAL.
read table it_trdirt into wa_trdirt with key name = wa_prg-delete_prg.
if sy-subrc = 0.
lv_text = wa_trdirt-text.
endif.
CLEAR:item, NODE, lv_nkey_c3.
v_no = v_no + 1.
lv_nkey_c3 = v_no.
CONDENSE lv_nkey_c3.
CONCATENATE 'SSN' lv_nkey_c3 INTO lv_nkey_c3.
node-node_key = lv_nkey_c3.
node-relatkey = lv_nkey_c2.
node-relatship = cl_gui_list_tree=>relat_last_child.
node-isfolder = 'X'.
APPEND node TO node_table.
CLEAR item.
item-node_key = lv_nkey_c3.
item-item_name = c_column-column1.
item-class = cl_gui_column_tree=>item_class_text.
item-font = cl_gui_column_tree=>item_font_prop.
item-text = 'DELETE'."wa_PRG-DELETE_PRG.
item-length = 30.
APPEND item TO item_table.
CLEAR item.
item-node_key = lv_nkey_c3.
item-item_name = c_column-column2.
item-class = cl_gui_column_tree=>item_class_text.
item-font = cl_gui_column_tree=>item_font_prop.
item-text = 'NAME OF DELETE PROGRAM'.
item-length = 60.
APPEND item TO item_table.
CLEAR:item,lv_nkey_c4,node.
data : v_no1 type sy-tabix.
v_no1 = v_no1 + 1.
lv_nkey_c4 = v_no1.
endloop. -
ORA-01403: no data found Problem when using AUTOMATIC ROW FETCH to populate
ORA-01403: no data found Problem when using AUTOMATIC ROW FETCH to populate a form.
1) Created a FORM on EMP using the wizards. This creates an AUTOMATIC ROW FETCH
TABLE NAME - EMP
Item Containing PRIMARY KEY - P2099_EMPNO
Primary key column - EMPNO
By default the automatic fetch has a ‘Process Error Message’ of ‘Unable to fetch row.’
2) Created a HTML region. Within this region add
text item P2099_FIND_EMPNO
Button GET_EMP to submit
Branch Modified the conditional branch created during button creation to set P2099_EMPNO with &P2099_FIND_EMPNO.
If I then run the page, enter an existing employee number into P2099_EMPNO and press the GET_EMP button the form is populated correctly. But if I enter an employee that does not exist then I get the oracle error ORA-01403: no data found and no form displayed but a message at the top of the page ‘Action Processed’.I was expecting a blank form to be displayed with the message ‘Unable to fetch row.’
I can work around this by making the automated fetch conditional so that it checks the row exists first. Modify the Fetch row from EMP automated fetch so that it is conditional
EXIST (SQL query returns at least one row)
select 'x'
from EMP
where EMPNO = :P2099_EMPNO
But this means that when the employee exists I must be fetching from the DB twice, once for the condition and then again for the actual row fetch.
Rather than the above work around is there something I can change so I don’t get the Oracle error? I’m now wondering if the automatic row fetch is only supposed to be used when linking a report to a form and that I should be writing the fetch process manually. The reason I haven’t at the moment is I’m trying to stick with the automatic wizard generation as much as I can.
Any ideas?
Thanks PeteHi Mike,
I've tried doing that but it doesn't seem to make any difference. If I turn debug on it shows below.
0.05: Computation point: AFTER_HEADER
0.05: Processing point: AFTER_HEADER
0.05: ...Process "Fetch Row from EMP": DML_FETCH_ROW (AFTER_HEADER) F|#OWNER#:EMP:P2099_EMPNO:EMPNO
0.05: Show ERROR page...
0.05: Performing rollback...
0.05: Processing point: AFTER_ERROR_HEADER
I don't really wan't the error page, either nothing with the form not being populated or a message at the top of the page.
Thanks Pete -
Problem when using About Operator in Contains Query
Hi,
I'm new to Oracle and this forums too. I have a problem when using about operator in contains query.
I create a table with some records and then create a context index on 'name' column.
CREATE TABLE my_items (
id NUMBER(10) NOT NULL,
name VARCHAR2(200) NOT NULL,
description VARCHAR2(4000) NOT NULL,
price NUMBER(7,2) NOT NULL
ALTER TABLE my_items ADD (
CONSTRAINT my_items_pk PRIMARY KEY (id)
CREATE SEQUENCE my_items_seq;
INSERT INTO my_items VALUES(my_items_seq.nextval, 'Car', 'Car description', 1);
INSERT INTO my_items VALUES(my_items_seq.nextval, 'Train', 'Train description', 2);
INSERT INTO my_items VALUES(my_items_seq.nextval, 'Japan', 'Japan description', 3);
INSERT INTO my_items VALUES(my_items_seq.nextval, 'China', 'China description', 4);
COMMIT;
EXEC ctx_ddl.create_preference('english_lexer','basic_lexer');
EXEC ctx_ddl.set_attribute('english_lexer','index_themes','yes');
EXEC ctx_ddl.set_attribute('english_lexer','theme_language','english');
CREATE INDEX my_items_name_idx ON my_items(name) INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS('lexer english_lexer');
EXEC ctx_ddl.sync_index('my_items_name_idx');Then I perform contains query to retrieve record :
SELECT count(*) FROM my_items WHERE contains(name, 'Japan', 1) > 0;
COUNT(*)
1
SELECT count(*) FROM my_items WHERE contains(name, 'about(Japan)', 1) > 0;
COUNT(*)
1But the problem is when I using ABOUT operator like in Oracle's English Knowledge Base Category Hierarchy it return 0
SELECT count(*) FROM my_items WHERE contains(name, 'about(Asia)', 1) > 0;
COUNT(*)
0
SELECT count(*) FROM my_items WHERE contains(name, 'about(transportation)', 1) > 0;
COUNT(*)
0I can't figure out what 's wrong in my query or in my index.
Any help will be appreciated.
Thanks,
Hieu Nguyen
Edited by: user2944391 on Jul 10, 2009 3:25 AMHello (and welcome),
You'd be best asking this question in the Oracle Text forum, here:
Text
And by the way, it will help others to analyse if you put {noformat}{noformat} (lowercase code in curly brackets) before and after your code snippets.
Good luck! -
When using FireFox I often cannot view pictures in Hotmail emails, but I have no problem when using other browsers
Do you also have this issue if you temporarily switch to Private Browsing mode?
*https://support.mozilla.org/kb/Private+Browsing
*Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
*Select: [X] "Always use private browsing mode"
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
See also:
*https://support.mozilla.org/kb/fix-login-issues-on-websites-requrie-passwords -
Coercion problem when using Shared Variable
I have a curious coercion problem when using Shared Variables. I want to share the state of a State Machine, which is an enum saved as a control (typedef) called TYPE State (see attached). I create a shared variable called State and define it as a Custom Control, using the just-mentioned typedef. So far, so good. I've attached three simple VIs -- the first one, Init State, simply wires a constant to the input of the Shared Variable to initialize it -- the wired constant is, of course, defined by the typedef. However, the Get State and Set State, meant to wire an indicator (for reading the state) or control (for setting it), develop coercion dots when wired into the Shared Variable. Why? How do I get rid of the dot? [I suppose I could abandon my typedef and custom control, but the beauty of typedefs and custom controls is that it "enforces" rules, lets you use enums for clarity, keeps the code "honest", etc. -- I'd hate to give that up just to get rid of a dot!].
On a related note, the code seems to work. This is much too simplistic to do anything, but if you open Set State and Get State, set the state to anything, run it (it immediately stops, of course), then run Get State, you'll see the chosen state appear in the indicator. So it does appear to work. The "error" (coercion dot) may, I suppose, be a "bug" in Labview because it can't figure out the mapping of the (very simple!) Custom Control, but if so, I hope it gets fixed quickly!
Bob Schor
Attachments:
Coercion Problem1.zip 38 KBHello Bob,
I am also seeing this behavior, I will escalate this question to our LabVIEW developers and post again here no later than next Tuesday, November 27th as National Instruments will be closed for the remainder of this week.
If this issue does turn into a product suggestion, I would suspect the workaround would to live with the coersion dot for the time being.
Enjoy the holiday
Regards,
Erik J.
Applications Engineer
National Instruments -
NLS support problems when using AL32UTF8 in dads.conf
Hello,
Following a post by Joel Kallman, in one of the forum threads, about the mandatory use of AL32UTF8 in dads.conf, when running HTML DB v2.0, I changed my PlsqlNLSLanguage parameter accordingly.
Prior to the change, I experienced some problems when using non-English characters some application items appeared as gibberish when contained non-English characters, and the LIKE operator didn't perform as expected. After the change, it all seems to work OK, but now I have a different problem.
All the non-English characters in my HTML page source code appears as gibberish. On screen, at run time, everything display correctly, but the source code seems to be corrupted. It is very difficult, and very annoying to debug the pages that way. Is there a way to enjoy both worlds Using AL32UTF8 in the dads.conf, as required, and still getting a coherent HTML source code, containing non-English characters?
Thanks,
Arie.Joel,
I use the following settings and they work fine for me:
Operating system:
LANG=de_DE
LANGVAR=de_DE.UTF-8
NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
daust:oracle[o1020]> uname -a
Linux daust.opal-consulting.de 2.4.21-37.EL #1 Wed Sep 7 13:35:21 EDT 2005 i686 i686 i386 GNU/Linux
daust:oracle[o1020]> cat /etc/redhat-release
Red Hat Enterprise Linux ES release 3 (Taroon Update 6)
daust:oracle[o1020]>
marvel.conf:
<Location /pls/htmldb>
Order deny,allow
PlsqlDocumentPath docs
AllowOverride None
PlsqlDocumentProcedure wwv_flow_file_manager.process_download
PlsqlDatabaseConnectString localhost:1521:o1020
PlsqlNLSLanguage AMERICAN_AMERICA.WE8ISO8859P1
PlsqlAuthenticationMode Basic
SetHandler pls_handler
PlsqlDocumentTablename wwv_flow_file_objects$
PlsqlDatabaseUsername HTMLDB_PUBLIC_USER
PlsqlDefaultPage htmldb
PlsqlDatabasePassword @BZvJYqadreElOqj5poCB5gE=
Allow from all
</Location>
Database:
daust:oracle[o1020]> sqlplus "/ as sysdba"
SQL> select * from nls_database_parameters;
PARAMETER VALUE
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET WE8ISO8859P1
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
PARAMETER VALUE
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_RDBMS_VERSION 10.2.0.1.0####################
Using AL32UTF8 resulted in the same problem as described ( and fixed ) here: Re: Strange - HTML not written correctly
So, what is the proper configuration of the DAD, perhaps there are different ones for Unicode instances and non-Unicode instances.
~Dietmar.
Maybe you are looking for
-
I upgraded to IE9 and now I can't see my iPod - any suggestions?
I upgraded to IE9 and now I can't see my iPod - any suggestions?
-
When Firefox opens here is NO toolbar! But Incredimail shows as something up there, even though I deleted it from my Firefox Home page. I do not want anything to do with Incredimail. How do I correct all of this and get a server that I want?
-
File or BD-Export not found in CD/DVD
Dear All I want to install IDES 4.6 C on windows 2000 advance server with DB MS SQL 2000. My CD/DVD from SAP as follows this: 1.DVD 51017108 1of2 (R/3 4.6C; inc.Support 1-28; DB-Export Part 1; Ides WP-Doc as label) have folder: a. DB_Export -->D
-
Aspect ratio for captured frames is horizontally compressed
When I attempt to capture a frame from DVCProHD for use outside of PProCS6, the image is compressed horizontally (see example below). It appears normal in some CS6 products (Photoshop and when reimported back into PPro), but if previewed or used else
-
Job Opening for Test Engineer in Detroit, Novi-Michigan
Hi all, Harman International Inc., is looking for a Test Engineer to add to our Team. Job Location: Novi, MI Job Type: Full Time / Permanent Job Description, Knowledge in electronic design for testability requirement. Knowledge in LabView/TestStand/