Dynamic parameter with an IMPORT statement

Hello experts. I hope you can help me with this issue:
I have a report performing an EXPORT statement into a Buffer:
  EXPORT I_USER    FROM P_USER
                I_NAME    FROM P_NAME
                I_SURNAME FROM P_SURNAM
           TO DATA BUFFER V_XPARVALUES.
Then it calls the first FM where a type I program is created by using INSERT REPORT... This dynamic-generate INCLUDE has the explicits declaration for variables: I_USER, I_NAME, I_SURNAME.
Afeter the dynamic Include generation, it calls a second FM, wich has the reference to the dynamic Include created before with the data declaration. The only thing remain is to IMPORT all the data from the buffer V_XPARVALUES:
The following code lines are within a LOOP. wa_param-paramname has the name of the variable (I_USER, I_NAME I_SURNAME).
    ASSIGN (wa_param-paramname) TO
      FROM DATA BUFFER v_xparvalues.
but what I need to achieve is dynamic parameters in the IMPORT statement.
Had anybody came across this problem?
I hope I have been clear with the explanation.
Regards,
Andrés Sarcevic.

IMPORT/EXPORT scope didn't work out. Instead, I used CALL TRANSFORMATION and XML approach, besides some ABAP creativity.

Similar Messages

  • Import collides with another import statement

    Suppose I have 2 packages, train and plane. Each package has a class called Engine. In addition, train.Engine and plane.Engine have nothing in common. In a 3rd class, I import both of these:
    import train.Engine;
    import plane.Engine;Doing so results in the following error:
    The import plane.Engine collides with another import statement
    How do I do this?

    One of these imports have to be commented. The imports are reside in the source code, not just in jar or other class path entries. If the imports are in different files then you'd browse the sources and find import with the same name but in different name spaces. This is happened if you you don't wanna add a big jar to the class path instead you created a class file with the same name because of huge references. And you just wanted route it out of the jar and possibly remove dependency.

  • Dynamic parameter with 'type-ahead' capability

    Hi,
    How do I create a dynamic parameter that will return a drop down list of over 11,000 records in alphabetic order that I can then select the value I want by starting to type in the value.  For example, in a list of cities of the world I want to select 'London' so I type in an 'L' and the list moves to the first city starting with an 'L', I then type an 'o' and the list goes to 'Lo' etc.
    At the moment only 30 values appear in the drop-down list and I can only enter the first letter.
    I want to use this value as the parent for a cascading parameter.
    Thanks, Colin

    The dynamic parameter does not have the functionality to 'type-ahead' and go to specific values in the list in that manner. The most you can do is go to values that start with a specific letter and scroll through them. This behavior is occurring by design.
    By default, Crystal Reports will only return the first 1000 unique values for a dynamic parameter. This can be changed through a registry entry.
    For information on changing the values retrieved for the dynamic parameter, you can refer to the following Business Objects Note.
    - Go to this link
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_ossnotes&query=&adv=true
    - Search for the Note: 1218588
    When using a dynamic parameter, the limit will be a combination of all the values return at each level to reach the total number of records returned. Also the more records that you return to the dynamic parameter, the longer it will take to retrieve the data from the database.

  • Dynamic parameter with unlinked table

    Post Author: martinh
    CA Forum: Data Connectivity and SQL
    Hello,
    I have 2 tables in my database. One table (table A) is for selecting the data (all kind of fields)
    The other table (table B) is only to be used to have a parameter selection (table with name, value records). These tables have no link with eachother.
    I need to have 8 parameter fields and each parameter field must pick a value from table B.
    In my recordselection (on table A) I have tests to select records depending on parameters.
    I have this working using 8 static parameters, but I have a list of 16 values.
    So that means that for each of the 8 parameters I must enter those 16 values (and also in formula-fields I have make tests; total 8x16 lines of coding)
    Therefore I wanted to use a table with the 16 values and link the 8 parameters to table B.
    The problem is that CR says that there are 2 startpoints and also I see that the data is selected several times.
    So how can I use table B only for the parameters without the need of linking this table B to table A, because there is no way to link this.
    Hope anyone can help, because I didn't fond any documentation talking about this situation.
    I'm using CR XI and CR 2008
    Thanks for your reply!
    Martin

    The dynamic parameter does not have the functionality to 'type-ahead' and go to specific values in the list in that manner. The most you can do is go to values that start with a specific letter and scroll through them. This behavior is occurring by design.
    By default, Crystal Reports will only return the first 1000 unique values for a dynamic parameter. This can be changed through a registry entry.
    For information on changing the values retrieved for the dynamic parameter, you can refer to the following Business Objects Note.
    - Go to this link
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_ossnotes&query=&adv=true
    - Search for the Note: 1218588
    When using a dynamic parameter, the limit will be a combination of all the values return at each level to reach the total number of records returned. Also the more records that you return to the dynamic parameter, the longer it will take to retrieve the data from the database.

  • Dynamic link with an if statement

    Hi there
    I'm trying to combine an if statement to a dynamic link.
    If there is a value in a column, then display the link.
    For now I have come up with this for the if statement.
    If the column is not empty, then echo out a B to let the user know there is a value there.
    <?php if (!empty($row_rs_as_2014['scan'])) { echo "<bold>B</bold>";} ?>
    So my question is this, how do I echo out the url, making the "B" here a dynamic link?
    I have tried splitting up the brackets with php tags to implement the link, but since I'm a newb, that went south..
    Hoping for tips!
    Chris

    <?php if (!empty($row_rs_as_2014['scan'])) { echo "<b><a href='".$row_rs_as_2014['scan']."' class='button'>B</a></b>";} ?>
    Explanation:
    You can put a variable within double quotes but not single quotes, unless the single quotes are within double quotes, but you cannot reference the array element that way, so you either have to convert it to a variable like this. . .
    $scan = $row_rs_as_2014['scan'];
    . . .or use the period as a concatenation operator, as I have done above. So the following would also work:
    $scan = $row_rs_as_2014['scan'];
    if (!empty($scan)) { echo "<b><a href='$scan' class='button'>B</a></b>";}
    If you are going to do much with PHP, then read PHP Solutions by Powers

  • How to add a dynamic parameter with VB 6?

    I'm building a simply application that will open crystal 11 reports and add a single parameter. I've been able to get this working however I don't know how to set the parameter as dynamic and add to the list of values?

    Hi Jason,
    Please search Forums before posting a question. There are others doing the same whcih include samples on how to. Here's one of them: Loading a prompt list dynamically on an ASP.NET page in Crystal 11
    I assume you are using the RDC ( craxdrt.dll ). The RDC has been deprecated since version 9 meaning there have been no updated or new fucntionality added to it. Since Cascading Parameters were introduced in CR 11 the RDC has no API available and nor does the .NET components. Check the posting above for more info.
    Also the RDC is not supported in .NET so you should upgrade CR and move to .NET Suite.
    Thank you
    Don

  • Can't run anything with an import statement

    That seems to be what's going on, anyway. HelloWorld works for me, but ECJ (http://cs.gmu.edu/~eclab/projects/ecj/) does not. NoClassDefFoundError when I try to run the thing, even though . is on my classpath and I'm in that directory (and yes, it's compiled), but (this is weird), with .. on my classpath, running ec.Evolve works for me from ec\, and being in ecj\ and running ec.Evolve works for me, but not being in ec\ and just running Evolve. C:\Documents and Settings\Nikola Tesla\Desktop\ecj\ecj\ec>java -classpath . Evolve throws a NoClassDefFoundError (I have . on my CLASSPATH, but I thought that I'd double-check). There are no .jars anywhere. I've talked to someone else who can run ECJ just fine, and he just has . on his CLASSPATH. Everything that I've seen makes me think that this is a CLASSPATH proble]m, but mine looks fine to me (unless . isn't the current directory). Help? XP, JDK1.6.0_01. I've found several people saying that they got a NoClassDefFoundError on HelloWorld, but only one person saying that they could run that but not anything that imported anything, there was no solution, and that thread is in an archived forum.
    e: Oh, and I forgot: javac *.java works for me, but javac *\*.java does not. It looks like my classpath isn't recursive, but I was under the impression that, for directories and not .jars, they are.
    Message was edited by:
    Schizoguy

    Apologies for the messed up formatting. Sun took away some of the goodies after some dickole exploited them, and I'm too lazy to clean up my stock answers at the moment.
    Javapedia: Classpath
    How Classes are Found
    Setting the class path (Windows)
    Setting the class path (Solaris/Linux)
    Understanding the Java ClassLoader
    java -cp .;<any other directories or jars> YourClassNameYou get a NoClassDefFoundError message because the JVM (Java Virtual Machine) can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.
    javac -classpath .;<any additional jar files or directories> YourClassName.javaYou get a "cannot resolve symbol" message because the compiler can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.

  • The import collides with another import statement

    What is this? Why this happens? I've just imported a class name to the JSP that has much more level imports. This JSP isn't even validated. I don't wanna rename my class has the same name as in one of the jar files on the class path.

    nromanc wrote:
    Skipping imports is not possible."skipping" as in not having any. Not possible? Why?
    More naturally fully qualified names could be used in the rarely used practices.
    much more typing and increase in the file size happens.The size of your source file might increase, yes.
    Wild-cards also lead to not optimized imports hence bad performance.Imports are a compile-time only construct. Any performance impact import wildcards might have are limited to compile-time.
    I didn't find correct answer in an old thread.
    I've posted correct answer but a moderator is blocked it.The reason for blocking it is given as "your post as it doesn't make much sense, and detracts from the good advice already given and well received."
    I do not know what you wrote. I cannot see blocked posts. I have no reason to doubt the reason given.

  • Help with the import statement

    Hello,
    i have a question, how would you start a simple program
    that it doesn't involve graphics or anything like that.
    A simple program that for ex. it would increment and then dicrement the
    enetered number.
    What would you write after import_______________;
    and how would you initialize the variables that you use.
    Thanks in advance!!!

    I'm not sure that you understand what an import statment does.
    Every class that you want to use must be imported. For example in this the class Integer must be imported
    Integer myinteger = new Integer(5);so every time you use the word "new" that class must be imported.
    To make our lives a little easier java will automatically include the java.lang.* files so all java programs have the line:
    import java.lang.*;even though you don't see it.
    If you want to use other classes you must find out what package they are in and import that class or it's entire package.
    For example if you want to get user input you would probably want to look at the java.io package.
    It will take some time to get a good feel for the packages and what classes are available, but spend some time each day or a couple time a week looking through the java API's.
    hope that helps.

  • (Cont)Passing dynamic parameter with the URL while submitting the form

    Hi all,
    My question is based on this link --> http://forums.adobe.com/message/4942572#4942572
    May you kindly refer to the link above for reference.
    My question is suppose the client side have a html page with a url, when the user click on the link, how the adobe livecycle directly receive the link that clicked from the user? is it possible to do that? Please advise.
    Thanks a lot.

    please help....

  • Using a dynamic file path with the import command

    In one of the BI Publisher blog entries it was mentioned that the curly braces tell the parser that it needs to evaluate this value first before executing the import statement. The example provided was using the built-in parameter CURRENT_SERVER_URL, but it also mentioned that this could be done with any parameter.
    I am trying to import a subtemplate using a parameter that will hold the relative path. I am using the following import command in my report template:
    <?import:file:///{$P_SERVERPATH}/Report Path/Subtemplate.rtf?>
    as well as the following declaration statement:
    <?param@begin:P_SERVERPATH?>
    It appears that the P_SERVERPATH parameter is not being evaluated before the import statement. Am I missing anything?
    Any help is greatly appreciated, we are a little over a week from migrating to a new environment and I need to nail down a solution ASAP.
    Thanks,
    John

    I believe that you cannot have a dynamic path in the import statement as it is not allowed by xsl.

  • Import Statement Error

    Does anyone know what is wrong with these import statement?
    import Reduction;
    import Mapper;
    import ApplyObj;
    import ApplyObjUnary;
    import java.lang.String;
    public class Driver{
    public static Driver me = new Driver();
    public static void main(String[] args){
    int i;
    I places all my *.java file in the same directory as Driver.java
    But when i try to compile Driver.java, it says :-
    C:\assignment1>javac Driver.java
    Driver.java:10: '.' expected
    import Reduction;
    ^
    Driver.java:11: '.' expected
    import Mapper;
    ^
    Driver.java:12: '.' expected
    import ApplyObj;
    ^
    Driver.java:13: '.' expected
    import ApplyObjUnary;
    ^
    4 errors
    I set my class path as
    C:\>SET CLASSPATH = .;C:\j2sdk1.4.0_01;c:\assignment1
    Apparently, the current directory has been set and my assignment1 directory has been set.
    Did i miss out anything? Why does it can't recognize the existence of other class file in the same directory?
    thanks.

    You don't need to import classes that are in the default package (i.e. you didn't put them in a package). And in Java 1.4, you can't import them. Just remove the import statements, you shouldn't need them.

  • Import statement throws exception

    Hey,
    I just added the code into my program to have a tray icon as is now supported in Java 1.6.0 "Mustang". Really easy and straight forward to do.
    Trouble is that the program will throw an exception if run on 1.4.2 or 1.5.0. The icon is a convenience not a necessity so I want to be able to allow the program to run on any of these platforms.
    Is there a way to import the classes other than using the import command and allow the program to catch the exception and respond with something like JOptionPane.showmessagedialog(frame,"Upgrade to Mustang to have tray icon");
    I thought about catching the exception when the class with the import statements is called, but that would cause the object to be null and would cause NullPointerExceptions all over my application.
    Any suggestions?
    Thanks,
    DAvid

    One way round it would be to use Class.forName() to obtain the class and then call the methods using reflection. If the class isn't found, catch the ClassNotFoundException and ignore it.
    It's not pretty but it'd work.
    Import statements are only used at compile time, though. Your runtime exception is produced when the class is accessed in the code. Nothing to do with imports. You can import all the classes you like and as long as the code doesn't need to resolve them at runtime, it'll work just fine.

  • JSP import statement problem

    Hey, I got confused with all import statement with jsp.
    Here is my problem.
    Folder structure:
    C:\Program Files\netbeans-4.1\enterprise1\jakarta-tomcat-5.5.7\webapps\ROOT\WEB\S\A
    This folder contains a.jsp.
    JSP code:
    <%@ page
         language="java"
         import="java.sql.*, MyPackage.DataBase"
         errorPage=". . ."
         contentType="text/html; charset=windows-1251"
    %>
    <%
           Connection connection = null;
         Statement statement = null;
           DataBase dataBase = new DataBase( connection, statement );
    %>
    ...Error message that I get:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    C:\Program Files\netbeans-4.1\enterprise1\jakarta-tomcat-5.5.7\work\Catalina\localhost\_\org\apache\jsp\WEB\S\A\a_jsp.java:7: package MyPackage does not exist
    import MyPackage.DataBase;
                       ^
    An error occurred at line: 104 in the jsp file: /WEB/S/A/a.jsp
    Generated servlet error:
    C:\Program Files\netbeans-4.1\enterprise1\jakarta-tomcat-5.5.7\work\Catalina\localhost\_\org\apache\jsp\WEB\S\A\a100_jsp.java:147: cannot resolve symbol
    symbol  : class DataBase
    location: class org.apache.jsp.WEB.S.A.a_jsp
           DataBase dataBase = new DataBase( connection, statement );
            ^
    ...How do I import that class so I can use it?
    Do I need to use useBean?
    What do I need to do?
    Thanks

    DataBase class does not extend java.sql.
    I put this into my jsp page
         import="java.sql.*;"
         import="MyPackage.DataBase;" Here is the error message
    Generated servlet error:
    C:\Program Files\netbeans-4.1\enterprise1\jakarta-tomcat-5.5.7\work\Catalina\localhost\_\org\apache\jsp\WEB\S\A\a_jsp.java:7: 'class' or 'interface' expected
    import MyPackage.DataBase;;
    ^
    1 error
    ...

  • Error on import statement.

    I got compiler error for an import statement which is: import MyClass;
    It said: '.' expected at the end of the statement. However, MyClass isn't any package. Also, I can compiler the same code with the import statement as above on other machine with no error. So, I'm thinking there might be some kind of settings for windows that I've done wrong.
    I have my path point to jdk\bin and my classpath point to current directory. I'm using win2k + jdk1.3.1
    Anyone has idea about this??
    Cheers,

    Didn't you ask this once before?
    Anyway, the statementimport Myclass; is malformed. You cannot explictly import a member of the default package, and you don't need to, they are already imported as are those classes defined in your package and those classes defined in java.lang.
    Chuck

Maybe you are looking for