Open New approval year Repeat Run  IM27_REPEAT

Hi All,
quick question. When you do a repeat run for opening the New Approval year, does it replace existing values, or does it add on to what is already there?
Thanks.
regards

It adds the new values if any, will not overwrite any existing values. You can run IM27_Repeat as many times as required for year end activites.

Similar Messages

  • Closing and opening new financial year activities

    Hi everybody
    I want to know step by step process to close financial year and open new financial year with transaction codes in MM prospective only. i know only number ranges to be changed. i want to know what all the things to be done in step wise with T-code.

    Hai Rakesh,
    Month End Closing Activities in Finance
    1. Recurring Documents.
    a) Create Recurring documents
    b) Create Batch Input for Posting Recurring Documents
    c) Run the Batch Input Session
    2. Posting Accruals or Provisions entries at month end
    3. Managing the GR/IR Account-Run the GR/Ir Automatic Clearing
    4. Foreign Currency Open Item Revaluation-Revalue Open Items in
    AR.AP
    5. Maintain Exchange Rates
    6. Run Balance Sheets u2013Run Financial Statement Version
    7. Reclassify Payables and Receivables if necessary
    8. Run the Depreciation Calculation
    9. Fiscal Year Change of Asset Accounting if it is year end
    10. Run the Bank Reconciliation
    11. Open Next Accounting Period
    Period End Closing Activities in
    Controlling:
    What are the period end closing activities in controlling ?
    The following are the period end closing activities in Controlling:
    Repost CO Documents that was incorrectly posted
    Run Distribution or Assessment Cycles
    Run the Overhead Calculation in Product Costing
    Run the WIP Calculation in Product Costing
    Run the Variance Calculation in Product Costing
    Run the Settlement Calculation in Product Costing which will post all the
    WIP and variance to Finance and PA.
    Calculate FI Data for Transfer to Profit Center
    Transfer Balance Sheet Items like Recievables, Payables, Assets and
    Stock
    Run Results Analysis for Sales Order if applicable
    Run Settlement of Sales Orders to PA.
    Regards
    Madhu I

  • New fiscal year

    how to open new fiscal year,means financial year 2007-2008

    Hi,
    see the below site for fiscal year configs.
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/ce/7e22417c22f323e10000000a155106/frameset.htm
    Please assign points if it useful.
    Regards
    Ravinagh Boni

  • I have just changed over from a computer that was 11 years old, running Windows 98, to a new computer running Windows XP. With my old computer I could easily download video clips, they would open and play as soon as the download had ended. Now I have to c

    I have just changed over from a computer that was 11 years old, running Windows 98, to a new computer running Windows XP. With my old computer I could easily download video clips, they would open and play as soon as the download had ended. Now I have to click on the download box and click on "Play". Also, when I wanted to keep a clip, I just right clicked and a menu appeared and I would then click on "Save as" or similar. Now there doesn't appear to be any way to save the clips. Apart from a faster and more powerful computer I feel I've gone backwards. Can anyone help?

    Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
    This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps.

  • Problem in opening new year in AJRW

    Hello Sap Guru,
    I have executed depreciation run for two year - 2009 & 2010. For 2009, i executed depreciaton run on monthly basisi & for 2010 on yearly basis.
    Now when i m going for year 2011, i am not able to open new year 2011 in t.cdoe AJRW while i have closed old year 2010 in AJAB & has also done balance carry forwrd in t.code F.16 & F.07.
    Its giving me error" target fiscal year specifications 2011 wrong for co.code"
    Message no. AA709
    Diagnosis
    You have requested a fiscal year change for the year 2011.
    In company code 0409, this is not the fiscal year which directly follows the current, or just completed, fiscal year.
    System Response
    Company code 0409 will not be processed.
    Procedure
    Correct your entry.
    Please suggest what to do.

    Hi deepak,
    The process is, you need to do first asset fiscal year change then asset year end closing., so execute the steps accordingly and also check in the safer side the TABA table, it contains the posted dep. figures periodwise.
    Regards
    Anuj

  • How Popup window automatically open, when I got new approval from any user?

    Hi Friends,
    I have an application in Form6i, where different users send approvals to me, when somebody send me new approvals there is indication to me, I used timer, and I Execute Query in When Timer Expire trigger , so a display item is appear when I received new approval. But this is only applicable on the Approvals screen, when I navigate to another screen I have not get an indication of new Approvals.
    Now I want to get an indication of an approval on every screen in my application in the form of Popup window.
    A window is automatically open before me on any screen when new approval is come.
    THIS IS JUST LIKE YAHOO MAIL BOX, WHEN WE WORKING IN ANY APPLICATION JUST LIKE MS WORD, EXCEL ETC. AND WHEN NEW MAIL COMES IN ACCOUT THERE IS AN INDICATION IN STATUS BAR “RECEIVES ONE NEW MESSAGE”
    Please send me the solution of this problem on urgent basis.
    Best regards,
    Shahzad

    Instantiate from your forms application a second forms application which calls your form with the timer or which contains a procedure which has registred itself for a message (use dbms_pipe).
    Your starting form code will call via a host command ifrun32.exe with all required parameters and the name of the form containing the timer or listener. Now you have two forms applications running on your pc but the "mailbox"one can get minimized and maximized the moment a message is detected.
    Marcos

  • Open new window: 1st try does nothing; close repeat process and window opens (everytime); why?

    When I try to open a link by right clicking, open new window, my first attempt always does not follow the link and the new window is blank (everytime). I close the blank window, repeat the open link in new window and it actually works and opens the link in the new window. This never used to happen, and for about the last two weeks or so, this has been a source of irritation.

    Try the Firefox SafeMode. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    # You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    # Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • Problem in opening new year in FA in t.code AJRW

    Hello Sap Guru,
    I have executed depreciation run for two year - 2009 & 2010. For 2009, i executed depreciaton run on monthly basisi & for 2010 on yearly basis.
    Now when i m going for year 2011, i am not able to open new year 2011 in t.cdoe AJRW while i have closed old year 2010 in AJAB & has also done balance carry forwrd in t.code F.16 & F.07.
    Its giving me error" target fiscal year specifications 2011 wrong for co.code"
    Please suggest.
    Thanks & Regards
    Deepak Garg

    Hi,
    I think system is confused due to the fact, that you are closing year, which is beyond the current calendar year.
    Regards,
    Eli

  • Open PO's after new financial year ??

    hii
    If we have some open PO's after year end .(New financial year got opened )
    In this case , we ahve to open new MM period using MMPV.
    What are the impacts will be there in SAP system, how to proceed further.
    Thanks

    hii
    Can u tel me , the steps has to be carried out in MMPV and OMSY.
    Once the new Period got opened in MMPV , how to proceed furthere with ur solution.
    Anthony said , there is no problem .
    can soem bosy explain me the step in MMPV and OMSY??
    Thanks

  • "This form cannot be opened in a web browser. to open this form use microsoft infopath" while adding a new Approval - Sharepoint 2010 and Publishing Approval workflow.

    I am trying to add a new workflow to a document library with the below mentioned settings and getting error saying "This form cannot be opened in a web browser. to open this form use microsoft infopath" while adding a new Approval - Sharepoint
    2010 and  Publishing Approval workflow" . For your information the I have checked the server default option to open in browser.
    Versioning Settings.
    Error
    This is quiet urgent issue . Any help would be really helpful.. Thanks.. 

    Hi Marlene,
    Thank you very much for your suggestions.
    But I am not creating a custom workflow in designer as Laura has mentioned. I am instead trying to create a new Out of the box Approval Workflow and I get the error mentioned above.
    As it works in other environment, I tried figuring out the possible differences which can lead to this error.
    Today I found one difference which is there are no form Templates within Infopath Configurations in Central Admin. Now I am trying to figure out what makes this form templates to be added to the template gallery.
    Regards,
    Vineeth

  • Regarding problem in posting date after opening new year

    Hi SAP Gururs,
    I have just opened the new fiscal year thrugh OB52 and also made a new number range by copying the previuos year number range thrugh OBH2.
    Now when i m posting the entries for G/l, Customer & vendors, everything is going fine but vendor entry is not posting thrugh fb 60 and error is coming that (Posting date < Entry date) and when i m taking the help the following msg is appearing Message no. /SAPDMC/LSMW_OBJ_080237.
    Please provide help to the above issue. It is urgent.
    Thanks & Regards
    Inder

    Hi Mark,
    Yes I h ave check that the number range is copied for 2008 & also the posting period is opened for 2008 for vendors.
    Also i have posted few entries using t-codes FB50, FB70 & also FB60.
    Only in case of FB60 the entry is posted for 1st April 2008 but not for 2nd April & onwards.
    Please let me know what u meant by last line i.e entry date as posting date. What i have done is that i have try to do the entry by using the same invoice date & posting date i.e 2nd April, 2008. But still the same error is coming.
    Please help to reslove the issue.
    Thanks & Regards
    Inder

  • BI Reporting across multiple approval years - IM program position hierarchy

    Hi,
    We have an issue with our BI report whereby if a user wants to report year to date actuals for financial year 2010,
    they need to run the IM report twice.
    This is because the IM report is run with a program hierarchy(based on 0PROG_POS), and the infoobject is compounded to approval year.
    So, closed projects (with spend in 2010) exist in program hierarchy with approval year 2010
    AND open projects (with spend in 2010) exist in program hierarchy with approval year 2011
    So to get true 2010 expenditure, the report need to be run once for approval year 2010 and once for approval year 2011.
    The users want to be able to run the report once only.
    Please help.
    I have looked in R3 SBIW convert program name, but that seems to combine 2 programs into one, but they need the same approval year.

    it sounds like you've approached the setup correctly, you may want to ensure all the values in the the records you are retracting are valid in ECC - ie make sure you master data is in sync, for example  have you got new planning versions in BW/BPS and try to retract data back int a system that does not recognise the new values for 0version as they are not in the master data of the ECC system

  • CRM ONLINE 2013: On Approval Of Quotation, Run Report, Generate PDF and Send an Email With PDF as attachment

    Hi,
    I am using CRM ONLINE 2013.
    How to automate below process?
    1. On Approval Of Quotation, Run Report.
    2. Generate PDF.
    3. Send an Email With PDF as attachment.
    As i have gone through many forums for this topic, but creating a plugin code for generating Report PDF is not possible in CRM ONLINE.
    So, What is the alternate way to do this..?
    Thanks.

    This is my entire code mentioned below:-
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
        <script type="text/javascript">
            if (typeof (SDK) == "undefined")
            { SDK = { __namespace: true }; }
            SDK.JScriptRESTDataOperations = {
                _context: function () {
                    if (typeof GetGlobalContext != "undefined")
                    { return GetGlobalContext(); }
                    else {
                        if (typeof Xrm != "undefined") {
                            return Xrm.Page.context;
                        else { return new Error("Context is not available."); }
                _getServerUrl: function () {
                    var serverUrl = this._context().getServerUrl()
                    if (serverUrl.match(/\/$/)) {
                        serverUrl = serverUrl.substring(0, serverUrl.length - 1);
                    return serverUrl;
                _ODataPath: function () {
                    return this._getServerUrl() + "/XRMServices/2011/OrganizationData.svc/";
                _errorHandler: function (req) {
                    return new Error("Error : " +
      req.status + ": " +
      req.statusText + ": " +
      JSON.parse(req.responseText).error.message.value);
                _dateReviver: function (key, value) {
                    var a;
                    if (typeof value === 'string') {
                        a = /Date\(([-+]?\d+)\)/.exec(value);
                        if (a) {
                            return new Date(parseInt(value.replace("/Date(", "").replace(")/", ""), 10));
                    return value;
                Create: function (object, type, successCallback, errorCallback) {
                    var req = new XMLHttpRequest();
                    req.open("POST", this._ODataPath() + type + "Set", true);
                    req.setRequestHeader("Accept", "application/json");
                    req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
                    req.onreadystatechange = function () {
                        if (this.readyState == 4 /* complete */) {
                            if (this.status == 201) {
                                successCallback(JSON.parse(this.responseText, SDK.JScriptRESTDataOperations._dateReviver).d);
                            else {
                                errorCallback(SDK.JScriptRESTDataOperations._errorHandler(this));
                    req.send(JSON.stringify(object));
                Retrieve: function (id, type, successCallback, errorCallback) {
                    var req = new XMLHttpRequest();
                    req.open("GET", this._ODataPath() + type + "Set(guid'" + id + "')", true);
                    req.setRequestHeader("Accept", "application/json");
                    req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
                    req.onreadystatechange = function () {
                        if (this.readyState == 4 /* complete */) {
                            if (this.status == 200) {
                                successCallback(JSON.parse(this.responseText, SDK.JScriptRESTDataOperations._dateReviver).d);
                            else {
                                errorCallback(SDK.JScriptRESTDataOperations._errorHandler(this));
                    req.send();
                Update: function (id, object, type, successCallback, errorCallback) {
                    var req = new XMLHttpRequest();
                    req.open("POST", this._ODataPath() + type + "Set(guid'" + id + "')", true);
                    req.setRequestHeader("Accept", "application/json");
                    req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
                    req.setRequestHeader("X-HTTP-Method", "MERGE");
                    req.onreadystatechange = function () {
                        if (this.readyState == 4 /* complete */) {
                            if (this.status == 204 || this.status == 1223) {
                                successCallback();
                            else {
                                errorCallback(SDK.JScriptRESTDataOperations._errorHandler(this));
                    req.send(JSON.stringify(object));
                Delete: function (id, type, successCallback, errorCallback) {
                    var req = new XMLHttpRequest();
                    req.open("POST", this._ODataPath() + type + "Set(guid'" + id + "')", true);
                    req.setRequestHeader("Accept", "application/json");
                    req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
                    req.setRequestHeader("X-HTTP-Method", "DELETE");
                    req.onreadystatechange = function () {
                        if (this.readyState == 4 /* complete */) {
                            if (this.status == 204 || this.status == 1223) {
                                successCallback();
                            else {
                                errorCallback(SDK.JScriptRESTDataOperations._errorHandler(this));
                    req.send();
                RetrieveMultiple: function (type, filter, successCallback, errorCallback) {
                    if (filter != null) {
                        filter = "?" + filter;
                    else { filter = ""; }
                    var req = new XMLHttpRequest();
                    req.open("GET", this._ODataPath() + type + "Set" + filter, true);
                    req.setRequestHeader("Accept", "application/json");
                    req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
                    req.onreadystatechange = function () {
                        if (this.readyState == 4 /* complete */) {
                            if (this.status == 200) {
                                successCallback(JSON.parse(this.responseText, SDK.JScriptRESTDataOperations._dateReviver).d.results);
                            else {
                                errorCallback(SDK.JScriptRESTDataOperations._errorHandler(this));
                    req.send();
                __namespace: true
        </script>
        <script type="text/javascript">
            //Create Email and link it with Order as Regarding field
            var Xrm;
            var email = new Object();
            var ownerID = "";
            var CustomerId = "";
            if (window.opener) { Xrm = window.opener.Xrm; }
            else if (window.parent) { Xrm = window.parent.Xrm; }
            //Get ownerid who send email of quotation to customer
            function GetOwnerID() {
                var owner = Xrm.Page.getAttribute("ownerid").getValue();
                ownerID = owner[0].id;
                var ownerName = owner[0].name;
                var entityType = owner[0].entityType;
                GetToEmailGUID();
            //Get customerid who receive email of quotation from owner
            function GetToEmailGUID() {
                var Customer = Xrm.Page.getAttribute('customerid').getValue();
                CustomerId = Customer[0].id;
                var CustomerName = Customer[0].name;
                var entityType = Customer[0].entityType;
                //if CustomerId is type of "Account" then get Primary Contact id of that account
                if (entityType == "account") {
                    var contact = Xrm.Page.getAttribute("customerid").getValue();
                    if (contact === null) return;
                    var serverUrl = Xrm.Page.context.getClientUrl();
                    var oDataSelect = serverUrl + "/XRMServices/2011/OrganizationData.svc/AccountSet(guid'" + contact[0].id + "')?$select=PrimaryContactId";
                    var req = new XMLHttpRequest();
                    req.open("GET", oDataSelect, false);
                    req.setRequestHeader("Accept", "application/json");
                    req.setRequestHeader("Content-Type", "application/json;charset=utf-8");
                    req.onreadystatechange = function () {
                        if (req.readyState === 4) {
                            if (req.status === 200) {
                                var retrieved = JSON.parse(req.responseText).d;
                                CustomerId = retrieved.PrimaryContactId.Id;
                            else {
                                alert(this.statusText);
                    req.send();
            function CreateEmail() {
                GetOwnerID();
                email.Subject = "Email with Report Attachment";
                //Set The current order as the Regarding object
                email.RegardingObjectId = {
                    Id: Xrm.Page.data.entity.getId(),    //Get the current entity Id , here OrderId
                    LogicalName: Xrm.Page.data.entity.getEntityName()//Get the current entity name, here it will be “salesOrder”
                //Create Email Activity
                SDK.JScriptRESTDataOperations.Create(email, "Email", EmailCallBack, function (error) { alert(error.message); });
            // Email Call Back function
            function EmailCallBack(result) {
                email = result; // Set the email to result to use it later in email attachment for retrieving activity Id
                var activityPartyFrom = new Object();
                // Set the From party of the ActivityParty to relate an entity with Email From field
                activityPartyFrom.PartyId = {
                    Id: CustomerId, //"79EBDD26-FDBE-E311-8986-D89D6765B238",  // id of entity you want to associate this activity with.        
                    LogicalName: "contact"
                // Set the "activity" of the ActivityParty
                activityPartyFrom.ActivityId = {
                    Id: result.ActivityId,
                    LogicalName: "email"
                // Now set the participation type that describes the role of the party on the activity).
                activityPartyFrom.ParticipationTypeMask = { Value: 2 }; // 2 means ToRecipients
                // Create the from ActivityParty for the email
                SDK.JScriptRESTDataOperations.Create(activityPartyFrom, "ActivityParty", ActivityPartyFromCallBack, function (error) { alert(error.message); });
                var activityPartyTo = new Object();
                // Set the From party of the ActivityParty to relate an entity with Email From field
                activityPartyTo.PartyId = {
                    Id: ownerID, //"79EBDD26-FDBE-E311-8986-D89D6765B238",  // id of entity you want to associate this activity with.        
                    LogicalName: "systemuser"
                // Set the "activity" of the ActivityParty  
                activityPartyTo.ActivityId = {
                    Id: result.ActivityId,
                    LogicalName: "email"
                // Now set the participation type that describes the role of the party on the activity).    
                activityPartyTo.ParticipationTypeMask = { Value: 1 }; // 1 means Sender
                // Create the from ActivityParty
                SDK.JScriptRESTDataOperations.Create(activityPartyTo, "ActivityParty", ActivityPartyToCallBack, function (error) { alert(error.message); });
            //ActivityParty From Callback
            function ActivityPartyFromCallBack(result) {
            //ActivityParty To Callback
            function ActivityPartyToCallBack(result) {
                GetReportId('ABM_Infotech_SalesQuote');
            //Create attachment for the created email
            function CreateEmailAttachment() {
                //get reporting session and use the params to convert a report in PDF
                var params = getReportingSession();
                //Email attachment parameters
                var activitymimeattachment = Object();
                activitymimeattachment.ObjectId = Object();
                activitymimeattachment.ObjectId.LogicalName = "email";
                activitymimeattachment.ObjectId.Id = email.ActivityId;
                activitymimeattachment.ObjectTypeCode = "email",
                    activitymimeattachment.Subject = "File Attachment";
                activitymimeattachment.Body = encodePdf(params);
                activitymimeattachment.FileName = "Report1.pdf";
                activitymimeattachment.MimeType = "application/pdf";
                //Attachment call
                SDK.JScriptRESTDataOperations.Create(activitymimeattachment, "ActivityMimeAttachment", ActivityMimeAttachmentCallBack, function (error) { alert(error.message); });
            //ActivityMimeAttachment CallBack function
            function ActivityMimeAttachmentCallBack(result) {
                var features = "location=no,menubar=no,status=no,toolbar=no,resizable=yes";
                var width = "800px";
                var height = "600px";
                window.open(Xrm.Page.context.getServerUrl() + "main.aspx?etc=" + 4202 + "&pagetype=entityrecord&id=" + email.ActivityId, "_blank", features);
                // To open window which works in outlook and IE both
                //openStdWin(Xrm.Page.context.getServerUrl() + "main.aspx?etc=" + 4202 + "&pagetype=entityrecord&id=" + email.ActivityId, "_blank", width,
    height, features);
            //This method will get the reportId based on a report name that will be used in            getReportingSession() function
            function GetReportId(reportName) {
                var oDataSetName = "ReportSet";
                var columns = "ReportId";
                var filter = "Name eq '" + reportName + "'";
                retrieveMultiple(oDataSetName, columns, filter, onSuccess);
            function retrieveMultiple(odataSetName, select, filter, successCallback) {
                var serverUrl = Xrm.Page.context.getServerUrl();
                var ODATA_ENDPOINT = "/XRMServices/2011/OrganizationData.svc";
                var odataUri = serverUrl + ODATA_ENDPOINT + "/" + odataSetName + "?";
                if (select) {
                    odataUri += "$select=" + select + "&";
                if (filter) {
                    odataUri += "$filter=" + filter;
                $.ajax({
                    type: "GET",
                    contentType: "application/json; charset=utf-8",
                    datatype: "json",
                    url: odataUri,
                    beforeSend: function (XMLHttpRequest) {
                        XMLHttpRequest.setRequestHeader("Accept", "application/json");
                    success: function (data) {
                        if (successCallback) {
                            if (data && data.d && data.d.results) {
                                successCallback(data.d.results);
                            else if (data && data.d) {
                                successCallback(data.d);
                            else {
                                successCallback(data);
                    error: function (XmlHttpRequest, errorThrown) {
                        if (XmlHttpRequest && XmlHttpRequest.responseText) {
                            alert("Error while retrieval ; Error – " + XmlHttpRequest.responseText);
            function onSuccess(data) {
                reportId = data[0].ReportId.replace('{', ").replace('}', ");
                CreateEmailAttachment(); // Create Email Attachment
            //Gets the report contents
            function getReportingSession() {
                var pth = Xrm.Page.context.getServerUrl() + "/CRMReports/rsviewer/reportviewer.aspx";
                var retrieveEntityReq = new XMLHttpRequest();
                var Id = Xrm.Page.data.entity.getId();
                var quotationGUID = Id.replace('{', ""); //set this to selected quotation GUID
                quotationGUID = quotationGUID.replace('}', "");
                var reportName = "ABM_Infotech_SalesQuote"; //set this to the report you are trying to download
                var reportID = "751089AA-74B8-E211-B52F-D8D3855B253B"; //set this to the guid of the report you are trying to download
                var rptPathString = ""; //set this to the CRMF_Filtered parameter
                var strParameterXML = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'><entity name='quote'><all-attributes /><filter type='and'><condition
    attribute='quoteid' operator='eq' uitype='quote' value='" + quotationGUID + "' /> </filter></entity></fetch>";
                retrieveEntityReq.open("POST", pth, false);
                retrieveEntityReq.setRequestHeader("Accept", "*/*");
                retrieveEntityReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
                rptPathString = "id=%7B" + reportID + "%7D&uniquename=" + Xrm.Page.context.getOrgUniqueName() + "&iscustomreport=true&reportnameonsrs=&reportName="
    +
                                reportName + "&isScheduledReport=false&p:ABMFilteredQuote=" + strParameterXML;
                //remove the part starting from &p:salesorderid if your report has no parameters
                retrieveEntityReq.send(rptPathString);
                var x = retrieveEntityReq.responseText.indexOf("ReportSession=");
                var ret = new Array();
                ret[0] = retrieveEntityReq.responseText.substr(x + 14, retrieveEntityReq.responseText.indexOf("&", x) - x - 14); //the session id
                x = retrieveEntityReq.responseText.indexOf("ControlID=");
                ret[1] = retrieveEntityReq.responseText.substr(x + 10, retrieveEntityReq.responseText.indexOf("&", x) - x - 10); //the control id
                return ret;
            var bdy = new Array();
            var bdyLen = 0;
            function concat2Bdy(x) {
                bdy[bdyLen] = x;
                bdyLen++;
            function encodePdf(params) {
                bdy = new Array();
                bdyLen = 0;
                var retrieveEntityReq = new XMLHttpRequest();
                var pth = Xrm.Page.context.getServerUrl() + "/Reserved.ReportViewerWebControl.axd?ReportSession=" + params[0] +
                "&Culture=1033&CultureOverrides=True&UICulture=1033&UICultureOverrides=True&ReportStack=1&ControlID=" + params[1] +
                "&OpType=Export&FileName=Public&ContentDisposition=OnlyHtmlInline&Format=PDF";
                retrieveEntityReq.open("GET", pth, false);
                retrieveEntityReq.setRequestHeader("Accept", "*/*");
                retrieveEntityReq.send();
                BinaryToArray(retrieveEntityReq.responseBody);
                return encode64(bdy);
            var StringMaker = function () {
                this.parts = [];
                this.length = 0;
                this.append = function (s) {
                    this.parts.push(s);
                    this.length += s.length;
                this.prepend = function (s) {
                    this.parts.unshift(s);
                    this.length += s.length;
                this.toString = function () {
                    return this.parts.join('');
            var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
            function encode64(input) {
                var output = new StringMaker();
                var chr1, chr2, chr3;
                var enc1, enc2, enc3, enc4;
                var i = 0;
                while (i < input.length) {
                    chr1 = input[i++];
                    chr2 = input[i++];
                    chr3 = input[i++];
                    enc1 = chr1 >> 2;
                    enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
                    enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
                    enc4 = chr3 & 63;
                    if (isNaN(chr2)) {
                        enc3 = enc4 = 64;
                    } else if (isNaN(chr3)) {
                        enc4 = 64;
                    output.append(keyStr.charAt(enc1) + keyStr.charAt(enc2) + keyStr.charAt(enc3) + keyStr.charAt(enc4));
                return output.toString();
        </script>
        <script type="text/vbscript">
        Function BinaryToArray(Binary)
               Dim i
               ReDim byteArray(LenB(Binary))
               For i = 1 To LenB(Binary)
                     byteArray(i-1) = AscB(MidB(Binary, i, 1))
                     concat2Bdy(AscB(MidB(Binary, i, 1)))
             Next
              BinaryToArray = byteArray
       End Function     
        </script>
    </head>
    <body>
        <input type="button" onclick="CreateEmail();" value="Attach Report" />
    </body>
    </html>

  • Is there a way to force a new session so my "on new session" code will run?

    I'm using apex.oracle.com and I find values of application (global) and page items persisting across logins.
    I didn't expect that? I thought they would go away when I logged out of APEX. But I can change the values, logout, and log back in to the same values. And when I login and start an application, it's not running my "shared components > application processes" initialization code which is set "on new session".
    I thought each login would be a distinct new session with it's distinct set of items. (see definition below)
    So when I run an application, is there a way to force a new session so my "on new session" code will run?
    >
    What Is a Session?
    A session is a logical construct that establishes persistence (or stateful behavior) across page views. Each session is assigned a unique identifier. The Application Express engine uses this identifier (or session ID) to store and retrieve an application's working set of data (or session state) before and after each page view.
    Because sessions are entirely independent of one another, any number of sessions can exist in the database at the same time. Also, because sessions persist in the database until purged by an administrator, a user can return to an old session and continue running an application long after first launching it. A user can also run multiple instances of an application simultaneously in different browser sessions.
    Sessions are logically and physically distinct from Oracle database sessions used to service page requests. A user runs an application in a single Oracle Application Express session from log in to log out with a typical duration measured in minutes or hours. Each page requested during that session results in the Application Express engine creating or reusing an Oracle database session to access database resources. Often these database sessions last just a fraction of a second.
    >
    Thanks -- Howard

    I cleaned up the copy of the Select List code in APEX 4.1.xxx which was not operating correctly before. Now it matches what I have in APEX 4.2.yyyy. And, drum roll please, the select list seemingly works fine there (4.1) as well. But now, the initialization code--which was working fine(!)--FAILS in 4.1!
    <font size="3"><font color="red">•<font face="courier new">
    Okay. Maybe this will help. 1) I logged in. Ran the login page but did not login. Opened the "session" window and wrote down the session ID. Logged out and back in. 2) Ran the login page but did not login. Opened the "session" window and .... it has the same session ID? 3) <b>So the session is persisting across logins!! How is that possible?</b>
    (More) When I log into 3 different applications, I get a different session ID for each but repeated logins always give the same session ID for any given session. </font>

  • Balance carry forward to new financial year.

    Hai SAP Guru
    I  run the transaction f.07 for  transfer of balance pertaining to vendor and customer to new fianncial year.
    Though the run took place with out any errors and all the balance were carry forwarded, it had various line items pertaing to individual vendor and customer, and when i cross verified  with the individual balance it was not tallying but the consolidated balance of customer and vendor were correct, when  i ran the GL balance transfer.
    a)  I want to know whether the above procedure is correct, is there any other method  of cross
         verifiying the correct  of transfer entires.
    b) When the transfers are done , a consolidated amount is trnasferd to vendor/customer account
        or a single line item as it is now displayed  in my system.
    Thanks.

    Hi,
    There is nothing to do with balance carryforwarding.
    After the end of FY you need to run F.07 and F.16 once, since this is a technical step from the business point of view.
    After doing the above function also, you can still post transactions to old FY, and those will be automatically adjusted to the opening balance for the new FY.
    Or else you can re run the aboce programs again, hence it does not make any diff in any point of view.
    For checking the balances you need to use FD10N and FK10N by using respective recon accounts in the selection screen.
    Thanks,
    Srinu

Maybe you are looking for

  • How to generate a random number within a specified tolerance and control that tolerance.

    I am trying to simulate data without using a DAQ device by using a random number generator and I want to be able to control the "range" of the random number generated though.  On the front pannel, the user would be able to input a nominal number, and

  • Problems with 3GS after latest Itunes update

    After installing the update my phone just has the usb port and itunes logo on screen. Ive: -Restarted my pc a few times -Re-Installed I tunes -Re-booted the iphone several times -Closed any anti-virus things running I've searched on several topics ac

  • Airport troubles

    Hello all. I'm new to macs so I'm wondering if I got a broken airport module or something. Is anybody else having problems with their Airport on the mini connecting to their router? Currently I got 2 PCs and an Ipod touch wirelessly connected to my r

  • Table where notes are stored from pb60

    Hy guys i need to create a report from the notes that u can add in every activity in pb60, (Maintain applicant Activities). so i need to search in wich table the text(note) is stored, must be relaeted with pb4003, the fiels notex is the flag that tel

  • How do I restore Find My iPhone (version 3.0) after resetting an iPhone 4 (OS 7.1.2)?

    I have an older iPhone 4 which can't be upgraded to the new OS 8, and had to reset it. Everything was restored from back-up except the Find My iPhone app which is now version 4.0 and requires OS 8 or greater. Is there a way to revert the Find My iPho