Can we use SAMT to syntax check methods in global classes ?

Transaction SAMT can be used to perform syntax checks on programs but I can't see how to use it to check methods in global  classes. Can anyone tell me how to do this ?
thanks,
Malcolm.

I've figured out a way to do this.
You need to put the class name followed by '=====CP' into the program name......with enough ='s to make the name up to 32 characters. Bit fiddly but it can be done.

Similar Messages

  • How can I use my array in another method.... Or better yet, what's wrong?

    I guess I'll show you what I am trying to do rather and then explain it
    public class arraycalc
    int[] dog;
    public void arraycalc()
    dog = new int[2];
    public void setSize(int size)
    dog[1] = size;
    public int getSize()
    return dog[1];
    This gives me a null pointer exception...
    How can I use my array from other methods?

    You have to make the array static. :)
    Although I must admit, this is rather bad usage. What you want to do is use an object constructor to make this class an object type, and then create the array in your main class using this type, and then call the methods from this class to modify your array. Creating the array inside the other method leads to a whole bunch of other stuff that's ... well, bad. :)
    Another thing: Because you're creating your array inside this class and you want to call your array from another class, you need to make the array static; to make it static, you must make your methods static. And according to my most ingenious computer science teacher, STATIC METHODS SUCK. :D
    So, if you want to stick with your layout, it would look like:
    public class arraycalc
         static int[] dog;
         public static void arraycalc()
              dog = new int[2];
         public static void setSize(int size)
              dog[1] = size;
         public static int getSize()
              return dog[1];
    }But I must warn you, that is absolutely horrible code, and you shouldn't use it. In fact, I don't even know why I posted it.
    You should definitely read up on OOP, as this problem would be better solved by creating a new object type.

  • How can I use my iPad to check-in and check-out books to my students in my classroom?

    How can I use my iPad to check-in and check-out books to my students in my classroom?

    Assuming there won't be any wi-fi netwokrs, will there be cellular reception there?
    If so, you need to check if a carrier or the carrier if there is only one, offers a data only plan for the iPad and similar devices along with providing a mico-SIM card. If a carrier offers a data only plan with a full size SIM card, you can cut the SIM card down to mico-SIM size. There are devices that provide for this.
    If there is cellular reception but a carrier or the carrier doesn't have a data plan only for the iPad and similar devices but offers a tethering plan for phones on their network, you can tether your iPad to the cell phone for internet access via the carrier's cellular network.

  • HT201359 How can I use PayPal as my payment method?

    How can I use PayPal as my payment method for my apple account?

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • (Sales & Operations Planning) - Can we use RMCPSOP along with IDoc method

    Hi,
        While transferring data to demand mgmt(SOP) using the standard mass processing, sometimes the job is getting failed with error u201CNo period unit maintained in material masteru201D, after analysing the code which is triggering this error, we found that when ever an S076E is not the for corresponding Planning entry, it is triggering the error. 
         We are using the standard mass processing job using IDoc method to update S076((Sales & Operations Planning), we found that sometimes the S076E table was not getting updated with the Material/Plant combination. As suggested in SAP Note 500354 Program RMCPSOP can be used to synchronize S076 and S076E tables. Seeing the technical description of the suggested program it will create S076 and S076E entries based on PGMI and PGZU tables.
    My question is
    1) Can we use the RMCPSOP along with IDoc method, does it overwrites the S076 entries which were updated with IDoc method?
    2) At what step should the RMCPSOP executed if we use IDoc method.
    Regards
    Bala Krishna

    > I am planning to use WMMBID02 for it.
    > Although I found in Std SAP it is available for inbound only but I feel we can generate this idoc using user exit available at the time of "material document posting".
    >
    If you find nearly all the fileds which are asked by ur partner in that idoc, thats fine.
    > my second query is , in this idoc along with other information we also have to send information related to "REASON CODE" and "To Stock Status" ( Like in case material is transferred from Blocked to unrestricted stock type and To Stock status will be Unrestricted ) but these fields are not available in idoc defination , what should I do ?
    >
    You can extend the idoc, if you still think that you are having enough fileds in standard idoc, which are usefull.
    Reddy

  • Can we use Call transaction and session method in same program ?

    Hi experts,
                     Is it suggested to use call Transaction and session method in the same Program ?
                     i have a doubt , why cant we use multiple call transactions in same program instead of session method if we have multiple transaction updations ?

    Hi Dengyong Zhang,
    we can use the call transation and session method in same program.
    However for better performance it's benificial to use call trasaction method of BDC. but if u want to upload very large amount of data then Session method is more preferable to use.
    Session method is one of the method of BDC.
    U can also use BAPI to upload the data in SAP but it's a different concept than BDC. Performance wise BAPI is more advantageous than BDC.

  • Can I use Java 5 syntax?

    The last time I tried to create a portlet, I think I had to use J2SE 1.4 which was a big turnoff. Can I use Java SE 5/6 syntax when coding my portlet? Can I use JPA? If I'm writing JSF portlets, can I use facelets with it?
    Thanks,
    Ryan

    Yes you can Java 5 syntax while coding the portlet. You can also use JPA. I have not come across any issues regarding facelets usage in jsf portlets. Let me know if you face any issues.
    Regards,
    Deepak

  • How can I use the commandLink's setAction method?

    I have some jsf code like this:
    <af:commandLink text="#{row.name}" action="detail">
    and I want to change the commandLink's action dynamic,so I write such code:
    CoreCommandLink ccl=new CoreCommandLink();
    but I can't write
    ccl.setAction("detail");
    directly
    this method is like this
    public final void setAction(MethodBinding action)
    Can you give me some example how to use this method?
    Thank you very much!

    User,
    If you want the action to be dynamic, create a method in your backing bean that returns the proper navigation case string and bind the action to that. For example, if you have a backing bean called "myBean," write a method in the backing bean like this:
    public String myAction()
      if (something) return "action1";
      if (somethingelse) return "action2";
      // etc
    }and your commandLink looks like:
    <af:commandLink text="#{row.name}" action="#{myBean.myAction}"/>This is a much better way to do what you are trying. The error you are getting, by the way, is you are passing a string paramter to setAction, which expects a MethodBinding as a parameter; however, just use the way described above - much easier.
    John

  • Can i use getValue() instead of getText() method while retrieving data

    can anybody help me by clearly explaining what is the difference between them.
    Thank you in advance.

    value is property defined by the UIOutput class defined in the ValueHolder interface.. . I suppose both of them (getValue/getText) return a java.lang.Object.
    So,. you should be able to use getValue in your bean without any problems.
    Even though when specifying attrbutes in the jsp page you can only specify it as a text attribute.

  • Can i use an array as a methods parameter?

    If you can how would I call the method?
    public void method(int[] p){
    method({1, 1, 1 , 1});that gives me errors :D
    Edited by: tom14201 on Dec 16, 2007 5:19 AM

    sorry I meant in the last replyint arr[] = new int [4];
    for(int i= 0; i< 4; i++)
    arr[i] = 1;
    method(arr);Edited by: javadare on Dec 16, 2007 5:28 AM
    Edited by: javadare on Dec 16, 2007 5:30 AM

  • How can i use return statement in a method no flaming pls

    public class example2
    public int add(int i,int j)
    int k = i + j;
    return k; <<<< -HERE->
    public static void main(String[] args)
    example2 obj=new example2();
    obj.add(2,3);
    System.out.println("k"+k);
    Iam really really new to java programming so dont flame me
    In the above program i was hoping by putting return k it would return vlaue of k to the calling object but it didnt work i had to place sys.out.println in the method and take out the return from the method for it to work
    So why dosent it work and where is it returned to the k value.

    BlueRibbon wrote:
    In the above program i was hoping by putting return k it would return vlaue of k to the calling objectThat's what happens, yes. The VALUE of k is returned, not the NAME k, so you cannot refer to the value by just k. To the caller, the value is obtained by evaluating the expression that calls the function. So you could do
    public class example2
         public int add(int i, int j)
              return i + j;
         public static void main(String[] args)
              example2 obj = new example2();
              System.out.println(obj.add(2, 3));
    }

  • How can I use if with a check box to perform a formula?

    I would like to have a column with a cheek box which, if ticked, performs a formula in the next column. Would anyone know how to do this?

    Is this what you mean?
    B1=IF(A1=TRUE, C1+D1, "")
    this is shorthand for select cell B1, then type (or copy and paste from here) he formula:
    =IF(A1=TRUE, C1+D1, "")
    Check box not checked:
    Check box checked:
    when the checkbox is checked cell B1 will contain the sum of cells C1 and D1 otherwise cell B1 is empty

  • How can i use apple script to check every couples of seconds that the requested source in iTunes DJ setting is the one i did choose before please use the if statement without the need to open the window iTunes DJ setting

    ell application "iTunes"
      activate
              reveal playlist "iTunes DJ"
    end tell
    tell application "System Events" to tell front window of application process "iTunes"
              if value of pop up button 1 is not "1 Morning List" then
                        set focused of pop up button 1 to true
                        set value of pop up button 1 to "1 Morning list"
                        delay 0.3
                        keystroke " " & return
                        delay 0.5
              end if
              click button "Settings…"
              tell pop up button 3 to if value is not "1 Morning List" then
      click
                        delay 0.1
                        click menu item "1 Morning list" of menu 1
                        delay 0.1
              end if
      click button "OK"
    end tell

  • Can we use JSP in a JavaScript method

    Hi,
    I have a following code. and I want to do a validation that whether a file exists or not before previewing it on my screen.
    The code does not seem to work.
    Is it the correct approach.
    Please help.
    <HTML>
    <HEAD>
    <TITLE> This is frame1 </TITLE>
    <!%
    private static boolean exists (String filename) {
    return exists (filename, new File ("c:/image/"));
    private static boolean exists (String filename, File dir) {
         boolean exists = false;
         filename=filename+".jpg";
        if (new File (dir, filename).exists ()) {
              exists = true;
            } else {
                File[] subdirs = dir.listFiles ();
                int i = 0;
                int n = (subdirs == null) ? 0 : subdirs.length;
                while ((i < n) && ! exists) {
                    File subdir = subdirs;
    if (subdir.isDirectory ()) {
    exists = exists (filename, subdir);
    i ++;
    return exists;
         %>
    <script type="text/javascript">
    <!-- Begin
    // width to resize large images to
    var maxWidth=150;
    // height to resize large images to
    var maxHeight=150;
    // the id of the preview image tag
    var outImage="previewField";
    function preview(what){
    var test;
    var path = "C:/image/";
    var source=what.value;
    var finalpath = path+source+".jpg";
    test= <%=exists((String)(request.getParameter("user")))%>
    alert(test);
    if(test = 'false')
         alert("file does not exist");
         //alert(finalpath);
    // var ext=source.substring(source.lastIndexOf(".")+1,source.length).toLowerCase();
    //for (var i=0; i<fileTypes.length; i++) if (fileTypes[i]==ext) break;
    globalPic=new Image();
    var i = 0;
    //alert(what.value);
    globalPic.src=finalpath;
    //alert(globalPic.src);
    var field=document.getElementById(outImage);
    var x=parseInt(globalPic.width);
    var y=parseInt(globalPic.height);
    if (x>maxWidth) {
    y*=maxWidth/x;
    x=maxWidth;
    if (y>maxHeight) {
    x*=maxHeight/y;
    y=maxHeight;
    field.style.display=(x<1 || y<1)?"none":"";
    field.src=globalPic.src;
    field.width=x;
    //alert(x);
    field.height=y;
    //alert(y);
    </script>
    </HEAD>
    <BODY>
    <table>
    <form name=myform>
    <tr>
    <td>
    <div align="center" style="line-height: 1.9em;">
    Please enter the file name:
    </td>
    </tr>
    <tr>
    <td>
    <input type="text" name = "user" id="picField" value='1-007156SKL'>
    </td>
    </tr>
    <tr>
    <td>
    <INPUT TYPE="Submit" value="Submit" onClick = "parent.passText(this.form.user.value)">
    </td>
    </tr>
    </table>
    </form>
    <INPUT TYPE="button" value="Show Image" onClick = "preview(myform.user)">
    <img id="previewField" src="images.jpg">
    </BODY>
    </HTML>

    Here's the full code snippet :
    <HTML>
    <HEAD>
    <TITLE> This is frame1 </TITLE>
    <!%
    private static boolean exists (String filename) {
    return exists (filename, new File ("c:/image/"));
    private static boolean exists (String filename, File dir) {
         boolean exists = false;
         filename=filename+".jpg";
        if (new File (dir, filename).exists ()) {
              exists = true;
            } else {
                File[] subdirs = dir.listFiles ();
                int i = 0;
                int n = (subdirs == null) ? 0 : subdirs.length;
                while ((i < n) && ! exists) {
                    File subdir = subdirs;
    if (subdir.isDirectory ()) {
    exists = exists (filename, subdir);
    i ++;
    return exists;
         %>
    <script type="text/javascript">
    // width to resize large images to
    var maxWidth=150;
    // height to resize large images to
    var maxHeight=150;
    // the id of the preview image tag
    var outImage="previewField";
    function preview(what){
    var test;
    var path = "C:/image/";
    var source=what.value;
    var finalpath = path+source+".jpg";
    test= <%=exists((String)(request.getParameter("user")))%>
    alert(test);
    if(test = 'false')
         alert("file does not exist");
         //alert(finalpath);
    // var ext=source.substring(source.lastIndexOf(".")+1,source.length).toLowerCase();
    //for (var i=0; i<fileTypes.length; i++) if (fileTypes[i]==ext) break;
    globalPic=new Image();
    var i = 0;
    //alert(what.value);
    globalPic.src=finalpath;
    //alert(globalPic.src);
    var field=document.getElementById(outImage);
    var x=parseInt(globalPic.width);
    var y=parseInt(globalPic.height);
    if (x>maxWidth) {
    y*=maxWidth/x;
    x=maxWidth;
    if (y>maxHeight) {
    x*=maxHeight/y;
    y=maxHeight;
    field.style.display=(x<1 || y<1)?"none":"";
    field.src=globalPic.src;
    field.width=x;
    //alert(x);
    field.height=y;
    //alert(y);
    </script>
    </HEAD>
    <BODY>
    <table>
    <form name=myform>
    <tr>
    <td>
    <div align="center" style="line-height: 1.9em;">
    Please enter the file name:
    </td>
    </tr>
    <tr>
    <td>
    <input type="text" name = "user" id="picField" value='1-007156SKL'>
    </td>
    </tr>
    <tr>
    <td>
    <INPUT TYPE="Submit" value="Submit" onClick = "parent.passText(this.form.user.value)">
    </td>
    </tr>
    </table>
    </form>
    <INPUT TYPE="button" value="Show Image" onClick = "preview(myform.user)">
    <img id="previewField" src="images.jpg">
    </BODY>
    </HTML>

  • Can I use Serialization if I have to update my class files?

    Hi,
    I'm writing a game right now, and I'm using Serialization to implement saving maps in it. Its saving me a whole bunch of time right now, but I'm worried that if I make even the slightest adjustment to my class files, then old saved maps won't work anywhere.
    Is there anyway to work around this?
    Thank you for any suggestions.
    -Cuppo

    Yes there is; the description of that all can be found in the API docs for the
    Serializable interface; in short: you have to write/read the members of
    your classes yourself by implementing two special methods; that's all.You don't even have to do that. As long as you provide a serialVersionUID
    member and obey the versioning constraints in the Serialization specification
    you don't have to do any extra programing.You're right; your scenario is even simpler; I discovered something funny though:
    my 1.4.2. API docs lack all documentation of the serialVersionUID final member in
    the description of the Serializable interface. It is present in the 1.5. docs, strange ...
    kind regards,
    Jos

Maybe you are looking for

  • How do I fix my iPhone 4 down volume button? It's stiff and hard to press all of a sudden.

    All of a sudden, the down button became hard to press, I don't hear that clicking noise it used to make when I press it. The up button is fine, it's just the down button. It still works but I have to press it really hard in order for it to work. How

  • Hp 15 d001-si hdmi problem

    i can't use my hdmi cable after formatting my hp 15 d001-si please if any could help the situation.

  • Quality level

    Hi, We are migrating QM related master data from 4.6C to ECC6. We have loaded inspection plan. Please let me know the importatnt fields that we have to check in inspection plan. When we try to load quality level, it gives an error stating inspection

  • Office 2007 Documents Keep asking for credentials

    Hi All Gurus - Is there any issue with SP 2013 and Office 2007? We are trying to access office documents using IE 11, it prompts for credentials first time after compture reboot. Once given credentials it works fine whole day. but users who reboot th

  • Float this thread to the top

    I started a thread some few months back and its an important reference for me and i forgot to float this to top that time. now when i need it i found it difficult to search(Since its old maybe there is a chance to forgot the name of the thread, unles