How to convert this 'CAPITAL' in to small letter 'capital.'
Hi All,
I have a variable wk_text = 'CAPITAL'.
How to convert this 'CAPITAL' in to small letter 'capital.'
Hi,
Use like below code.
DATA text TYPE string.
text = `Careful with that Axe, Eugene`.
TRANSLATE text TO UPPER CASE.
Regards,
Pravin
Similar Messages
-
How to convert this Servlet into JSP
I am trying to convert this Servlet into JSP page.
How do I go about doing this?
Thanks.
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
import java.text.*;
/** Shows all items currently in ShoppingCart. Clients
* have their own session that keeps track of which
* ShoppingCart is theirs. If this is their first visit
* to the order page, a new shopping cart is created.
* Usually, people come to this page by way of a page
* showing catalog entries, so this page adds an additional
* item to the shopping cart. But users can also
* bookmark this page, access it from their history list,
* or be sent back to it by clicking on the "Update Order"
* button after changing the number of items ordered.
* <P>
* Taken from Core Servlets and JavaServer Pages 2nd Edition
* from Prentice Hall and Sun Microsystems Press,
* http://www.coreservlets.com/.
* © 2003 Marty Hall; may be freely used or adapted.
public class OrderPage extends HttpServlet {
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
HttpSession session = request.getSession();
ShoppingCart cart;
synchronized(session) {
cart = (ShoppingCart)session.getAttribute("shoppingCart");
// New visitors get a fresh shopping cart.
// Previous visitors keep using their existing cart.
if (cart == null) {
cart = new ShoppingCart();
session.setAttribute("shoppingCart", cart);
String itemID = request.getParameter("itemID");
if (itemID != null) {
String numItemsString =
request.getParameter("numItems");
if (numItemsString == null) {
// If request specified an ID but no number,
// then customers came here via an "Add Item to Cart"
// button on a catalog page.
cart.addItem(itemID);
} else {
// If request specified an ID and number, then
// customers came here via an "Update Order" button
// after changing the number of items in order.
// Note that specifying a number of 0 results
// in item being deleted from cart.
int numItems;
try {
numItems = Integer.parseInt(numItemsString);
} catch(NumberFormatException nfe) {
numItems = 1;
cart.setNumOrdered(itemID, numItems);
// Whether or not the customer changed the order, show
// order status.
response.setContentType("text/html");
PrintWriter out = response.getWriter();
String title = "Status of Your Order";
String docType =
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 " +
"Transitional//EN\">\n";
out.println(docType +
"<HTML>\n" +
"<HEAD><TITLE>" + title + "</TITLE></HEAD>\n" +
"<BODY BGCOLOR=\"#FDF5E6\">\n" +
"<H1 ALIGN=\"CENTER\">" + title + "</H1>");
synchronized(session) {
List itemsOrdered = cart.getItemsOrdered();
if (itemsOrdered.size() == 0) {
out.println("<H2><I>No items in your cart...</I></H2>");
} else {
// If there is at least one item in cart, show table
// of items ordered.
out.println
("<TABLE BORDER=1 ALIGN=\"CENTER\">\n" +
"<TR BGCOLOR=\"#FFAD00\">\n" +
" <TH>Item ID<TH>Description\n" +
" <TH>Unit Cost<TH>Number<TH>Total Cost");
ItemOrder order;
// Rounds to two decimal places, inserts dollar
// sign (or other currency symbol), etc., as
// appropriate in current Locale.
NumberFormat formatter =
NumberFormat.getCurrencyInstance();
// For each entry in shopping cart, make
// table row showing ID, description, per-item
// cost, number ordered, and total cost.
// Put number ordered in textfield that user
// can change, with "Update Order" button next
// to it, which resubmits to this same page
// but specifying a different number of items.
for(int i=0; i<itemsOrdered.size(); i++) {
order = (ItemOrder)itemsOrdered.get(i);
out.println
("<TR>\n" +
" <TD>" + order.getItemID() + "\n" +
" <TD>" + order.getShortDescription() + "\n" +
" <TD>" +
formatter.format(order.getUnitCost()) + "\n" +
" <TD>" +
"<FORM>\n" + // Submit to current URL
"<INPUT TYPE=\"HIDDEN\" NAME=\"itemID\"\n" +
" VALUE=\"" + order.getItemID() + "\">\n" +
"<INPUT TYPE=\"TEXT\" NAME=\"numItems\"\n" +
" SIZE=3 VALUE=\"" +
order.getNumItems() + "\">\n" +
"<SMALL>\n" +
"<INPUT TYPE=\"SUBMIT\"\n "+
" VALUE=\"Update Order\">\n" +
"</SMALL>\n" +
"</FORM>\n" +
" <TD>" +
formatter.format(order.getTotalCost()));
String checkoutURL =
response.encodeURL("../Checkout.html");
// "Proceed to Checkout" button below table
out.println
("</TABLE>\n" +
"<FORM ACTION=\"" + checkoutURL + "\">\n" +
"<BIG><CENTER>\n" +
"<INPUT TYPE=\"SUBMIT\"\n" +
" VALUE=\"Proceed to Checkout\">\n" +
"</CENTER></BIG></FORM>");
out.println("</BODY></HTML>");
}Sorry.
actually this is my coding on the bottom.
Pleease disregard my previous coding. I got the different one.
My first approach is using <% %> around the whole doGet method such as:
<%
String[] ids = { "hall001", "hall002" };
setItems(ids);
setTitle("All-Time Best Computer Books");
out.println("<HR>\n</BODY></HTML>");
%>
I am not sure how to break between code between
return;
and
response.setContentType("text/html");
Here is my coding:
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException
String[] ids = { "hall001", "hall002" };
setItems(ids);
setTitle("All-Time Best Computer Books");
if (items == null) {
response.sendError(response.SC_NOT_FOUND,
"Missing Items.");
return;
response.setContentType("text/html");
PrintWriter out = response.getWriter();
String docType =
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 " +
"Transitional//EN\">\n";
out.println(docType +
"<HTML>\n" +
"<HEAD><TITLE>" + title + "</TITLE></HEAD>\n" +
"<BODY BGCOLOR=\"#FDF5E6\">\n" +
"<H1 ALIGN=\"CENTER\">" + title + "</H1>");
CatalogItem item;
for(int i=0; i<items.length; i++) {
out.println("<HR>");
item = items;
if (item == null) {
out.println("<FONT COLOR=\"RED\">" +
"Unknown item ID " + itemIDs[i] +
"</FONT>");
} else {
out.println();
String formURL =
"/servlet/coreservlets.OrderPage";
formURL = response.encodeURL(formURL);
out.println
("<FORM ACTION=\"" + formURL + "\">\n" +
"<INPUT TYPE=\"HIDDEN\" NAME=\"itemID\" " +
" VALUE=\"" + item.getItemID() + "\">\n" +
"<H2>" + item.getShortDescription() +
" ($" + item.getCost() + ")</H2>\n" +
item.getLongDescription() + "\n" +
"<P>\n<CENTER>\n" +
"<INPUT TYPE=\"SUBMIT\" " +
"VALUE=\"Add to Shopping Cart\">\n" +
"</CENTER>\n<P>\n</FORM>");
out.println("<HR>\n</BODY></HTML>"); -
How to convert this random pos AS2 code to AS3?
Hi! I'm doing a sort of screensaver and need to random the logo all over the screen. In ActionScript 2 it was easy, just paste some code to the object and it works. The things to do this is total different in ActionScript 3 and I can't figure out how to solve this. It would be nice if someone could take a look at my very simple example and point me in the right direction. Maybe there is some example out there done in AS3?
I can't figure out how to post fla so I renamed it to jpg. Just change the extension to fla again...
Regards / JimmySORRY FOR THE LATE RESPONSE I WAS NOT ONLINE FOR THREE DAYS....
I am still not able to download the file.
What you can do is enclose the code which is called directly on the timeline in a function and call that function whenever required.
You can also send the file on my mail ID at [email protected] [Make sure you zip it and the version is saved in CS3] -
How to convert this BSO formulas into ASO formulas ?
I need some help to convert this BSO formulas into ASO formulas:
BSO formulas:
12*("Head Count"->"Terminated"/((@PRIOR("Head Count"-> "Total Active & Leave")+"Head Count"->"Total Active & Leave")/2));
"Head Count" is a member of the Account dimension
"Terminated" and "Total Active & Leave" are members of the Status dimension
Existing Active
New Hire
Active
MAT
STD
OTH
Leave
Total Active & Leave
Voluntary
Involuntary
Death
Retirement
End of Temp Assignment
Terminated
LTD
Total Status
Promotion Within Level
Promotion to Higher Level
Promotion
No Total Status
All Status
Status (Dimension)
In ASO, the formulas will be ??
ThanksTry
CASE WHEN IS([Period].CurrentMember, [Jan]) THEN
12 * (([Head Count], [Terminated] ) /
((( [Head Count], [Total Active & Leave], [Dec], [Year].CurrentMember.lag(1) ) +
([Head Count], [Total Active & Leave])) / 2))
ELSE
12 * (([Head Count], [Terminated] ) /
((( [Head Count], [Total Active & Leave], [Time].CurrentMember.lag(1) ) +
([Head Count], [Total Active & Leave])) / 2))
ENDTake note this assumes your Year dimension is in descending order
Year
--2007
--2008
--2009
If Year is in Ascending order
Year
--2009
--2008
--2007
Then you need to change
[Year].CurrentMember.lag(1) to
[Year].CurrentMember.lead(1) -
How to convert a large PDF into smaller files
How does one convert a large PDF file into smaller files and not get odd page breaks. Need to get the page breaks at the headers. Just looking for instructions for an end user of Acrobat Pro who reports getting random page breaks and couldn't get help from the Adobe help desk. I was directed here when I tried to contact support ... Figure this forum may have information. ... thanks.
You can't. If you split the file into pages it will remain in the same layout the original has. PDF files were not meant to be edited in the way you're describing.
-
How to convert this select statement into update
Hai All
I have two table Namely Daily_attend , Train_mast
Daily_attend Consist Of fields are Train_mast consist Of fields are
Name varchar Train no var
Empcode Num T_date date
Intime Date Train_name var
Outtime date Late_hrs var
IND_IN Number
IDE_OUT Number
Attend_date date
I need to update IDE_IN In Daily_attend table Depend upon late_hrs in the Train_mast table
I have got Through in select statement This is my select statement
select to_number(TO_DATE(TO_CHAR(Intime,'DD-MON-YYYY')||' '||
TO_CHAR(0815,'0000'),'DD-MON-YYYY HH24:MI')+late_hrs/(24*60)-intime
) * 24*60 from dail_Att,train_mast;
How can i convert it to update
Any help is highly appricateable
Thanks In Advance
Regards
Srikkanth.MSrikkanth,
Try this code. And 1 more thing, i can't see any WHERE condition to join between the 2 tables DAIL_ATT, TRAIN_MAST.
UPDATE DAIL_ATT A SET A.IDE_IN = (SELECT TO_NUMBER(TO_DATE(TO_CHAR(INTIME, 'DD-MON-YYYY')|| ' ' || TO_CHAR(0815, '0000'), 'DD-MON-YYYY HH24:MI') + LATE_HRS / (24 * 60) - INTIME) * 24 * 60 FROM TRAIN_MAST B WHERE <condition>);Regards,
Manu.
If my response or the response of another was helpful or Correct, please mark it accordingly -
How to converts this string to a new character array???
I have string that get from g.getDirectory();
that string is "D:\Songs\Judas Priest"
and I want to convert to charArray[][] = {{"D",":","\","S","o","n",.....}};
how can I do it??
:'(I have ploblem again :'(
indeed I want to change string
D:\Songs\Judas Priest
to
D:/Songs/Judas Priest
I do this for upload my picture to program by directory
but when I use getDirectory();
It only save "D:\Songs\Judas Priest"
so I must change "\" to "/"
I think I must use "for" and check if it found "\" it will be change to "/"
but I don't know how to write?
public String[][] sliceNwrap(String str){
dir[0] = new String[str.length()];
for(int ndx=0;ndx<str.length();ndx++){
if(str.substring(ndx, ndx+1)=="\\"){
dir[0][ndx]= "/";
else{
dir[0][ndx] = str.substring(ndx, ndx+1);
return dir;
It still "D:\Songs\Judas Priest" :'( help me plz -
How to convert this into alv display and also change parameterstoselect opt
tables :mara,marc,stpo.
parameters: p_werks like t001w-werks obligatory,
p_matnr like mara-matnr obligatory.
*select-options : p_matnr for mara-matnr obligatory.
*parameters: p_werks like marc-werks obligatory,
*p_matnr like marc-matnr obligatory.
constants c_x value 'X'.
data: begin of it_comp occurs 0,
idnrk like stpox-idnrk,
ojtxp like stpox-ojtxp,
menge like stpox-menge,
meins like stpox-meins,
matkl like stpox-matmk,
end of it_comp.
data: w_topmat like cstmat.
start-of-selection.
perform explode_assembly.
end-of-selection.
perform write_report.
top-of-page.
perform print_header.
form print_header.
write: /(18) 'Component'(h00),
(40) 'Description'(h01),
'Mat.Group'(h02),
(18) 'Quantity'(h03).
uline.
endform.
form write_report.
write: / w_topmat-matnr under text-h00 color col_heading,
w_topmat-maktx under text-h01 color col_heading.
loop at it_comp.
write: /
it_comp-idnrk under text-h00,
it_comp-ojtxp under text-h01,
it_comp-matkl under text-h02,
it_comp-menge unit it_comp-meins under text-h03,
it_comp-meins.
endloop.
uline.
endform.
form explode_assembly.
data: it_stb like stpox occurs 0 with header line,
it_stb2 like stpox occurs 0 with header line,
it_stb3 like stpox occurs 0 with header line,
w_msg(255) type c.
Explode highest level:
call function 'CS_BOM_EXPL_MAT_V2'
exporting
auskz = c_x
capid = 'PP01'
cuols = c_x
datuv = sy-datum
knfba = c_x
ksbvo = c_x
mbwls = c_x
mdmps = c_x
BGIXO = c_x
MKMAT = c_x
MMAPS = c_x
FBSTP = c_x
FTREL = c_x
mtnrv = p_matnr
werks = p_werks
importing
topmat = w_topmat
tables
stb = it_stb
exceptions
alt_not_found = 1
call_invalid = 2
material_not_found = 3
missing_authorization = 4
no_bom_found = 5
no_plant_data = 6
no_suitable_bom_found = 7
conversion_error = 8
others = 9.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
into w_msg.
write: / w_msg.
exit.
endif.
Don't process documents
delete it_stb where idnrk is initial.
Don't process valid from furure:
delete it_stb where datuv >= sy-datum.
Explode phantom assemblies up to last level
*do.
it_stb2[] = it_stb[].
*delete it_stb2 where dumps is initial.
*if it_stb2[] is initial.
*exit.
*endif.
*delete it_stb where not dumps is initial.
delete it_stb where VPRSV <> 'S' OR MMSTA = '61'.
loop at it_stb2.
call function 'CS_BOM_EXPL_MAT_V2'
exporting
capid = 'PP01'
auskz = c_x
cuols = c_x
datuv = sy-datum
knfba = c_x
ksbvo = c_x
mbwls = c_x
mdmps = c_x
FBSTP = c_x
FTREL = c_x
mtnrv = it_stb2-idnrk
werks = p_werks
tables
stb = it_stb3
exceptions
alt_not_found = 1
call_invalid = 2
material_not_found = 3
missing_authorization = 4
no_bom_found = 5
no_plant_data = 6
no_suitable_bom_found = 7
conversion_error = 8
others = 9.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
into w_msg.
write: / w_msg.
else.
delete it_stb3 where idnrk is initial.
delete it_Stb3 where sobsl = 50.
loop at it_stb3 .
multiply it_stb3-menge by it_stb2-menge.
modify it_stb3 transporting menge.
endloop.
append lines of it_stb3 to it_stb.
endif.
endloop.
*enddo.
Build table of components collecting the same components from
all levels
loop at it_stb.
it_comp-matkl = it_stb-matmk.
it_comp-idnrk = it_stb-idnrk.
it_comp-ojtxp = it_stb-ojtxp.
it_comp-menge = it_stb-menge.
it_comp-meins = it_stb-meins.
collect it_comp.
clear it_comp.
endloop.
ENDFORM.
using this i got the bom explosion and also i tried to use the following code
to diplay alv diplay,but i got the errormsg,
here i got only one material input,instead of i want to use
select options to from to ,if i give 1 to 10 material
ouput is
material 1
descripn
bom and components
materials 2
desc
bom comp
TYPE-POOLS : SLIS.
DATA : IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
DATA : WA_FIELDCAT_LN LIKE LINE OF IT_FIELDCAT.
DATA : IT_EVENTCAT TYPE SLIS_T_EVENT.
DATA : WA_EVENTCAT_LN LIKE LINE OF IT_EVENTCAT.
DATA : IT_LAYOUT TYPE SLIS_LAYOUT_ALV.
DATA: S_COL_POS TYPE I.
DATA : IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
DATA : WA_FIELDCAT_LN LIKE LINE OF IT_FIELDCAT.
DATA : IT_EVENTCAT TYPE SLIS_T_EVENT.
DATA : WA_EVENTCAT_LN LIKE LINE OF IT_EVENTCAT.
DATA : IT_LAYOUT TYPE SLIS_LAYOUT_ALV.
DATA: S_COL_POS TYPE I.
DATA : IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
DATA : WA_FIELDCAT_LN LIKE LINE OF IT_FIELDCAT.
DATA : IT_EVENTCAT TYPE SLIS_T_EVENT.
DATA : WA_EVENTCAT_LN LIKE LINE OF IT_EVENTCAT.
DATA : IT_LAYOUT TYPE SLIS_LAYOUT_ALV.
DATA: S_COL_POS TYPE I.
FORM BUILD_FIELDCATALOG.
PERFORM BUILD_FIELDCAT USING 'MATKL'.
PERFORM BUILD_FIELDCAT USING 'IDNRK.
PERFORM BUILD_FIELDCAT USING 'OJTXP.
PERFORM BUILD_FIELDCAT USING 'MENGE'.
PERFORM BUILD_FIELDCAT USING 'MEINS'.
ENDFORM.
FORM TO BUILD IN FIELD CATALOG FOR ALV FORM
FORM BUILD_FIELDCAT USING L_FIELDNAME LIKE DD03L-FIELDNAME S_TEXT LIKE DD03P-SCRTEXT_M.
CLEAR WA_FIELDCAT_LN.
ADD 1 TO S_COL_POS.
WA_FIELDCAT_LN-REF_TABNAME = 'IT_COMP'.
WA_FIELDCAT_LN-FIELDNAME = L_FIELDNAME.
WA_FIELDCAT_LN-SELTEXT_M = S_TEXT.
WA_FIELDCAT_LN-COL_POS = S_COL_POS.
WA_FIELDCAT_LN-QFIELDNAME = SPACE.
WA_FIELDCAT_LN-HOTSPOT = SPACE.
WA_FIELDCAT_LN-JUST = 'R'.
APPEND WA_FIELDCAT_LN TO IT_FIELDCAT.
ENDFORM.
FORM TO BUILD IN FIELD CATALOG FOR ALV FORM
FORM DATA_DISPLAY.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE = TEXT-001
I_GRID_SETTINGS =
IS_LAYOUT =
IT_FIELDCAT = IT_FIELDCAT
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = IT_COMP
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
GIVE ME SOLUTION FOR THAT ON, VERY URGENT
THANKS IN ADVANCE
regards
dsHi
declare select-options instead of parameters
for converting a report to ALV
create a field catalog.
for this two option declare a itab with
fcat TYPE slis_t_fieldcat_alv
and pass the field name,descr etc to fcat and append the same.
or create structur same as your itab and pass the same with FM
'REUSE_ALV_FIELDCATALOG_MERGE'
use either <b>reuse_alv_grid_display or reuse_alv_list_display</b> .
and pass the itab.
thanks
Shiva -
How to convert this SQL query to PL/SQL
I basically need to create an anonymous block that will display each student's first name, last name and the count of students who scored less on test 1 than the student.
So basically we need to find the count of students who have scored less than that particular student and we do it for all students in the table.
So for this particular query i designed my code in SQL
select g1.gr_fname, g1.gr_lname, count(*)
from grade g1, grade g2
where g1.gr_t1 > g2.gr_t1 and
g1.std_code = g2.std_code
group by g1.gr_fname, g1.gr_lname;
But i am unable to get the logic as to how to execute it in PL/SQL,I am missing something a minor detail to execute the same in PL/SQL
could someone please help me with the logic.
ThanksHi welcome to the forum try some thing below
SQL> DECLARE
2 CURSOR c1
3 IS
4 SELECT ename, sal, d.deptno
5 FROM scott.emp e, scott.dept d
6 WHERE e.deptno = d.deptno
7 GROUP BY ename, sal, d.deptno;
8 BEGIN
9 FOR c2 IN c1
10 LOOP
11 DBMS_OUTPUT.put_line ('name is ' || c2.ename);
12 END LOOP;
13 END;
14 /
name is CLARK
name is KING
name is JONES
name is MARTIN
name is FORD
name is SCOTT
name is ALLEN
name is TURNER
name is WARD
name is MILLER
name is ADAMS
name is BLAKE
name is JAMES
name is SMITH
PL/SQL procedure successfully completed.This is just to demonstrate the use of PL/SQL block -
How to converts this string[ ][ ] to string[ ]
I have String a[ ][ ]= {{"D",":","/","S","o","n","g","s","/","J","u","d","a","s"}};
and I want to convet to
String a[ ] = {D:/Songs/Judas};
how can I do it? :((I have String a[ ][ ]= {{"D",":","/","S","o","n","g","s","/","J","u","d","a","s"}};Why do you store it as a String[][] array ?
It would be better to use a char[]
char[] a= {'D',':','/','S','o','n','g','s','/','J','u','d','a','s'};
String string = new String(a);
// or
Object[][] b = {{'D',':','/','S','o','n','g','s','/','J','u','d','a','s'}};
// I don't know why you store it in a String array but if one likes it
String[] c = new String[]{new String((char[])b[0])};To convert String[] to String one would write
String[] d={"D",":","/","S","o","n","g","s","/","J","u","d","a","s"};
StringBuffer buffer = new StringBuffer(d.length);
String e;
for ( int idx = 0; idx < d.length; ++idx) {
buffer.append(d[idx]);
e=buffer.toString(); -
How to convert this VB code into c#
Public Property Cell(ByVal row_index As Integer, ByVal col_index As Integer) As Object
Get
Return _excel.Cells(row_index, col_index).value
End Get
Set(ByVal value As Object)
_excel.Cells(row_index, col_index).value = value
End Set
End Property
Thanks.If you want to have a property called Cell that returns excel's Cells collection (which is a Range) then just do this:
public Range Cells
public get
return _excel.Cells;
// Range is accessed by .Cells
// Range has an index operator [,]
// so you can access .Cells[row,col]
If you want to intercept the indexing, then you must return a object that proxies the indexing.
class MyRange
public MyRange( Range range ) { this.range = range; }
Range range;
// This just might be the syntax you're actually looking for
public object this[int row, int col]
get {
return range[row,col];
set
range[row,col] = value;
public MyRange Cells
get {
return new MyRange( _excel.Cells ); -
How to convert this package from 11g to 10g (still using dbms_sql) ?
create or replace package pkg_test is
type tab_t is table of ra_analista%rowtype;
function pipeValues return tab_t pipelined;
function selValues return sys_refcursor;
end;
create or replace package body pkg_test is
function pipeValues
return tab_t pipelined is
cr sys_refcursor;
tab tab_t;
cnt int;
cmd pls_integer := dbms_sql.open_cursor;
begin
dbms_sql.parse(cmd, 'select * from RA_Analista', dbms_sql.native);
cnt := dbms_sql.execute(cmd);
cr := dbms_sql.to_refcursor(cmd);
fetch cr bulk collect into tab;
if tab.count > 0 then
for i in tab.first .. tab.last loop
pipe row(tab(i));
end loop;
end if;
return;
end;
function selValues return sys_refcursor is
c1 sys_refcursor;
begin
open c1 for select * from table(pipeValues);
return c1;
end;
end;Create Or Replace Package Body Pkg_Test Is
Function Pipevalues Return Tab_t Pipelined Is
Cr Sys_Refcursor; Tab Tab_t; Cnt Int; Cmd Pls_Integer := Dbms_Sql.Open_Cursor;
Begin
Dbms_Sql.Parse(Cmd, 'select * from RA_Analista', Dbms_Sql.Native); --**there in 10g**
Cnt := Dbms_Sql.Execute(Cmd); --**there 10g**
Cr := Dbms_Sql.To_Refcursor(Cmd); --**no need to use ref cursor here....if you want to use it go for open for instead of dbms_sql**
Fetch Cr Bulk Collect Into Tab;
If Tab.Count > 0 Then For i In Tab.First .. Tab.Last Loop Pipe Row(Tab(i));
End Loop;
End If; Return;
End;Edited by: Nicloei W on Sep 16, 2008 6:26 PM
Edited by: Nicloei W on Sep 16, 2008 6:26 PM
Edited by: Nicloei W on Sep 16, 2008 6:27 PM -
Very Urgent--- How to Convert Non Valuated stk into Valuated
Dear GURU'S
Actually for a material A when i see the stock in MM03 in accounting tab i see less stock then when i see in MMBE
i.e in MMBE if i select Material A and Plant B(Which is depo in my case) i see stock as 39
but for same material MAterial A and Plant B ,if i see in MM03 --in accounting tab i m able to see less stock i.e only 1
============================================
Well the problem is In MM03 I cud see only valuated stk i.e qty as 1
And in MMBE for a partiocular material for a particular plant the stock was 39
i.e Here i am getting Valuated + Non valuated stock
i.e i am getting difference of 25
=====>>>
To get into the root cause
I have gone to MB5B where i can get all the transaction that has been done on this material with movement type also i got the intial stock ,Goods recpt ,Goods issu and total stock
No for a particular material
In MB5B it is showing
Stock on 01.01.2005 = 38
receipts total = 238
Issues total =237
Stock as on 18.02.2008 = 39(which is equal to Stock in MMBE)
=============>This is for valuated +Non valuated stock
Where as if i want to see only valuated stock it was showing
receipts total = 238
Issues total =237
Stock as on 18.02.2008 =1 (which is equal to stock in acctg view in MM03)
====================>This is only for Valuated Stock
======================================
Now how to solve this :
The initial qty(38) which has been posted it was at the begining that is at the start of the project
And the people who have posted it ,it was non valuated
that is the reason it is showing difference in MM03 and MMBE
First thing
How can i see on which date this initial stock has been posted
Second Query
How to convert this non valuated stock into Valuated stock
So that the quantity in MMBE and MM03 gets matched
Willl award 10 Points if my problem gets solved
THANKZ IN ADVANCE
REgds
ShaileshDear friend
Actuallly i have checked the history of that particular Item in MB51
I have gone through all the documents created for this material
Now this material also exist in DEPO which is located at chennai and plant is at mumbai
So Initially in the year-2006(31-10-2006) whater documents are created i.e STOP has been created and delivery has been made (Mov type-601)
are non valuated stock ,means they have been posted without any valuation
But from year 2007(01.02.2007) the documents whiohc have been posted are valuated
i.e is the reason when i am executing transaction MRN9 to check the history of valuated stock
I cant see non valuated stock
Well now how to do the valuation of this stock which have been posted in year 2006 so that
In MMBE and MM03 there is no difference of stock
Plz hepl
regds
shailesh -
** File Content Conversion Error in Receiver CC - How to solve this?
Hi friends,
My target structure looks like below.
EmployeeJobDetails --> Message Type
JobCode --> Node
EmployeeNumber xsd:string
Domain xsd:string
JobTrack --> Node
Department xsd: string
Position xsd: string
I use the FCC parameters in the receiver CC as below:
Recordset Structure: JobCode,JobTrack
JobCode.fieldSeparator = |
JobCode.endSeparator = 'nl'
JobTrack.fieldSeparator = |
JobTrack.endSepartor = 'nl'.
Because, we want the output like below
1099|Raja
Accts|JuniorAccountant
1100|Ram
HR|Recruiter
like this.
In this scenario Source is XML and target is txt file.
I am using XSLT Mapping. The FCC works fine, if my source input file contains some records. But, when we send empty source XML file as below
<?xml version="1.0" encoding="UTF-8"?>
<EMPLOYEE_DATA/>
Mapping works fine. Message is processed successfully in SXMB_MONI. The payload in response also comes with Message Type name like below
<EmployeeJobDetails namespace >
</EmployeeJobDetails>
While convert this, the system throws below error.
Error Message:
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure '' found in document', probably configuration error in file adapter (XML parser error)': java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure '' found in document', probably configuration error in file adapter (XML parser error)'
Friend, how to convert this when source XML is empty.
But, if we remove JobTrack node in target strucutre and remove the JobTrack parameters in CC, then if we send the same empty XML file FCC is working fine and we get the target text file 0 KB. (Amazing !!)
But, in the first case, how to solve the issue?
Kind Regards,
Jegathees P.Hi friends,
If we remove JobTrack node in target strucutre and remove the JobTrack parameters in CC, then if we send the <b>same empty XML file</b> FCC is working fine and<b> we get the target text file 0 KB</b>. (Amazing !!)
But, if we give parameters like JobCode,JobTrack then send pass the same empty file, we face the problem 'File Content Conversion' Error.
Searching solution for this problem ... -
How to convert date in varchar format to TimeZone format?
Hi,
Iam having a date '14-05-08 09:46:35 AM' (in Varchar format). How to convert this date to TimeZone ('IYYY-MM-DD"T"HH12:MI:SS"Z"FX') format?
For Example,
My input date is '14-05-08 09:46:35 AM' and I need output as '2008-05-14T09:46:35Z'.
How to convert this?
Thanks in Advance.Hi,
You would look up the TO_TIMESTAMP and the TO_CHAR functions in the SQL reference manual for the version you don't mention, and make up the solution yourself, rather than asking someone else to do your homework.
Sybrand Bakker
Senior Oracle DBA
Maybe you are looking for
-
When I doubleclick an Indesign document, it won't open in Indesign
... and when I right click the document to instruct it to open in Indesign, Indesign doesn't appear on my program list; when I browse to the program icon in my program files, and select it, it still doesn't work. I'm using Indesign CS3 on an XP Windo
-
Grey boxes around my flash elements?
I currently run a website that is set up with several flash elements butted up next to each other using tables ( http://www.deltasoniccarwash.com). This method used to be fine. The tables were invisible to the user. With the latest update of internet
-
Dear all, What are the advantages if we do analyze table <table name> compute statisticsWhen ever i run this it is computing huge CPU utilization and taking long time........ if we do this as far as i know 1)it will analyze the table and count number
-
Can't find subFieldPoint.vi in Labview2013
I have updated my computer to LabVIEW2013 and I need to move a FieldPoint application over to Windows 7. My old vi says the subFieldPoint vi are no good. OK, so where are the new ones? I updated Field Point as well. Solved! Go to Solution.
-
SCXI-1001 cannot detect modules via SCXI-1600
我現有 NI AT-MIO-16E-10 SCXI-1001 SCXI-1102 SCXI-1102B SCXI-1303 SCXI-1160 SCXI-1324 SCXI-1600 除SCXI-1600外,都是以前的人留下的, 在兩個月前, 在使用其間電腦detect不到SCXI-1001, 因為 NI AT-MIO-16E-10 實在太舊, 所以認為問題出自它,並買了SCXI-1600替代, 選SCXI-1600因為可以連USB方便得多 現在當我在SCXI-1001中只放SCXI-1600,