SPRUNCALCACCOUNT able to execute without Currency dimension?

Hi,
I have an application, which doesn't have currency dimension. I'd like to use SPRUNCALCACCOUNT for copying values to cash flow statement.
According to the example written in the Administration Guide, I need to put currency parameter in addition to application set, category etc.
*RUN_STORED_PROCEDURE=SPRUNCALCACCOUNT([LEGALAPP], [ACTUAL], [USD],
[%SCOPETABLE%], [%LOGTABLE%],[Transformation group],[MAXSTATUS])
Is the currency dimension a must? I tried running it without putting currency and it doesn't work. Is there any workaround?
Thank you!
Sunny

I would be very surprised if it works without a currency-type dimension. It doesn't look like anyone on the forum here has experience with this; you may want to confirm with SAP support.
I would guess that the stored proc behind the scenes is looking up the name of the currency-type dimension, and then dropping that "USD" parameter into a SQL query's where clause in something like:
... select someStuff from mbrMyCurrencyTypeDimensionName where ID = 'USD'
If you're feeling adventurous, you might try to change one of your existing dimensions to a currency-type dimension, if that's possible. It would only work if the calculation makes sense by passing a single member of that chosen dimension into the SP.
A few versions back, I'd recommend playing with the system_constants.lgl file in the adminapp\application folder, to trick the BPC SQL logic in this way. The following would tell the system that the currency-type dimension is now named Product:
*FUNCTION CURRENCYDIM=Product
However, I think that these days, the stored procs all take their dimension-type metadata from tblDimension in the database, and not that system constants file.
Otherwise, your only other choice may be to add another dimension to the app -- even though it only has one member, LC. Not ideal, but maybe it's still worthwhile if your calcs can be done using the Account Transformation rules.

Similar Messages

  • How to find all intersections of children of currency dimensions and currentmembers of all other dimensions where data exists

    Hi all, I have a requirement where I need to find all intersections of children of currency dimensions and currentmembers of all other dimension wherever data exists for them.
    Its a ASO cube with and version is 11.1.2.2.
    If I try to write the formula in a the below way to test, I get an error that 'Currenttuple can only be used with a named set'. But when I try to create a named set with the 'WITH' keyword, it not able to recognize the 'WITH' keyword. I think I am missing something obvious and this may not be the correct way to achieve this. Please help.
    1st try with just Currenttuple - error 'Currenttuple can only be used with a named set'
    iif(
      (isgeneration([Time].currentmember,4)),
      CASE
      WHEN NOT ISEMPTY(
    Crossjoin([Currency].Children,
    {([Time].currentmember,[Org].currentmember,
    [S Org].currentmember,[C Code].currentmember,
    ).Currenttuple
      THEN  Missing
      ELSE Missing
    END, Missing)
    2nd try to create a named set with 'WITH' keyword - syntax error at WITH
    /*with set [NewSet] as                                      
    'Crossjoin([TC].Children,
    {([Fiscal].currentmember,[Organization].currentmember,
    [Sales Org].currentmember,[Company Code].currentmember,
    [Measures].currentmember,
    [Product].currentmember,
    [Channel].currentmember,
    [Order Reason].currentmember,
    [Country].currentmember,
    [Billing Type].currentmember,
    [Business Area].currentmember,
    [Sales District].currentmember,
    [Data Source].currentmember,
    [View N/A]
    iif(
      (isgeneration([Fiscal].currentmember,4)),
      Filter([NewSet], NOT IsEmpty([NewSet].CurrentTuple))
    , Missing)

    Hi Tim,
    Thanks for you reply and sorry for my delayed response. Actually there is one more requirement in this, which makes it a bit complicated. There are another set of members in the Measure dim called FXDirrate and FXIndrate. The logic is :
    1. If data exists for the combination of a Currency.children, FXDirrate and current member of all other dims
    then convert the value for Currency.children by diving by FXDirrate
    2. If data exists for the combination of a Currency.children, FXIndrate and current member of all other dims
    then convert the value for Currency.children by multiplying by FXIndrate
    3. Then value of the calculated members will be sum(all FXDirrate converted + all FXIndrate)
    Currency does roll up but as the data for its children can either be in Dirrate or Indrate and the sum needs to be taken after the conversion, there I am not able to proceed as I am not able to check the existence of data in individual children of currency as Isempty isn't working on a set . Thanks a lot for your help.

  • Run a LabView 2012 executable without installing RTE.

    I have a thumbdrive with a LabView executable that is ready to run.  I want to be able to run this executable on different PC's without having to install the Run Time Engine on each machine.  What dll do I need to have in the same directories as the executable so I can run the executable without actually installing the Run Time Engine.  Thanks in advance.
    Sebastian

    Like the others said, there's no official way of doing this.
    That said, the answer to your actual question is "lvrt.dll" and some of the others in the same folder (I don't remember offhand which folder it was. Look for it yourself). Note that there are some caveats:
    The last time I did something like this was around LV 7.0. I didn't check in later versions, but I seem to recall someone who usually knows what he's talking about saying that it doesn't work at some point after 8.0.
    Even if it does still work, this will only support things which are in those DLLs and don't have any other dependencies. That means things like VISA, DAQmx, other drivers and possibly even some of the display elements which are based on MESA for rendering or on other external resources.
    It obviously won't be supported in any way.
    Try to take over the world!

  • Hyperion EPMA Currency Dimension

    Hi,
    I was facing issue while loading the hierarchies for Currency Dimension in EPMA through Interface tables.
    I'm able to load Gen2 members, but unable to load Gen3 members which is the child of Gen2 members.
    Whether there is any limit for currency dimension to be upload only till Gen2 ???
    Thanks in advance.

    Hi,
    Thanks for ur reply....
    My concern is that, i'm unable to create the Gen3 members , since this is the requirement.
    Please try the below Hierarchy, whether it is creating as the Dimension Type is CURRENCY.
    Currency (Gen1)
    All_Currency(Gen2)
    USD(Gen3)
    INR(Gen3)
    Thanks in Advance

  • Currency Dimension

    Hello Experts,
    I'm currently working on the currency translation, and right now I got a PDF on how to do it.
    The issue faced right now is that the Currency Dimension is not created by default on BPC, and I need to know if BPC creates it automatically on some process or if I can create it manually without affecting a defined process.
    Thanks for your answers on this.
    Best Regards,
    Rodrigo

    Hi,
    Generally Apshell (System delivered Appset) will have RptCurrency Dimension which is a
    Currency type dimension.  It may or may not be directly useful to your scenario, depends on the
    requirement please change accordingly.  When you work on your scenario, you will copy APSHELL
    appset and work so please work / change in the created / copied Appset. 
    Currency translation will work alongwith RATE Application, so in Rate Application you will find another Currency
    type Dimension i.e., InputCurency Dimension.  Wherein you will have all the currencies which you are
    dealing with.
    I hope you got my point.  Still if you require any clarifications please let us know.
    Raghu B.S.

  • Is a currency dimension required for the Allocation engine to work?

    Hello All,
    Currently working on an application with no currency dimension, and I can't get the allocation script to work.  Just wondering if the allocation engine will work without a currency dimension.
    Thanks,
    Hutch
    Edited by: hutchinsm on Jul 29, 2011 4:24 PM

    Just found my mistake in my allocation logic.  It works now, so the answer is No, the currency dimension is not required for the allocation engine to work.

  • We are not able to execute below procedure, plz help me ASAP.

    Dear All
    I am created one procedure with 4 parameter 1 is Ref Cusrsor rest of 3 are Varchar,But we are not able to execute below procedure, plz help me ASAP.
    CREATE OR REPLACE PROCEDURE GETCHART(RPT_CURSOR OUT RPT_PACKAGE.RPT_RESULTS,
    V_VITALCHARTING VARCHAR2,
    V_DOCIDPATIENTS VARCHAR2,
    v_fromdate varchar2,
    v_todate varchar2) AS
    D1 VARCHAR2(500);
    D2 VARCHAR2(500);
    G1 VARCHAR2(500);
    R1 VARCHAR2(500);
    R2 VARCHAR2(500);
    R3 VARCHAR2(500);
    R4 VARCHAR2(500);
    R5 VARCHAR2(500);
    H1 VARCHAR2(500);
    H2 VARCHAR2(500);
    V_COUNT NUMBER;
    RC VARCHAR2(100);
    RMI VARCHAR2(100);
    RMAX VARCHAR2(100);
    R12 VARCHAR2(500);
    REQ NUMBER;
    V_MAX number;
    v_idcount number;
    RSEQ NUMBER;
    RCH VARCHAR2(500);
    BEGIN
    INSERT INTO TEMPDATA
    SELECT ROWNUM G, TIME1
    FROM (SELECT distinct TO_CHAR(H.RECORDEDDNT, 'mm/dd/yy hh24:mi:ss') TIME1
    FROM VIEW_PATIENTCHART V,
    chartingtxheader H,
    chartingtxdetails D
    WHERE h.docid = d.docidchartingtxheader
    and v.VITALCHARTING_PK = h.docidvitalcharting
    and v.VITALPARAMETER_PK = d.docidvitalparameter
    and v.VITALCHARTING_PK = V_VITALCHARTING --General Vital Signs
    and H.DOCIDPATIENTS = V_DOCIDPATIENTS
    and TO_DATE(to_char(h.recordeddnt, 'DD/MM/YYYY'),
    'DD/MM/YYYY') BETWEEN
    TO_DATE(v_fromdate, 'DD/MM/YYYY') AND
    TO_DATE(V_TODATE, 'DD/MM/YYYY'));
    SELECT MAX(ID) INTO V_MAX FROM TEMPDATA;
    V_IDCOUNT := 0;
    WHILE V_IDCOUNT < V_MAX loop
    FOR J IN (SELECT id, ROWNUM G, vdate time1
    FROM (SELECT id, ROWNUM, VDATE
    FROM TEMPDATA
    WHERE ID BETWEEN V_IDCOUNT + 1 AND V_IDCOUNT + 8)) LOOP
    D1 := D1 || 'COL' || J.G || ',';
    D2 := D2 || '''' || J.TIME1 || '''' || ',';
    END LOOP;
    D1 := SUBSTR(D1, 1, LENGTH(D1) - 1);
    D2 := SUBSTR(D2, 1, LENGTH(D2) - 1);
    DBMS_OUTPUT.PUT_LINE(d1);
    SELECT SEQ_GETCHART.NEXTVAL INTO RSEQ FROM DUAL;
    G1 := 'INSERT INTO GETDATA2 (IDSLNO,idcount,' || D1 || ') VALUES(' || RSEQ || ',' ||
    V_IDCOUNT || ',' || D2 || ')';
    --EXECUTE IMMEDIATE G1;
    DBMS_OUTPUT.PUT_LINE(d1);
    DBMS_OUTPUT.PUT_LINE(SUBSTR(D2, 1, LENGTH(D2) - 1));
    DBMS_OUTPUT.PUT_LINE(G1);
    EXECUTE IMMEDIATE G1;
    FOR K IN (SELECT id, ROWNUM G, vdate time2
    FROM (SELECT id, ROWNUM, VDATE
    FROM TEMPDATA
    WHERE ID BETWEEN V_IDCOUNT + 1 AND V_IDCOUNT + 8)) LOOP
    FOR I IN (select s.*, rownum hslno
    from (SELECT v.CHARTNAME,
    v.PARAMETERNAME_CS,
    ' ' || v.PARAMETERNAME PARAMETERNAME,
    TO_CHAR(H.recordeddnt, 'mm/dd/yy hh24:mi:ss') TIME1,
    CASE
    WHEN IDSLNO_GN5029 IN (1040, 1041) THEN
    CASE
    WHEN TO_NUMBER(d.recordedvalue) <
    TO_NUMBER(D.MINVALUE) THEN
    decode(d.recordedvalue,
    null,
    d.recordedvalue,
    d.recordedvalue || ' ' || 'L')
    ELSE
    CASE
    WHEN TO_NUMBER(d.recordedvalue) >
    TO_NUMBER(D.MaxVALUE) THEN
    decode(d.recordedvalue,
    null,
    d.recordedvalue,
    d.recordedvalue || ' ' || 'H')
    ELSE
    decode(d.recordedvalue,
    null,
    d.recordedvalue,
    d.recordedvalue || ' ' || 'N')
    END END ELSE d.recordedvalue END IMAGECHAR,
    d.minvalue,
    d.maxvalue,
    D.UOMCODE
    FROM VIEW_PATIENTCHART V,
    chartingtxheader H,
    chartingtxdetails D
    WHERE h.docid = d.docidchartingtxheader
    and v.VITALCHARTING_PK = h.docidvitalcharting
    and v.VITALPARAMETER_PK = d.docidvitalparameter
    and v.VITALCHARTING_PK = V_VITALCHARTING --General Vital Signs
    and H.DOCIDPATIENTS = V_DOCIDPATIENTS
    ORDER BY V.DISPLAYORDER_CS, V.DISPLAYORDER
    -- v.PARAMETERNAME_CS,v.PARAMETERNAME
    ) s
    where s.time1 = k.time2) LOOP
    select count(1)
    into v_count
    from GETDATA2 d
    where d.PARAMETERNAME_CS = i.PARAMETERNAME_CS
    and PARAMETERNAME = i.PARAMETERNAME
    and idcount = v_idcount;
    IF V_COUNT = 0 THEN
    RCH := I.CHARTNAME;
    R1 := 'COL' || K.G;
    R2 := '''' || I.PARAMETERNAME_CS || '''' || ',';
    R3 := '''' || I.PARAMETERNAME || '''' || ',';
    R4 := '''' || I.IMAGECHAR || '''';
    RC := '''' || I.CHARTNAME || '''' || ',';
    RMI := '''' || I.minvalue || '''' || ',';
    RMAX := '''' || I.maxvalue || '''' || ',';
    R12 := '''' || I.UOMCODE || '''' || ',';
    SELECT SEQ_GETCHART.NEXTVAL INTO RSEQ FROM DUAL;
    H1 := 'INSERT INTO GETDATA2 (IDSLNO,UMCODE,idcount,CHARTNAME,minvalue,maxvalue,PARAMETERNAME_CS,PARAMETERNAME,' || R1 || ')' ||
    ' values(' || RSEQ || ',' || R12 || v_idcount || ',' || RC || RMI || RMAX || R2 || R3 || R4 || ')';
    EXECUTE IMMEDIATE H1;
    ELSE
    R5 := 'COL' || K.G;
    R4 := '''' || I.IMAGECHAR || '''';
    H2 := 'UPDATE GETDATA2 SET ' || R5 || '=' || R4 ||
    'WHERE PARAMETERNAME_CS=' || '''' || I.PARAMETERNAME_CS || '''' ||
    ' AND ' || 'PARAMETERNAME=' || '''' || I.PARAMETERNAME || '''';
    EXECUTE IMMEDIATE H2;
    END IF;
    END LOOP;
    end loop;
    UPDATE getdata2 s
    set s.parametername = s.parametername || ' -' || ' (' || minvalue ||
    ' -- ' || maxvalue || ') ' || UMCODE
    where s.parametername is not null
    and idcount = v_idcount
    and minvalue != 0
    and maxvalue != 0;
    UPDATE getdata2 s
    set s.parametername = s.parametername || ' -' || UMCODE
    where s.parametername is not null
    and idcount = v_idcount
    and minvalue = 0
    and maxvalue = 0;
    UPDATE GETDATA2 S
    SET S.PARAMETERNAME_CS = NULL
    WHERE ROWID NOT IN (SELECT MIN(ROWID)
    FROM GETDATA2
    WHERE idcount = v_idcount
    GROUP BY PARAMETERNAME_CS)
    and idcount = v_idcount;
    UPDATE GETDATA2 S
    SET CHARTNAME = NULL
    WHERE ROWID NOT IN (SELECT MIN(ROWID)
    FROM GETDATA2
    WHERE idcount = v_idcount
    GROUP BY CHARTNAME)
    and idcount = v_idcount;
    UPDATE getdata2 s
    set s.parametername = ' PARAMETER'
    where s.parametername is null
    AND S.PARAMETERNAME_CS IS NULL;
    v_idcount := v_idcount + 8;
    D1 := null;
    d2 := null;
    end loop;
    for i in (SELECT G.PARAMETERNAME_CS, G.IDSLNO
    FROM GETDATA2 G
    WHERE G.PARAMETERNAME_CS IS NOT NULL) LOOP
    INSERT INTO GETDATA2
    (IDSLNO, PARAMETERNAME)
    VALUES
    (I.IDSLNO - 1 + 0.5, I.PARAMETERNAME_CS);
    END LOOP;
    update GETDATA2 h set h.PARAMETERNAME_CS = null;
    update GETDATA2 h set h.chartname = rcH;
    INSERT INTO GETDATA1
    SELECT CHARTNAME,
    PARAMETERNAME_CS,
    PARAMETERNAME,
    COL1,
    COL2,
    COL3,
    COL4,
    COL5,
    COL6,
    COL7,
    COL8,
    COL9,
    COL10,
    MINVALUE,
    MAXVALUE,
    UMCODE
    FROM GETDATA2
    ORDER BY IDSLNO;
    OPEN RPT_CURSOR FOR
    SELECT * FROM GETDATA1;
    END;
    CREATE OR REPLACE PACKAGE "RPT_PACKAGE"
    as
    type RPT_RESULTS is REF CURSOR;
    type RPT_VARRAY is VARRAY(2000) of VARCHAR2(2000);
    END RPT_PACKAGE;
    Execute
    declare
    type my_newcursor IS REF CURSOR;
    begin
    GETCHART(my_newcursor,'General Vital Sign','1145561',sysdate-1,sysdate);
    end;

    Parwez wrote:
    Dear All
    I am created one procedure with 4 parameter 1 is Ref Cusrsor rest of 3 are Varchar,But we are not able to execute below procedure, plz help me ASAP.
    see a picture of my car.
    my car won't go.
    tell me how to make my car go.
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • How to populate data in TargetCube from SourceCube for a particular product/currency dimension selected in form1.

    Hi,
    Need help regarding Business rule scenario "How to populate data in "Target Form (plantype2)" from "Source Form(plantype1)" for a particular product/currency dimension combination selected in form1"
    Scenario 1) :  I have data for Product(Computer)/Currency(USD) dimension combination in Source Form
                        When i open Target Form and then select a Product(Computer)/Currency(USD) combination and then right click on form to invoke a Business rule to get data for this same                     product/currency combination from Source Form.
    Scenario 2) : If there isnt any data in Source Form for product(Computer)/Currency(USD) combination, then the data for product(computer)/Currency(Default Currency) to be populated into Target                     Form.
    The members in Currency Dimension (Shared Dimension) are USD & Default Currency.
    Can anyone please help.
    Thanks,
    Rajkumar

    Adding to what Celvin Kattookaran has said
    You can either write a Business Rule / Calculation script with @XREF function and also you can check condition if there is data in USD then populate USD else "Default currency"
    If you want that data in source to be available in target, then you can use @XWRITE in a rule from source cube to push the data to Target.
    Amarnath
    ORACLE | Essbase

  • Not able to un-merge a dimension in webi report

    Hello,
    I'm facing an issue in webi reports. That is I'm not able to un-merge a dimension. I'm using BO 4.0 sp 6
    I have 6 data providers in my webi report all of those 6 have sales order number in common. The report refreshes fine but a new requirement came in where I had to add another query (data provider) which also has the sales order number.
    Now in the report I need to merge the new query's sales order number with the existing merged sales order number. When I un-merge the existing sales order number; webi just does not respond.
    Any ideas? thanks in advance.
    Regards,
    samique

    The way I resolved this is:
    1- Removed Sales Order Object from all the existing queries. (the variables that were using the sales orders broke)
    2- Added a new data provider query in webi; then added sales order objects in all the data providers.
    3- Merged the Sales Order objects in the webi report.
    4- fixed all the variables with calculations requiring sales order object.
    5- Dragged the Sales Order object to the report body.
    I hope to see an option in future where we don't have to do all this just to add a new data provider query to an existing report that uses merged dimensions. Because its just a waste of time re-doing things.
    There should be an option to merge new dimensions to the existing merged dimensions in the webi report.
    Regards,
    samique

  • Not able to execute scenario in RA 14.0

    Problem Summary
    Not able to execute scenario in RA 14.0 
    Problem Description
    [oracle@dev-rtlrmadb src]$ ./SIL_RetailLoadControlSeedData.ksh
    OracleDI: Starting scenario SIL_RETAILLOADCONTROLSEEDDATA 001 in context DEVELOPMENT_INSTALL ...
    2015-02-08 12:01:01.026 ERROR ODI-1217 Session SIL_RETAILLOADCONTROLSEEDDATA (20404) fails with return code 7000.
    2015-02-08 12:01:01.099 ERROR ODI-1134 Agent Internal encountered an error: ODI-1217: Session SIL_RETAILLOADCONTROLSEEDDATA (20404) fails with eturn code 7000. Caused by: ODI-1226: Step RA_Log_Error_File fails after 1 attempt(s).
    When checking in $MMHOME/error directory , the log is showing following error :- 
    Package Name-> SIL_RETAILLOADCONTROLSEEDDATA
    Step Name-> SIL_RetailInitial_C_ODI_PARAM_Load
    Error Details->
    ODI-1226: Step SIL_RetailInitial_C_ODI_PARAM_Load fails after 1 attempt(s).
    ODI-1240: Flow SIL_RetailInitial_C_ODI_PARAM_Load fails while performing a Loading operation. This flow loads target table C_ODI_PARAM.
    ODI-1228: Task SS_0 (Loading) fails on the target ORACLE connection ORACLE_BI_APPLICATIONS_RA_INSTALL.
    Caused By: java.sql.SQLSyntaxErrorException: ORA-01918: user 'radm01' does not exist
    DB user exists. I'm able to login via sqlplus.   Have checked in Physical schema and Logical schema also. All required Data Servers exeists in Topology -> physical / locical schema-> oracle. and tested the connection every thing is working properly.
    Error Codes
    ODI-1226  , ODI-1240 , ODI-1228 , ODI-1217 , ODI-1134 , ODI-1232
    Problem Category/Subcategory
    Retail Merchandising Analytics Issues
    Uploaded Files
    Template Question Responses
    1) ### Steps to Reproduce ###
    Go to $MMHOME/src .
    Execute the   ./SIL_RetailLoadControlSeedData.ksh  from prompt.    This gives the mentioned error.
    I'm currently configuring Oracle Merchandising Analytics 14.0  . Referring guide  " Oracle® Retail Analytics Installation Guide Release 14.0 E50594-05 ".
    I'm at step number 11 , 
    page no 58.

    Please help. Its urgent.

  • My phone is stuck in recovery mode, am i able to restore without loosing all contacts? p.s i dont have my original computer

    my phone is stuck in recovery mode, am i able to restore without loosing all contacts? p.s i dont have my original computer

    Thanks, I figured that out, so I went ahead and restored it, which also didn't work!  It gave me an error 3194, which I also can't figure out.

  • Subject: Displaying key figures without currency unit in BEX reports

    Hello,
    Is it possible to display key figures without currency unit in BEx reports? For example; Material Costs 1000 EUR
    should be shown as 1000. Currency unit EUR and also scaling factor (*1000 EUR) does not interest us.
    When we use display options in query properties, we just see an option of displaying key figures with/without scaling factors, which does not solve our problem.
    Thanks for your reply.
    Regards,
    Nuran Adal

    Hi Eugene,
    thank you very much for your quick reply. We have very detailed reports with min. 10 columns, I should have defined 10 more formula columns to realize this (NODIM), but anyway there is no other way to do this, am I right?
    Best Regards,
    Nuran

  • I am not able to execute the transport.send(message)

    I am not able to execute the transport.send(message) when trying for sending mail. I am getting error like this : -
    javax.mail.SendFailedException: Sending failed;  nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: 10.175.80.50, port: 25;  nested exception is: java.net.ConnectException: Connection timed out: connect
    Please help me on this to resolve this issue asap. thanks

    Hi Vinod,
    public void SendMail( )
        //@@begin SendMail()
              // Specify the host name of the mail server
              String host ="----
              IWDMessageManager messageMgr = wdControllerAPI.getComponent().getMessageManager();
              // Initialize Session
              Properties props = System.getProperties();
              props.put("mail.smtp.host", host);
              props.put("mail.smtp.auth", "true");
              Authenticator auth = new Auth();
              Session session = Session.getInstance(props, auth);
              // Create new MimeMessage
              MimeMessage message = new MimeMessage(session);          
              try
                    // Set the From Address
                    String from = wdContext.currentContextElement().getCtx_From();
                   message.setFrom(new InternetAddress(from));
                   //  Set the To Address
                   String to = wdContext.currentContextElement().getCtx_To();     
                   Address ar[] = new Address[1];
                   ar[0] = new InternetAddress(to);
                   message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
                   // Set the Subject
                   message.setSubject(wdContext.currentContextElement().getCtx_Subject());
                   //  Set the Text               
                   message.setText(wdContext.currentContextElement().getCtx_Text());            
                   Transport tr = session.getTransport("smtp");
                   tr.connect("Put again here Host Name", Port Noumber, "userid", "password");               
                   tr.sendMessage(message, ar);
              }catch (AuthenticationFailedException e){
                   messageMgr.reportException(e.toString(),false);
              }catch (AddressException e)     {
                   messageMgr.reportException(e.toString(),false);
              } catch (MessagingException e) {
                   messageMgr.reportException(e.toString(),false);
              }catch (Exception e){
                   messageMgr.reportException(e.toString(),false);
        //@@end
    And also create the class Auth() like
    public class Auth extends Authenticator {
         public PasswordAuthentication getPasswordAuthentication()
              String username = "userID";
              String password = "Passwod";     
              return new PasswordAuthentication(username,password);     
    Please check it i think i will work. Also please use constant value for the to, from, subject and text.

  • I send out invoices via a package. This creates 300 open emails which requires individual sending. How am I able to send without opening each message?

    I send out monthly invoices and statements via an accounting package (as attachments). This creates 300+ open emails which requires that I switch to each open email and click send. How am I able to send without entering each message and pressing the send button?

    Thunderbird simply does not support the sending of mail from Third party applications. only the creation. This is a security feature that stops a virus spamming your address book.
    If you want automation, use windows live mail.

  • Could not able to execute FTP commands in windows server machines 2012/ windows server 2008.

    Could not able to execute FTP commands in windows server machines 2012/ windows server 2008.
    From windows server 2012 and windows server 2008, Opened port 20,21,22 in firewall bidirectionally. After Establishing connection by passing credentials  230 log in  successful.
    ftp commands executing getting as " 425 Use Port or PASV first" , "500 Illegal PORT command".
    But I could able to do windows client machines like windows 7 and windows 8 with same environment
    Note : Firewall ports are opened.  have tested by making firewall down to avoid filters. 
    Pandiyan Muthuraman

    Hi Pandiyan Muthuraman,
    Did you mean even you disable or open the related port the FTP issue still exist? I found this errors most time occur when we use the ISA firewall and the FTP configured passive
    mode, if you have ISA firewall please refer the following KB to fix this issue.
    How to enable passive CERN FTP connections through ISA Server 2000, 2004, or 2006
    http://support.microsoft.com/kb/300641
    The have a specific form for the IIS question, if you have the further IIS related question you can ask in IIS forum.
    IIS support forum
    http://forums.iis.net/
    Thanks for your understanding and support
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

Maybe you are looking for