SAP BI7 POST command to iFrame possible?

Hi All,
I created an iFrame inside a page. The idea is to send POST commands to iFrame page using standard SAP JavaScript commands (like sending filter values, hide/unhide items etc.). Below is the approach I use but it doesnt work. I hope somebody can point out a way to make this work or give suggestions on another approach.
SAP BI has a JavaScript global object derived from sapbi_PageClass called sapbi_page and this is the global object to use for adding and sending commands.
In order to initialize a new object from sapbi_PageClass class that refers to the iFrame, I use the following constructor function which i found in the sapbi_070_pageclass.js. The constructor accept a window object as parameter.
      var zsapbi_cmtpage = new sapbi_PageClass( window.frames["commentFrame"].window );
I use the following command to add a new command sequence. The example below is to hide document item. Note that the function zbicmd_changeVisible() is a customized function. This is already proven to work elsewhere.
      var zcmdSeq = new sapbi_CommandSequence();          zcmdSeq.addCommand(zbicmd_changeVisible("SINGLE_DOCUMENT_ITEM","SINGLE_DOCUMENT_ITEM_1",0));
I found this method in sapbi_070_pageclass.js to send command over to other frames.
      zsapbi_cmtpage.formSendParameterList2TargetFrame(zcmdSeq,"commentFrame");
The above script doesnt work as the method formSendParameterList2TargetFrame() failed on line 85 of sapbi_050_commandform.js - this.m_pFormElement.appendChild( paramField );
Any Ideas??
Thanks & Regards,
Wira

This may or may not be the issue, but where you have:
var zsapbi_cmtpage = new sapbi_PageClass( window.frames\"commentFrame\".window );
If you are using MSIE, I believe it should be (I'm leaving out the \escaped\ characters just for clarity):
var zsapbi_cmtpage = new sapbi_PageClass( window.frames["commentFrame"].contentWindow );
or, assuming that you've given your IFRAME an ID of 'commentFrame', try it this way maybe also:
var zsapbi_cmtpage = new sapbi_PageClass( document.getElementById("commentFrame").contentWindow );
One thing maybe also to note is that the JavaScript will not be able to manipulate the IFRAME if its SRC tag is either not set or set initially to a page not within the domain of the calling page.  So try also setting the IFRAME's SRC to a landing page that's within the same document.domain if you haven't already.
If you are still having problems, message me with maybe more complete example source code and I'll see if I can look further.

Similar Messages

  • [SOLVED] Alpine - Error sending: No default posting command

    Hi, I have installed the Alpine mail client yesterday, and it all works nicely, except I can't send mail. Everytime I try I get this message:
    Error sending: No default posting command
    I have tried googling around, and from what I understand Alpine uses sendmail by default, but I haven't got it installed, nor I can find it in the repos. Is there any way I can change this? And what can I use to send mail?
    Thanks.
    Last edited by finferflu (2007-12-26 16:02:13)

    I haven't dug it enough yet, and I'm not sure that this is possible, even though Alpine is very customisable as far as I can see.
    I'll let you know if I find anything

  • Teradata and SAP BI7.3 Connection

    Hi experts,
    I have requirement to extract data from Teradata to SAP BI7.3, I have gone through some of the links in SDN which was suggest to go for UD connection with JDBC
    1.In SAP BI7.3 is there any other way of connecting Teradata ( As all links referred to old version i.e  BW3.5 and UD Connector)
    2.Does any body have step by step document,
    3.What are the Pros and Cons of using UD connector? Can I use DB connector ? and which is the best possible way to get data from Teradata.
    Thanks and regards
    Sri

    Hello
    You need to deploy the JDBC drivers for Teradata
    Once done you need to create a connection string in the Java stack under the Connector Container.
    There is a document available on the Teradata site with the complete steps.
    The procedure is same like for other databases. Follow that
    How to use the Teradata JDBC Driver with SAP
    Regards
    RB

  • Post command in Call_form

    HI,
    i have two form A and B, i am calling form-B from form-A using call_form command, now i like make some update in form-B and post those update using POST command then i want to commit those updates in form-A, is this possible, then how

    What you are doing is unclear. It sounds like you are trying to execute a call_form from a pre-form trigger. If true, I would say that you should move that call to when-new-form-instance. The pre-form trigger should really only be used to set values and not for executing actions/events.

  • Problem with "SELECT...FOR UPDATE OF..." and "POST command" combination

    Problem with "SELECT...FOR UPDATE OF..." and "POST command" combination
    Problem in committing transactions in Multiple Forms (Oracle Forms) with POST built-in command:
    Consider that the following statements are written in WHEN-WINDOW-CLOSED trigger of a called form.
    Statements in called form (Form name: FORM_CHILD):
    go_block('display_block') ;
    do_key('execute_query') ;
    -- Data from table_b will be populated in this block, based on the value of COLUMN_1 obtained
    -- from TABLE_A.
    -- Example: If the value of COLUMN_1 is 10, then all the matching records from TABLE_B, which
    -- are inserted with value 10 in TABLE_B.COLUMN_1 will be fetched and shown here.
    if user_choice = 'YES' then
    commit ;
    else
    rollback ;
    end if ;
    Statements in calling forms:
    There are two calling forms having following statements and it is going to call the above said called form.
    CALLING FORM 1
    Statements in KEY-COMMIT trigger:
    post;
    call_form(form_child, no_activate) ;
    Statements in ON-INSERT trigger:
    select column_1
    from table_a
    for update of column_1
    where column_2 = 'X' ;
    update table_a
    set column_1 = column_1 + 1
    where column_2 = 'X' ;
    insert into table_b ...;
    insert into table_b ...; Statements in KEY-COMMIT trigger:
    post;
    call_form(form_child, no_activate) ;
    CALLING FORM 2:
    Statements in ON-INSERT trigger:
    select column_1
    from table_a
    for update of column_1
    where column_2 = 'X' ;
    update table_a
    set column_1 = column_1 + 1
    where column_2 = 'X' ;
    insert into table_b ...;
    insert into table_b ...;
    insert into table_b ...;
    Our understanding:
    Assume that both the forms are running from two different machines/instances, issuing commit at the same time. In this case, forms will start executing the statements written in ON-INSERT trigger, the moment POST command is executed. Though the commit is issued at the same time, according to oracle, only one of the request will be taken for processing first. Assume that calling form 1 is getting processed first.
    So, it fetches the value available in COLUMN_1 of TABLE_A and locks the row from further select, update, etc. as SELECT...FOR UPDATE command is used (note that NOWAIT is not given, hence the lock will be released only when COMMIT or ROLLBACK happens) and proceed executing further INSERT statements. Because of the lock provided by the SELECT...FOR UPDATE command, the statements in calling form 2 will wait for the resource.
    After executing the INSERT statements, the FORM_CHILD is called. The rows inserted in to TABLE_A will be queried and shown. The database changes will be committed when user closes the window (as COMMIT is issued in its WHEN-WINDOW-CLOSED trigger). Then the SELECT...FOR UPDATE lock will be released and calling form 2's statements will be executed.
    Actual happenings or Mis-behavior:
    Calling form 2 starts executing INSERT statements instead of waiting for SELECT...FOR UPDATE lock. Also, the value selected from TABLE_A.COLUMN_1 is same in both the calling forms, which is wrong.
    The rows inserted into TABLE_B are having similar COLUMN_1 values in calling form 2 and they are fetched and shown in the called form FORM_CHILD.
    Note that in calling form 2 also POST only is issued, but the changes posted there are accessible in calling form 1 also, which is wrong.
    Kindly suggest us as to how to fix above problem. It will be much use, if you can send us the information regarding the behavior of Oracle Forms POST built-in also.
    Our mail ID: [email protected]
    Thanks a lot in advance.

    You have several problems:
    1. On-Insert will ONLY run if you have created a new record in a base-table block. If you haven't done that, then the POST command will not cause it to run.
    2. Select for update without a "no wait" will lock records for the first form, but when the second form tries this, it will hit the ORA-00054 exception, and will NOT wait. The only way you could make it wait is to issue an UPDATE sql command, which is not such a good way to go.
    All POST does is issues SQL insert or update commands for any changes the user has made to records in a form's base-table blocks, without following with a Commit command.
    Also understand that Commit is the same as Commit_Form, and Rollback is the same as Clear_Form. You should read up on these in the Forms help topics.

  • Error in Start SAP system (Post Processing)

    Hi.,
         I got an error during IDES installation in the step "Start SAP system (Post Processing)".
    The details of START.LOG is as follows
    running sapstart.exe GML 00 xyz -wait
    Start service SAP_00 on machine
    OpenSCManager of
    failed. Error#: 6
    CreateNamedPipe for
    \pipe\SAP_00 Failed, Extended Error #123
    Start service SAP_00 on machine
    OpenSCManager of
    failed. Error#: 6
    Start (StartSAPService) failed.
    sapparam(1c): No Profile used.
    sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
    Kindly help me out in this regard.
    Thanks in Advance,
    Sridhar

    Sridhar,
    Check the path for the profile (whether it is accessible or not). Just to make sure that system has been installed properly, you could try connection check to the database also.
    Thanks.
    regards,
    Murali

  • Error in CJ88  Posting transaction is not possible (value date not allowed)

    When i try CJ88 with a wbs element, it shows the following error :
    Posting transaction is not possible (value date not allowed)
    Message no. AA 478
    Diagnosis
    A retirement was already posted on the asset 000022400733 0041 on 20091231. Based on the value date 20091231 of the transaction, this transaction should have been included in the calculation of values for the retirement.
    System Response
    The transaction is rejected.
    Procedure
    Check the value date of the transaction.
    In need to put year 2009 in date of the transaction, but it isnt posible. ¿Why? I dont know very much about asset accounting...

    Hi
    It is not allowing for WBS element final settlement, because of your asset already retairement was done.
    By best suggetion is, You will create the new WBS element and transfer the all cost line items from old WBS element to new WBS element, then you will try to settlement for another asset in CJ88.
    I hope it will use for you.
    Regards
    PVCPVC

  • How to Include JAVA script code in SAP BI7 web Reporting?

    How to Include JAVA script code in SAP BI7 web Reporting?

    In nw2004s there is a new web item called "Script" web item which lets you add javascript code. When you add javascript code in this web item, you don't need the opening and closing <script> tags...
    Hope it Helps
    Chetan
    @CP..

  • ABUMN-error "Posting transaction is not possible (Value date not allowed)"

    Hi,
    When we are trying to transfer asset within company code thru Tcode ABUMN, we are getting a error as
    "Posting transaction is not possible (Value date not allowed)"
    What actually we are doing is we are trying to transfer the previous year asset for example say 01.04.2007 assets on today.
    the Parameters are as below
    Document date :26.03.2008
    Posting Date :26.03.2008
    Asset value date is 01.04.2007.
    Then the system is throwing an error and not alloing to post the previous year transfers.
    Can any one help me out.
    Cheers
    Sri

    Hi,
    I think, if you give old asset value date, system will give you the error.  This may be because, you are trying to transfer the assets with old values, means in your examble the dep. from the 01.04.2007 to 29.02.2008 whould have been charged.
    So, give the current year date means any date from 01.01.2008 to till date.
    If you read F1 help for the value date column, it states,
    Asset value date
    The asset value date is the value date for Asset Accounting. It can deviate from the posting and document date and be in posting periods already closed for Financial Accounting. However, the posting year and asset value date year must be the same.
    Since the asset value date can have a direct influence on the amount of depreciation, the system creates a default value when it can. You can specify in Customizing how the the default asset value date is  determined by the system.
    Hope it helps
    Saravanan.A

  • Table and views which are afftected during the SAP license post processing

    Hi,
    can anyone tell me those table and views which are afftected during the SAP license post processing process in SAP 4.7 installation on oracle.
    Regards,
    Abhishek

    hi
    there is no table active with the name MLICHECK
    the table is not active in the dictionary
    what to do now?
    i want to see the license data of the sap system now in the table view..............

  • BEST PRACTICES FOR SAP BI7.0

    Hello SAP Gurus,
    We are working for a client who is in manufacturing business. Can anybody help us to provide some document for Best Practices to implement SAP BI7.0.
    Would appreciate.
    Thanks
    tried searching on sdn but did not get appropriate answer.

    Hi,
    Check this link.
    http://help.sap.com/bp_biv335/BI_EN/html/Bw.htm
    Regards,

  • Need help submitting an HTML Post command

    Hi Everyone,
    I need a help submitting a POST command to an Apache Server. I unfortunately have almost no expierience with HTML. Can anyone give me a simple example to start with and what I might need to do?
    Thank you very much in advance,
    Oz
    Message Edited by OzRuiz on 12-18-2007 09:18 AM
    Message Edited by OzRuiz on 12-18-2007 09:21 AM

    This is actually very simple with native LabVIEW functions.
    Use an TCP Open Connection to open a port to the server (I used
    ws.cdyne.com, with port 80).
    Send your request with TCP Write (I send the text listed below. This text is
    copied directly from the ws.cdyne.com web page, where you can find examples
    for POST, GET and others).
    Read back the data with TCP Read.
    Close the connection with TCP Close Connection.
    Note that the data you send and receive doesn't need to be HTML. It could be
    any text, but most likelly XML or HTML. In this case it's a soap message,
    basically an XML format designed for communicating with servers. Some
    servers send the data back in several parts, but I have not found any
    describtion about this format.
    Regards,
    Wiebe.
    +++++++++++++++++++++++++++++
    POST /ip2geo/ip2geo.asmx HTTP/1.1
    Host: ws.cdyne.com
    Content-Type: text/xml; charset=utf-8
    Content-Length: 391
    SOAPAction: "http://ws.cdyne.com/ResolveIP"
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <ResolveIP xmlns="http://ws.cdyne.com/">
    <IPaddress>62.250.4.144</IPaddress>
    <LicenseKey>0</LicenseKey>
    </ResolveIP>
    </soap:Body>
    </soap:Envelope>
    ++++++++++++++++++++++

  • Sap bi7 with MS Connector 1

    Hi All,
    I try to pull data from SAP BW through SSIS 2008.
    I already applied all the configuration requirements in Microsoft paper.
    I think something else should be configured on SAP BW but i have no idea what.
    Error : SYSTEM_FALIUR with function RSB_API_OHS_3RDPARTY_NOTIFY and target system MSSAPBI.
    Bean RSB_API_OHS_3RDPARTY_NOTIFY not found on host ty-stbd, Progid=TY-STBD0_PORTAL_TBD: Object notfound
    in the lookup of RSB_API
    Error while updating to taget Z101 (type Open Hub Destination)
    Excepation CX_RS_FAILED logged.
    please did someone find the answer (or an idea ) to resolve this problem in sap bi7?
    Thanks for all suggestions!
    NF

    Hi,
    I have the same requirement, my RFC connection also working fine.  Just to add, our SAP runs on Oracle on Unix Platform.
    and our SQLSERVER is for 2008 running on windows.
    Has any one got any idea about this issue?  I found a note, " 1585460 - Error when running DTP to 3rd party Open Hub Destination  ",
    which says to Implement the necessary function on the 3rd party tool.
    can someone Please help how to do that ?
    regards,
    Ahmed
    Edited by: Ahmed on Mar 6, 2012 1:41 PM

  • Need to know ,how SAP is Posting wrong Enrtry at the Table level for Same .

    Hello SAP Experts ,
    Good Morning Gems!!!
    I have a Typical Issue here , SAP Is Posting In wrong tables
    .  Production  is currently processed everything that it should process.  This works as designed.
                PO = 7800507594 (From Plant  5400 to Plant  5409 - only NL, no intercompany)
                Dlvry  = 81243277 (Has PGI but no Invoice, as it is the same company code!!!
    The issue is that for some reason, SAP has put an entry into table VKDFS by mistake.  This table is used by SAP to determine the list in VF04.  This is why VF04 thinks it should create an invoice, but it should not.  so we are getting  error message that the Invoice cannot be created , which is valid, and a good thing.
    Do we have  OSS for 2 things:
                1) A note that mentions why it is determining the wrong CoCode or Sales Area which leads to the entry into this table
                            This is to stop it from adding entries incorrectly.
                2) A note that mentions how to fix the existing entries in this table that should not be there?
    Awarded Full Points for the Correct answer
    Thansk and Regards
    Adarsh Srivastava
    Supply Chain Consultant ,
    CSC INDIA

    Dear Friend,
    I guess you item category in Delivery Document would be NLN.
    Go to VOV7 & under Business Data there is a  check box for Billing Relevance. This box should be blank. I mean if there is any entry in this box (either A or J) then remove it & make it blank.
    Hope this helps...
    Thanks,
    Jignesh Metha

  • LIS,COPA in SAP BI7.0

    Hi Gurus,
    i would like to view detailed description of SAP Tables in LIS,COPA in SAP BI7.0..can some one guide me where i can find useful information shortly
    Thanks for ur help
    Sandeep.

    Hi
    You can find them on help.sap.com.
    Regards,
    Chandu.

Maybe you are looking for