Can we call a rewport in scripts

hi
can we call a rewport in scripts

hi,
try this code in a sapcript:
/: PERFORM <form> IN PROGRAM <prog>
/:USING &VAR1&
/:CHANGING &VAR2&
/:ENDPERFORM
if helpful reward some points.
with regards,
Leo Ierardi.

Similar Messages

  • HOw can we Call Subroutine in Sap Script?

    HOw can we Call Subroutine in Sap Script?

    Hi
    *You have to call sub routine from script like this.
    /:   PERFORM DATE_FORMAT IN PROGRAM &SY-REPID&
    /:   USING &RM06P-LFDAT&
    /:   USING &PEKKO-LFDAT&
    /:   CHANGING &VALUE_OLD&
    /:   CHANGING &VALUE_NEW&
    /:   ENDPERFORM
    *In print program write code.
    FORM date_format TABLES in_tab STRUCTURE itcsy
    out_tab STRUCTURE itcsy.
      DATA : date TYPE char10.
      DATA : date2 TYPE char10.
      DATA : l_dmbtr TYPE char10.
      READ TABLE in_tab WITH KEY 'RM06P-LFDAT'.
      IF sy-subrc = 0.
        "Your code goes here
        CLEAR l_dmbtr.
      ENDIF.
      READ TABLE in_tab WITH KEY 'PEKKO-LFDAT'.
      IF sy-subrc = 0.
        l_dmbtr = in_tab-value.
        "Your code goes here
        CLEAR l_dmbtr.
      ENDIF.
      READ TABLE out_tab WITH KEY 'VALUE_NEW'.
        IF sy-subrc EQ 0.
            out_tab-value = date2.
            MODIFY out_tab INDEX sy-tabix.
        ENDIF.
      READ TABLE out_tab WITH KEY 'VALUE_OLD'.
        IF sy-subrc = 0.
            out_tab-value = l_dmbtr.
            MODIFY out_tab INDEX sy-tabix.
        ENDIF.
    ENDFORM.            "DATE_FORMAT

  • Can I call .m files from a LabVIEW executable without the full developmen​t version of matlab installed?

    I have an executable that I am trying to build (and distribute).  Right now, it has Matlab script nodes that call some matlab .m scripts that someone else wrote.  The target PC will not have the full development version of Matlab installed.  Would that work?  I have tried to compile the .m scripts into a DLL, but I can't import that to LabVIEW because of the special Matlab types (*mxArrays).  I have also tried to write a wrapper around that DLL, but with no success.  So now I'm wondering if I can either call the Matlab .m scripts directly from a Matlab Script node OR if I can call my Matlab DLL from within a script node.  OR any other idea someone might have...
    Thanks a lot!
    -Matt Bradley
    ************ kudos always appreciated, but only when deserved **************************

    Simon,
    I looked at MathScript and am considering using it, but one thing that is not clear to me is if I will be able to use my .m files like I can with Matlab.  I call the same Matlab script repeatedly and it keeps track of some information in global variables (for example, the number of consecutive detections).  Can I do that entirely within mathscript or would I have to reload all of the info each time -- if I had to do that, it would mean substantial changes to the .m files ... and that's not an option.
    -Matt
    -Matt Bradley
    ************ kudos always appreciated, but only when deserved **************************

  • Can we call default.lgf in BADI logic

    Hello All,
    can we call default.lgf logic script to run in the BPC in the BADI ? If yes then can someone please let me know the relevant Method or Class etc.
    For e.g. we have a BADi logic that does a data push from Profit model to Main model based on some conditions. After all this processing in the BADi and writes to Main model, there is a requirement to run the default logic which is there in Profit Model. Which I want to handle in BADI itself after processing the earlier BADI.
    If you need more details please let me know.
    Many Thanks
    Krishna

    Hi Vadim,
    *START_BADI RUNLOGIC_PH
    QUERY = OFF
    WRITE = ON
    LOGIC = DEFAULT.LGF
    APPSET = UUG
    APP = MAIN
    DEBUG = OFF
    *END_BADI
    DEFAULT.LGF has 2 logic scripts calling.
    *account.lgf
    *balance.lgf
    This only executes the first LGF and ignores the second one. I executed each one at a time and all works fine but if I give both together it executes first one in the sequence and ignores the other. Any idea why it is doing like that ??
    Try 1)
    *START_BADI TRANSPROFITTOMAIN
    QUERY = OFF
    WRITE = OFF
    *END_BADI
    *START_BADI RUNLOGIC_PH
    QUERY = OFF
    WRITE = ON
    LOGIC = FLOW_BALANCE.LGF
    APPSET = <appset name>
    APP = MAIN
    DEBUG = OFF
    *END_BADI
    *START_BADI RUNLOGIC_PH
    QUERY = OFF
    WRITE = ON
    LOGIC = CALCACCOUNT.LGF
    APPSET = <appset name>
    APP = MAIN
    DEBUG = OFF
    *END_BADI
    it runs flow_balance.lgf and I can see the log for it..In the log it says the below
    SCRIPT RUNNING TIME IN TOTAL:109.42 s.
    LOG END TIME:2014-06-26 15:17:31
    Amount of time to run script:                                         110797.19 ms
    BADI EXECUTION TIME IN TOTAL :111233.64 ms.
    [WARNING!] NO MEMBER SPECIFIED FOR DIMENSION:DATASRC WILL QUERY ON ALL BASE MEMBERS.
    [WARNING!] NO MEMBER SPECIFIED FOR DIMENSION:INFLATION WILL QUERY ON ALL BASE MEMBERS.
    [WARNING!] NO MEMBER SPECIFIED FOR DIMENSION:INTORDER WILL QUERY ON ALL BASE MEMBERS.
    [WARNING!] NO MEMBER SPECIFIED FOR DIMENSION:PROFITCENTRE WILL QUERY ON ALL BASE MEMBERS.
    [WARNING!] NO MEMBER SPECIFIED FOR DIMENSION:PROFIT_ACCOUNT WILL QUERY ON ALL BASE MEMBERS.
    [WARNING!] NO MEMBER SPECIFIED FOR DIMENSION:TIME WILL QUERY ON ALL BASE MEMBERS.
    EXECUTION BADI:RUNLOGIC_PH
    QUERY: OFF
    WRITE: ON
    Parameter DIMENSION not specified. ALL values used.
    Dimension ACCOUNT not specified and doesn't exist in current context.
    Error in RUNLOGIC call.
    BADI EXECUTION TIME IN TOTAL :2.07 ms.
    SCRIPT RUNNING TIME IN TOTAL:132.65 s.
    Please advise.
    individually they both work fine..meaning Try 2 and Try 3 works fine.
    Try 2)
    *START_BADI TRANSPROFITTOMAIN
    QUERY = OFF
    WRITE = OFF
    *END_BADI
    *START_BADI RUNLOGIC_PH
    QUERY = OFF
    WRITE = ON
    LOGIC = CALCACCOUNT.LGF
    APPSET = <appset name>
    APP = MAIN
    DEBUG = OFF
    *END_BADI
    Try 3)
    *START_BADI TRANSPROFITTOMAIN
    QUERY = OFF
    WRITE = OFF
    *END_BADI
    *START_BADI RUNLOGIC_PH
    QUERY = OFF
    WRITE = ON
    LOGIC = FLOW_BALANCE.LGF
    APPSET = <appset name>
    APP = MAIN
    DEBUG = OFF
    *END_BADI
    Try 4) Default.lgf contains 2 include statements
    *include FLOW_BALANCE.LGF
    *include calcaccount.LGF
    In this case it executes only the fist lgf in the sequence and ignores the other. I cant see anything in the log for the 2nd LGF.
    *START_BADI TRANSPROFITTOMAIN
    QUERY = OFF
    WRITE = OFF
    *END_BADI
    *START_BADI RUNLOGIC_PH
    QUERY = OFF
    WRITE = ON
    LOGIC = Default.LGF
    APPSET = <appset name>
    APP = MAIN
    DEBUG = OFF
    *END_BADI
    Thanks
    Krishna

  • Call subroutine in sap script

    how can i call subroutine in SAP Script?& where?

    hi,
    refer d links
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/calling%2ba%2bsub-routine%2bin%2bsap%2bscripts
    subroutine in script. REWARDED
    abput subroutines in scripts
    How to call a subroutine in a script ?
    How to call subroutine in a sap script

  • How to call pakage using Unix script

    Hi,
    I have created one package in Oracle(contains2 funcation and 4 procedure) which is in in xxx14database.
    Now i can execute the package and its working fine at database level.
    As per requirement ,i need to create on Unix script to trigger the package.
    I have no idea how to create the Unix script to execute the package.
    The Unix script need to created in xxxx001 Server.
    Can anyone please let me know the template or any link which I can refer to create the same.
    Or anyway i can create a script/batch on window and test first in my laptop and use the same script for my project work with required modification
    Secondly the application owner asked me to give them both database and Unix script to them so that their database team will test the Package which i developed.
    Database script meand the Package body and spec i should save as file.pkb format and send them or i can save them in .sql file and send them
    Thanking you all in advance please help its urgent.

    Now that you know how to do it ... reconsider whether doing so is a good idea.
    There is almost nothing you can do calling from a shell script that can't be done more easily from DBMS_SCHEDULER other than compromise security. Shell scripts connecting to the database are, as shown in the demo code, inherently insecure and, if you get enough of them, make it difficult to cycle passwords on a regular basis.

  • Calling an external shell script program from ABAP.

    Hi,
      Can i call an external shell script program from abap which is there on application server.
    The FM WS_EXECUTE i know can be used for calling this purpose.
    But i am getting a doubt that how can i call the external program from there.
    Please clear my doubts.
    Thanks in advance.
    Vikash

    search in SCN for sm49 and sm69 Tr. you will surely find solutions for it, with a simple search.

  • Can any one tell me how can i call a shell script from pl/sql

    i like to call shell script from pl/sql procedure.
    can any one suggest how can i do this

    Have you not mastered in asking the same kind of question ?
    First do write a script...
    no one will spoon feed you.
    How can i call a shell script from procedure
    How to call Shell Script from pl/sql block
    -Sk

  • How can i call a CGI script from java?

    The subject pretty much says it all. I want to call a perl cgi script so i can read from/write to files on a server. I don't know how to sign applets and this would be the easiest way for me, if someone could please tell me.

    Let me get this clear. Basically what u want to do is to just call a URL, right?
    U can do it by using the following code:
    import java.applet.*;
    import java.net.*;
    import java.io.*;
    public class testhttp
    public static void main(String[] args)
    try
    URL url = new URL ("http://../testcgi.cfm");
    HttpURLConnection cxn =
    (HttpURLConnection)url.openConnection();
    cxn.setRequestMethod("POST");
    cxn.setUseCaches(false);
    cxn.setDoOutput(true);
    cxn.setDoInput(true);
    ByteArrayOutputStream bytes = new
    ByteArrayOutputStream(400);
    PrintWriter writer = new PrintWriter (bytes,true);
    writer.print("application=map&release=1&items=prog1");
    writer.flush();
    cxn.setRequestProperty("Content-
    Length",String.valueOf(bytes.size()));
    cxn.setRequestProperty("Content-
    Type","application/x-www-form-urlencoded");
    bytes.writeTo(cxn.getOutputStream());
    System.out.println(bytes);
    String currentLine;
    BufferedReader in = new BufferedReader (new
    InputStreamReader(cxn.getInputStream(),"8859_1"));
    while((currentLine = in.readLine()) != null) {
    System.out.println(currentLine); }
    catch(Exception e) { e.printStackTrace(); }
    There is also a library called HTTP client which can be found at:
    http://www.innovation.ch/java/HTTPClient/index.html
    It's very simple to use and the documentation is all there, but their web server seems to be down right now.
    Anyway, hope my post helps.

  • How can i call a shell script from procedure

    I have a shell script.now i am i a situation to call that shell script from one of my procedures and need to get a value from that script.
    can u suggest me that how can a call the shell script from pl/sql?

    Is the same question you asked here
    How to call Shell Script from pl/sql block
    -SK

  • Can we call java function in java script????

    hello
    please tell me can i call a java function through java script function in jsp???

    of course not. JavaScript is interpreted by the client (web browser) while the Java code in a JSP resides on the server. don't confuse the web application's architecture.
    robert

  • Can we call the window in runtime in SAP Scripts  ?

    Hi
    Can we call the window (without placing the window in the layout at design time) in runtime in SAP Scripts 
    Thank You

    Hello,
    Calling a window at runtime is not posible.
    Let me know what u want to do exactly.
    Regards

  • Can we call two layouts for a single script?

    Can we call two layouts for a single script?
    Where dow e assign print program to a script?
    in NACE transaction is it possible.......
    Thanks in advance.
    Regards.
    Abhilash.

    Hi Abhilash.
    Greetings for the day.
    U can use one script in diffrent programs.
    Yea u can do it in NACE transaction.
    procedure would b as foloows:-
    1.NACE
    2.Select the apllication
    3.Output types (press tab).
    4.again selet the output type which u require
    5.then press "procedure routines"
    here u can give the program name and fom name.
    plz reward if found helpful.
    regards
    prashant tiwari

  • Can we call function module in sap script

    hi
    can we call function module in sap script
    i want to use function module HR_TMW_GET_EMPLOYEE_NAME in sapscript
    to get Empname by using personal no
    pernr no is coming from bseg-pernr table
    so how i can use it .
    please help me
    thanks in advanced.

    hi,
    You can use like this:
    PERFORM FUNCTION_MODULE IN PROGRAM SUBROUTINE_POOL
    USING &FIELD1&
    USING &FIELD2&
    CHANGING &FIELD3&
    ENDPERFORM.
    where function_module is the func. module name defined in program SUBROUTINE_POOL , field1 n field2 are the fields to be passed, and field3 is the value which you want to display...
    You have to read field1 & field2 in the pool, process them & get the value of field to be output.
    Reward helpful answers.
    Regards,
    SIddhesh Sanghvi.

  • Why button can not call its script?

    I did very simple work: open Director MX 2004, click the
    button icon on the Tool Palette, and draw a button on the stage.
    Right click it and menu appear. Click "Scripts..." and script
    window opens. MouseUp() event function is there already. Write
    something in mouseUp(). Anything is OK. Put a breakpoint on some
    line.
    OK, then click menu Control-Play to run the movie. Click the
    button on stage. At this time, it ought to be broken on the
    breakpoint. But it didn't. The mouseUp() was not called!
    On the other hand, other controls are OK, such as Text,
    Shape, etc.. Only botton can not call its script. Is it a bug of
    Director MX 2004?

    It may be that you're creating flash component buttons. Try
    setting the tool palette to 'classic' mode (the dropdown at the top
    of the tool palette). The buttons you create once you've done this
    will be native director buttons.
    I've not really used flash component elements much at all so
    I can't offer advice as to why the mouseup isn't working with it.
    - Ben

Maybe you are looking for

  • Why is iTunes so frustrating and un-user friendly?

    Hi all, I switched from an android phone and table to the iPad and iPhone about 6 months ago and cannot believe how much easier to use they are. I've not had one single issue with Apple's hardware and honestly don't think I could live without my iPad

  • Outlook 2013 crashes when opening Calendar search result

    I have a user who uses her Outlook 2013 calendar extensively, mainly to note for herself when she has spoken to a customer, and creating appointments for when she needs to speak to them again. (This is outside of our policy to note the contact in MS

  • Only seeing 2 GB memory (Windows XP Pro SP2, 32 bit)

    I have 4 GB installed on my Mac Pro (early 2008). It's running Windows XP Pro SP2, 32 bit). The System Information says I only have 1.99 GB of RAM. I understand that 32-bit Windows can only see up to 3 GB of RAM. But I'm only seeing 2 GB. (For exampl

  • How can i achieve VHS analog to digital transfer with yosemite

    I have been doing ours of research and phone calling to find an effective way to transfer old VHS videos to my Mac with Yosemite so that I can burn them to DVDs. These are so important to me as they include videos of my three children from birth unti

  • Spry Data Sets and CFCs?

    So, I've got the Spry Data Set working reading an XML file: http://brad.melendy.com/projects/ajax/spry/test1.cfm Which seems to work, the ID column sorts on click, all is well. The actual file it is reading is located here: http://brad.melendy.com/pr