Use of TYPE LINE OF
Hi ,
Can any one please tell me what is the use of
DATA var TYPE LINE OF type.
Here what is the meaning of " LINE OF " in this declaration statement..
Thanks
Ambili B
Hi,
There are differnt ways of data declarations, depending on the memory allocated to the fields , whether data is passed to that field directly using LIKE or as a reference using TYPES.
Using TYPES:
types : BEGIN OF x_stru1,
matnr TYPE matnr,
zww TYPE zwk_num,
zcomment TYPE char80,
END OF x_stru2.
data : it_data TYPE STANDARD TABLE OF x_stru1,
wa_data LIKE LINE OF it_data.
Here wa_data can be declared in different ways:
wa_data LIKE LINE OF it_data.
(or) wa_data TYPE LINE OF it_data.
Hope this is helpful to you. If you need further information, revert back.
Reward all the helpful answers.
Regards
Nagaraj
Similar Messages
-
How can I use srvctl command line for change "Failover type" and "F method"
Hi all,
I am using Oracle One Node (11.2.0.3), and I have a service:
/u01/11.2.0/grid/bin/srvctl config service -d orcl
Service name: orcldb
Service is enabled
Server pool: orcl
Cardinality: 1
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: false
Failover type: NONE
Failover method: NONE
TAF failover retries: 0
TAF failover delay: 0
Connection Load Balancing Goal: LONG
Runtime Load Balancing Goal: NONE
TAF policy specification: BASIC
Edition:
Preferred instances: orcl_1
Available instances:
I would like to change "Failover type" and "Failover method" to:
Failover type: SELECT
Failover method: BASIC
How can I do that? Is there any graphical tool for it? Or, How can I use srvctl command line for change it?
Thanks in advance.
Leonardo.user10674190 wrote:
Hi all,
I am using Oracle One Node (11.2.0.3), and I have a service:
/u01/11.2.0/grid/bin/srvctl config service -d orcl
Service name: orcldb
Service is enabled
Server pool: orcl
Cardinality: 1
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: false
Failover type: NONE
Failover method: NONE
TAF failover retries: 0
TAF failover delay: 0
Connection Load Balancing Goal: LONG
Runtime Load Balancing Goal: NONE
TAF policy specification: BASIC
Edition:
Preferred instances: orcl_1
Available instances:
I would like to change "Failover type" and "Failover method" to:
Failover type: SELECT
Failover method: BASIC
How can I do that? Is there any graphical tool for it? Or, How can I use srvctl command line for change it?
Thanks in advance.
Leonardo.srvctl modify service -d database_name -s orcldb -q TRUE -m BASIC -P BASIC -e SELECT -z 180 -w 5 -j LONG
Also see
11gR2(11.2) RAC TAF Configuration for Admin and Policy Managed Databases [ID 1312749.1] -
Issue while creating BPEL artifacts using BPEL command line tool
All
I am trying to create BPEL artificats for SQL server stored procedure for SQO Server 2005 using BPEL Command line tool.
My demo.properties is
ProductName=Microsoft SQL Server
DriverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
ConnectionString=jdbc:sqlserver://10.10.20.2:1433;databaseName=dAP
Username:apcdb
Password:password1
SchemaName:dev
ProcedureName:spiSOATesting
ServiceName:SQLServerSPService
DatabaseConnection:MSSQLServer
Destination:c:/temp/sqlprocedure
and I have create a batch file called as generate.bat and it contains following information
java -cp D:\jdevstudio10134\integration\lib\DBAdapter.jar;D:\jdevstudio10134\integration\lib\bpm-infra.jar;D:\jdevstudio10134\integration\lib\orabpel.jar;D:\jdevstudio10134\lib\xmlparserv2.jar;D:\jdevstudio10134\lib\xschema.jar;D:\jdevstudio10134\toplink\jlib\toplink.jar;D:\jdevstudio10134\integration\lib\connector15.jar;D:\temp\sqlprocedure\JDBC\sqljdbc.jar oracle.tip.adapter.db.sp.artifacts.GenerateArtifacts %1
and when I try to run the command at BPEL PM Developer Prompt, I am getting Procedure not found, Can one please tell, what is the cause of this error. and how does this command line tool exactly work.
Following is the output from command prompt.
D:\product\10.1.3.1\OracleAS_1\bpel\samples>D:\temp\sqlprocedure\generate.bat D:\temp\sqlprocedure\demo.properties
D:\product\10.1.3.1\OracleAS_1\bpel\samples>java -cp D:\jdevstudio10134\integration\lib\DBAdapter.jar;D:\jdevstudio10134\integration\lib\bpm-infra.jar
;D:\jdevstudio10134\integration\lib\orabpel.jar;D:\jdevstudio10134\lib\xmlparserv2.jar;D:\jdevstudio10134\lib\xschema.jar;D:\jdevstudio10134\toplink\j
lib\toplink.jar;D:\jdevstudio10134\integration\lib\connector15.jar;D:\temp\sqlprocedure\JDBC\sqljdbc.jar oracle.tip.adapter.db.sp.artifacts.GenerateArtifacts D:\temp\sqlprocedure\demo.properties
Procedure not found: dAP.spiSOATesting
Thank youHI
Pricing will be carried basing on the pricing
procedure.
Case1: Prices will be carried out automatically if
necessary condition records are maintained for the
condition type.
For this you can go to Sales Order-> Item Conditions
In the screen you can click on command button Analysis,
which gives you the list of condition types associated
to the pricing procedure. By clicking on the condition
type you can know the action that has taken place.
Case2: Manually forcing prices for Items.
To do this, you have to populate ORDER_CONDITIONS_IN &
ORDER_CONDITIONS_INX. Also note to identify the item
numbers, you manually pass the item number for each item
in the sales order, use the same item number for
populating conditions.
Parameters required:
ORDER_CONDITIONS_IN:
ITM_NUMBER, COND_TYPE, COND_VALUE, CURRENCY
ORDER_CONDITIONS_INX:
ITM_NUMBER, COND_TYPE, UPDATEFLAG, COND_VALUE,CURRENCY.
Hope the above info helps you. Do revert back if you
need more info.
Kind Regards
Eswar -
How to Send an Email to Outlook using process type in RSPC?
Hi,
How to Send an Email to Outlook using process type in RSPC?
We created lot of process variants, actually we want to send an mail to users if the DP Background job was succesfully finished.
Actually i tried with create message its not happening...
Plz let me know .. its urgent ...
Regards,
SatishHello Satish,
If you want to send a friendly message to your users, then you can do this by building an ABAP program that calls function module SO_NEW_DOCUMENT_SEND_API1 . You can then insert this ABAP program in your process chain (using the ABAP program process type) or as a second step in your background job. With this technique, you can send an email to SAP users, or to external users (e..g Outlook email addresses)
Here's a sample ABAP code:
data: ls_docdata type SODOCCHGI1,
lt_objcont type table of solisti1,
lt_receivers type table of somlreci1,
ls_objcont type solisti1,
ls_receivers type somlreci1,
ls_user type syuname.
* Fill these variables with subject and msg lines that you need.
data: MAIL_SUBJECT TYPE STRING,
MSG_LINE1 TYPE STRING,
MSG_LINE2 TYPE STRING,
MSG_LINE3 TYPE STRING,
MSG_LINE4 TYPE STRING,
MSG_LINE5 TYPE STRING.
ls_docdata-obj_descr = mail_subject.
ls_objcont-line = msg_line1.
append ls_objcont to lt_objcont.
ls_objcont-line = msg_line2.
append ls_objcont to lt_objcont.
ls_objcont-line = msg_line3.
append ls_objcont to lt_objcont.
ls_objcont-line = msg_line4.
append ls_objcont to lt_objcont.
ls_objcont-line = msg_line5.
append ls_objcont to lt_objcont.
* t_userlist contains the list of users to whom th email will be sent.
loop at t_userlist into ls_user.
ls_receivers-receiver = ls_user.
"Change the type here if email is for outlook users, See documentation
" of function module in SE37
ls_receivers-rec_type = 'B'.
ls_receivers-express = 'X'.
append ls_receivers to lt_receivers.
endloop.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
document_data = ls_docdata
tables
OBJECT_CONTENT = lt_objcont
receivers = lt_receivers
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8
You can test out the function module first in SE37 (just put the name of the FM and click execute). Testing it in SE37 will help you get your parameters right.
Hope this helps. -
AutoSize not working properly in TextField when using non-zero line spacing
When using non-zero line spacing, the autoSize property is not functioning as expected, causing text fields to scroll that shouldn't. Also, when using device fonts, the sizes of the TextFields are wrong in the Flash IDE.
I have a TextField whose height is supposed to be dynamic, depending the width of the TextField. wordWrap is true, the text is left aligned, and the autoSize value is flash.text.TextFieldAutoSize.LEFT.
When the TextField's width is adjusted, the height increases or decreases as expected, but when I scroll the mouse wheel over the TextField, it allows a single line to scroll out of view. This should not be happening. The autoSize property should ensure the TextField is large enough to neither require nor allow scrolling.
Has anyone else encountered this issue or know how to fix it?
Update: Been a problem since at least 2006! > http://blog.nthsense.net/?p=46
http://www.kirupa.com/forum/showthread.php?288955-Disabling-textfield-scrolling Bug is caused by using a line height ("line spacing" in Flash) larger than zero, for example 1.0pt. It looks like when I reduce the line spacing of the text field to zero, the issue goes away. There doesn't seem to be anything wrong with how autoSize is calculating the required height of the text (i.e. it is exactly textHeight + 4 pixel gutter, and drawing the rectangle (2,2,textWidth,textHeight) aligns visually with the text), so it must have to do with how the TextField is deciding whether it needs to scroll or not, and that separate calculation is being thrown off by the non-zero line spacing. The additional non-zero spacing at the end of the last line could be making the TextField think it needs to scroll, even though it's hight is sufficient at "textHeight + 4". Apparently the problem manifests when using a non-zero leading value as well.
In fact, it has to be related to the leading value exactly, since the following code stops the textfield from scrolling.
//body is TextField
var tlm:TextLineMetrics = body.getLineMetrics(body.numLines - 1);
trace(tlm.leading); //traces "1" here. traces zero when line spacing is zero, and traces larger values with larger line spacing values
body.autoSize = flash.text.TextFieldAutoSize.NONE; //turn off autosize so the height can be set manually
body.height += tlm.leading; //increase height of textfield by leading value of last line to cause scrolling to be turned off.
Honestly, this is pretty unacceptable bug. First of all, scrolling should not be sensitive to trailing line spacing, because autoSize and textHeight do not include it. It need to be consistent, and I think textHeight and autoSize setting height = textHeight + 4 is correct. Vertical scrolling should use textHeight as it's guage for whether scrolling is necessary, but instead, it's obviously involving the leading values of the last line. At the very least, vertical scrolling should simply be disabled when autoSize is turned on and wordWrap is true, because the TextField should be big enough to fit all the text. The workaround of manually adjusting the height is also no good, since turning autoSize back on will immediately change the size back and trigger scrolling again. I also shouldn't have to set line spacing to zero just to use the autoSize feature, since the scrolling calculations are wrong in this way.No, lol. Luckly, I replace most of my TextFields on the display list with my subclass TextFieldEx. I just call a clone method that accepts a TextField and returns a TextFieldEx with identical properties.
I corrected the problem via modifying the subclass to behave differently when autoSize is not NONE and wordWrap is true. Under those conditions, the maxScrollV and scrollV property values are fixed at 1, and the class listens for its own SCROLL event and sets scrollV to 1 when it occurs. That allows me to leave everything else alone, including text selection, and use whatever line spacing I want.
The modification seems to work fine so far.
For anyone interested in doing something similar, here is a clone method that will copy a TextField.
public static function clone( t:TextField ):TextFieldEx
var te:TextFieldEx = create( "", t.width, t.type, t.multiline, t.wordWrap, t.selectable, t.embedFonts, t.defaultTextFormat );
te.alpha = t.alpha;
te.alwaysShowSelection = t.alwaysShowSelection;
te.antiAliasType = t.antiAliasType;
te.autoSize = t.autoSize;
te.background = t.background;
te.backgroundColor = t.backgroundColor;
te.blendMode = t.blendMode;
//te.blendShader = t.blendShader;
te.border = t.border;
te.borderColor = t.borderColor;
te.cacheAsBitmap = t.cacheAsBitmap;
te.condenseWhite = t.condenseWhite;
te.displayAsPassword = t.displayAsPassword;
//te.embedFonts = t.embedFonts;
te.filters = t.filters;
te.gridFitType = t.gridFitType;
te.height = t.height;
te.opaqueBackground = t.opaqueBackground;
te.restrict = t.restrict;
//te.selectable = t.selectable;
te.sharpness = t.sharpness;
te.thickness = t.thickness;
te.transform = t.transform;
//te.type = t.type;
te.useRichTextClipboard = t.useRichTextClipboard;
//te.wordWrap = t.wordWrap;
//Assign text last
te.htmlText = t.htmlText;
return te;
//And the create method it uses
public static function create( text:String = "", width:Number = NaN, type:String = null, multiline:Boolean = false, wordWrap:Boolean = false, selectable:Boolean = true, embedFonts:Boolean = false, font_or_textformat:*=null, size:Object=null, color:Object=null, bold:Object=null, italic:Object=null, underline:Object=null, url:String=null, target:String=null, align:String=null, leftMargin:Object=null, rightMargin:Object=null, indent:Object=null, leading:Object=null ):TextFieldEx
var tf:TextFieldEx = new TextFieldEx();
tf.width = isNaN(width) ? 100 : width;
tf.defaultTextFormat = (font_or_textformat is TextFormat) ? (font_or_textformat as TextFormat) : new TextFormat( font_or_textformat as String, size, color, bold, italic, underline, url, target, align, leftMargin, rightMargin, indent, leading );
tf.embedFonts = embedFonts;
tf.multiline = multiline;
tf.wordWrap = wordWrap;
tf.selectable = selectable;
tf.type = type;
tf.text = text; //setting text last ensures the text line metrics returns correct values
//Initialize the TextField's size to fit the text.
if (!multiline)
//When in single-line mode and no specific width is given,
//expand width to entire line.
if (isNaN(width))
tf.width = tf.textWidth + 4; //match width of text
//Height is always automatically adjusted to fit the text by default.
//It's better than the arbitrary 100px default height.
var minimum_height = tf.getLineMetrics( 0 ).height;
var h:Number = tf.textHeight;
tf.height = (h < minimum_height) ? (minimum_height + 4) : (h + 4); //match height of text, ensuring height is at least enough to display one line, even if there is no text
return tf; -
Error when using composite type
HI i am getting following error when my plsql procedure uses composite type.
ORA-06530: Reference to uninitialized composite ORA-06512: at "PRODMSTR.PKG_BULKLOAD", line 65
PROCEDURE insertData(pd_rec temp_product_details%ROWTYPE)
IS
v_pdid product_details.pd_id%TYPE;
v_pdesc product_details.pd_desc%TYPE;
v_phid product_details.ph_id%TYPE;
v_rpdid product_details.pd_id%TYPE;
v_catid lkp_category.category_id%TYPE;
v_lfid lkp_life_cycle.life_cycle_id%TYPE;
v_ptid lkp_product_type.pt_id%TYPE;
v_tpvid lkp_third_party_vendor.tpv_id%TYPE;
v_product_details product_details_type;
v_product_market product_market_array;
v_product_data_type product_data_type;
out_par sys_refcursor;
BEGIN
IF(TRIM(pd_rec.product_id)IS NOT NULL) THEN
v_product_details.product_id:= TO_NUMBER(pd_rec.product_id);
ELSE
v_product_details.product_id:=0;
END IF;Here is the part of the code. The error occurs in line:
v_product_details.product_id:= TO_NUMBER(pd_rec.product_id);
Can anyone tell me why i am getting this?
Thanks a lot guys.Hi,
This could be due to the reason that the variable v_product_details is not initialized. It should be done by the constructor as product_details_type(NULL, NULL,...)
Please check .
Regards
K.Rajkumar -
PLS-00330: invalid use of type name or subtype name
I am relatively new to Sql and am in the process of learning, so please bear with me. I am trying to create a trigger for the Invoices table that displays the vendor_name, invoice_number, and payment_total after the payment_total has been increased. I have discovered that I must use a compound trigger due to a mutating-table error and ended up with this:
CREATE OR REPLACE TRIGGER invoices_after_update_payment
FOR UPDATE OF payment_total
ON invoices
COMPOUND TRIGGER
TYPE invoice_numbers_table IS TABLE OF VARCHAR2(50);
TYPE payment_totals_table IS TABLE OF NUMBER;
TYPE vendor_names_table IS TABLE OF VARCHAR2(50);
TYPE summary_payments_table IS TABLE OF NUMBER INDEX BY VARCHAR2(50);
TYPE summary_names_table IS TABLE OF NUMBER INDEX BY VARCHAR2(50);
invoice_numbers invoice_numbers_table;
payment_totals payment_totals_table;
vendor_names vendor_names_table;
payment_summarys summary_payments_table;
name_summarys summary_names_table;
AFTER STATEMENT IS
invoice_number VARCHAR2(50);
payment_total NUMBER;
vendor_name VARCHAR2(50);
BEGIN
SELECT i.invoice_number, i.payment_total, v.vendor_name
BULK COLLECT INTO invoice_numbers, payment_totals, vendor_names
FROM invoices i JOIN vendors v
ON i.vendor_id = v.vendor_id
GROUP BY i.invoice_number;
FOR i IN 1..invoice_numbers.COUNT() LOOP
invoice_number := invoice_numbers(i);
payment_total := payment_totals(i);
vendor_name := vendor_names(i);
summary_payments_table(invoice_number) := payment_total;
summary_names_table(invoice_number) := vendor_name;
END LOOP;
END AFTER STATEMENT;
AFTER EACH ROW IS
temp_payment_total NUMBER;
vendor_name VARCHAR2(50);
BEGIN
temp_payment_total := payment_summarys(:new.invoice_number);
vendor_name := name_summarys(:new.invoice_number);
IF (:new.payment_total > temp_payment_total) THEN
DBMS_OUTPUT.PUT_LINE('Vendor Name: ' || vendor_name || ', Invoice Number: ' || :new.invoice_number || ', Payment Total: ' || :new.payment_total);
END IF;
END AFTER EACH ROW;
END;
/The code that I am using to update the table is:
UPDATE invoices
SET payment_total = 508
WHERE invoice_number = 'QP58872'At this point, I am getting an error report saying:
29/7 PLS-00330: invalid use of type name or subtype name
29/7 PL/SQL: Statement ignored
30/7 PLS-00330: invalid use of type name or subtype name
30/7 PL/SQL: Statement ignoredWhat does the error code entail? I have looked it up but can't seem to pin it. Any help would be greatly appreciated and I am open to any suggestions for improving my current code.
I am using Oracle Database 11g Express Edition on Windows 7. I am not sure if it is relevant, but I am also using Sql Developer. If you need any further information, I will do my best to provide what I can.
Thanks!
Edited by: 927811 on Apr 15, 2012 11:54 PM
Edited by: 927811 on Apr 15, 2012 11:56 PMI took your advice and removed the exception handling. There is no point in it being there. I also checked the timing points and you are correct. So, I changed my AFTER STATEMENT to BEFORE STATEMENT, which I had been thinking about doing anyways. It just seemed logical to me. That brings me to where I am now. I ran my update again and got back this error, It is the same as the one before, but for a different line (?)
Error starting at line 1 in command:
UPDATE invoices
SET payment_total = 510
WHERE invoice_number = 'QP58872'
Error report:
SQL Error: ORA-06502: PL/SQL: numeric or value error: character to number conversion error
ORA-06512: at "AP.INVOICES_AFTER_UPDATE_PAYMENT", line 30
ORA-04088: error during execution of trigger 'AP.INVOICES_AFTER_UPDATE_PAYMENT'
06502. 00000 - "PL/SQL: numeric or value error%s"
*Cause:
*Action:Also, to make sure you are clear as to what my code now looks like:
SET SERVEROUTPUT ON;
CREATE OR REPLACE TRIGGER invoices_after_update_payment
FOR UPDATE OF payment_total
ON invoices
COMPOUND TRIGGER
TYPE invoice_numbers_table IS TABLE OF VARCHAR2(50);
TYPE payment_totals_table IS TABLE OF NUMBER;
TYPE vendor_names_table IS TABLE OF VARCHAR2(50);
TYPE summary_payments_table IS TABLE OF NUMBER INDEX BY VARCHAR2(50);
TYPE summary_names_table IS TABLE OF NUMBER INDEX BY VARCHAR2(50);
invoice_numbers invoice_numbers_table;
payment_totals payment_totals_table;
vendor_names vendor_names_table;
payment_summarys summary_payments_table;
name_summarys summary_names_table;
BEFORE STATEMENT IS
invoice_number VARCHAR2(50);
payment_total NUMBER;
vendor_name VARCHAR2(50);
BEGIN
SELECT i.invoice_number, i.payment_total, v.vendor_name
BULK COLLECT INTO invoice_numbers, payment_totals, vendor_names
FROM invoices i JOIN vendors v
ON i.vendor_id = v.vendor_id
GROUP BY i.invoice_number, i.payment_total, v.vendor_name;
FOR i IN 1..invoice_numbers.COUNT() LOOP
invoice_number := invoice_numbers(i);
payment_total := payment_totals(i);
vendor_name := vendor_names(i);
payment_summarys(invoice_number) := payment_total;
name_summarys(invoice_number) := vendor_name;
END LOOP;
END BEFORE STATEMENT;
AFTER EACH ROW IS
temp_payment_total NUMBER;
vendor_name VARCHAR2(50);
BEGIN
temp_payment_total := payment_summarys(:new.invoice_number);
vendor_name := name_summarys(:new.invoice_number);
IF (:new.payment_total > temp_payment_total) THEN
DBMS_OUTPUT.PUT_LINE('Vendor Name: ' || vendor_name || ', Invoice Number: ' || :new.invoice_number || ', Payment Total: ' || :new.payment_total);
END IF;
END AFTER EACH ROW;
END;
/Thanks for the help! -
PCR Social Security: Want to use wage type amount for comparison
Dear Guru's,
hope u'll b fine and enjoying good health. Below is PCR for social security that I hav currently configured. Its working fine. However I have another scenario to add in this PCR.
Existing PCR works on the following logic
6% of Gross pay if employee's pay less than or equal to 10,000/-.
KZPESI=10000 from T511K
KZMESI=6 from T511K
IZPESI=600 from T511P
Now i want to add another comparison. also calculate Social security for employee those hire on pay less than or equal to 10,000 but currently have salary greater than 10K. for this I'll enter Social security amount in IT0014 subtype 6004. I
ZSSM Personnal Calculation Rule ZSSM
3
6004 Social security Contrib
AMT= 0001 Set
AMT+ 0002 Addition
AMT+ 0003 Addition
AMT+ 0004 Addition
AMT+ 1001 Addition
ROUNDGK100 Round AMT to next
AMT?KZPESI Comparison
<
AMT*KZMESI Multiplication
AMT/100 Division
RTE=TKSOLL Set
RTE-TKAU** Subtraction
ROUNDGK100 Round AMT to next
ADDWT * OT Output table
=
AMT/TKDIVI Division
RTE=TKSOLL Set
RTE=TKAU** Set
MULTI ARA Multipl.amt/no/rate
AMT=IZPESI Set
ROUNDGK100 Round AMT to next
ADDWT * OT Output table
>
if there is a value in 0014 subtype 6004 then
AMT/TKDIVI Division
RTE=TKSOLL Set
RTE=TKAU** Set
MULTI ARA Multipl.amt/no/rate
AMT=IZPESI Set
ROUNDGK100 Round AMT to next
ADDWT * OT Output table
Want to know how I can use wage type amount in comparison. look at the above lines in bold where i want to apply
kindly help
Edited by: Imran on Oct 21, 2010 11:40 AMKZPESI=10000 from T511K
KZMESI=6 from T511K
IZPESI=600 from T511P
Social security wage type is 6004 and it is subtype of 0014.
ZSSM Personnal Calculation Rule ZSSM
3
6004 Social security Contrib
AMT= 0001 Set
AMT+ 0002 Addition
AMT+ 0003 Addition
AMT+ 0004 Addition
AMT+ 1001 Addition
ROUNDGK100 Round AMT to next
AMT?KZPESI Comparison
>
At this point I want to set another comparison based on amount in 6004.
if Amount in 6004 is > 0 then
do calculation.
hope it'll b more clear now -
PCR Social security: want to use wage type amount in decision operation
PCR Social Security: Want to use wage type amount for comparison
Posted: Oct 21, 2010 11:00 AM Reply
Dear Guru's,
hope u'll b fine and enjoying good health. Below is PCR for social security that I hav currently configured. Its working fine. However I have another scenario to add in this PCR.
Existing PCR works on the following logic
6% of Gross pay if employee's pay less than or equal to 10,000/-.
KZPESI=10000 from T511K
KZMESI=6 from T511K
IZPESI=600 from T511P
Now i want to add another comparison. also calculate Social security for employee those hire on pay less than or equal to 10,000 but currently have salary greater than 10K. for this I'll enter Social security amount in IT0014 subtype 6004. I
ZSSM Personnal Calculation Rule ZSSM
3
6004 Social security Contrib
AMT= 0001 Set
AMT+ 0002 Addition
AMT+ 0003 Addition
AMT+ 0004 Addition
AMT+ 1001 Addition
ROUNDGK100 Round AMT to next
AMT?KZPESI Comparison
<
AMT*KZMESI Multiplication
AMT/100 Division
RTE=TKSOLL Set
RTE-TKAU** Subtraction
ROUNDGK100 Round AMT to next
ADDWT * OT Output table
=
AMT/TKDIVI Division
RTE=TKSOLL Set
RTE=TKAU** Set
MULTI ARA Multipl.amt/no/rate
AMT=IZPESI Set
ROUNDGK100 Round AMT to next
ADDWT * OT Output table
>
if there is a value in 0014 subtype 6004 then
AMT/TKDIVI Division
RTE=TKSOLL Set
RTE=TKAU** Set
MULTI ARA Multipl.amt/no/rate
AMT=IZPESI Set
ROUNDGK100 Round AMT to next
ADDWT * OT Output table
Want to know how I can use wage type amount in comparison. look at the above lines in bold where i want to apply
kindly help
Edited by: Imran on Oct 21, 2010 11:40 AMYou say "if there is a value in 0014 subtype 6004 then...", so I will assume that you are talking of WT 6004 in Infotype 0014.
So, in a PCR immediately after IT0014 is processed (with function P0014 in your schema), look for WT 6004. If it exists with a number (or an amount), create a temporary variable to act as a "flag" (as in ADDWT&6004 or ADDWT&HIRE).
Then, in PCR ZSSM, you can query that temporary variable with the sequence of operations NUM=& HIRE NUM?0 (or NUM=& 6004 NUM?0 ). If the return value is =, it means that there was no IT0014 with WT 6004, and if the return value is * it means that there was. -
Our Ipad type line for text disappears after taking a photo to send and only after a restart
Hello. We have two Ipads and two Iphones. Our newest Ipad has an issue with I message. If we take a photo to send by text the type screen and line disappears. The only way to get it back is to shut the device and then the type line returns. We have turned the message off on on with the same result. Our Ipad 2 and both our 4s and 5 phones don't seem to have the issue. Any thoughts? We are also did the icloud update and no change happened. Is this a bug or are we missing something? Messaging works fine until we take a picture then the type bar and keyboard disappear. The taken photo goes to photos.. The only way to get messages to work is to shut off the device and then it works until we try to add another new picture. It seems to work if we use an existing photo from the library.
This sounds like you may have the camera's "Image Review" option set to "hold".
When you take a photo, two things normally happen.
1) The camera should write the image to your memory card. You'll know when it's writing to your memeory card because there is a red LED ligth which is active when the camera is using the card. When the light goes out, the camera is finished.
2) The camera can be set to do "Image Review". By default, when you take an exposure, the camera will display the image on the rear screen for just a few seconds. But this behavior can be customized.
Your choices for image review are "Off", 2 seconds, 4 seconds, 8 seconds, or "Hold". If Off is selected you wont get any image review. If "Hold" is selected, the image you just took will appear on the rear LCD and will never go away until you manually clear it. You can just do a half-press of the shutter button to clear it (it wont get in the way of you taking more shots... just ignore it.)
You can find instructions on this on page 166 of your T3i Instruction Manual which describes how to change this setting.
Tim Campbell
5D II, 5D III, 60Da -
Q] Why do we use
SKIP TO LINE Syntax ?hi,
hope this helps u
If the list cursor is positioned in the first list line using SKIP TO LINE, and the list has a standard page header, the output in the first line is overwritten by the standard header. If, however,the cursor is positioned using SKIP TO LINE in the lines of page headers and page footers that are defined for TOP-OF-PAGE and END-OF-PAGE, the page headers or footers are overwritten.
REPORT demo_skip NO STANDARD PAGE HEADING.
DATA sum TYPE i.
TOP-OF-PAGE.
SKIP.
ULINE.
START-OF-SELECTION.
DO 10 TIMES.
WRITE / sy-index.
sum = sum + sy-index.
ENDDO.
SKIP TO LINE 1.
WRITE: 'Numbers with sum' COLOR COL_HEADING,
sum COLOR COL_TOTAL. -
USE OF AT LINE-SELECTION IN AN ALV_GRID REPORT
Hi people,
I am a learner in Abap. I have generated a report through 'REUSE_ALV_GRID_DISPLAY'.
Now I want to display the additional records of the contents of the line which gets selected,
help me to do that.
any report code which does the same thing will be more helpful to me.
thanks in advance,
Regards,
Vikram DevHi vikram,
1. In alv we cannot use AT LINE Selection
2. For alv, there is a special syntax, so that when we double-click on alv,
our FORM / routine is called and there we display another alv.
3. just copy paste to get a taste of interactive alv.
4.
REPORT abc.
TYPE-POOLS : slis.
Data
DATA : ITAB LIKE T001 OCCURS 0 WITH HEADER LINE.
DATA : alvfc TYPE slis_t_fieldcat_alv.
DATA : STAB LIKE T001 OCCURS 0 WITH HEADER LINE.
Select Data
SELECT * FROM t001 INTO TABLE itab.
*------- Field Catalogue
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_internal_tabname = 'ITAB'
i_inclname = sy-repid
CHANGING
ct_fieldcat = alvfc
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
Display
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
it_fieldcat = alvfc
i_callback_program = sy-repid "<-------Important
i_callback_user_command = 'ITAB_USER_COMMAND' "<------ Important
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
CALL BACK FORM
FORM itab_user_command USING whatcomm TYPE sy-ucomm whatrow TYPE
slis_selfield.
IMPORTANT.
READ TABLE ITAB INDEX WHATROW-TABINDEX.
CLEAR STAB.
SELECT * FROM T001
INTO TABLE STAB
WHERE BUKRS = ITAB-BUKRS.
CLEAR ALVFC.
*------- Field Catalogue
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_internal_tabname = 'STAB'
i_inclname = sy-repid
CHANGING
ct_fieldcat = alvfc
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
Display
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
it_fieldcat = alvfc
i_callback_program = sy-repid "<-------Important
TABLES
t_outtab = Stab
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDFORM. "ITAB_user_command
regards,
amit m. -
Using both at line-selection and at user-command
hellow friends ,
to use both at line-selection and at user-command in the same report.Hello,
U can do it like this.
AT LINE-SELECTION.
PERFORM at_line_selection.
AT USER-COMMAND.
PERFORM at_user_command.
FORM AT_LINE_SELECTION.
DATA: LV_CURSOR_FIELD(30).
DATA: LV_MATNR TYPE MATNR.
CLEAR H_UCOMM.
GET CURSOR FIELD LV_CURSOR_FIELD.
CASE LV_CURSOR_FIELD.
WHEN 'PSPNR'.
PERFORM LAGER_AN_PSP USING WA_MATNR-M1-RSNUM
WA_MATNR-M1-RSPOS.
WHEN 'PSPNR2'.
H_UCOMM = 'PSPNR2'.
IF NOT PSPNR2 IS INITIAL AND IT_VKBEL-VBELN CN '0123456789'.
PERFORM LAGER_AN_PSP_VKBEL USING IT_VKBEL
0
PSPNR2
H_MAKTX
' '. "keine Blindbuchung
ENDIF.
ENDCASE.
CASE SY-UCOMM.
WHEN 'BACK_NEW'.
PERFORM NEU_START USING 'X'.
WHEN 'EXIT'.
PERFORM NEU_START USING 'X'.
WHEN 'CANC'.
PERFORM NEU_START USING 'X'.
WHEN 'CHECK'.
PERFORM NEU_START USING SPACE.
ENDCASE.
Vasanth -
On Fox, when I right click on an image I get the option "Save Image As" then on the next window the "save as Type" line is blank, and the image can't be saved.
I copy the www. address and paste it on internet Explorer, and the save process goes routinely.Hey cor-el, that was the next in the list
1-14-22 3PM JAG to Firefox
The next step in the "Unable to download or save files" section of help states:
Reset download actions for all file types
To reset how all file types are handled by Firefox back to default:
1. Open your profile folder:
1. At the top of the Firefox window, click on the Firefox button, go over to the Help menu (on Windows XP, click on the Help menu) and select Troubleshooting Information. The Troubleshooting Information tab will open.
2. Under the Application Basics section, click on Open Containing Folder. A window with your profile files will open.
Note: If you are unable to open or use Firefox, follow the instructions in Finding your profile without opening Firefox.
2. At the top of the Firefox window, click on the Firefox button (File menu in Windows XP) and then click Exit.
3. Rename the mimeTypes.rdf file to mimeTypes.rdf.old .
4. Restart Firefox.
Steps 2+3 are in reverse order
I did this and now there are 2 files. The old one has a “date modified” of 12-27-11 a couple weeks before the problem, and the new one modified today.
No change in the problem. -
How to access the mysql using ordinary command line in Azure Website?
Hi
I deploying Django project on Azure. I created project and MySQL db according this method: https://pytools.codeplex.com/wikipage?title=PollsDjangoSql . I can create tables using django command "syncdb" in Visual Studio. I see
db structure in SQL Explorer. All works. But now I need to get access directly to mysql. For example with a view to set encoding of some column, or set permissions, change user password, etc.
I found about many different tools and methods in Microsoft portal. But the purpose of these tools, how to install it and how to use it is a very entangled (After several attempts to find out what's what two weeks later I found on my computer
three dozen programs with unknown purpose. I doubt that I need to install so many tools to just add the user in mysql).
How to access the mysql using ordinary command line (or the same simple tool) in my case?Hi pvgdrk,
To get access directly to a mysql database, you can use the commandline tool(open a cmd window-->type mysql the commadline ) or the
GUI MySQL workbench.
Since this is a question about MySQL, I would suggest you post your question in a dedicated MySQL forum. You will get more prompt response.
If you have any feedback on our support, please click
here.
Eric Zhang
TechNet Community Support
Maybe you are looking for
-
Is there a limit to number of hyperlinks in an InDesign document?
Anyone know if there is a limit to the number of hyperlinks that can be used in an InDesign document that is to be exported as an interactive PDF? Looking to include up to 500 or so links to different URLs and would like to know if there is a limit b
-
When I sync with my Sony W850i all the calender information is deleted prior to one month ago (or whatever period is selected). Is there any way that I can perform a sync that does not delete old data? I want the two calenders to look at each other,
-
Error in Transporting Transfer rule/structure to Q for generic DS
Hi, We're in NW2004s. we're getting error when we transport Transfer Rules and Structure of generic data sources to Q. In R3 Q the DS is active and it pulls data in RSA3 and it is replicated and all the fields are available in BW side as well, but wh
-
MBP extremely slow after upgrading to Lion. Help please.
Hello, I'm using a MacBook Pro and just loved it while it was still on Snow Leopard. I upgraded to Lion a month ago and thought the reason for my MBP delay in EVERYTHING was because it was still indexing all the files or getting used to the new OS. H
-
Weblogic HTTP Authentication on 11g webservice
Hi all We are recently migrating webservice from 10g to 11g, but keep 10g client use for connecting the new 11g interface. Due to previous technical limitation, the 10g client is found failed to connect 11g and thus we built a middleware between them