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
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 the statement CALL 'C_RSTS_READ' .
What is the purpose of the following statements and where they are used. please provide some inputs.
CALL 'C_RSTS_READ'
CALL 'C_RSTS_OPEN_READ'
CALL 'C_RSTS_CLOSE'hi,
u can try out this...hope this would be helpful
Function: Read Temse data from UNIX filesystem and display. You must reconstruct the relationship between Temse tables and the spool files (tables TST01 and TSP01) for this to work. Dname, Rqident, Dsize are the important fields. This was used to retreive deleted spool output pertaining to an important project. Spool cleanup job RSPO0041 deleted the spool files regardless of the 'Delete after date'
Procedure :
Restore the spool files (assuming you employ spool_method 'G' and also backup /sapmnt/SID/global/xxxSPOOL directory) in a temp. directory and rename them to numbers which will not overwrite the existing max(dname) in TST01.
Using ABAP or SQL copy in the same table, a row from both TST01 and TSP01 and update TST01:Dname (spool name), TST01:Dsize (size of the spool file in bytes) and TSP01:Rqident (spool number)
REPORT ZREADSP.
PARAMETERS: ZNAME(6).
DATA: HAND4(28) TYPE X,
LN TYPE I,
LN2 LIKE RSTSTYPE-LINELENGTH,
BUFFER(132),
RSTSRC(6),
ERRMSG(50),
HIDE_CLIENT LIKE TST01-DCLIENT VALUE '200',
HIDE_NAME LIKE TST01-DNAME ,
HIDE_PART LIKE TST01-DPART VALUE '1',
FULL_NAME(40).
DATA:BEGIN OF BUFTAB OCCURS 1002,
TXT(8000),
END OF BUFTAB.
CONCATENATE 'SPOOL' ZNAME INTO HIDE_NAME.
CALL 'C_RSTS_OPEN_READ' ID 'HANDLE' FIELD HAND4
ID 'CLIENT' FIELD HIDE_CLIENT
ID 'NAME' FIELD HIDE_NAME
ID 'PART' FIELD HIDE_PART
ID 'RC' FIELD RSTSRC
ID 'ERRMSG' FIELD ERRMSG.
CALL 'C_RSTS_READ' ID 'HANDLE' FIELD HAND4
ID 'BUFTAB' FIELD BUFTAB-SYS
ID 'MAXIX' FIELD 10000
ID 'RC' FIELD RSTSRC
ID 'ERRMSG' FIELD ERRMSG.
CALL FUNCTION 'RSPO_SPOOLDATA_WRITE_INIT'.
LOOP AT BUFTAB.
LN = STRLEN( BUFTAB-TXT ).
IF LN > 0.
LN2 = LN.
CALL FUNCTION 'RSPO_SPOOLDATA_WRITE'
EXPORTING
SPOOL_DATA = BUFTAB-TXT
DATA_LENGTH = LN2
EXCEPTIONS
DATA_TOO_SHORT = 1
OTHERS = 2.
ELSE.
SKIP.
ENDIF.
ENDLOOP. -
What is the purpose of "report" statement in abap?
Hi abapers,
I have seen almost all of the abap programs starting with statement "report".
Example of which given below
report /glb/xgt_idoc_b
What is its purpose/significance of the statement?.
Is it mandatory to start every program in abap with this statement?.
Thanks in advance.hi
whenever u will create a program in se38 with type executable it will have report in its starting.
its a kewyord that signifies that it is an executable program.
regards
vijay
reward points if helpfull -
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 -
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 suggestionsHi,
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. -
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. -
Purpose of Check Boxes on New ITunes
I just downloaded the newest iTunes. A check box appears on every song and is checked. When I uncheck it my song disappears. Anyone know what's going on???
Are you looking in a smart playlist where the rules are "Match only Checked Songs" and "Live Updating"?
If you want to check everything, go to the main music listing, press sommandkey while checking a song.
http://www.apple.com/itunes/how-to/shortcuts.html
Maybe you are looking for
-
New HD, Old iTunes account PW
I know this is a common thing, but I can't find the answer. I just installed a new HDD in my MacBook and now iTunes has dropped off 125 songs because they are authorized under an old account no longer used. I can't remember the old password from 5
-
After upgrading to Yosemite MP Navigator App for my Cannon scanner not working properly, Buttons are not active and do not respond .... it works on my laptop with Mavericks ... I will be reverting back to Mavericks .. I use my Scanner a lot . Apple p
-
I can't sign into creative cloud in my PS Touch app on my Galaxy Note 3
when I try to sign in, I get the message "Adobe ID and Password do not match" I have a Sprint Galaxy Note 3 But I sign into PS Touch on my tablet just fine what could be the problem?
-
Hi we would like to export all data from BSO cube my maxl script, as the db is bigger then 2gb, essbase split the file to 2gb each, and we'll get more then one file to import. How can I have maxl script which know to import all data files on the spec
-
Cant buy app! dont remember my security questions
We apologize, but we were unable to verify your account information with the answers you provided to our security questions. You have made too many attempts to answer these questions. So, for security reasons, you will not be able to reset password f