Aus Script heraus Report bearbeiten

Hallo,
ich würde gerne aus einem laufenden Script heraus den Report bearbeiten z.B.
die Achsenskalierung in einem Diagramm verändern oder bei einem Graph (Kurve)
die Farbe verändern.
Es beseht ja die Möglichkeit im Interaktionsmodus " Ineractiv (on)/(off)
" Modus aus dem Script heraus manuell den Report zu bearbeiten, besteht
die Möglichkeit?
Und wenn ja, kann auch hier z.B. zum bearbeiten der Skalierung, oder ändern der
Graph-Farbe ein Dialog geöffnet werden... Grund der Interaktiv Modus kann ja
nur aus dem Script heraus gestartet werden?
MfG
SAMIOL

Hallo Samiol,
wie schon gesagt (siehe weiter oben), der "Schlüssel" zum Manipulieren von REPORT-Objekten ist die Tastenkombination CTRL-A. Wenn der Aufzeichnungsmodus aktiviert ist, werden Syntax und Varialbelzuweisungen in das Script übertragen. Ist der Aufzeichnungsmodus nicht aktiviert werden die Informationen in die Zwischenablage kopiert. Von dort aus können sie in das Script übertragen werden. Die zum gewünschten Ändern nicht notwendigen Zuweisungen können entfernt werden. Beispiel: Ich möchte die darzustellenden Kanäle eintragen und die Y-Skalierung bestimmen. Notwendig ist dazu nur folgendes:
'------------------- Curve and axis definition ---------------------
Call GraphObjOpen("2D-Axis1")
  '------------------- Curve list -------------------------------
  Call GraphObjOpen("2DObj5_Curve1")
    D2CChnXName      ="[1]/Zeit"
    D2CChnYName      ="[1]/Geschwindigkeit"
  Call GraphObjClose("2DObj5_Curve1")
  '------------------- Y scala ----------------------------------
  Call GraphObjOpen("2DYAxis8_1")
    D2AxisYScaleType ="manual"
    D2AxisYBegin     =30
    D2AxisYEnd       =50
  Call GraphObjClose("2DYAxis8_1")
Call GraphObjClose("2D-Axis1")
Ablaufschema: Objekt öffnen, ggf. Unterobjekt öffnen, Variablen setzen und die Objekte in umgekehrter Reihenfolge wieder schließen.
Bitte schau dir hierzu auch die Hilfe und die Beispiele in der Hilfe an.
In deinem Fall müssen die Informationen aus dem SUD-Dialog - die ja in Variablen gespeichert sind - wie oben beschrieben den entsprechenden Variablen zugewiesen werden.
Wenn mit Exportiern das Layout gemeint ist und z.B. nur die letzte Seite als einzelne Layout-Seite gespeichert werden soll, so ist die Vorgehensweise wie folgt:
Komplettes Layout speichern, in der Layout-Verwaltung alle nicht gewünschten Layout-Seiten entfernen, übrig gebliebene Layout-Seite unter neuem Namen speichern, altes Layout wieder laden.
Wenn mit Exportieren das Erstellen eines JPG oder ähnliches gemeint ist, so wird immer nur die aktuelle Seite exportiert.
Gruß
Walter

Similar Messages

  • How to call a Shell Script from Report 6i

    Hi All,
    Can anybody tell, how to call a Shell Script from Report 6i.
    Thanks in Advance,
    Bala

    try the SRW.USER_EXIT (user_exit_string CHAR);

  • Kann aus .docx-Dateien keine PDFs aus Acrobat heraus erstellen

    Hi liebe Acrobat-Community,
    mich beschäftigt leider seit mehreren Tagen ein Problem, dass auch der Chat-Support von Adobe nicht lösen konnte und zwar:
    Ich kann mit der Funktion "PDF erstellen" aus Acrobat heraus keine Word 2013-Dateien in PDFs umwandeln. Mit dem PDF Maker direkt aus Word heraus funktioniert alles einwandfrei. Andere Dateitypen (Excel, Bilder, Webseiten) kann ich problemlos zu PDFs wandeln.
    Darüberhinaus bekomme ich noch folgende Fehlermeldung (Screenshot):
    Der dort angegebenen Lösungsweg funktioniert nicht - wenn ich die Anwendung öffne, schaut die mich nur scheinheilig an und weiß nichts von Sicherheitswarnungen (wo stelle ich die Sicherheitsstufe ein?).
    Folgende Dinge habe ich geprüft:
    PDF Maker Add-in in Word 2013 aktiv --> Ja
    Makro-Einstellung im Trustcenter --> "alle Makros außer digital signierten Makros deaktivieren" ist ausgewählt / Adobe ist nicht in Liste "Vertrauenwürdige Hersteller" aufgeführt (hier hatte ich aber auch schon mit der Einstellung "alle Makros aktivieren" keinen Erfolg
    Ich kann leider so Acrobat nicht ordentlich nutzen: Weder PDFs aus Word erstellen, noch Dateien in PDF zusammenführen, noch Portfolien erstellen, noch Formulare aus Word erstellen etc.
    Weiß jemand Rat?
    Dank Euch und viele Grüße,
    Peter

    Oh doch, Office 2003 ist kompatibel mit Acrobat 11! (Compatible web browsers and PDFMaker applications). Nur der Support wurde inzwischen eingestellt.
    Sonderbar ist eben, dass ich aus xls.-Dateien eine pdf.-Datei anlegen kann. Auch kann ich in Outlook einzelne "Aufgaben" anklicken (Word öffnet sich danach), resp. kann ich von hier aus problemlos eine pdf.-Datei erstellen.
    Toll, nicht? :-)

  • To View Calc Scripts and Report scripts via MaxL or Esscmd

    Hi all,
    Can somebody tell how to read any calc script or report script in any database with the help of MaxL or Esscmd?
    For example if there is any .csc or .rep file, I want to read the context of the file i.e. the script that is written in the file. Is it possible via MaxL or Esscmd?
    Does Hyperion supports this functionality?
    Regards,
    James

    You know that calc and report scripts are text files, right?
    They are typically stored in the database directory, although that is not a requirement; they can be stored in other client-accessible directories and run from there.
    I haven't done it in ages, but is also possible to pass calc and report scripts to Essbase via the API. I can't remember if the API will let you enumerate calc scripts from the database directory. I sort of strongly think yes. Someone who is more knowledgeable will either correct or refute that statement pretty soon. :)
    If you want to list the objects (calcs or reports): http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/techref.htm
    A few things that you can do with MaxL re calc scripts:
    1) execute calculations, including a string that you pass through MaxL: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/excalc.htm
    2) delete calculations: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/drpcalc.htm
    3) list the calcs: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/dispclc.htm
    4) create the calc: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/crecalc.htm
    Report scripts are sort of a poor relation in MaxL (and were in Esscmd as well). You can basically only run a report as kind of export: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/exprt.htm
    So, I think it's mostly there, especially the display object command. BTW, if MaxL can list it, the API can too -- how else does MaxL work?
    Regards,
    Cameron Lackpour
    Edited by: CL on Dec 1, 2008 11:53 PM
    Didn't post the right URLs. Now fixed. CL

  • Script to report constrained delegation

    Has anyone already created a script that reports constrained delegations for all user accounts in Active Directory?
    This topic first appeared in the Spiceworks Community

    Hello
    You can do something like this.
    ./quickcheck.sh PRIMARY
    You need an env file and then just call your sql ( quickaudit.sql) from the shell script. You can spool from the SQL and mail the spool file if you prefer.
    #!/bin/bash
    if [ "$1" ]
    then DBNAME=$1
    else
    echo "basename $0 : Syntax error : use . quickcheck <DBNAME> "
    exit 1
    fi
    # Set the Environmental variable for the instance
    . /u01/app/oracle/dba_tool/env/${DBNAME}.env
    $ORACLE_HOME/bin/sqlplus /nolog <<EOF
       connect / as sysdba
    @/u01/app/oracle/dba_tool/bin/quickaudit
    EOFThe env file needs an ORACLE_SID, path all the thing in your profile.
    Example from mine :
    ORACLE_BASE=/u01/app/oracle
    ULIMIT=unlimited
    ORACLE_SID=PRIMARY
    ORACLE_HOME=$ORACLE_BASE/product/11.2.0.2
    ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    LIBPATH=$LD_LIBRARY_PATH:/usr/lib
    TNS_ADMIN=$ORACLE_HOME/network/admin
    PATH=$ORACLE_HOME/bin:$ORACLE_BASE/dba_tool/bin:/bin:/usr/bin:/usr/ccs/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/usr/lbin:/GNU/bin/make:/u01/app/oracle/dba_tool/bin:/home/oracle/utils/SCRIPTS:/usr/local/bin:.
    export TERM=vt100
    export ORACLE_BASE ORACLE_SID ORACLE_TERM ULIMIT
    export ORACLE_HOME
    export LIBPATH LD_LIBRARY_PATH ORA_NLS33
    export TNS_ADMIN
    export PATHBest Regards
    mseberg

  • TIPS(35) : SCRIPTS THAT REPORT SESSION STATISTICS

    제품 : SQL*PLUS
    작성날짜 : 1997-02-10
    TIPS(35) : SCRIPTS THAT REPORT SESSION STATISTICS
    =================================================
    SQLDBA Monitor screens get their information from the V$ tables in the
    SGA. These tables can be queried directly to obtain this information
    in a form that is sometimes more readable and easier to report.
    Following are some SQL scripts that report session and system statistics.
    1. Script to find the Session Id of the current session.
    select s.sid sess_id
    from v$process p, v$session s
    where p.addr = s.paddr
    and terminal = userenv('terminal');
    2. Script to find the Oracle Session Id if the operating system
    PID of the process is known.
    select s.sid sess_id
    from v$process p, v$session s
    where p.addr = s.paddr
    and p.spid = '&OS_PID';
    3. Script to find statistic values for the current session.
    Must be run from the same terminal as the session.
    set numwidth 5
    column orclname format a12 word_wrap
    column sysname format a8 word_wrap
    column name format a40 word_wrap
    set recsep off
    set pagesize 60
    select st.sid sid, s.username orclname, p.username sysname,
    n.name name, st.value value
    from v$sesstat st, v$statname n, v$session s, v$process p
    where st.statistic# = n.statistic#
    and st.sid = s.sid
    and s.paddr = p.addr
    and p.terminal = userenv('terminal');
    4. Script to find statistic values for the any session, if the operating
    system PID of the process is known.
    set numwidth 5
    column orclname format a12 word_wrap
    column sysname format a8 word_wrap
    column name format a40 word_wrap
    set recsep off
    set pagesize 60
    set verify off
    select st.sid sid, s.username orclname, p.username sysname,
    n.name name, st.value value
    from v$sesstat st, v$statname n, v$session s, v$process p
    where st.statistic# = n.statistic#
    and st.sid = s.sid
    and s.paddr = p.addr
    and p.spid = '&OS_PID';
    5. Script to find statistic values for the system.
    column name format a40 word_wrap
    set recsep off
    set pagesize 60
    select n.name name, st.value value
    from v$sysstat st, v$statname n
    where st.statistic# = n.statistic#;
    The above scripts are written to be run from SQL*Plus. Exclude the
    COLUMN and SET commands if you wish to run them from SQLDBA.

    The issue is the report does not work.
    I get an "error" where date information should have been shown.
    I have attached a screen capture to show my problem.
    Roger.

  • DIAdem:Wie kann ich ein errechneten Variablenwert aus Script, automatisch in eine Kanalzelle schreiben/laden?

    DIAdem:Wie kann ich ein errechneten Variablenwert aus Script, automatisch in eine Kanalzelle schreiben/laden?

    Hi,
    das geht mit CHD(Zeile, Spalte) oder CHDX(Zeile, Spalte). Beispiel:
    MyVar = 17 / 3
    CHD(21, 2) = MyVar
    oder
    CHD(21, "MyChnName") = MyVar
    oder in DIAdem 9.1 Syntax
    CHD(21, "MyChnGroupName/MyChnName") = MyVar
    lesen: MyVar = Chd(21, 2) ...
    Weiter Informationen sind in der DIAdem-Hilfe zu finden.
    Viel Erfolg
    Walter Rick

  • What is the difference between a script & a report ?

    What is the difference between a script & a report ?

    hi,
    script is basically used for printing,
    report is for information,
    printing a report is difficult,
    report can be interactive,
    script is not interactive,
    script is client-dependent,
    report is client-independent,
    script is modified in most cases,
    report is developed from the scratch,
    thanks,
    kcc

  • Sapgui scripting - export report to Excel then return to sap

    I am new to SAP and my company has just updated to 4.7. I can export a report to MS Excel as spreadsheet, run a excel macro on the spreadsheet in excel, save the excel workbook in a local directory, then close & exit excel. However, I can not get the script to continue after excel is closed. The script does not respond. the following is an example of the code:
    If Not IsObject(application) Then
       Set SapGuiAuto  = GetObject("SAPGUI")
       Set application = SapGuiAuto.GetScriptingEngine
    End If
    If Not IsObject(connection) Then
       Set connection = application.Children(0)
    End If
    If Not IsObject(session) Then
       Set session    = connection.Children(0)
    End If
    If IsObject(WScript) Then
       WScript.ConnectObject session,     "on"
       WScript.ConnectObject application, "on"
    End If
    session.findById("wnd[0]/usr/ctxtS_POSID-LOW").text = "me24810110"
    session.findById("wnd[0]/usr/ctxtS_POSID-HIGH").text = "me24810111"
    session.findById("wnd[0]/tbar[1]/btn[8]").press
    session.findById("wnd[0]/tbar[1]/btn[43]").press
    session.findById("wnd[1]/tbar[0]/btn[0]").press
    session.findById("wnd[1]/usr/sub:SAPLSPO5:0101/radSPOPLI-SELFLAG[0,0]").select
    session.findById("wnd[1]/tbar[0]/btn[0]").press
    session.findById("wnd[1]/tbar[0]/btn[0]").press
    set ns1=createobject("WScript.shell")
    ns1.AppActivate "Microsoft Excel"
    ns1.SendKeys "%TMM", True
    ns1.SendKeys "PERSONAL.XLS!EOM_Status", True
    ns1.SendKeys "%R", True
    ns1.SendKeys "%FA H:\2005_Monthly_Status\EOM_CIP_Status.xls ", True
    ns1.SendKeys "%Y", True
    ns1.SendKeys "%Fx", True
    Now... from here, the SAP report that was exported is showing on the screen, but I can't get the script to recognize any of the controls on the screen.
    Any help would be greatly appreciated.

    First, I want to thank you for your response. It's greatly appreciated.
    The message box example you sent me does and did work before. I am attaching example code (I've numbered some of the lines of code so we can reference the same code) followed by specific events. Example code follows:
    If Not IsObject(application) Then
       Set SapGuiAuto  = GetObject("SAPGUI")
       Set application = SapGuiAuto.GetScriptingEngine
    End If
    If Not IsObject(connection) Then
       Set connection = application.Children(0)
    End If
    If Not IsObject(session) Then
       Set session    = connection.Children(0)
    End If
    If IsObject(WScript) Then
       WScript.ConnectObject session,     "on"
       WScript.ConnectObject application, "on"
    End If
    session.findById("wnd[0]/usr/ctxtS_POSID-LOW").text = "me24730110"
    session.findById("wnd[0]/usr/ctxtS_POSID-HIGH").text = "me24730111"
    session.findById("wnd[0]/usr/ctxtS_POSID-HIGH").setFocus
    session.findById("wnd[0]/usr/ctxtS_POSID-HIGH").caretPosition = 10
    session.findById("wnd[0]").sendVKey 0
    1.  session.findById("wnd[0]/tbar[1]/btn[8]").press
    2.  session.findById("wnd[0]/tbar[1]/btn[43]").press
    3.  session.findById("wnd[1]/tbar[0]/btn[0]").press
    4.  session.findById("wnd1]/usr/sub:SAPLSPO5:0101/radSPOPLI-SELFLAG[0,0]").select
    5.  session.findById("wnd[1]/tbar[0]/btn[0]").press
    6.  session.findById("wnd[1]/tbar[0]/btn[0]").press
    7.  set ns1=createobject("WScript.shell")
    8.  ns1.AppActivate "Microsoft Excel"
    9.  ns1.SendKeys "%TMM", True
    10. ns1.SendKeys "PERSONAL.XLS!EOM_Status", True
    11. ns1.SendKeys "%R", True
    12. ns1.SendKeys "%FA H:\SAP_Scripts\EOM-Status\t1Data.xls ", True
    13. ns1.SendKeys "%Y", True
    14. ns1.SendKeys "%Fx", True
    15. 'MsgBox session.Id
    16. session.findById("wnd[0]/tbar[0]/btn[3]").press
    Specific events:
    First scenario ... With line 15 (MsgBox) commented out. The script runs great until line 16 . Excel is activated, the report data exported to a spreadsheet, the excel macro executed properly, excel file saved, and excel is exited properly. When the excel app is closed out, the script is left in the same condition as after execution of line 1 (the SAP report data has been selected and is presented in report format) and the excel app is no longer resident. Line 16 depresses the green back arrow and would return SAP to the previous screen. But nothing happens. It's like the script does not see line 16 and ends after excel is closed out in line 14.
    Second scenario ... With line 15 (MsgBox) NOT commented out. Excel is activated, the report data exported to a spreadsheet, and the excel macro begins execution. During the excel macro execution, the MsgBox is displayed (/app/con[0]/ses[0]) and everything halts after the ecxel macro completes. When I hit the OK button in the MsgBox, an SAP information modal box is displayed with the caption "Save data in spread sheet". When I hit the green check mark (enter) in the information modal box, I am returned to  same condition as after execution of line 1 (the SAP report data has been selected and is presented in report format) however, the excel app is still showing the result of the executed excel macro, the excel file is not saved, and the excel app is still resident. It appears that the script halted when the MsgBox was executed.
    Please... any suggestions.???

  • Changes are not reflecting while executing the SAP script from report

    HI,
    In SAP-script we are nmaking changes in form in client 130
    it is showing the changes in 140 client but while excuting the report the same are not reflecting in the output.
    Thanks in Advance
    Naveen M

    Hello.
    Scripts are mandant depentant. So you must copy from 130 to 140 for changes take efect.
    Do it in transaction SE71 in mandant 140, first screen, in the menu options.
    And never forget to activate it in all mandants.
    Best regards.
    Valter Oliveira.

  • Best practice concerning embedding script in report vs.  controlling from Java

    Hi,
    I'm faced(probably not the only one) with adding some intelligence to my reports.  In a prior post I was curious about displaying/hiding sections based on conditions found in the bean/pojo. 
    Is there a best practice concerning embedding logic in the report in the form of formula(s), vs. using Java to get or create a field and then creating a formula on the fly?  I suspect the answer has something to do with truely dynamic fields, and perhaps a little bit of both Java, and script.
    Anyone on staff care to try answering??
    Peter

    Hi,
    log into your SAP ERP system using the SAP GUI and choose in the SAP Menu the following path:
    SAP Menu -> Accounting -> Controlling -> Cost Cetner Controlling ->Environment->Set Controlling Area.
    Set the desired controlling area for your user there (DO NOT FORGET TO CLICK ON THE DISKETTE ICON) and try again.
    Regards,
    Stratos

  • New Page Format implentation in Sap Scripts and Reports

    Hi,
       I want to print Report details and also some of the SAP Script details on the paper size of 350MM width and 310MM Height in the PORTRAIT format.
       So i created new page format with these dimensions.
       How i can use this for reports. So i can set these parameters while taking output from Report.
       Pls specify if any configuration required for this.
    Thanks in Advance,
    Regards,
    Pavan.

    In SAPscript, you set the Page Format for the document in the "Page Format" field of the "Basic Settings" page of the documents "Header" information. The popup list of this field will show all available formats in your system, so this is a ggod way to make sure your new format is set up properly.
    For reports, page format is set either with the LINE-SIZE addition to the REPORT and NEW-PAGE commands, or through the PARAMETERS addition to the NEW-PAGE command. When you use LINE-SIZE the print system picks the format for you, based on the available formats in the systems.
    I don't remember if there is an activation step for Page Formats, or if saving is all you have to do.

  • Script to report on which MPR uses what workflow

    Is there using Powershell to report on MPRs and what workflows they are kicking off?
    Thanks,
    Mickey

    Hello,
    it's not a script, but I mostly implement the solution from the following blog posts in my projects:
    https://jorgequestforknowledge.wordpress.com/2013/10/02/showing-the-mprs-a-specific-set-object-is-being-used-in/
    https://jorgequestforknowledge.wordpress.com/2013/10/03/showing-the-mprs-a-specific-workflowdefinition-object-is-being-used-in/
    This shows the references between MPRs/Workflows/Sets directly in portal.
    In addition you can use the following script to identitfy unused Sets, Workflows and eMail templates:
    https://jorgequestforknowledge.wordpress.com/2013/02/08/unused-sets-unused-workflows-unused-mail-templates-keeping-fim-portal-clean-from-unused-configuration-objects/
    /Peter
    Peter Stapf - ExpertCircle GmbH - My blog:
    JustIDM.wordpress.com

  • Script to report on placed images

    Does anyone know of a script to trawl through folders of files - or a single file and I'll adapt - and report on the placed images, whether they are embedded or linked.
    AppleScript preferable, but JavaScript very much welcome.
    Thanks in advanced.
    RegardsCraig.

    Sorry in advance for the javascript.  How about something like:
    app.linkstotal = 0
    for (i=0;app.Documents.length;i++) {
    document = app.Documents[i];
    linkeditems = document.placedItems.length;
    if (linkeditems > 0) {
       app.linkstotal = app.linkstotal + linkeditems;
       alertmessage = "Document " + document.name + "contains " + linkeditems + "linked files.";
       alert(alertmessage);
    alertmessage = "Files contain " + app.linkstotal + "linked files.";
    alert(alertmessage);
    Embedded images aren't counted as placedItems.  This script only reads open documents, but you could modify it to open and check each file in a directory.  Also, it would probably be best to feed that alert message to an output file instead of popping one up for each file.
    Does that help at all?

  • UCCX Script :: Get Reporting stats

    Hi All,
    I have a few questions regarding the "Get Reporting stats". The values like Exp waiting time, Avg hold duration, current wait time. Where can I find the formula for this? Will this parameter work if no agent is logged in? lastly can I add these any arbitary wait duration in the script if the system cannot calculate ( if no agent are logged in) ?

    Hey thanks Cris this makes sense. For no agent logged in i was getting wierd values. Got what i was looking for.
    Here are a couple of links that might be usefull for ppl with similar query:
    http://developer.cisco.com/web/ccxs/forums/-/message_boards/message/19113652?p_p_auth=6DGreJit
    https://supportforums.cisco.com/message/398471#398471

Maybe you are looking for