Problem sending a value to pls/ql procedure

Hi
i have a weirdly probelm in my MDB.
I will try to explain the problem below.
I have an MDB that recives an XML and retrieves a vlue from XMl and sends it to a pl/sql procedure for processing and storing it.
String input = ixml.getParent();
cs = connection.prepareCall("begin custom.get_activity_children(?); end;");
cs.setString(1, input);
cs.setQueryTimeout(TIME_OUT);
cs.execute();
it is done in the below manner
the pl/sql receives this and call an API method get children
proceudure get_children (input varchar2) IS
result tabtype;
Begin
insert into Test values(input);
schema.get_children_api(input,result);
insert into Test values(result.count );
insert into Children_id values (result(1));
END;
Test table carried values "12345" and "0". Also note that input value was received correctly by pl/sql procedure.
This being the situation the messages received in the MDB has a valid input value but it still returns the result.count as 0.
So ib tested it in another way,
i wrote a stand alone pl/sql procedure like below,
DECLARE
input varchar2 := '12345';
result tabtype;
Begin
insert into Test values(input);
schema.get_children_api(input,result);
insert into Test values(result.count );
insert into Children_id values (result(1));
END;
Test table carried values "12345" and "0".
but here i get the correct out put and result is set to 1.

The question isn't all that clear to me.
But myself I never rely on 'count' values returned from the API.
The only sure thing is that it either threw an exception or it didn't. Other than that you must structure your SQL such that it returns results if you need them.

Similar Messages

  • Send Datetime2 value to a SQL Procedure from Java using Hibernate

    Hi All,
    I Have a Procedure which takes a parameter of type datetime2.
    The procedure is called from Java Hibernate.
    How can I Pass datetime2 value to SQL procedure from Java?
    Thanks in advance,
    Shraddha Gore

    You may define a global empty array in some package. Then you can do:
    SQL> CREATE OR REPLACE PACKAGE pkg
    AS
       g_empty   DBMS_SQL.varchar2_table;
    END pkg;
    Package created.
    SQL> CREATE OR REPLACE PROCEDURE p (
       p_tuids   IN   DBMS_SQL.varchar2_table "DEFAULT pkg.g_empty"
    AS
    BEGIN
       NULL;
    END p;
    Procedure created.
    SQL> BEGIN
       p ();
    END;
    PL/SQL procedure successfully completed.

  • Hi since sunday,my imessages are not working..i cannot even send normal sms to iphone users..is there any problems in the software ? pls advice

    Hi since sunday,my imessages are not working..i cannot even send normal sms to iphone users..is there any problems in the software ? pls advice

    Found the rootcause. The battery was damaged and unable to have enough power to keep the device alive. After changing the device problem is solved.

  • Problem getting parameter  values at the service end point

    I am having problem getting parameter values at the service end point. I created service end point and this method is having 35 parameters and then i created test client file using Sun One Studio 5. but when i run this test client and make a call to service it sends wrong value to first three parameters to the service end point. I tried all the way round but it gave me same sort of problem. I change the order of parameters change the names of parameters but it didn�t work. And then i started chopping of parameter from the left side. And my problem is solved when my parameter list reached to 12 from 35. So is it a bug or some problem with my configuration or some thing else.
    I am using sun one studio 5 with sun one app 7. My service end point does very simple thing. It only takes out put of the parameter to the server log file. And my wsdl file seems all right. There is no conflict with the count and data type of the parameter information it contains.
    �     Service End Point Definition (in EJB)
    public java.lang.String setNewAddress(java.lang.String propertyName, java.lang.String status, java.lang.String PMSCode, java.lang.String streetNumPrefix, int streetStartNum, java.lang.String streetStartNumSuffix, int streetEndNum, java.lang.String streetEndNumSuffix, java.lang.String streetName, java.lang.String streetType, java.lang.String streetSuffix, java.lang.String localityPrefix,java.lang.String localityName, java.lang.String postcode, java.lang.String stateCode, java.lang.String countryCode, java.lang.String description, java.lang.String coordinateAccuracy, int longitude, int latitude, java.lang.String planNumber, java.lang.String lotPrefix, int lotNumber, int siteID, java.lang.String countryName, java.lang.String parishName, java.lang.String section, int portionNum, int crownAllotNum, int titleVol, java.lang.String folio, java.lang.String esa, int aliasID, int aliasTagID,String ID) {
    System.out.println(propertyName);
    System.out.println(PMSCode);
    System.out.println(streetNumPrefix);
    ........ taking printout of all the paramters
    �     This is my WSDL file
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="NMService" targetNamespace="urn:NMService/wsdl" xmlns:tns="urn:NMService/wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types/>
    <message name="NMServiceServantInterface_setNewAddress">
    <part name="String_1" type="xsd:string"/>
    <part name="String_2" type="xsd:string"/>
    <part name="String_3" type="xsd:string"/>
    <part name="String_4" type="xsd:string"/>
    <part name="int_5" type="xsd:int"/>
    <part name="String_6" type="xsd:string"/>
    <part name="int_7" type="xsd:int"/>
    <part name="String_8" type="xsd:string"/>
    <part name="String_9" type="xsd:string"/>
    <part name="String_10" type="xsd:string"/>
    <part name="String_11" type="xsd:string"/>
    <part name="String_12" type="xsd:string"/>
    <part name="String_13" type="xsd:string"/>
    <part name="String_14" type="xsd:string"/>
    <part name="String_15" type="xsd:string"/>
    <part name="String_16" type="xsd:string"/>
    <part name="String_17" type="xsd:string"/>
    <part name="String_18" type="xsd:string"/>
    <part name="int_19" type="xsd:int"/>
    <part name="int_20" type="xsd:int"/>
    <part name="String_21" type="xsd:string"/>
    <part name="String_22" type="xsd:string"/>
    <part name="int_23" type="xsd:int"/>
    <part name="int_24" type="xsd:int"/>
    <part name="String_25" type="xsd:string"/>
    <part name="String_26" type="xsd:string"/>
    <part name="String_27" type="xsd:string"/>
    <part name="int_28" type="xsd:int"/>
    <part name="int_29" type="xsd:int"/>
    <part name="int_30" type="xsd:int"/>
    <part name="String_31" type="xsd:string"/>
    <part name="String_32" type="xsd:string"/>
    <part name="int_33" type="xsd:int"/>
    <part name="int_34" type="xsd:int"/>
    <part name="String_35" type="xsd:string"/></message>
    <message name="NMServiceServantInterface_setNewAddressResponse">
    <part name="result" type="xsd:string"/></message>
    <portType name="NMServiceServantInterface">
    <operation name="setNewAddress" parameterOrder="String_1 String_2 String_3 String_4 int_5 String_6 int_7 String_8 String_9 String_10 String_11 String_12 String_13 String_14 String_15 String_16 String_17 String_18 int_19 int_20 String_21 String_22 int_23 int_24 String_25 String_26 String_27 int_28 int_29 int_30 String_31 String_32 int_33 int_34 String_35">
    <input message="tns:NMServiceServantInterface_setNewAddress"/>
    <output message="tns:NMServiceServantInterface_setNewAddressResponse"/></operation></portType>
    <binding name="NMServiceServantInterfaceBinding" type="tns:NMServiceServantInterface">
    <operation name="setNewAddress">
    <input>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:NMService/wsdl"/></input>
    <output>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:NMService/wsdl"/></output>
    <soap:operation soapAction=""/></operation>
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/></binding>
    <service name="NMService">
    <port name="NMServiceServantInterfacePort" binding="tns:NMServiceServantInterfaceBinding">
    <soap:address location="http://localhost:80/NMService/NMService"/></port></service></definitions>
    �     I followed steps given this example. http://developers.sun.com/prodtech/javatools/jsstandard/reference/docs/s1s5/stockapp.html.
    If some one know what is wrong. Is it me or some thing wrong with the method I followed. But I am sure that I followed exactly the same method as it given in examples. So if some one can guide me
    Thanks

    I just found that there is a bug with Sun One Studio 5. It creates faulty JSP file to test the client for the web services. With above problem I tested my web services using different developing environment such as Jdeveloper 10g. I created client stub using wsdl file generated by sun one studio. And made call to my web service and all the parameter reached perfectly at service end point. And then I used stub class created by sun one studio for the client and made the same call. And it also went well. So the problem is with the test application (JSP File) sun one creates for my web service.
    This is the majore problem i faced during the development. But still there is many problem along with this which is not seriouse enough but requires attension. I would like sun developers to make sun one studio IDE simpler and handy .

  • I have an Ipad 2 and are having problems sending out emails in one of my email address. I always get a message reading the email was not sent because the server does not allow relaying. This is an email account POP3. I have no such problem with gmail.

    I have an Ipad 2 and are having problems sending out emails in one of my email address. This is a POP3 email Account? I always get a message reading that the email was not sent because the server does not allow relaying. I have no such problem with gmail. What could be the problem and how do I resolve this. Is it about settings?
    Richard.

    Welcome to the Apple community.
    If you are unable to remember your password, security questions, don’t have access to your rescue address or are unable to reset your password for whatever reason, your only option is to contact Apple ID Support, upon speaking to an operator you should explain that your problem is related to your Apple ID, this way you will not be charged for assistance, even if you don’t have an AppleCare plan.
    The operator will take you through some steps you may have already tried, however they need to be sure they have exhausted all usual approaches before trying to reset your account, so you should try to be helpful and show patience with the procedure.
    The operator will need to verify they are speaking to the account holder and may ask you some questions that only the account holder could know, and you will need to answer them if the process is to proceed.
    Once the operator has verified your identity they will send a message through to your device which contains an alpha numeric code, which you will need to read back to them.
    Once this has been completed they will send an email to your iCloud email address after a period of 24 hours, so you should check that mail is enabled in your devices iCloud settings.
    Upon receipt of the email, use the reset link provided to reset your password, after which you should be able to make the adjustments to iCloud that you wish to do.

  • Get value from PL/SQL procedure to shell variable

    Hello,
    I have one little problem. I want to run plsql procedure from shell program and then I want to fill a shell variable with return value of plsql procedure or function. But I don't want to pass this value to some file and then read it.
    Thank's

    user9357436 wrote:
    Hello,
    I have one little problem. I want to run plsql procedure from shell program and then I want to fill a shell variable with return value of plsql procedure or function. But I don't want to pass this value to some file and then read it.
    Thank'sLike below?
    bcm@bcm-laptop:~$ cat day.sh
    set X
    var1=$1
    SQLPLUS="sqlplus -s"
    LOGON="user1/user1 "
    day=`$SQLPLUS $LOGON <<EOF
    set heading off
    set feedback off
    set verify off
    select 'Have a nice day!' from dual where dummy ='$var1';
    exit;
    EOF`
    echo $day
    bcm@bcm-laptop:~$ ./day.sh
    Have a nice day!
    bcm@bcm-laptop:~$

  • Problem using default value of report parameter 1 to validate parameter 2 passed in to report

    I am having a problem with an SSRS report using the default value of report parameter 1 to validate parameter 2 passed in to report (via C#) instead of using the value of parameter 1 that is also passed into the report.  Here are the
    simplified details:
    Using SSDT, SQL Server 2008 R2
    SSRS report has 2 parameters:
    P1 -- text, hidden, default value 'R1', ... front-end C# code can pass 'R2' or 'R1'
    P2 -- text, allows multiple values, list of available values provided by stored procedure (sproc_list) that takes P1 value as a parameter.  Hence, sproc_list either provides a list for P1 = 'R1' or P1 = 'R2'.
    List for P1 = 'R1' is 'A', 'B', 'C'
    List for P1 = 'R2' is 'A', 'B', 'D'
    Values for P1 and P2 can be passed in via C# to the report.
    The C# front-end displays 2 report choices to the user, R1 and R2, where both choices call the same RDL; but choice R1 passes in 'R1' for P1, and the choice R2 passes in 'R2' for P1.
    Upon a users 1st time use of the report no parameters are passed in.  Then when the user exits the report, the parameter value for P2 that was chosen is saved off to a file for R1 or R2, and used the next time the user selects the report.
    Everything always works fine for report R1 since the default value for P1 is 'R1'.
    When R2 is chosen and the user selects 'D' as the value for P2, runs the report, then exits, the P2 value of 'D' for R2 is saved to a file.  When the user returns the next day to run report R2, 'R2' is passed for P1, and 'D' is passed for P2.
    This is when the problem occurs.  The value of 'D' for P2 is validated against a list generated for P2 based on the default value of 'R1' for parameter P1.  Hence, SSRS considers 'D' an invalid value for P2 and blanks out the P2 parameter. 
    The user can then use the drop down list for P2 and choose 'D', but this defeats the purpose of saving the parameter values to be used the next time.
    Why is the stored procedure that provides a list of available values for parameter P2 using the default value of 'R1' for parameter P1 instead of using the value of 'R2' passed into the report for parameter P1?

    Hi Tom,
    Sorry for my delay.
    If I understand correctly, you have two parameter in your report. It is a couple of cascading parameter. If we have choose ‘R1’ of P1, the P2 values is A, B, C. ‘R2’ of P1, corresponding P2 values is A, B, D. What your requirement is to save the end use
    select option of these two parameters.
    In SSRS, if we have configure the parameter with default value. When we run the report, the parameter will fill with the default value to filter data. If we want to save the last status we are render the report, we need to update the default value of P1.
    If we are query the default value from database, if possible, we can
    update the database try to resolve the issue.  Alternatively, we can set the dynamic default value for the parameter.
    Hope this helps.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Sending Date value to SAP R/3

    Hi,
        I am trying to send Date value from Text box (javascript) to SAP R/3 thru transaction and BAPI. But it is not accepting it. In SAP it accepting time value but it is not accepting date value. It take default date (current system date).
    But when we give date value directly in transaction it accepts.
    what is the problem. how to solve it?
    Regards,
    Senthil

    Your text box is a string.  If you assign it to a Local (or Transaction) Property of type DateTime, xMII may properly interpret it and allow the DateTime value to be populated.  However when you try to map it to SAP, it will most likely fail as it is of datatype DateTime (which is actually xml datetime).  You can assign the text box value to a Local Property with datatype String and format it from there.  Or if your Local Property is correctly interpreting the string from the text box and is updated, then you can explicitly convert from xml datetime to string type.
    functions which might be of interest or applicable are:
    datefromxmlformat
    dateformat
    stringpart
    Good luck,
    Mike

  • Handling Empty date value in the stored procedure call

    Hi,
    i am executing a stored procedure having date element, getting below the error for the empty date value.
    can any solve this issue?
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'WD_WRAP_PROCESS_APPMT_REQ_PR' (structure 'STATEMENT'): java.text.ParseException: Unparseable date: ""
    Thank You,
    Madhav

    Madhav,
    Can you check if you are sending blank values to the date parameter?
    raj

  • Round badi does not work in default formulas triggered when sending a value

    I have implemented the round BADI from sdn (how to). Problem is that it works perfect when :
    -  I execute it in UKT
    - I run it as a data manager package
    - I put it in default formulas and run the default formulas as a packe
    It however doesn't work when it is executed in default formulas when sending a value from an input scheduls.It gives an error "error converting records -  the root element is missing"
    Anybody a clue ?
    Cheers
    Nico

    Answering to myself!
    Code correction required:
    loop at it_cv into ls_cv.
    *{   INSERT         BPCK900005                                        2
    CHECK ls_cv-dimension NE 'MEASURES'.
    *}   INSERT

  • I have problem sending a email ..spool not created using custom FM

    Hi experts,
    i have problem sending a email ..spool not created using custom FM...this the custom FM
    * Send email notification
          lv_subject = text-037.
          lv_attachment = text-038.
          CALL FUNCTION 'Z_SEND_EMAIL_FROM_SPOOL'
            EXPORTING
              email1            = lv_email1
              email2            = lv_email2
              email3            = lv_email3
              subject           = lv_subject
              attachment_name   = lv_attachment
            EXCEPTIONS
              spool_not_created = 1
              OTHERS            = 2.
    Source code
    this is the source code for this FM
    IF sy-batch EQ 'X'.
        PERFORM get_job_details.
        PERFORM obtain_spool_id.
        PERFORM convert_spool_to_pdf.
        IF sy-subrc IS NOT INITIAL.
          MESSAGE e040(zhrcd) RAISING spool_not_created.
        ENDIF.
        PERFORM process_email USING email1
                                    email2
                                    email3
                                    subject
                                    attachment_name.
        WAIT UP TO 5 SECONDS.
        SUBMIT rsconn01 WITH mode   = 'INT'
                        WITH output = 'X'
                        AND RETURN.
      ENDIF.....
    Please let me know
    Edited by: Thomas Zloch on Nov 16, 2010 5:53 PM - please use code tags

    Hi srinivas ,
    Could you please Check
    FORM summary_report .
      DATA: lv_success TYPE i,
              lv_error TYPE i,
              lv_total TYPE i.
      DESCRIBE TABLE gt_data LINES lv_success.
    DESCRIBE TABLE gt_error LINES lv_error.
      DESCRIBE TABLE gt_message LINES lv_error.
    lv_total = lv_success + lv_error.
      lv_total = lv_success.
      gwa_summary-record = text-008."Number of Successful records.
      gwa_summary-number = lv_success.
      APPEND gwa_summary TO gt_summary.
      gwa_summary-record = text-009."Number of error records'.
      gwa_summary-number = lv_error.
      APPEND gwa_summary TO gt_summary.
      gwa_summary-record = text-010."Total number of records processed.
      gwa_summary-number =  lv_total.
      APPEND gwa_summary TO gt_summary.
    CLEAR gt_fieldcat.
      gwa_fieldcat_summ-col_pos = 1 .
      gwa_fieldcat_summ-fieldname  = 'RECORD'.
      gwa_fieldcat_summ-tabname = 'GT_SUMMARY'.
      gwa_fieldcat_summ-seltext_l  = text-011."Records
      gwa_fieldcat_summ-outputlen = '70'.
      APPEND gwa_fieldcat_summ TO gt_fieldcat_summ.
      gwa_fieldcat_summ-col_pos = 2 .
      gwa_fieldcat_summ-fieldname  = 'NUMBER'.
      gwa_fieldcat_summ-tabname = 'GT_SUMMARY'.
      gwa_fieldcat_summ-seltext_l  = text-012."Number
      gwa_fieldcat_summ-outputlen = '10'.
      APPEND gwa_fieldcat_summ TO gt_fieldcat_summ.
    ENDFORM.                    " SUMMARY_REPORT
    *&      Form  ERROR_REPORT
    FORM error_report .
    gt_fieldcat_err[] = gt_fieldcat[].
      gv_fieldcat_err-col_pos = 1.
      gv_fieldcat_err-fieldname  = 'PERNR'.
      gv_fieldcat_err-tabname = 'GT_MESSAGE'.
      gv_fieldcat_err-seltext_l  = text-070."Employee Number
      gv_fieldcat_err-outputlen = '20'.
      APPEND gv_fieldcat_err TO gt_fieldcat_err.
      gv_fieldcat_err-col_pos = 2.
      gv_fieldcat_err-fieldname  = 'MESSAGE'.
      gv_fieldcat_err-tabname = 'GT_MESSAGE'.
      gv_fieldcat_err-seltext_l  = text-071."Error Message
      gv_fieldcat_err-outputlen = '80'.
      APPEND gv_fieldcat_err TO gt_fieldcat_err.
    ENDFORM.                    " ERROR_REPORT
    *&      Form  FINAL_REPORT
    FORM final_report .
      DATA:lv_layout TYPE slis_layout_alv,
             lt_events_summ TYPE slis_t_event,
             lv_events_summ LIKE LINE OF lt_events_summ,
             lt_events_det TYPE slis_t_event,
             lv_events_det LIKE LINE OF lt_events_det,
             lt_events_err TYPE slis_t_event,
             lv_events_err LIKE LINE OF lt_events_det,
             lt_events_msg TYPE slis_t_event,
             lv_events_msg LIKE LINE OF lt_events_det.
      lv_events_summ-name = 'TOP_OF_PAGE'.
      lv_events_summ-form = 'TOP_OF_PAGE1'.
      APPEND lv_events_summ TO lt_events_summ.
      lv_events_det-name = 'TOP_OF_PAGE'.
      lv_events_det-form = 'TOP_OF_PAGE2'.
      APPEND lv_events_det TO lt_events_det.
      lv_events_err-name = 'TOP_OF_PAGE'.
      lv_events_err-form = 'TOP_OF_PAGE3'.
      APPEND lv_events_err TO lt_events_err.
      lv_events_msg-name = 'TOP_OF_PAGE'.
      lv_events_msg-form = 'TOP_OF_PAGE4'.
      APPEND lv_events_msg TO lt_events_msg.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
        EXPORTING
          i_callback_program = sy-repid.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          is_layout                        = lv_layout
          it_fieldcat                      = gt_fieldcat_summ
          i_tabname                        = 'IT_SUMMARY'
          it_events                        = lt_events_summ
      IT_SORT                          =
      I_TEXT                           = ' '
        TABLES
          t_outtab                         = gt_summary
    EXCEPTIONS
      PROGRAM_ERROR                    = 1
      MAXIMUM_OF_APPENDS_REACHED       = 2
      OTHERS                           = 3
    IF CHK_DTL IS NOT INITIAL.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          is_layout                        = lv_layout
          it_fieldcat                      = gt_fieldcat
          i_tabname                        = 'gt_data'
          it_events                        = lt_events_det
      IT_SORT                          =
      I_TEXT                           = ' '
        TABLES
          t_outtab                         = gt_data
    EXCEPTIONS
      PROGRAM_ERROR                    = 1
      MAXIMUM_OF_APPENDS_REACHED       = 2
      OTHERS                           = 3
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
       EXPORTING
         is_layout   = lv_layout
         it_fieldcat = gt_fieldcat_err
         i_tabname   = 'gt_error'
         it_events   = lt_events_err
       TABLES
         t_outtab    = gt_error.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
       EXPORTING
         is_layout   = lv_layout
         it_fieldcat = gt_fieldcat_msg
         i_tabname   = 'gt_message'
         it_events   = lt_events_msg
       TABLES
         t_outtab    = gt_error.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          is_layout   = lv_layout
          it_fieldcat = gt_fieldcat_err
          i_tabname   = 'gt_message'
          it_events   = lt_events_err
        TABLES
          t_outtab    = gt_message.
    IF GT_MESSAGE[] IS NOT INITIAL.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          is_layout   = lv_layout
          it_fieldcat = gt_fieldcat_msg
          i_tabname   = 'gt_message'
          it_events   = lt_events_msg
        TABLES
          t_outtab    = gt_message.
    ENDIF.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
    EXPORTING
       i_interface_check             = ' '
      IS_PRINT                      =
       i_screen_start_column         = 0
       i_screen_start_line           = 0
       i_screen_end_column           = 0
       i_screen_end_line             = 0
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER       =
      ES_EXIT_CAUSED_BY_USER        =
    EXCEPTIONS
      PROGRAM_ERROR                 = 1
      OTHERS                        = 2
    ENDFORM.                    " FINAL_REPORT
    *&      Form  top_of_page
          text
    FORM top_of_page1.                                          "#EC CALLED
      WRITE text-013."SUMMARY REPORT.
    ENDFORM.                    "top_of_page
    *&      Form  top_of_page2
          text
    FORM top_of_page2.                                          "#EC CALLED
      WRITE text-014."DETAIL REPORT.
    ENDFORM.                    "top_of_page
    *&      Form  top_of_page3
          text
    FORM top_of_page3.                                          "#EC CALLED
      WRITE text-015."ERROR REPORT
    ENDFORM.                    "top_of_page
    *&      Form  EMAIL_NOTIFICATION
    FORM email_notification .
      DATA: lv_email1  TYPE somlreci1-receiver,
           lv_email2  TYPE somlreci1-receiver,
           lv_email3  TYPE somlreci1-receiver,
           lv_subject TYPE char200,
           c_flag     TYPE c           VALUE 'X',
           lv_attachment TYPE char50.
      CLEAR: lv_email1,
             lv_email2,
             lv_email3,
             lv_subject,
             lv_attachment.
      SELECT SINGLE email1
                    email2
                    email3
        FROM zhr_interface_pr
        INTO (lv_email1,lv_email2,lv_email3)
        WHERE zinterfaceid EQ gc_objectid.
      IF sy-subrc EQ 0.
        IF sy-batch EQ 'X'.
    Send email notification
          lv_subject = text-037.
          lv_attachment = text-038.
          CALL FUNCTION 'Z_SEND_EMAIL_FROM_SPOOL'
            EXPORTING
              email1            = lv_email1
              email2            = lv_email2
              email3            = lv_email3
              subject           = lv_subject
              attachment_name   = lv_attachment
            EXCEPTIONS
              spool_not_created = 1
              OTHERS            = 2.
          IF sy-subrc <> 0.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.                    "
    Edited by: katewinslate@SAP on Nov 17, 2010 12:50 PM

  • One LIFNR, based on a function can send multiple values to traget.

    Dear SDNers,
    I need your help to solve this problem…
    Let me explain the situation.
    I have a field value “LIFNR”, which is sending a value from the source to target.
    Here by using a User Define Function based on parameters I have to map the exact target.
    The problem is:
    Currently I am having a function which is sending  a value to the target based on parameters and some times the target values are more that a single value. At that situation the function returns a random value to the target value.
    In the below Old Function there is a method used to execute only one value, if more than one values are there then it will select a random value from them and send that value to the destination.
    IFIdentifier src = XIVMFactory.newIdentifier(strContext, senderAgency, senderScheme);
    IFIdentifier dst = XIVMFactory.newIdentifier(strContext, receiverAgency , receiverScheme);
    String strResult = XIVMService.executeMapping(src, dst, a);
    Solution as in New Function,
    I have created a array to that particular destination variable and stored all value in array and passed to that target value. I have bold that letters.
    //here I run a loop to store multiple destination value
    if(receiverService.length>1)
    for(i=0;i<receiverService.length;i++)
    if (receiverService.equals("EM1CLNT003")||receiverService.equals("KM1CLNT003")||receiverService.equals("C11CLNT003")) receiverAgency<i> = "C11CLNT003";
    I am sending both the functions
    My question is is that LIFNR can send the multiple values to the detination for this change ?
    And also I want to know how to execute this program and transport and testing this UDF.
    Please need your inputs.
    Thanks
    Bala Prasad
    4. Old Function
    java.util.regex.Pattern;java.util.Vector;java.util.regex.Matcher;com.sap.aii.mapping.value.api.*;
    public String get_Value_Mapping_Table_V(String a,String scheme,String context,Container container){
    // PART1 : First we need to get the sender - and receiver service from the container object
    GlobalContainer globalContainer;
    String senderService = new String();
    String receiverService = new String();
    java.util.Map map;
    //Fill variables
    globalContainer = container.getGlobalContainer();
    map = globalContainer.getParameters();
    // Get the sender- and receiver service constants
    senderService = (String) map.get(
    StreamTransformationConstants.SENDER_SERVICE);
    receiverService = (String) map.get(
    StreamTransformationConstants.RECEIVER_SERVICE);
    // PART2: Now we need to find the correct value mapping table
    String strContext = context;                                //some context value
    String senderScheme = scheme;                                    //VendorNumber or VendorAccountGroup
    String receiverScheme = scheme;
    String receiverAgency = new String();
    if (receiverService.equals("EL1CLNT100")||receiverService.equals("KL1CLNT100")||receiverService.equals("PL1CLNT100")) receiverAgency = "PL1CLNT100";
    if (receiverService.equals("D01CLNT100")||receiverService.equals("T01CLNT100")||receiverService.equals("P01CLNT100")) receiverAgency = "P01CLNT100";
    if (receiverService.equals("EM1CLNT003")||receiverService.equals("KM1CLNT003")||receiverService.equals("C11CLNT003")) receiverAgency<i> = "C11CLNT003";
    String senderAgency =  "MEPCLNT100";
    IFIdentifier src = XIVMFactory.newIdentifier(strContext, senderAgency, senderScheme);
    IFIdentifier dst = XIVMFactory.newIdentifier(strContext, receiverAgency , receiverScheme);
                try {
                            String strResult = XIVMService.executeMapping(src, dst, a);
                            return strResult;
                } catch (ValueMappingException e) {
                            return a;
    5. New Function
    java.util.regex.Pattern;java.util.Vector;java.util.regex.Matcher;com.sap.aii.mapping.value.api.*;
    public String get_Value_Mapping_Table_N(String a,String scheme,String context,Container container){
    // PART1 : First we need to get the sender - and receiver service from the container object
    GlobalContainer globalContainer;
    String senderService = new String();
    String receiverService = new String();
    java.util.Map map;
    //Fill variables
    globalContainer = container.getGlobalContainer();
    map = globalContainer.getParameters();
    // Get the sender- and receiver service constants
    senderService = (String) map.get(
    StreamTransformationConstants.SENDER_SERVICE);
    receiverService = (String) map.get(
    StreamTransformationConstants.RECEIVER_SERVICE);
    // PART2: Now we need to find the correct value mapping table
    String strContext = context;                                //some context value
    String senderScheme = scheme;                                    //VendorNumber or VendorAccountGroup
    String receiverScheme = scheme;
    String receiverAgency[] = new String(); //here I changed into a array to store multiple value
    if (receiverService.equals("EL1CLNT100")||receiverService.equals("KL1CLNT100")||receiverService.equals("PL1CLNT100")) receiverAgency = "PL1CLNT100";
    if (receiverService.equals("D01CLNT100")||receiverService.equals("T01CLNT100")||receiverService.equals("P01CLNT100")) receiverAgency = "P01CLNT100";
    //here I run a loop to store multiple destination value
    if(receiverService.length>1)
    for(i=0;i<receiverService.length;i++)
    if (receiverService.equals("EM1CLNT003")||receiverService.equals("KM1CLNT003")||receiverService.equals("C11CLNT003")) receiverAgency<i> = "C11CLNT003";
    }String senderAgency =  "MEPCLNT100";
    IFRequest src = XIVMFactory.newIFRequest(strContext,senderAgency,senderScheme);
    IFRequest dst = XIVMFactory.newIFRequest(strContext,receiverAgency,receiverScheme);
                try {
                            String strResult = XIVMService.executeMapping(src, dst, a);
                            return strResult;
                } catch (ValueMappingException e) {
                            return a;

    Janaki,
    "and it did not work."
    That's useless information.
    When asking for help with a technical question here, you need to describe exactly what you did, showing all code, explaining the entire context in which the code is used, and showing all error messages and actual results along with a description of the expected results.
    One thing though, if this example is based on the standard EMP table, why does "depno" have no "t" in it in all your references?
    Scott

  • BPC MS 7.0 Input template sends unchanged values

    Hello,
    We have created input templates in BPC MS 7.0 that retrieve sales and a driver from BPC and send a corresponding cos value back to the system.
    Col A and Col B are get only, and Col C is the input value (a formula).
          Col A     Col B                 Col C
    ex: Sales * Royalty Driver = Royalty COS
    ex:  $2m * 0.015 = $30k
    The problem we are having is that even when Col A & B have not changed (meaning the calc in Col C should not have changed) the system still treats the cell as a changed value and wants to submit the value.
    The template shows sales by division and product and in many cases can be thousands of lines. If we update one value, it would be nice if all of the values didnt have to be resubmitted.
    Please let me know if any one has any suggestions.
    Regards,
    Luke

    Haven't come across this issue before, but have you thought of adding a couple more columns so that your send row value is always 0 unless you manually go in and make an update? (since it won't actually send a zero, therefore it would cut down on number of records sent)
    For instance
    2M * .15 = 30K, -30K, = 0
    get expr. 1 * get expr. 2  = calc value, - get what was already sent = new value to send.
    So now, if you change either expression #1 or #2, the last column will no longer equal zero.  For all other rows, it will always equal zero.  Now when you send data it will only send the non-zeroes. 
    Well, maybe something like that, anyway; I'm not sure what you're expanding on and such, so it's not necessarily a solid solution, but it might be some thought food to chew on.
    Good luck!
    Susan

  • Sending Two Values Through the URL

    Morning Everyone,
    Iv got a small problem. I want to sent 2 variables through a URL. I can send 1 no problem but im unsure about how to send 2. Here is my code to send 1:
    select COL_1, COL_2, COL_3,
       '<a. href="'
    || 'f?p=&APP_ID.:30:&SESSION.::&DEBUG.::'
    || 'P30_DB_NAME:'
    || 'CSTRNPA'
    || '">'
    || 'link'
    || '</a>'
    from tableWhat is happening here is i am sending the simple string value 'CSTRNPA' to the item P30_DB_NAME on my target page. Please can someone show me the way to send 2. I have tried different combos but have yet to successfully do it.
    Thanks in Advance,
    -N.S.N.O.

    Hey Guys,
    Iv got another question. I want to know how to send the value of a column instead of a string. What i mean by this is if i go to
    report attributes > link then i can select the item names and the values from which column i choose. For Example if the column was called DB the pop up list would give me the option of #DB#
    how can i incoperate this into me code?
    select COL_1, COL_2, COL_3,
       '<a. href="'
    || 'f?p=&APP_ID.:30:&SESSION.::&DEBUG.::'
    || 'P30_DB_NAME,P30_ANOTHER:'
    || 'CSTRNPA,VALUE'
    || '">'
    || 'link'
    || '</a>'
    from tableThanks,
    -N.S.N.O.

  • HELP! cfprocparam not sending NULL value

    I'm trying to send the value null to my stored procedure if
    the value of conf_date is 1/1/1900. It's not working! Here's how
    I'm trying to do it:
    <cfif arguments.conf_date EQ "1/1/1900">
    <cfprocparam type="in" cfsqltype="cf_sql_date"
    dbvarname="@conf_date" null="yes">
    <cfelse>
    <cfprocparam type="in" cfsqltype="cf_sql_date"
    dbvarname="@conf_date" value="#arguments.conf_date#" null="no">
    </cfif>

    I seperate the logic from the tag
    <cfif arguments.conf_date EQ "1/1/1900">
    <cfset dateNull = "Yes">
    <cfelse>
    <cfset dateNull = "No">
    </cfif>
    <cfprocparam type="in" cfsqltype="cf_sql_date"
    dbvarname="@conf_date" value="#arguments.conf_date#"
    null="#dateNull#">
    Ken

Maybe you are looking for

  • Fonts not embedding when making PDF from PM 7.1

    In making a PDF from a PM file, I am having trouble getting the fonts to embed.  The interesting thing is that the fonts that are not embedding are Times Roman and Arial; other fonts are being embedded.  These fonts are installed and I have the "Embe

  • Export to Quicktime - in pieces?

    Hi, I am trying to solve a sudden problem I encounter. I tried to Export a sequence doing Export/Quicktime Movie/Current Settings, Self-Contained, but instead exporting it to one file, the movie is divided in several files of 2GB with the addition of

  • Podcast only turns up in search (not in store front)

    Hi there! I'm really excited that I finally was able to get my video podcast (starslyderz) up and running. iTunes accepted it, and everything should be great, right? Problem is, nobody will ever SEE my podcast unless they specifically do a search for

  • How do i change my display

    I changes the display mode resolution, and my Mini doesn't support it, how do i go back to it when the screen says "Unsupported Mode"?

  • Help me on to create a structure for Datatype

    Dear XI experts, Please suggest me how can i create the structure for creating a datatype for Sender side. Header Information: 1) UDFString4 /    <C88> value where C106="PICKUP" 2) UDFString1 /    <C83> value where <C106> = u201CPICKUPu201D 3) UDFStr