Overloading with interfaces as parameters

Let's say you have two interfaces If1 and If2. Consider the following class:
public class FooBar{
  public void doIt(If1 i){
    //Do Something
  public void doIt(If2 i){
    //Do Something
}My instinct tells me that this shouldn't compile--after all, you can have a class that implements both If1 and If2, and then Java won't know which one to call. But it does compile. How does Java figure out which method to call in the case of a class that implements If1 and If2?

My instinct tells me that this shouldn't compile--after all, you can have a class that implements both If1 and If2, and then Java won't know which one to call.The java compiler will worry about how an object of that class is declared:
public class FooBar {
    public void doIt(If1 i){
        System.out.println("1");
    public void doIt(If2 i){
        System.out.println("2");
    public static void main(String[] args) {
        If2 arg = new X();
        new FooBar().doIt(arg);
        X badarg = new X();
        new FooBar().doIt(badarg);
interface If1 {}
interface If2 {}
class X implements If1, If2 {}The second doIt() invocation upsets the compiler because it really is ambiguous.
You might wan to consider variations like "If2 extends If1" and see if you can predict the compiler and runtime's behaviour. Details in the JLS.
Edited by: pbrockway2 on Jun 24, 2008 12:58 PM

Similar Messages

  • Problem with SET GET parameters

    Hi all,
    I am facing a problem using SET and GET parameters.
    There is a Z transaction(Dialog program) where some fields of screen are having parameter ID's. That transaction is designed to diaplay/change status of only one inspection lot at a time.
    Now I need to call that transaction in a loop using BDC. I mean i need to update the status of multiple inspection lots(one after the other). Before calling the transaction I am using
    SET PARAMETER ID 'QLS' FIELD lv_prueflos.
    Unfortunately the transaction is only changing the first inspection lot. When I debugged I found that the screen field is changing in PAI. Even though in PBO it shows the next value, when it goes to PAI it is automatically changing to the first value(inspection lot).
    Example: Inspection Lots : 4100000234
                                               4100000235
                                              4100000236
    Now first time when the call transaction is being made the status of insp lot 4100000234 is changed. For the second time when insp lot 4100000235 is being passed in PBO ican see this. But the moment it enters PAI the screen field changes to 4100000234.
    Could you pls help me in solving this issue.
    Thanks,
    Aravind

    Hi,
    Problem with SET GET parameters
    Regarding on your query. Follow this below link.
    It will help you.
    Re: Problem with Set parameter ID
    Re: Problem in Set parameter ID
    I Hope it will helps to you.
    Regards,
    Sekhar

  • Hierarchy on HANA Calculation View with Optional Input Parameters Fails

    Hi,
    Has anyone succeeded in building a hierarchy on top of a calculation view with optional input parameters, where an input parameter is not filled?
    The original requirement came from the wish to create a parent child hierarchy on a calculation view that was copied into the customer space from a HANA Live Financial Statement query view, but I have found the following when creating a simple level hierarchy on a calculation view that consumes one table. The Calculation View has one Input Parameter where the 'mandatory' box is unchecked.
    Calculation view reads ECC table FAGLFLEXT
    Simple level based hierarchy on fields PRCTR, RACCT and SEGMENT
    Input parameter is used as a filter for PRCTR with logic ("EMPTY" = '$$P_PROFITCTR$$' or "PRCTR" = '$$P_PROFITCTR$$')
    When I run the view I see the following behaviour in HANA Studio and Analysis for Excel
    Before building the hierarchy I could run the view with or without the Input Parameter
    After building the hierarchy I can run the view with the Input Parameter filled, but it fails when the Input Parameter is not filled.
    Error message is "error: search table error:  [2426] missing placeholder; missing value for mandatory parameter P_PROFITCTR"
    P_PROFITCTR is not a mandatory parameter, but the selection for the hierarchy view thinks it should be. I don't find any notes around this issue, so I don't think it's version related, however the version I have used for this test is 1.00.70.
    It's a shame we can't currently build the hierarchy as the parent child relationship is provided in HANA Live view NewGLFinancialStatementQuery.
    Thanks,
    Ken

    Hi Ken,
    We have been facing similar issue. We have even tried to set default value and as optional parameter. View still fails to create hierarchy (we are not using HANA live). As mentioned on page 97 of HANA modelling guide input parameter is mandatory from engine point of view. Hierarchy is generated as column view during the initial activation of calculation view and therefore expect a value by caller.
    This seems to be a product error. Some one from HANA development team should explain this issue in detail. I would expect someone like Thomas Jung reply to us.
    At the moment, we cant use input parameter for date prompt which gives us calendar popup feature for date selection. Hierarchies just don't work with input parameter. We are missing something.
    Regards
    Angad

  • TS2529 I understand that iTunes 10.7 is available, but when I try to download, I still show 10.6. etc.  Is this just a matter of the servers being overloaded with requests right now ?  TIA

    I understand that iTunes 10.7 is available, but when I try to download, I still show 10.6. etc.  Is this just a matter of the servers being overloaded with requests right now ?  TIA

    There are intermittent issues reported with iTunes reporting that the update is available, but ASU not showing it as an option to install. (Got that a bit with the last 10.6.x version, too.)
    If that's what is going on, I'd try updating your iTunes using an iTunesSetup.exe (or iTunes64Setup.exe) installer file downloaded from the Apple website:
    http://www.apple.com/itunes/download/

  • More than one X.509 certificate was found with the specified parameters

    Greetings All,
    We are getting an error in our application event logs every minute or so and it seems to be causing search queries to fail. Same error is appearing in the ULS logs.
    System
    Provider
    Name]
    System.ServiceModel
    4.0.0.0
    EventID
    3
    Qualifiers]
    49154
    Level
    2
    Task
    5
    Keywords
    0x80000000000000
    TimeCreated
    SystemTime]
    2014-06-25T02:30:12.000000000Z
    EventRecordID
    92894
    Channel
    Application
    Computer
    Security
    UserID]
    EventData
    System.ServiceModel.ServiceHostingEnvironment+HostingManager/63835064
    System.ServiceModel.ServiceActivationException:
    The service '/0c98374520dc4b748d92a1e51b365dce/SearchService.svc' cannot be
    activated due to an exception during compilation. The exception message is: More
    than one X.509 certificate was found with the specified parameters.. --->
    System.ArgumentException: More than one X.509 certificate was found with the
    specified parameters. at
    Microsoft.SharePoint.Utilities.CertificateManager.GetCertificate(String
    storeName, StoreLocation storeLocation, X509FindType findType, Object findValue)
    at
    Microsoft.SharePoint.Administration.SPIisWebServiceSettings.get_LocalSslCertificate()
    at Microsoft.SharePoint.SPServiceHostOperations.Configure(ServiceHostBase
    serviceHost, SPServiceAuthenticationMode authenticationMode) at
    Microsoft.Office.Server.Search.Administration.SearchServiceHostFactory.CreateServiceHost(String
    constructorString, Uri[] baseAddresses) at
    System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String
    normalizedVirtualPath, EventTraceActivity eventTraceActivity) at
    System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(ServiceActivationInfo
    serviceActivationInfo, EventTraceActivity eventTraceActivity) at
    System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String
    normalizedVirtualPath, EventTraceActivity eventTraceActivity) --- End of inner
    exception stack trace --- at
    System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String
    normalizedVirtualPath, EventTraceActivity eventTraceActivity) at
    System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String
    relativeVirtualPath, EventTraceActivity
    eventTraceActivity)
    w3wp
    6328
    Doesn't appear to affect the component health status or the crawling process, only the return of search results.
    Sorry, something went wrong.
    Search has encountered a problem that prevents results from being returned.  If the issue persists, please contact your administrator.
    I checked the certificates snapin, didn't see anything out of the ordinary but I have a feeling it goes deeper than that.
    Where can I remove this duplicate certificate? Thanks!

    Open IIS and check server certificates
    Check if there is any certificate applied to Security token service
    Did you used any certificate for web application in site
    Check binding of all web application in IIS
    Try to browse
    servername/0c98374520dc4b748d92a1e51b365dce/SearchService.svc from all servers, check the certificate details
    If this helped you resolve your issue, please mark it Answered

  • BI: Virtual Provider for ECC Report with same selection parameters

    Dear all,
    I have attached screen shot of ECC report selection screen with contain Material, Plant and Dates. As report is bit complex and I need to use just ITAB (internal table) of it for further use in BEx Query and for Dashboard purposes.
    Problem: I need to call this report by creating Virtual Provider in BI so that I get data from ECC at runtime as it is shares report so I can't able to save any data in transparent table as report calculated opening balances at runtime.
    It is possible for me by using function module i can get itab by submit return and then create Data Source for it ?
    As i make copy of FM ZZRSAX_BIW_GET_SIMPLE i cannot use submit there due to OPEN CURSOR mechanism there.
    Kindly anyone suggest how it is possible to call report with same selection parameters for creation of virtual provider.
    Please mention if i miss any point in explaining problem.
    Feel free to ask for any query.
    Many thanks.
    Hoping for positive and quick responses.

    please create 2 reports as given below.-
    REPORT  ZSZP_00007.
    parameters a(5) .
    parameters b(5) .
    parameters c(5) .
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF screen-name = 'A' or screen-name = 'B' .
      get parameter id 'aaaaaaaaaaa' field a.
      get parameter id 'bbbbbbbbbbb' field B.
    screen-input = 0.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    start-of-selection.
    your logic
    REPORT  zszp_00005.
    PARAMETERS a(5).
    PARAMETERS b(5).
    START-OF-SELECTION.
      SET PARAMETER ID 'aaaaaaaaaaa' FIELD a.
      SET PARAMETER ID 'bbbbbbbbbbb' FIELD b.
    your logic
    SUBMIT zszp_00007 VIA SELECTION-SCREEN.
    i hope this approach will solve your problem.
    thanks
    Swanand

  • TS1702 I had this Scrabble on my iPad2 and began to have connection problems, it would lock in the "connecting" position. This is not the first time Scrabble has had problems with interface. Typically customers delete the Ap then download it again to rein

    I have contacted EA about this and can find no help. I had this Scrabble on my iPad2 and began to have connection problems, it would lock in the "connecting" position. This is not the first time Scrabble has had problems with interface. Typically customers delete the Ap then download it again to reinstall it. During the process you sign in and approve the purchase KNOWING that another window will open saying that you have previously purchased it and that there is no charge. So what happened this time? It will not connect and all of my saved and current games are wiped out. I want my money back, this game interface is pretty junk and operates like some ancient DOS program,,bug,bug,buggy. I want my money back.

    Go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store.
    Regards.

  • Incompatible with interface - Exception in Adapter Module

    Hi Experts,
    I have a custom adapter module deployed on PI 7.1. Once i post any message, i am getting below exception in CC monitoring.
    Message processing failed. Cause: java.lang.ClassCastException: class $Proxy3125_10002:sap.com/ClearModule_EAR @ com.sap.engine.boot.loader.ResourceMultiParentClassLoader @ 6daa7537 @ alive incompatible with interface com.sap.aii.af.lib.mp.module.ModuleLocal:library:com.sap.aii.af.lib @ com.sap.engine.boot.loader.ResourceMultiParentClassLoader @ 15d75e80 @ alive
    I used NWDS 7.1 to develop the module.
    the EJB is stateless.
    Can any one have any idea about the exception.
    Please help me out here.
    Thx in advance,
    Brian

    Hello,
    i forgot to modify the four interfaces' name when i create the EJB, ie my Bean class is "ss.cod.de.EjdBean", then the "Remote Interface" & "Home Interface" are setted respectively and defaultly as "ss.cod.de.EjdRemote" & u201Css.cod.de.EjdHomeu201D, the u201CLocal Interfaceu201D & "LocalHome Interface" are the same to the two interface above.
    everything was well while i rectified all the interfaces as "com.sap.aii.af.lib.mp.module.ModuleHome", "com.sap.aii.af.lib.mp.module.ModuleLocal", "com.sap.aii.af.lib.mp.module.ModuleLocalHome" and "com.sap.aii.af.lib.mp.module.ModuleRemote".
    hope its help 4 u.
    good luck.
    thx & br,
    Brian

  • Need help with interface development

    Hi i need help with requirement below with developing interface between or online order system and sap plz lemme know what is bapi i use for creating customer, update and assigining partner id to costumer.
    SAP Development
    1.     Using standards SAP functional module (with BAPI), create interface that will create/change Ordering party customer in SAP. Following fields are mandatory for customer creation:
    •     MANDT     Client
    •     VKORG     Sales organization
    •     VTWEG     Distribution Channel
    •     SPART     Division
    •     KDGRP     Customer Group (= “ZORP)
    •     KUNNR     Customer number
    •     NAME1     Name 1
    •     NAME 2     Name 2 (if required)
    •     SORTL     Search term (short description)
    •     ZZALTKN     Search term 2 (old customer number)
    •     LAND1     Country
    •     ORT01     City
    •     PSTLZ      Zip Code
    •     REGIO      Region (state in USA)
    •     STRAS     Street
    •     TELF1     Primary telephone number
    •     TELFX     Primary Fax number
    •     ZZPRPLANS     Payment Plan
    •     CCINS     Payment card: Card type
    •     CCNUM     Payment cards: Card number
    •     CCDEF     Payment Card: Default Card Indicator
    •     ZBDGID     Customer Budget ID
    •     ZHOLD     Budget Hold indicator
    •     ZZCOSTCENT     Cost Center
    2.     Upon successful customer creation system will issues “S” (success) message that customer has been created.
    3.     New ordering party customer created in step ½, will have to be assigned as new partner to its belonging Sold-to/Ship-to customer. Use standard SAP customer functional module in order to perform this partner ID assignment. Partner ID for ordering party should be “ZO”.
    1.7     Enhancement Functionality
    Apart from creating a new interface to do the required functionality, the Order Create Interface also has to be changed to accommodate a field to pass the Ordering Party Number on the Order. The technicalities of how we are going to implement the interface will be laid out in the Tech Specs.
    Thanks
    in advance

    You have double posted, please mark this one as "solved on my own" and refer to this thread
    need help with interface development
    Regards,
    Rich Heilman

  • Problem with database adapter on plsql procedure with in/out parameters

    running BPEL 10.1.3.1 and using the database adapter on a plsql procedure with in/out parameters I get errors
    the plsql procedure:
    create or replace procedure proc_with_clob_inout_parameter(
    p_string in varchar2,
    p_clob in out clob)
    is
    begin
    p_clob := p_string;
    end proc_with_clob_inout_parameter;
    In BPEL I call this procedure. When I only assign a value to the p_string parameters (in a BPEL assign) all is well. When I also assign a value to the p_clob parameter the error occurs:
    <part name="summary">
    <summary>
    file:/ora1/app/oracle/as101.3/bpel/domains/digitaaldossier/tmp/.bpel_janb_inout_1.0_f6908ccf864581b7265c362444e88075.tmp/twee.wsdl
    [ twee_ptt::twee(InputParameters,OutputParameters) ] - WSIF JCA Execute of
    operation 'twee' failed due to: Error while trying to prepare and execute
    an API.
    An error occurred while preparing and executing the
    JANB.PROC_WITH_CLOB_PARAMETER2 API. Cause: java.sql.SQLException: Parameter
    Type Conflict [Caused by: Parameter Type Conflict]
    ; nested exception is:
    ORABPEL-11811
    Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the
    JANB.PROC_WITH_CLOB_INOUT_PARAMETER API. Cause: java.sql.SQLException: Parameter
    Type Conflict [Caused by: Parameter Type Conflict]
    Check to ensure that the API is defined in the database and that the
    parameters match the signature of the API. Contact oracle support if error
    is not fixable.
    </summary>
    </part>
    In BPEL 10.1.2.0 this isn't a problem. I tested it against a 10.2.0.1 and a 10.2.0.2 database and in both situations I get the error with BPEL 10.1.3.1 and no error with BPEL 10.1.2.0
    it appears to be a problem in the database adapter...
    anyone with the same problems and/or a solution?

    Not of any use to you, but we had exactly the same problem on Friday when we applied AS 10.1.2.2 Patchset on top of BPEL 10.1.2.0.2.
    The clob in our pl/sql proc wan't declared as in/out but for some reasons JDeveloper had created a clob on the Output Parameter type in the db partner link xsd. I removed this and it worked. This code had been untouched , and working fine, for months.
    I'll be raising an SR today.
    Rob J

  • Problem with interfaces

    Greetings everyone!!! Todays' question has to do with interfaces. Anyone who might be able to help is welcomed!!!
    This is my main, which constracts new object of the type Rectangle and employee and tries to find the average and the maximum area and salary accordingly
    import java.awt.Rectangle;
    public class DataSetTester
         public static void main(String[] args)
              Measurer m = new RectangleMeasurer();
              DataSet data = new DataSet(m);
              data.add(new Rectangle(5,10,20,30));
              data.add(new Rectangle(10,20,30,40));
              data.add(new Rectangle(20,30,5,10));
              System.out.println("Average area = " + data.getAverage());
              Rectangle max = (Rectangle) data.getMaximum();
              System.out.println("Max area Rectangle = " + max);
                                    Measurer x = new EmployeeMeasurer();
              DataSet data1 = new DataSet(x);
              data1.add(new employee("Mike", 1500,10));
              data1.add(new employee("fgh",2000,10));
              employee max1 = (employee) data.getMaximum();
              System.out.println("Max employee = " + max);
    }This is the DataSet class which provides the methods to find the average and the maximum
    public class DataSet
         public DataSet(Measurer aMeasurer)
              sum = 0;
              count = 0;
              maximum = null;
              measurer = aMeasurer;
         public void add(Object x)
              sum = sum + measurer.measure(x);
              if(count == 0 || measurer.measure(maximum) < measurer.measure(x))
                   maximum = x;
              count++;
         public double getAverage()
              if(count == 0)
                   return 0;
              else
                   return sum / count;
         public Object getMaximum()
              return maximum;
         private double sum;
         private Object maximum;
         private int count;
         private Measurer measurer;
    }This is my interface
    public interface Measurer
         double measure(Object anObject);
    }The classes that implement the interface
    import java.awt.Rectangle;
    public class RectangleMeasurer implements Measurer
         public double measure(Object anObject)
              Rectangle aRectangle = (Rectangle) anObject;
              double area = aRectangle.getWidth() * aRectangle.getHeight();
              return area;
    public class EmployeeMeasurer implements Measurer
         public double measure(Object anObject)
              employee anemployee = (employee) anObject;
              double payment = anemployee.getsalary() * anemployee.getmonths();
              return payment;
    }And the class employee
    public class employee
         private String name;
         private double salary;
         private double months;
         public employee()
              name = "";
              salary = 0;
              months = 0;
         public employee(String newName, double newSalary, double newMonths)
              name = newName;
              salary = newSalary;
              months = newMonths;
         public String getname()
              return name;
         public double getsalary()
              return salary;
         public double getmonths()
              return months;
    }Everything compiles but when I execute I get the desired results for the rectangle class(average and maximum)
    , but it does not work for employee.
    I get: Exception in thread main java.lang.ClassCastException: java.awt.Rectangle
    at DataSetTester.main(DataSetTester.java:18)
    Edited by: mixalissen on 26 ??? 2008 10:29 ??

    max,
    What you are constructing is called a "dirty" collection... as the negative connotation suggests, that isn't the recommended practice.
    The recommended practice is to treat "disparate things" as distinct types... and if you require collections of those things then you create two individual and distinct collections.
    However, in your example, Employee and Rectangle have "behavior in common" so you can (even if it doesn't make a lot of sense in "the real world") create an interface, which (among other things) allows you to create a collection of the-type-of-that-interface.
    So your DataSet should contain Measurable 's (note: not Measurer's)... and Rectangle and Employee should both implement Measurable (hint: think Rectangle is Measurable; not Rectangle is a Measurer; and never RectangleMeasurer (yuck))... and then of course you'll need to move the appropriate measure method to Rectangle and Employee.
    Cheers. Keith.

  • Reg:execute procedure with in out parameters

    hi,
    what is the code to execute a procedure with in out parameters.can anyone give me an example
    thanks

    872296 wrote:
    thanks for the reply.
    i am very much new to oracle database.i need this code to put in one of my informatica mapping.
    so can you just elaborate what does 'karthick' mean?is it the name of the procedure.No, karthick is the value of the variable that is being passed into the procedure called "P" in karthicks example, then if that procedure changes the value inside, the variable will have that new value passed back out of the procedure to it.
    PROCEDURE prc_mv (name VARCHAR2)
    IS
    BEGIN
    dbms_mview.refresh (mv_name);
    END prc_mv;
    PROCEDURE refresh (response IN OUT NUMBER)
    IS
    BEGIN
    dbms_mview.refresh('mv1','C');
    dbms_mview.refresh('mv2','C');
    response := 1;
    EXCEPTION
    WHEN OTHERS
    THEN
    response := 0;
    END refresh;
    can you give the code for this procedure.Yes.
    DECLARE
      v_response NUMBER;
    BEGIN
      refresh(v_response);
    END;Though your code is awful. There's no point in having the response parameter as an IN OUT if you're not going to pass IN a value and use that in the code anywhere. In your case it only needs to be an OUT parameter because you're just passing back OUT a value. You are also masking any exceptions that happen by using a WHEN OTHERS clause.
    Better code would be something like...
    FUNCTION refresh (mv_name) RETURN NUMBER IS
      v_response NUMBER := 0; -- default response value
      e_mv_not_exist EXCEPTION; -- exception variable
      PRAGMA EXCEPTION_INIT(e_mv_not_exist, -23401); -- connect exception name to internal oracle error number
    BEGIN
      dbms_mview.refresh(mv_name,'C');
      v_response := 1;
    EXCEPTION
      WHEN e_mv_not_exist THEN -- handle specific expected exception
        -- if the materialized view does not exist, handle it gracefully as we don't want to stop
        response := 0;
    END refresh;
    declare
      v_response NUMBER;
    begin
      v_response := refresh('mv1');
      if v_response = 0 then
        -- the materialized view did not exist
      else
        -- the materialized view refreshed ok
      end if;
    end;where your exception handler explicity checks for expected exceptions such as :
    ORA-23401: materialized view "SCOTT"."FRED" does not exist... and any other exceptions that you're not expecting will be raised for you to see.
    It's also better as a function because you don't need to pass in a response value, you just want to get a response value back.
    There's rarely a good need to use OUT or IN OUT parameters. (there's some cases, but it's not something to consider doing as part of your regular design)

  • Database procedure with IN/OUT parameters

    Hi,
    I have a procedure with multiple OUT parameters,
    but I do not know how to get the values of these out parameters in the calling procedure.
    What I mean is I can simply get the value of a function from a calling procedure as:-
    declare
    val1 number;
    begin
    val1 := func_get_num;
    end;
    How can I get the values of OUT parameters of a procedure in a similar way?

    like
    SQL> var ename_v varchar2(30);
    SQL> var empno_v number;
    SQL> create or replace procedure get_employee(empno out number, ename out varchar)
      2  as
      3  begin
      4     select empno, ename into empno, ename from emp where rownum <=1;
      5  end;
      6  /
    Procedure created.
    Elapsed: 00:00:00.51
    SQL> exec get_employee(:empno_v, :ename_v);
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.12
    SQL> print empno_v
       EMPNO_V
           666
    SQL> print ename_v;
    ENAME_V
    fdddfdf1
    SQL>

  • Using JOIN Function with NULL Dynamic Parameters

    I have a report with utilizes dynamic parameters but will not run if any of the parameters are null.  I am also using the JOIN function to print out the values of these parameters. If the user doesn't enter in all the parameters, can the report still run?

    Hi eburton 
    In CR 2008 we have optional parameter functionality, this will allow the report to run without parameter values.
    If you are not using CR2008 then the functionality is not available.
    Thanks,
    Sastry

  • Submit program with selection screen parameters - getting blank values

    Hi, I'm submitting a program with selection screen parameters. when I pass '000' (I_TPLSCN  )value for Planning Scenario and when this goes to selection screen then I don't see value for Planning scenario as '000'(I_TPLSCN  ) but the value is blank in selection screen. I'm using the below code for this.
    SUBMIT RMCPAMRP WITH MATNR_GL EQ I_MATNR   SIGN 'I'
                      WITH WERKS_GL EQ I_WERKS   SIGN 'I'
                      WITH PLSCN    EQ I_TPLSCN  SIGN 'I'
        via selection-screen        AND RETURN.
    Could anyone please help me how to display value '000' rather than blanks.
    thanks in advance.

    If I_MATNR, I_TPLSCN and I_WERKS are variable then try with
    SUBMIT rmcpamrp
      WITH matnr_gl = i_matnr
      WITH plscn    = i_tplscn
      WITH werks_gl = i_werks
      via selection-screen       
       AND RETURN .
    If I_MATNR, I_TPLSCN and I_WERKS are of type range then try  with
    SUBMIT rmcpamrp
      WITH matnr_gl IN i_matnr
      WITH plscn    IN i_tplscn
      WITH werks_gl IN i_werks
    via selection-screen       
       AND RETURN
    Edited by: Pawan Kesari on Dec 24, 2009 3:33 PM

Maybe you are looking for

  • How do I add text to photos before sharing in Facebook

    How do I add text to photos before sharing them in Facebook.

  • Html page in body

    I can send mail with simple text in the body. But when i am sending html contents in the body i got blank content in the email body. This is my code. MimeMessage m = new MimeMessage(session); if(From != null | To != null) Address from = new InternetA

  • Aperature Crashes when Deleting Multiple Images from Reject

    I have over 5,000 images in my reject file and I cannot delete them. When I make multiple selections and attempt to delete them Aperature crashes. Anyone have this problem? I'm trying to open up more space on my Mac HD.

  • Get error -17308 on "End" statement using remote execution in TestStand 4.0.1

    We recently upgraded TestStand 3.5 to 4.0.1.  We have a test that has sequences remotely execute on another computer.  These sequences call other sub sequences.  The test worked fine on TestStand 3.5. Under the new version of TestStand, when one of t

  • TEM and Time Mgmt. Integration

    Dear All I have activated the integration between Training and Event Management and Time Management in the node SAP Customizing Implementation Guide>Training and Event Management>Integration>Time Management>Integration Yes or No?. Moreover in the nex