Stored procedure does not work!

okay, this is one of the weirdest things i have ever seen...so i have created a registration page to my code which on submit it will fire the following codes
protected void btsSubmit_Click(object sender, EventArgs e)
if (tbxFName.Text.Trim().Length == 0 || tbxLName.Text.Trim().Length == 0 || tbxUsername.Text.Trim().Length == 0 || tbxPassword.Text.Length == 0)
ScriptManager.RegisterStartupScript(this, this.GetType(), "myscript", "ShowNotification('Warning','Please fill the required textboxes');", true);
else
try
string conString = ConfigurationManager.ConnectionStrings["IRELDBCS"].ConnectionString;
using (SqlConnection con = new SqlConnection(conString))
SqlCommand sc = new SqlCommand("spUserRegister", con);
sc.CommandType = CommandType.StoredProcedure;
sc.Parameters.AddWithValue("@a", tbxFName.Text.Trim());
sc.Parameters.AddWithValue("@b", tbxLName.Text.Trim());
sc.Parameters.AddWithValue("@c", tbxUsername.Text.Trim());
sc.Parameters.AddWithValue("@d", tbxPassword.Text);
sc.Parameters.AddWithValue("@e", ddlUserType.SelectedValue);
con.Open();
int ReturnCode = (int)sc.ExecuteScalar();
if (ReturnCode == -1)
ScriptManager.RegisterStartupScript(this, this.GetType(), "myscript", "ShowNotification('Error','This user is already exists.');", true);
else
ScriptManager.RegisterStartupScript(this, this.GetType(), "myscript", "ShowNotification('Success','you registration was successful');", true);
catch
ScriptManager.RegisterStartupScript(this, this.GetType(), "myscript", "ShowNotification('Error','Something went wrong, please try again in a few minutes');", true);
i was using sc.ExecuteNonQuery(); instead of int ReturnCode = (int)sc.ExecuteScalar();
and it was working fine and it was functioning till i have added the part which it stops user from registering with the same email address which is 
int ReturnCode = (int)sc.ExecuteScalar();
if (ReturnCode == -1)
ScriptManager.RegisterStartupScript(this, this.GetType(), "myscript", "ShowNotification('Error','This user is already exists.');", true);
else
ScriptManager.RegisterStartupScript(this, this.GetType(), "myscript", "ShowNotification('Success','you registration was successful');", true);
and this is my stored procedure
USE [dbo.IrELearn]
GO
/****** Object: StoredProcedure [dbo].[spUserRegister] Script Date: 04/01/2014 19:35:08 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[spUserRegister]
@a nvarchar(30),
@b nvarchar(50),
@c nvarchar(150),
@d nvarchar(30),
@e smallint
as
BEGIN
declare @Count int
declare @ReturnCode int
SELECT @Count = COUNT(Username)
FROM tbl_Users WHERE Username = @C
IF @Count > 0
Begin
Set @ReturnCode = -1
End
Else
Begin
Set @ReturnCode = 1
INSERT INTO tbl_Users (FirstName, LastName, Username, Password, UserType) VALUES (@a,@b,@a,@b,@e)
End
SELECT @ReturnCode as ReturnValue
END
now users cant register anymore and when i tried to debug and find where the problem is, it completely skips the "if" section after 
int ReturnCode = (int)sc.ExecuteScalar();
im not sure whats goin on!! can anyone find out what the problem is?
thank you in advance

Can you try to replace the statement in the Stored Proc
SELECT @ReturnCode as ReturnValue
with
RETURN @ReturnCode
The SELECT statement returns the value as a dataset but the RETURN statement returns it as a Return Code for success/failure of the Stored Proc execution.
Normally RETURN(0) i.e. a zero is returned as a default for success and a non-zero value is returned for a failure. But don't obther about the values at this time, just try the RETURN statement.
- Aalam | (Blog)

Similar Messages

  • The link to a user defined oracle stored procedure does not work

    This is based on the HowTo Download a file
    http://otn.oracle.com/products/database/htmldb/howtos/howto_file_upload.html
    I have given a link to a procedure as follows, which will download the file (as given in the HowTo):
    #OWNER#.download_my_file?p_file=#ID#.
    However, this does not work. It tries to open a page rather than executing the procedure. It displays the page not found message

    that page not found message is a generic one. you'd want to check your apache logs for more info on what really happened. my guess is that you missed step 5 of that how-to, "grant execute on download_my_file to public"
    hope this helps,
    raj

  • Ref_cursor -procedure does not work for Microsoft ODBC for oracle driver

    Hi,
    I have a stored procedure to retreive record set values from db.
    so i used PL/SQL table type. that is
    type tt1 is table of ........
    but if i replaced the table type with ref_cursor i get an ODBC error :
    "ODBC driver does not support the requested properties.--2147217887".
    The problem is i get a connection string from other module and i cannot change the connection string.
    So is there a way to get it working the ref_cursor using "Microsoft ODBC for Oracle" driver.
    Thanks

    Babu,
    Not sure, a quick Google indicates it should work (given you're using the correct syntax of course :-) )
    Have you tried the Oracle ODBC driver? Are you using the latest version(s)?
    Of course you're likely to have much more luck if you post this question in the ODBC forum :-)
    ODBC
    Cheers,
    Colin

  • Stored Procedure Does Not Run Properly When Called From Portlet

    We have a simple Java portlet that calls a PL/SQL stored procedure which we wrote. The stored procedure sends a large number of emails to users in our corporation using the "utl_smtp" package. The stored procedure returns a count of the emails back to the Java portlet when it's finished. This number is displayed in the portlet.
    Our problem:
    The stored procedure functions as expected when run from a PL/SQL block in SQL*Plus, and the Java portlet calls the procedure properly when sending out a smaller number of emails (Less than 200 usually). When we get into a higher number of emails the procedure hangs when called from the portlet, but it STILL functions properly from SQL*Plus. It does not return the number of emails sent
    and the Java portlet is unable to return a SQLException. Also, we have noticed that emails are sent at a much slower pace from the stored procedure when it's called from the portlet.

    Any Ideas?

  • Stored procedure call not working

    I have  2 ms-sql update statement through stored procedures
    1) as a batch update
    if (vendorBillDetailsDTO != null) {
                   stmnt =
                        con.prepareCall(
                             "Exec usp_CMP_UpdPRDetails ?, ?, ?, ?");
                   Iterator it = vendorBillDetailsDTO.iterator();
                   while (it.hasNext()) {
                        VendorBillDetailsDTO myVendorBillBillDetailsDTO =
                             (VendorBillDetailsDTO) it.next();
                        stmnt.setInt(
                             1,
                             myVendorBillBillDetailsDTO.getBillDetailRef().intValue());
                        stmnt.setInt(
                             2,
                             myVendorBillBillDetailsDTO.getBillId().intValue());
                        stmnt.setString(3, myVendorBillBillDetailsDTO.getCRN());
                        stmnt.setInt(
                             4,
                             myVendorBillBillDetailsDTO.getServiceCode().intValue());
                        stmnt.setString(5, myVendorBillBillDetailsDTO.getPRShortText());
                                  stmnt.addBatch();
                        //it.next();
                   } //while
                   stmnt.executeBatch();
              } //if
    This  block is working perfectly fine and statement is correctly getting executed
    2)     if (vendorBillHeaderDTO != null) {
                   stmnt =     con.prepareCall(
                             "Exec usp_CMP_UpdPRHeader ?,?,?");
                   stmnt.setInt(1, vendorBillHeaderDTO.getBillId().intValue());
                   stmnt.setString(2, vendorBillHeaderDTO.getBillType());
                   stmnt.setString(3, vendorBillHeaderDTO.getEstimateReference());
    stmnt.executeUpdate();
    }//end if
    This statement is not getting executed (I have many input parameters like  int , timestamp , long , double etc). It is not throwing any error (Even when I  enclosed it with try catch theere is no exception thrown .)  However in back end record is not getting updated .
    Any ideas ? 
    Please help
    NPB

    Well, that could be a problem in the Data Base side, i suggest you:
    1) See the log file of your DB,
    2) Run in your DB the Store Procedure, maybe you forget put a commit, and see that of this way you can update the table you can.
    Try it.
    Regards if helps you
    Josué Cruz

  • Executing Command within Pkg.procedure does not work-but command line does

    [Version 10.2.0.2
    [Scenario] Let's say my Username is Jack. My goal is to grant two roles to a user. From the command line, I have no problem.
    PROMPT-> Grant role1,role2 to TESTUSER
    However, when I create a package and procedure (owned by Jack); I receive an ORA-01919 error saying that role2 does not exist.
    There is no question the role exists and I am able to grant it to the TESTUSER on the command line as Jack.
    Any ideas what is going on?

    I can't post it as the database is on another system. However, I found my the fix. My Jack user had grant any role; therefore, I thought it should work both from command line and package.proc; however I granted role2 to Jack with admin privs and it works now both from the command line and the pkg.proc.
    Thanks for the response.

  • Fields in Stored Procedure does not appear in Crystal reports 2008.

    hi,
    I am now using crystal reports 2008 evaluation copy for 30 days. I am trying to create a stored procedure with parameter, here is my sample Stored Procedure code;
    DELIMITER $$
    DROP PROCEDURE IF EXISTS `puerto`.`SP_FindEmployees`$$
    CREATE DEFINER=`root`@`localhost` PROCEDURE `SP_FindEmployees`(SIDNo VARCHAR(10))
    BEGIN
         SELECT * FROM employees WHERE IDNo=SIDNo;
        END$$
    DELIMITER ;
    when i try to call the procedure in sqlyog here is my sample code;
    CALL sp_findemployees('0000000001')
    it is successfull, but when i try to  connect it with crystal reports 2008 I got no fields in my stored procedure andi got this error message ;
    "Database Connector: 'HY00:[MySQL][ODBC 3.51 Driver][mysqld-5.1.33-community]incorect number of arguments for procedure puerto.sp_findemployees; expected 1, got 0 [Database vendor code: 1318]"
    CR2008 was not asking a parameter values.
    But when I try using stored procedure that i've made in MSSQL, CR2008 asking parameters and succefully created the reports needed.
    My Objective is to make a stored procedure  in MySQL by using select statement and filter it with parameter(s) that I will pass and CR2008 will use this stored procedure.
    i also try the view with this code below and it was successfull in CR2008.
    DELIMITER $$
    DROP VIEW IF EXISTS `puerto`.`ep_employees`$$
    CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `ep_employees` AS (SELECT `employees`.`IDNo` AS `IDNo`,`employees`.`FullName` AS `FullName` FROM `employees`)$$
    DELIMITER ;

    hi,
    Crystal Reports 2008 and MySQL 5 , ODBC driver 3.5 and ODBC driver 5.1.
    I use ODBC connector 3.5 because I got errors in ODBC drivers in 5.1.
    Do you have step by step procedure for creating add command dialog box?
    I try creating the add command dialog box
    here's my sample sql statement i don't know if its correct because no data appearing in my crystal report
    Select * from employees where idno=@IDNo
    in Command Parameter Dialog Box
    Parameter Name = @IDNo
    Prompting Text = @IDNo
    Value Type = String
    DefaultValue = 0
    thanks!

  • Report with Stored Procedure does not return until refresh

    I'm using RAS server 2008 to run many Crystal reports from a web application (TrackWise) over Oracle 10g DB.
    A new report is using a stored procedure that takes several minutes (5-10) to return before the rest of the report's SQL can execute.
    When running the report from Crystal Developer there is no problem,
    but when running from the application (using the RAS), the report seems to be running forever,
    However, if you wait a few minutes for the DB utilization to drop (i.e. for the stored procedure to finish) and refresh - the full report appears on the screen in a second.
    Since I have many other reports that run for much longer time with no issue, I assume that this has nothing to do with the web application, but rather related to the connection between the RAS and the DB (i.e. the idle time between the beginning of the stored procedure execution to its return and the continuation of the report creation).
    I assume that I need to change one of the RAS settings/ parameters (in the properties or in the registry), but which?
    Please assist.

    Since this app is from TrackWise, I'd recommend contacting TrackWise and see if they have an answer for you. As it is, we have no idea how they implemented the CR components in their app. If they cannot help you, it should be them coming here and asking us - or better yet they should be creating a phone incident.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Sequence/Procedure does not work

    Hello guys! I have a huge question. I am working on a database that someone developed a couple of years ago.
    Today I stumbled across a table and tried to insert data via an Apex frontend. The data was saved properly into the respective Table "TBL_TOTHOLZ".
    However, the field CNT_TOTHOLZ was not filled and consequently Null.
    Since the data is deleted via Apex using the CNT_TOTHOLZ value, the deletion cannot be performed.
    I found a procedure and related sequence, which I checked are all valid according to Oracle Development Manager.
    Since I tried to enter data manually into the table without using Apex I fear I might have crashed something. The table was altered as well. However, I reverted the change (I had added one column) of the table and also dropped and rebuilt the sequence using a far higher number for the nextval than the highest previous number that was stored in the table.
    All those changes didn't cause anything. The field CNT_Totholz is still Null when adding a record.
    Can you guys please help me and give me a hint as why this is so?! I'm lost this evening and don't know what else to try.
    The procedure is as follows:
    create or replace
    PROCEDURE PR_In_TBL_TOTHOLZ(
      P_cnt_Totholz   IN   NUMBER,
      P_lng_Punkt   IN   NUMBER,
      P_bool_Stehend   IN   NUMBER,
      P_int_BHD   IN   NUMBER,
      P_int_Mittendurchmesser   IN   NUMBER,
      P_int_Hoehe   IN   NUMBER,
      P_int_Laenge   IN   NUMBER,
      P_lng_Baumartengruppe   IN   NUMBER ,
      P_INT_BEZUG in Number) AS
    BEGIN
      DECLARE
       PRM_cnt_Totholz      NUMBER(12) ;
       PRM_lng_Punkt      NUMBER(12) ;
       PRM_bool_Stehend      NUMBER(7) ;
       PRM_int_BHD      NUMBER(10) ;
       PRM_int_Mittendurchmesser      NUMBER(10) ;
       PRM_int_Hoehe      NUMBER(10) ;
       PRM_int_Laenge      NUMBER(10) ;
       PRM_lng_Baumartengruppe      NUMBER(12) ;
       PRM_INT_BEZUG   NUMBER(4) ;
      /* Variable to save the record for the primary key  */
      PK_INDEX     NUMBER(12) ;
      BEGIN
        PRM_cnt_Totholz    := P_cnt_Totholz;
        PRM_lng_Punkt    := P_lng_Punkt;
        PRM_bool_Stehend    := P_bool_Stehend;
        PRM_int_BHD    := P_int_BHD;
        PRM_int_Mittendurchmesser    := P_int_Mittendurchmesser;
        PRM_int_Hoehe    := P_int_Hoehe;
        PRM_int_Laenge    := P_int_Laenge;
        PRM_lng_Baumartengruppe    := P_lng_Baumartengruppe;
        PRM_INT_BEZUG  := P_INT_BEZUG  ;
      /* No value must be given to the index  */
      IF PRM_cnt_Totholz IS NOT NULL THEN
         PK_Index :=  PRM_cnt_Totholz;
      ELSE
         SELECT SEQ_TBL_TOTHOLZ.NEXTVAL INTO PK_Index FROM DUAL;
      END IF;
      INSERT INTO tbl_Totholz (
      cnt_Totholz ,
      lng_Punkt ,
      bool_Stehend ,
      int_BHD ,
      int_Mittendurchmesser ,
      int_Hoehe ,
      int_Laenge ,
      lng_Baumartengruppe,
      INT_BEZUG)
      VALUES (
        PK_INDEX ,
        PRM_lng_Punkt,
        PRM_bool_Stehend,
        PRM_int_BHD,
        PRM_int_Mittendurchmesser,
        PRM_int_Hoehe,
        PRM_int_Laenge,
        PRM_lng_Baumartengruppe,
        PRM_INT_BEZUG) ;
      END;
    END;It would be awesome if you could help me! Thanks a lot!
    Sebastian
    Edited by: skahlert on 13.08.2009 19:53
    Edited by: skahlert on 13.08.2009 19:54

    @ Centinul
    Sorry for not having obliged the rules! I edited the post as requested.
    To your question. I didn't find any code calling the code I posted. It should be listed under the depending objects in the Development Manager I suppose.
    Thought that the procedure is started automatically on insert. I'm very new to oracle and still figuring out most of the things! So please excuse me!
    Here are examples for the values that are passed to from the form to the table:
    INSERT INTO tbl_Totholz (
      cnt_Totholz ,
      lng_Punkt ,
      bool_Stehend ,
      int_BHD ,
      int_Mittendurchmesser ,
      int_Hoehe ,
      int_Laenge ,
      lng_Baumartengruppe,
      INT_BEZUG)
      VALUES (
        PK_INDEX >>> Integer created by sequence,
        PRM_LNG_PUNKT>>>Integer e.g. 22266,
        PRM_bool_Stehend>>> Bool Yes/No e.g. -1,
        PRM_int_BHD>>> Integer e.g. 20,
        PRM_int_Mittendurchmesser>>>Integer e.g. 30,
        PRM_int_Hoehe>>>Integer e.g. 500,
        PRM_int_Laenge>>>Integer e.g. 1000,
        PRM_lng_Baumartengruppe>>>Integer e.g. 2,
        PRM_INT_BEZUG)>>> don't know ;Nevertheless I think that the CNT_TOTHOLZ value should be generated automatically using the sequence once a dataset is inserted. Please correct me if I'm wrong!
    Thanks for your answer!
    Sebastian
    Edited by: skahlert on 13.08.2009 20:03

  • Procedure does not works

    hi
    i have a package like this
    CREATE OR REPLACE PACKAGE BODY ORDER AS
    PROCEDURE Report (
    report_attr_ IN VARCHAR2,
    parameter_attr_ IN VARCHAR2 )
    IS
    supp_addrs_ varchar2(2000);
    comp_addrs_ varchar2(2000);
    stmt1 varchar2(2000);
    order_no_ varchar2(30);
    CURSOR ITEM_DTL_(order_no_ in varchar2) IS
    SELECT * FROM PURCHASE_ORDER_LINE_PART WHERE
    ORDER_NO=order_no_;
    CURSOR COMP_ADDR_(order_no_ in varchar2) IS
    SELECT ADDRESS_LOV from
    COMPANY_ADDRESS c,purchase_order p
    where p.order_no=order_no_ and
    p.company=c.company;
    BEGIN
    FOR I IN ITEM_DTL_(order_no_ ) LOOP
    OPEN COMP_ADDR_(order_no_);
    FETCH COMP_ADDR_ INTO comp_addrs_;
    stmt1:='select i.name||s.address1||s.address2||s.city||s.state'||
    'from SUPPLIER_INFO_ADDRESS s,SUPPLIER_INFO i,PURCHASE_ORDER p'||
    'where p.order_no=order_no_ and p.vendor_no=s.SUPPLIER_ID and
    s.supplier_id=i.supplier_id';
    execute immediate stmt1 into supp_addrs_ using order_no_;
    INSERT INTO tab
    s1,
    s2,
    s3,
    s5,
    s6,
    s7,
    s9,
    s10,
    s11,
    s12,
    s13,
    s14,
    s15
    VALUES
    I.VENDOR_NO,
    I.PROMISED_DELIVERY_DATE,
    I.DELIVERY_TERMS_DESC,
    I.SHIP_VIA_DESC,
    comp_addrs_,
    I.DESCRIPTION,
    I.PART_NO,
    I.LINE_NO,
    I.RELEASE_NO,
    I.BUY_QTY_DUE,
    I.BUY_UNIT_PRICE,
    I.ORDER_NO,
    supp_addrs_
    ROW_NO_ := ROW_NO_ + 1 ;
    END LOOP;
    END Report;
    END ORDER;
    problem is will this work.i mean will the table tab will be populated.

    Thank you all for it
    i now rewrite it---
    PROMPT Creating &PKG implementation
    CREATE OR REPLACE PACKAGE BODY &PKG AS
    PROCEDURE &METHOD (
    report_attr_ IN VARCHAR2,
    parameter_attr_ IN VARCHAR2 )
    IS
    result_key_ NUMBER;
    row_no_ NUMBER := 1;
    PARENT_ROW_NO_ NUMBER := 0 ;
    supp_addrs_ varchar2(2000);
    comp_addrs_ varchar2(2000);
    stmt1 varchar2(2000);
    sqlstr2 varchar2(2000);
    order_no_ varchar2(30);
    /* cursor sup_det_(order_no_ in vrachar2) is
    select * from PURCHASE_ORDER
    where order_no=order_no_;*/
    CURSOR ITEM_DTL_(order_no_ in varchar2) IS
    SELECT * FROM PURCHASE_ORDER_LINE_PART WHERE
    ORDER_NO=order_no_;
    cursor get_addr(order_no_ in varchar2) is
    select i.name||s.address1||s.address2||s.city||s.state||
    from SUPPLIER_INFO_ADDRESS s,SUPPLIER_INFO i,PURCHASE_ORDER p||
    where p.order_no=order_no_ and p.vendor_no=s.SUPPLIER_ID and s.supplier_id=i.supplier_id;
    CURSOR COMP_ADDR_(order_no_ in varchar2) IS
    SELECT ADDRESS_LOV from
    COMPANY_ADDRESS c,purchase_order p
    where p.order_no=order_no_ and
    p.company=c.company;
    BEGIN
    result_key_ := Client_SYS.Attr_Value_To_Number(Client_SYS.Get_Item_Value('RESULT_KEY', report_attr_));
    order_no_ := Client_SYS.Get_Item_Value('ORDER_NO', parameter_attr_);
    FOR I IN ITEM_DTL_(order_no_) LOOP
    OPEN COMP_ADDR_(order_no_);
    FETCH COMP_ADDR_ INTO comp_addrs_;
    END comp_addrs_;
    OPEN get_addr(order_no_);
    FETCH get_addr INTO supp_addrs_;
    END get_addr;
    /* stmt1:='select i.name||s.address1||s.address2||s.city||s.state'||
    'from SUPPLIER_INFO_ADDRESS s,SUPPLIER_INFO i,PURCHASE_ORDER p'||
    'where p.order_no=order_no_ and p.vendor_no=s.SUPPLIER_ID and s.supplier_id=i.supplier_id';*/
    -- execute immediate stmt1 into supp_addrs_ using order_no_;
    INSERT INTO &TABLE
    RESULT_KEY,
    ROW_NO,
    PARENT_ROW_NO,
    &vendor_no,
    &promised_delivery_date,
    &delivery_terms_desc,
    &ship_via_desc,
    &address_lov,
    &description,
    &part_no,
    &line_no,
    &release_no,
    &buy_qty_due,
    &buy_unit_price,
    &order_no,
    &supplier_address
    VALUES
    RESULT_KEY_,
    ROW_NO_,
    PARENT_ROW_NO_,
    I.VENDOR_NO,
    I.PROMISED_DELIVERY_DATE,
    I.DELIVERY_TERMS_DESC,
    I.SHIP_VIA_DESC,
    comp_addrs_,
    I.DESCRIPTION,
    I.PART_NO,
    I.LINE_NO,
    I.RELEASE_NO,
    I.BUY_QTY_DUE,
    I.BUY_UNIT_PRICE,
    I.ORDER_NO,
    supp_addrs_
    ROW_NO_ := ROW_NO_ + 1 ;
    END LOOP;
    END &METHOD;
    END &PKG;
    SHOW ERROR
    now is it right?will i get data from get_addr_ and COMP_ADDR_ and populate my table
    in the variable supp_addrs_ and comp_addrs_
    Message was edited by:
    BP

  • Action Profile Determination Procedure does not work properly -.

    Dear Experts,
    I have defined the transaction type ZANF (Object Type: BUS2000240 = Billing Request). The problem is, in the customizing I can not assign the action profile directly. I have to assign a Action Profile Determination Procedure (it is called there AP Procedure).
    I already have defined an Determination Procedure with the name ZCRM01 in Customizing:
    Customer Relationship Management->Basic Functions->Actions->Actions in Transaction->Set Up Action Profile Determination
    This determination Procedure ZCRM01 has assigned the condition type: ZACK and no Requirement? Actually what is the Requirement?
    The condition type ZACK has assigned the Access Sequence Z001. The access sequence Z001 has assigned the table SAP00004 which contains only the attribute: PROCESS_TYPE (Transaction Type).
    Now the problem is that action profile Z_SERVICE_CONFIRM is not called.
    Now my question is: How can I link together the action profile determination procedure ZCRM01 with the action profile Z_SERVICE_CONFIRM? I can not find the place where in customizing I can link both concepts together.
    I have used the following link for customizing: [Link - help.sap.com|http://help.sap.com/saphelp_crm60/helpdata/en/83/785141eb54ba5fe10000000a155106/content.htm]
    Best Regards
    Oliver
    Edited by: Oliver Schultze on Feb 21, 2011 6:31 PM

    Hi Robert and zhenglin gu,
    the solution for the problem is that in the table CRMV_PROC_TYPE (Table for customizing of transaction types) it is possible to assign the action profile directly with the field ACTIONPROFILE. But If you click on a transaction type details this field is not visible in the dynpro.
    So I think SAP made an error in the programming of this dynpro. That was all to solve the error.
    Thank you for your effort...
    Best Regards
    Oliver

  • SPA922 Factory Reset Procedure Does Not Work

    Is there a hard reset option?
    Thanks!

    Linksys FAQ states:
    4:   Lost web password for SPA device
    To reset your SPA device to the factory default values, unplug your Ethernet cable, access the voice menu (****), and press 73738#.
    Leaving power on the phone of course, and unplugging the Ethernet doesn't allow access to voice menu via (****); I am able to access the phone menu and select 8.VoiceMail which prompts for the password, but entering 73738# returns a wrong password response.
    We received 10 of these phones from our property managers as a signing bonus for our new offices because they new these phones would work with our voip services.  Half of the phones did not have passwords and are already configured along side our Polycom SIP Phones, the remaining have this password issue.
    My definition of potential hard boot process as an example; is holding down some sort of a rest button or internal jumper setting and powering it up to clear the onboard PROM, EPROM, EEPROM, etc.
    Thanks for your response!

  • Export Parameters in Parameterized Message Mapping does not work.

    Hello, XI-Gurus!
    I have a question: how to use an EXPORT parameter in Parameterized Message Mapping? seems it does not work...
    (I use XI / PI 7.1)
    For example, I have a follow scenario: a large message comes to XI from one BS (message contains a lot of rows), then this large message splits to some small messages (something about 1000 rows in one small message), and send small messaeg one by one from XI to second BS. So, after receive step I use a transformation step with Parameterized Message Mapping to get a total amount of rows in large message (it needs for making condition for loop in IP, for example). I want to use an EXPORT parameter to pass this number from Parameterized Message Mapping to Integration Process. How can I do it?
    Of course, I know the way to how to make this scenario without any parameterizing, but I want to use exactly "Parameterized Message Mapping" like it writes in this help:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/43/c3e1fa6c31599ee10000000a1553f6/frameset.htm
    This topic contains something about procedure how to use an EXPORT parameter, but this procedure does not work. I don't understand how to write this UserDefined Function, which I can set any export parameters.
    I read this blog:
    /people/jin.shin/blog/2008/02/14/sap-pi-71-mapping-enhancements-series-parameterized-message-mappings
    this blog has NO solutions about EXPORT parameters. about IMPORT parameters - everything OK.
    Some topics about how to use export parameters in MM in this forum marked as "answered", but this is not true.
    How to export parameters from Message Mapping
    Export parameter REALLY work in message mapping???????
    Export parameter in Message mapping UDF
    WBR,
    Vsevolod

    Hi Rudolf,
    It still does not works.
    Great thanks for all your answers! If your advice works on your PI-server, it means that my problem not in UDF.
    Step by step:
    1) I create in "Signature" tab two parameters: FILE_NAME, FILE_TYPE (of course, they both Export and xsd:string type)
    2) Then, I goes to "Functions" tab and create new function "testUDF" with one argument var1.
    3) In body of this UDF insert 2 strings:
       getOutputParameters.setString("FILE_NAME" , "Order");
       getOutputParameters.setString("FILE_TYPE" , "PDF");
    4) in "Definition" tab I bind function "Local.testUDF" with one field in my input message and goes to "Test" tab for testing.
    5) And then I have a message window "Problems While Testing":
    Source text of object Message Mapping: mm_ParamMap | urn:****.*.:****:TEST has syntax errors:
    Function testUDF, Line 1:
    cannot find symbol
    symbol  : variable getOutputParameters
    location: class com.sap.xi.tf._mm_ParamMap_
    getOutputParameters.setString("FILE_NAME" , "Order");
    ^
    Function testUDF, Line 2:
    cannot find symbol
    symbol  : variable getOutputParameters
    location: class com.sap.xi.tf._mm_ParamMap_
    getOutputParameters.setString("FILE_TYPE" , "PDF");
    ^
    Note: /usr/sap/PID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapb1562570ca9e11deb3fe00237d301cd6/source/com/sap/xi/tf/_mm_ParamMap_.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details. Note: /usr/sap/PID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapb1562570ca9e11deb3fe00237d301cd6/source/com/sap/xi/tf/_mm_ParamMap_.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    2 errors
    Look at this notes, first writes that I use a deprecated API, second - about unchecked or unsafe operations.
    And I have no idea what's wrong... Can you help me?
    Thanks!
    WBR,
    Vsevolod

  • Just replaced iphone battery!! Please help!! Ear speaker does not work.

    I just replaced my iphone 3g battery. It seemed to go smooth. Everything works normally except the ear speaker doesnt work. When i try to make an outgoing call i cant here it ring, but my phone will actually call another phone. Does anyone know what # that connector is labeled as on the motherboard or back of the screen? Any help would be much appreciated!!!!!

    There may be a problem with the microswitch in the headset jack. Click on the following link for the Palm KB article regarding this issue.
    http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=40427
    If this procedure does not work then the phone will need to be replaced.
    For reference purposes, click on the following link for the support page for your device on the kb.palm.com webpage.
    http://kb.palm.com/wps/portal/kb/na/pre/p100eww/sprint/home/page_en.html
    There are links on the page to the user guide, troubleshooting, how to's, downloads, etc.

  • Custom shortcuts addee via Keyboard.prefPane does not work..

    Hi,
    I read several sites that all refer to a way to create a shortcut for a menu command without one, ref.: <http://www.apple.com/pro/tips/keyboard.html>
    However, that does not work at all for me. Never has. So what I am doing wrong? In particular, I would like to add a shortcut to open the main window of Address Book, after closing the window leaving the app running.
    Anyonw could do me a run through? Cause the above mentioned procedure does not work.
    Johan
    PS: Oh, and in iPhoto I am not able to create a new film roll for the selected photos, even though I am following the exact procedure mentioned in Help..
    PB G4 12"   Mac OS X (10.4.8)   768MB

    Welcome to our community
    The issue is typically a matter of focus. Particularly in Firefox. In IE, when the page loads and is presented, the Flash object (your Captivate movie) is given focus. So the keyboard shortcuts work. But that doesn't happen in Firefox. In Firefox, you must first click somewhere on the Flash object to give it focus. From there forward, shortcuts work because the Flash object is now listening for them.
    In every class I facilitate I demonstrated this and advise that it's a good idea to have a button on the first slide. This serves two purposes.
    It forces the user to click to proceed
    It keeps the first slide paused until the user is ready
    Yeah, before someone comes along and says: (in an annoyingly nasal tone) Mr. Man, you KNOW there is an option in Captivate to keep it paused at the start... I'm well aware that Captivate offers this option without adding a button, but I prefer it for the reasons above.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

Maybe you are looking for

  • Method called alarm

    Hey folks, wondering i you can help, just written this simple bit of code to print a string called "Alarm!" multiple times depending on what you set the integar to be in your method but it doesn't seem to like this, any ideas where i'm going wrong? A

  • Slow mac...very slow

    I have tried all the obvious things..disc repair, mac cleaner.. I did try to delate kodak easy share because I did recently install that and it told me it couldn't be delated due to kodak wireless listener is in use. Does anyone know how to find this

  • How to create/generate probfitablitiy analysis,spec purpose ledger....?

    Andbody can tell me that How to create/generate probfitablitiy analysis,spec purpose ledger and controlling document once I created billing via vf01 and has it released to account document? Thanks.

  • Apple TV (2nd Gen) - Tv does not reconize HDMI or ATV

    Hi, I purchased ATV last night, My tv - Sharp (LC-42D62U)does not recognize or show anything when I plug in the HDMI cable and ATV. I tried both HDMI slots on the tv, powered down everything and powered up and tried another HDMI cable. Researched onl

  • Broke my Kin One...now what?

    The Kin One (besides having lot's of other problems) is the only phone I've ever broken before my 2 years is up. Somehow the screen cracked rendering the phone all but useless. I don't want to spend any money on a new phone so I guess my only option