Check statement.
Hi,
I am using the following stat for checking whether the the TCODE is in the given range in tab lt_tab3.
If i give values in in LOW & HIGH and In HIGH the following stat working fine. But If i give the value in Only Low field Bothe stat r not working.
CHECK lt_tab3-tcode between lt_tab1-low and lt_tab1-high.
OR (I'm using only one stat from these)
IF LT_TAB3-TCODE GE LT_TAB1-LOW LT_TAB3-TCODE LE
LT_TAB1-HIGH.
Give me suggestions
Hi,
I think you can do some changes to the internal table first.
if the lt_tab1-high is initial.
lt_tab1-high = lt_tab3-tcode.
endif.
Then you can use one of the following statement:
CHECK lt_tab3-tcode between lt_tab1-low and lt_tab1-high.
OR (I'm using only one stat from these)
IF LT_TAB3-TCODE GE LT_TAB1-LOW LT_TAB3-TCODE LE
LT_TAB1-HIGH.
Hope this will help you.
Similar Messages
-
Use previous "Delete from hard disk" checked state?
Is there any way for the program to use the previous "Also delete selected item(s) from the hard disk" checked state in the file deletion confirmation dialog? It gets tedious to check it every time I want to delete a file and if I forget to do it I will have an extra file sitting on my hard disk not in my catalog.
A quick shortcut that I use is to hit the spacebar (checks/unchecks the "delete from
hard disk" option), then hit the enter key to complete the process.
Michael -
BT Infinity checker states Brentwood as enabled - ...
I'm sure I'm not the only frustrated one in this position.
The online checker states that Brentwood exchange is enabled for infinity (apperantly one of the first in the country).
However, a check against my phone number states that I cant get Infinity. The max I get is ADSL at 1mbit.
I know that all cabinets are not active but I can't get any information as to which cabinet I connect to and when that will be enabled for Infinity.
I can't get any help from the BT customer service dept.
Any help would be appreciated.Hi NotBehondInfinity,
Thanks for the post and welcome to the forum. I may be able to find out what is going on here. I cant make any promises but I will certainly see what I can do.
Please drop me an email via the 'Contact Us' link in my profile. (click on my name and you will find the link under the "about me" section). Include your BT account details and the link to this thread.
Cheers
Sean
BTCare Community Manager
If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-) -
Hi SDN's
I am working on 4.6C version.
I have an internal table ITAB with Sales Group as one of its field.
I have Sales Group SO_VKGRP on the selection screen as select-options no intervals.
Now my problem is if the SO_VKGRP has some entries in the excluding list,then the check statement is failing.
<b>I know i am wrong at some point. Correct me.</b>
loop at ITAB.
IF NOT p_spart IS INITIAL.
SELECT SINGLE * FROM knvv
WHERE kunnr EQ itab-cust_acct AND
spart EQ p_spart.
CHECK sy-subrc EQ 0.
ENDIF.
IF knvv-spart = 'H1'.
IF NOT so_vkgrp[] IS INITIAL.
CHECK knvv-vkgrp in so_vkgrp.
" wil this be correct if i have entries in the
" excluding tab of select options
ENDIF.
<Some modifications and validation are done here>
ENDIF.
endloop.
Regards
PratyushaHI
CHECK log_exp.
If the statement CHECK is executed outside a loop and log_exp is incorrect, the statement terminates the current process block. You can specify any logical expression for log_exp.
The behavior of the runtime environment after exiting the processing block is described under Exiting Processing Blocks.
SAP recommends to use this procedure with the statement CHECK only inside loops (see CHECK (Loops) ). -
Is it possible to get menu item checked state?
In a script I need to know the state of a menu items checked state - e.g. the View/Proof Colors menu item.
Is that possible? (and of cause if it is how do I do it?)
Thanks,
JackThe reason I need the state of "Proof Colors" is that I want to turn on/off the visibility of a layer set depending on its state.
In the layer set I would have my printing adjustments layers. This way it is very easy to compare the image with the softproof. When "Proof Colors" is turned off the printing adjustment layer set would also be turned off - displaying the image without any printing corrections.
When "Proof Colors" is turned on the printing adjustment layer set would also be turned on - displaying the softproof with printing corrections applied.
Jack -
Reading checked state of checkbox
Hi there:-
'Sorry to post such a simple question but I can find the
answer in the Dreamweaver online reference, and I have wasted a lot
of time trying to find the answer.
I want to read the checked state of a given checkbox and then
if value of true is returned invoke function "A" or if false is
returned invoke function "B".
Based on what I found in the reference I set up a variable to
capture the state of the checkbox as follows:
function checkboxState()
var checkState = document.all.nameOfCheckbox.checked;
if (checkState == true)
statements
else
if (checkState == false)
statements
The check box is setup as follows:
<input name="nameOfCheckbox" type="checkbox"
onClick="checkboxState()">
This doesn't work and I don't know why. I wondered if I had
to define the checkbox in a particular way, e.g. using the value
attribute or something, but the reference did not indicate this.
If anyone can help I would appreciate it.
Thanks!Hi Jules,
Thanks for the tip. It worked. I have seen people set up an
if statement without any argument "if(checkStatus)" but I don't
entirely understand the mechanics of what this is doing. (That is,
how a true or false is passed to the variable) But I originally
learned to code COBOL so maybe I am too old fashioned.
Thanks,
Linda -
Purpose of Check statement..?
Hi All,
What will happens when I write check statement in the loop
Loop at temp_glpct.
Check temp_glpct-RYEAR IN RYEAR.
Akshitha.If you use the CHECK <expr> statement within an event block but not within a loop, and the condition <expr> is not fulfilled, the system exits the processing block immediately.
<expr> can be any logical expression or the name of a selection table. If you specify a selection table and the contents of the corresponding table work are do not fulfill the condition in the selection table, it is the same as a false logical expression.
If the CHECK statement occurs in a loop using DO, WHILE, or LOOP, it is the loop that terminates, not the processing block.
Check this link for more.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9afe35c111d1829f0000e829fbfe/content.htm -
Hi, I currently have a swf animation on a slide and thru as3 I use the rdcmndNextSlide so it moves to the next slide but on the TOC the state doesnt become checked. any way to fix this?
Captivate only marks an item as completed on the TOC if that slide has been played all the way to the last frame before moving to the next slide.
You can force the TOC to show any slide as ticked using the TickTOC widget.
More information about the widget here.
Trial widget versions available for download here. -
EJB and ADF- Checking State of Entity Bean before Commit
Hi All,
I have created a sample using Ejb as business service and then created 2 forms in page and i am calling only one merge action for 2 forms.
I need to validate whether the data is modified or not....in business service layer...
So my doubt is how to check the State whether it is modified or not... or how can i use EntityFacadeImpl class..Any link or suggestions??
I am using Jdev 11.1.1.5
Regards
KarthickHi,
+.. or how can i use EntityFacadeImpl class+
expose a method onthe facade (e.g. checkDirtyState) that accesses this class for the transaction state and that returns true or false. This then is exposed by the DataControl and you create a method binding in teh pages PageDef for it. You can then access it as
BindingContainer bindings = ... get access to the binding layer ...
OperationBinding checkDirtyDataState = (OperationBinding) bindings.get("Name of Method Binding");
Object outcome = checkDirtyDataState.execute();
if(outcome != null){
if ((Boolean)outcome == Boolean.TRUE){
//do this
else{
//do that
}A Second option is to add a transient field to the entities that indicates client side changes. You then iterate over the DCIteratorBinding reference checking if any entity in it has been changed (identified by the dirty flag)
Frank -
CS3 Setup System Check states that Safari is open when it is closed
Running Setup under OSX, and during System Check, alert states that "Installation cannot continue until the following applications are closed: Safari".
I have verified that Safari is closed, and no other users logged on, but cannot satisfy this prompt.Closing Programs Interfering with Installation
PC - Task Manager: (CTRL-ALT-Delete) http://support.microsoft.com/kb/323527
Mac - Activity Monitor: http://osxdaily.com/2010/08/15/mac-task-manager/
Error "Installation cannot continue until... Adobe Bridge is closed" | Installation | CS5
http://helpx.adobe.com/creative-suite/kb/error-installation-cannot-continue-bridge.html -
Is there an inexpensive APEX report printer for invoices/checks/statements?
I am considering using APEX for a billing/payments type system for a small company. BI Publisher is not an option for them due to cost. Has anyone used a free or low-cost product to successfully print detailed reports such as invoices, statements, checks, etc. from APEX?
Andreé,
o no problem
1)
first make an invoice layout with field holders placed in between ##
e.g. Dear Mr #CNAME# find here your latest invoce and so no
just make it in wordpad, word or openoffice
and save it in an RTF file
I then copied the RTF in a CBLOB field using TOAD
2)
load this clob in clob variable in a pl/sql procedure
mix your RTF with real data, f.i. #CNAME# will be replaced
using pl/sql : replace('#CNAME# , rec.name); and so on for all fields
the end result is the invoice as rtf
the idea comes from this application from oracle called mailmerge
found here : [http://htmldb.oracle.com/pls/otn/f?p=18326:44:3650339304424939::::P44_ID:1682]
it's an apex app where I based my work on
have a look at it and feel free to ak more questions:
CREATE OR REPLACE PROCEDURE RIGHTSHOP.DOWNLOAD_INVOICE(p_id in number) AS
Lob_loc CLOB;
i integer := 0;
v_length integer;
v_blob BLOB;
v_tot FACTUUR.TOT%type;
v_totexcl FACTUUR.TOTEXCL%type;
v_totbtw FACTUUR.TOTBTW%type;
v_docnr FACTUUR.DOCNR%type;
v_datum FACTUUR.DATUM%type;
v_klant_id FACTUUR.KLANT_ID%type;
v_mime varchar2(48) := 'application/msword';
v_file_name varchar2(2000);
cursor cur_artikels(p_factuur in FACTUUR_ARTIKELS.FACTUUR_ID%type) is
select AANTAL, OMSCHRIJVING, BTW_CAT_ID, SERIENUMMER, NETTO_VERKOOPPRIJS
, (aantal * NETTO_VERKOOPPRIJS) netto_bedrag
, (select btw_waarde from btw_cats where id = btw_cat_id) btw
from factuur_artikels
where factuur_id = p_factuur;
rec_firma firma%rowtype;
str_gemeente varchar2(4000);
v_knaam KLANTEN.NAAM%type;
v_kstraat varchar2(4000);
v_kbtw KLANTEN.BTW_NUMMER%type;
BEGIN
begin
select rtf
into lob_loc
from factuur_layouts
where id = (select flayout_id from firma);
exception
when others then
htp.p(' error during select '||sqlerrm);
end;
-- firma
select NAAM1, NAAM2, ADRES1, ADRES2, POSTCODE_ID, EMAIL, WEBSITE, BTW_NUMMER, TEL1, FAX, GSM, REKENING
into rec_firma.NAAM1, rec_firma.NAAM2, rec_firma.ADRES1, rec_firma.ADRES2, rec_firma.POSTCODE_ID, rec_firma.EMAIL
, rec_firma.WEBSITE, rec_firma.BTW_NUMMER, rec_firma.TEL1, rec_firma.FAX, rec_firma.GSM, rec_firma.REKENING
from firma;
select postcode || ' ' || gemeente
into str_gemeente
from postcodes
where id = rec_firma.postcode_id;
lob_loc := replace(lob_loc, '#FNAAM1#', rec_firma.naam1);
lob_loc := replace(lob_loc, '#FNAAM2#', rec_firma.naam2);
lob_loc := replace(lob_loc, '#FSTRAAT#', rec_firma.adres1 || ' ' || rec_firma.adres2);
lob_loc := replace(lob_loc, '#FGEMEENTE#',str_gemeente);
lob_loc := replace(lob_loc, '#FEMAIL#', rec_firma.email);
lob_loc := replace(lob_loc, '#FWEBSITE#', rec_firma.website);
lob_loc := replace(lob_loc, '#FBTW#', rec_firma.btw_nummer);
lob_loc := replace(lob_loc, '#FREKENING#', rec_firma.rekening);
--factuur
select tot, totexcl, totbtw, docnr, datum, klant_id
into v_tot, v_totexcl, v_totbtw, v_docnr, v_datum, v_klant_id
from factuur
where id = p_id;
lob_loc := replace(lob_loc, '#BB#', to_char(v_totexcl, 'FM999G999G999G999G990D00'));
lob_loc := replace(lob_loc, '#TB#', to_char(v_totbtw, 'FM999G999G999G999G990D00'));
lob_loc := replace(lob_loc, '#TO#', to_char(v_tot, 'FM999G999G999G999G990D00'));
lob_loc := replace(lob_loc, '#FD#', to_char(v_datum, 'DD/MM/YYYY'));
lob_loc := replace(lob_loc, '#FN#', to_char(v_docnr));
lob_loc := replace(lob_loc, '#eenheid#', 'Aantal');
v_file_name := 'factuur' || v_docnr;
-- klant
select naam, adres1 || ' ' || adres2 as straat
, (select postcode || ' ' || gemeente from postcodes where id = klanten.postcode_id) as gemeents
, btw_nummer
into v_knaam, v_kstraat, str_gemeente, v_kbtw
from klanten
where id = v_klant_id;
lob_loc := replace(lob_loc, '#KNAAM#', v_knaam);
lob_loc := replace(lob_loc, '#KSTRAAT#', v_kstraat);
lob_loc := replace(lob_loc, '#KGEMEENTE#',str_gemeente);
lob_loc := replace(lob_loc, '#KBTW#', v_kbtw);
-- factuur_artikels
for vc_curr in cur_artikels(p_id) loop
i := i + 1;
lob_loc := replace(lob_loc, '#AR' || to_char(i) || '#', rpad(vc_curr.omschrijving, 120, ' '));
lob_loc := replace(lob_loc, '#AN' || to_char(i) || '#', to_char(vc_curr.aantal));
lob_loc := replace(lob_loc, '#NE' || to_char(i) || '#', to_char(vc_curr.netto_verkoopprijs, 'FM999G999G999G999G990D00'));
lob_loc := replace(lob_loc, '#BT' || to_char(i) || '#', to_char(vc_curr.btw) ||'%');
lob_loc := replace(lob_loc, '#BE' || to_char(i) || '#', to_char(vc_curr.netto_bedrag, 'FM999G999G999G999G990D00'));
end loop;
for j in i .. 9 loop
lob_loc := replace(lob_loc, '#AN' || to_char(j) || '#', null);
lob_loc := replace(lob_loc, '#AR' || to_char(j) || '#', lpad(' ', 120, ' '));
lob_loc := replace(lob_loc, '#NE' || to_char(j) || '#', null);
lob_loc := replace(lob_loc, '#BT' || to_char(j) || '#', null);
lob_loc := replace(lob_loc, '#BE' || to_char(j) || '#', null);
end loop;
v_length := length(lob_loc);
-- set up HTTP header
-- use an NVL around the mime type and
-- if it is a null set it to application/octect
-- application/octect may launch a download window from windows
v_mime := 'application/pdf';
owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
-- set the size so the browser knows how much to download
htp.p('Content-length: ' || v_length);
if v_mime != 'text/html' then
-- the filename will be used by the browser if the users does a save as
--htp.p('Content-Disposition: attachment; filename="' || v_file_name || '"');
htp.p('Content-Disposition: filename="' || v_file_name || '"');
end if;
-- close the headers
owa_util.http_header_close;
-- download the BLOB
v_blob := c2b(lob_loc);
--wpg_docload.download_file( Lob_loc );
wpg_docload.download_file(v_blob);
/*update factuur
set printed = 1
where id = p_id;
APEX_UTIL.SET_SESSION_STATE('P9_PRINTED', '1');
exception
when others then
htp.p('other error : ' || sqlerrm);
END;
/ -
How the check statement works in a a loop
Hi gurus,
assume itab has 5 records.
Loop at itab.
ctr = ctr + 1
write: sy-tabix.
check ctr = 3.
delete itab
endloop.
options:
1 2 3 4
1 2 4 5
1 2 3 4 5
1 2 3 3 4
the answer is 1 2 3 3 4.
Pls give me the expalanation.Hi,
Here is the explanation for ur logic.
Initially ctr = 0.
1st record of itab: ctr becomes 1. and sy-tabix = 1.
Check condition fails as ctr <> 3. so control goes back to starting of the loop.
2nd record of itab : ctr = 2, sy-tabix = 2. once again condtion fails ctr <> 3. control goes back to the starting of the loop.
3rd record of itab (3rd loop) : ctr = 3, sy-tabix = 3. Check condition satisfies ctr = 3. So itab record (3rd record) gets deleted. i.e., now 4th record will become as 3rd record.
4th loop : As 4th record replaced as 3rd record. the values will be as follows
ctr = 4, sy-tabix = 3. Check condition fails as ctr = 4, but not 3.
Hence the result till 4th loop is : 1 2 3 3
For the next loop, result will be 1 2 3 3 4
Hope it is clear. -
Data grid view adding check box not able to check state
i have make window search a city name result show on data grid view and i have added the check box when i am checking the check box and other search of keyword that same row i am un checking the chek box when search it remain check how to making
it check for al type of keywordi have make window search a city name result show on data grid view and i have added the check box when i am checking the check box and other search of keyword that same row i am un checking the chek box when search it remain check how
to making it check for al type of keyword
Hello,
It's not clear what the issue is, you could be more specific by sharing some screenshots and code.
In addition, it will be more clear if you could separate the description into multiple sentences.
Which control did you want to get help about? The checkbox or datagridview?
If it is checkbox, did you want to keep checked or keep it uncheck?
If it is datagridview, whether you are talking about checkbox column?
Regards,
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Checking state of symbolic links?
Is it possible to check if a symbolic link has been broken? I would just re-create it, but I have so many that are in question. Any help would be appreciated. thanks!
Don't know how to check a single file, (might devote time to that later), but just copy and paste this into Terminal...
for f in $(find /usr/local/bin -type l); do if [ ! -e "$f" ]; then echo "$f"; fi; done
Change the path & folder if need be, or paste this in...
for f in $(find
Then a SPACE, then from the finder drag the folder to terminal then another SPACE, then paste in...
-type l); do if [ ! -e "$f" ]; then echo "$f"; fi; done
This is a pretty safe command, I can't picture it causing problems if you do something wrong. -
Way to check stats on bit rate versions streamed?
Does anyone know if Flash Media Server has a function that allows you to see statistics on which particular streams are being delivered?
Seems like that would be a handy tool in determining which bitrates are important to continue providing, and which are superfluous, and if it's time to try encoding at higher bit rates.
Thanks,
MikeYou may like to monitor the access.00.log file to find out what streams are being delivered by FMS at what time.
Maybe you are looking for
-
Third Party Subcontracting process
How to configure Third party sales for Sub Contracting orders. (Scenario: Sub contracting orders should deliver at Customer place) Please suggest Thanks SUNIL
-
I'm currently having a problem with my iphone 4Gs shutting down my wireless router when it's within ten or fifteen feet of the unit. I discovered this over the last few days thinking it was a problem with the router, it wasn't till today I realize
-
Hi, I use a lenovo thinkpad E530. It came with windows 7 professional. Recently i experienced a BSOD and had to format it to solve the problem. I installed all the drivers from lenovo and pc working ok however i cannot copy and paste any item within
-
System prefs constantly asks to be shut down and reopened on certain system prefs so cannot access
System prefs constantly asks to be shut down and reopened on certain system prefs so cannot access. Any answers.
-
How do I change the cmd w (close window) shortcut on OSX Lion?
Hi, I have a macbook air running on OSX Lion, and I can't find the way to change the shortcut cmd+w... I need those keys for another application without quiting it every now and then, and I can't add or modify any of those controls. Can somebody help