I want to generate value for parameter

Hi experts,
I write one code to generate employee id automatic based on the previous fields in selection screen. ID is generated successfully but I am not able to appear it selection at run time. Please help here is my code.
REPORT  ZSELECT_TOP.
TYPE-POOLS: VRM.
DATA: NAME  TYPE VRM_ID,
      LIST  TYPE VRM_VALUES,
      VALUE LIKE LINE OF LIST.
data: id1(4) type c VALUE 'ACEN'.
data: dep like ZACENTIQ_PAGE1-sno.
data: slno(13) TYPE c.
DATA:WA33 TYPE ZACENTIQ_PAGE1.
PARAMETERS:UserName(20) type C ,
            Password(10) type C .
PARAMETERS:Depart(15) AS LISTBOX VISIBLE LENGTH 17.
PARAMETERS: Emp_ID(13) TYPE c DEFAULT slno.
AT SELECTION-SCREEN OUTPUT.
NAME = 'DEPART'.
   VALUE-KEY = 'DEV'.
   VALUE-TEXT = 'DEVELOPMENT'.
   APPEND VALUE TO LIST.
   VALUE-KEY = 'MARK'.
   VALUE-TEXT = 'MARKETING'.
   APPEND VALUE TO LIST.
   VALUE-KEY = 'CRM'.
   VALUE-TEXT = 'CRM'.
   APPEND VALUE TO LIST.
   CALL FUNCTION 'VRM_SET_VALUES'
     EXPORTING
       ID     = NAME
       VALUES = LIST.
   SELECT * FROM ZACENTIQ_PAGE1 INTO wa33 UP TO 1 ROWS ORDER BY sno DESCENDING.
  dep = wa33-sno.
ENDSELECT.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
   EXPORTING
     INPUT         = dep
  IMPORTING
    OUTPUT        = dep
   CONCATENATE id1 '/' depart '/' dep into slno.
*----------------------------- At selection screen -------------------------------------
   AT SELECTION-SCREEN.
Message was edited by: Manish Kumar : Moderator message: I have edited your post to correct spelling mistakes, all CAPS (shouting) and applied fixed-width font on code for readability. Good formatting can yield better responses.

I allready used it in At-SELECTION-SCREEN OUTOUT BUT STILL NOT COMING.
HERE IS MY CODE
TYPE-POOLS: VRM.
DATA: NAME  TYPE VRM_ID,
       LIST  TYPE VRM_VALUES,
       VALUE LIKE LINE OF LIST.
data: id1(4) type c VALUE 'ACEN'.
data: dep like ZACENTIQ_PAGE1-sno.
data: slno(13) TYPE c.
DATA:WA33 TYPE ZACENTIQ_PAGE1.
DATA INT(3)  TYPE I.
PARAMETERS:UserName(20) type C ,
            Password(10) type C .
PARAMETERS:Depart(15) AS LISTBOX VISIBLE LENGTH 17 DEFAULT 'DEV'.
PARAMETERS: Emp_ID(13) TYPE c  MODIF ID g1.
AT SELECTION-SCREEN OUTPUT.
NAME = 'DEPART'.
   VALUE-KEY = 'DEV'.
   VALUE-TEXT = 'DEVELOPMENT'.
   APPEND VALUE TO LIST.
   VALUE-KEY = 'MARK'.
   VALUE-TEXT = 'MARKETING'.
   APPEND VALUE TO LIST.
   VALUE-KEY = 'CRM'.
   VALUE-TEXT = 'CRM'.
   APPEND VALUE TO LIST.
   CALL FUNCTION 'VRM_SET_VALUES'
     EXPORTING
       ID     = NAME
       VALUES = LIST.
loop at screen.
    IF SCREEN-NAME = 'EMP_ID' AND screen-group1 = 'G1'.
SELECT * FROM ZACENTIQ_PAGE1 INTO wa33 UP TO 1 ROWS ORDER BY sno DESCENDING.
  dep = wa33-sno.
ENDSELECT.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
   EXPORTING
     INPUT         = DEP
  IMPORTING
    OUTPUT        = dep.
CONCATENATE id1 '/' depart '/' DEP into slno.
EMP_ID = slno.
   MODIFY SCREEN .
   ENDIF.
   ENDLOOP.
*----------------------------- At selection screen -------------------------------------
   AT SELECTION-SCREEN.
   INITIALIZATION.
   START-OF-SELECTION.

Similar Messages

  • Set default value for parameter fields

    Good day!
    Situation:
    1. I have 2 parameter fields in reports (dateFrom and dateTo)
    2. Before running report in ASP.NET I change value this fields (dateTo = today, dateFrom = today - 3 days)
    3.I use for this source:
    foreach (ParameterField crParam in CrystalReportSource1.ReportDocument.ParameterFields)
                            CrystalDecisions.Web.Parameter crParametr = new CrystalDecisions.Web.Parameter();
                            string ParametrName = crParam.Name;
                            crParametr.Name = ParametrName;
                              crParametr.DefaultValue = ActionReportParameter.GetParametrValue(ReportName, ParametrName);
                             CrystalReportSource1.Report.Parameters.Add(crParametr);
    4. And repurt run without request value parameter fields.
    5. BUT!!! now I need request value parameter fields before report start running - I want set default values for filelds and offer user change its before report start run.
    How do this?
    Thanks

    I believe you need to create your own parameter promt screen. Capture what the user entered and pass that to the report(?).
    slv

  • Startup nomont problem- ORA-07446: sdnfy: bad value '' for paramete

    what i am doing wrong?
    SQL> startup nomount pfile=/oracle/product/9.2.0.6/dbs/initncersp.ora;
    ORA-00444: background process "PMON" failed while starting
    ORA-07446: sdnfy: bad value '' for parameter .
    -rw-r--r-- 1 oracle dba 466 Jan 21 11:11 initncersp.ora
    oracle:tulppwradb02:ncersp>pwd
    /oracle/product/9.2.0.6/dbs
    oracle:tulppwradb02:ncersp>vi initncersp.ora
    "initncersp.ora" 127 lines, 3788 characters
    # Copyright (c) 1991, 2001, 2002 by Oracle Corporation
    # Archive
    log_archive_dest='/archive_nmarket/ncersp'
    log_archive_format='arch.ncersp.%s_%t.log'
    log_archive_start=true
    # Cache and I/O
    db_block_size=8192
    db_cache_size=25165824
    db_file_multiblock_read_count=16
    db_files = 400
    # Cursors and Library Cache
    open_cursors=500
    # Database Identification
    db_domain=""
    db_name=ncersp
    # Global Naming -- enforce that a dblink has same name as the db it connects to
    global_names = TRUE
    # Diagnostics and Statistics
    background_dump_dest=/oracle/admin/ncersp/bdump
    core_dump_dest=/oracle/admin/ncersp/cdump
    user_dump_dest=/oracle/admin/ncersp/udump
    timed_statistics=TRUE
    # File Configuration
    control_files=("/db01/oradata/ncersp/ncerspcontrol01.ctl","/db01/oradata/ncersp/ncerspcontrol02.ctl","/db01/oradata/ncer
    sp/ncerspcontrol03.ctl")
    # Instance Identification
    instance_name=ncersp
    # Job Queues
    job_queue_processes=0 #zero during maintenance
    # Optimizer
    hash_join_enabled=TRUE
    #query_rewrite_enabled=TRUE
    #query_rewrite_integrity='trusted'
    #star_transformation_enabled=FALSE
    # Pools
    java_pool_size=51200
    large_pool_size=8388608
    shared_pool_size=55343360
    # Processes and Sessions
    processes=100
    # Redo Log and Recovery
    fast_start_mttr_target=300
    # Security and Auditing
    remote_login_passwordfile='EXCLUSIVE'
    audit_trail=DB
    # Sort, Hash Joins, Bitmap Indexes
    pga_aggregate_target=25165824
    sort_area_size=1024000
    # Need Varification for below paramaters by Primary DBA
    # Miscellaneous
    aq_tm_processes=1
    compatible=9.2.0.0.0
    log_buffer=32768
    log_checkpoint_interval = 10000
    log_checkpoints_to_alert=TRUE
    max_dump_file_size='10240'
    os_roles=FALSE
    remote_os_roles=FALSE
    os_authent_prefix=''
    # System Managed Undo and Rollback Segments
    undo_management=AUTO
    undo_retention=10800
    undo_tablespace=UNDOTBS1
    #utl_file_dir='*'
    # OLD DB PARAMETERS
    #db_block_buffers=550
    #resource_limit=true
    #parallel_max_servers = 5 # SMALL
    #global_names = TRUE
    #job_queue_interval = 60

    Is this correct:
    os_authent_prefix=''
    I believe if you want to set this to null, you need to use double quotes, (as in os_authent_prefix="")
    Ref: http://www.dba-oracle.com/security/local_os_authentication.htm
    ==============================================
    To disable this feature, place the following lines in the initialization file, or change the lines to the following if they already exist and bounce the database.
    os_authent_prefix = ""
    remote_os_authent = FALSE

  • System generated value for a field and incrementing (using module pool pro)

    Hi,
    I'm getting system generated value for a field and incrementing (i.e done by coding) when i'm saving the screen or transaction (which is created using module pool programming) while modifying, saving its working fine, but when i'm going out of the screen or exit n again i start the screen (with some ztransco) the value for the field again starting from 0 so i want to start from the same value for a field where we exit or got out from the screen n incremented respectively while saving the screen,
    Thanks & Regards,
    MS
    Edited by: Rob Burbank on May 4, 2010 10:40 AM

    Search the forum for number range objects.
    Rob

  • ADF BC: calling SDO : Value for parameter 'findCriteria' cannot be null

    We have created a service interface from an application module. That service interface contains views that have view criteria. We have included those criteria in our services.
    From my consuming application, i added a data control from webservices by providing the WSDL of the service interface. So far so good...
    When i drop the result of a function that is bound to the view criteria to my page, i have to enter four parameters:
    fincCriteria of the Object type
    areaCode of the String type, this is a parameter we added in the view criteria using a bind variable.
    languageCode of the String type, also a custom parameter of the view criteria
    findControl of the Object type
    In my bindings i can provide the value of areaCode and languaeCode but i don't have a clue what to do with findCriteria and findControl. I left them empty and then i get followign message from the server:
    <SOAPProvider><setParameters> Value for parameter 'findCriteria' cannot be null
    <SOAPProvider><setParameters> Value for parameter 'findControl' cannot be null
    <WebServiceConnectionMessages><debugExecuteFailure> Failed to execute a SAAJ interaction.

    Found some documentation on how to use the service interface from business components and as it appears you can create entity objects based upon the wsdl from the service interface.
    Does it mean that i can only use the service interface that way and that when i have for example a dot net application, it can not use that service interface?

  • I am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me

    Dear ALL,
    i am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me solutions.
    var myBookFileName ,myBookFileName_temp;
                    if ( myFolder != null )
                            var myFiles = [];
                            var myAllFilesList = myFolder.getFiles("*.indd");    
                            for (var f = 0; f < myAllFilesList.length; f++)
                                        var myFile = myAllFilesList[f]; 
                                        myFiles.push(myFile);
                            if ( myFiles.length > 0 )
                                        myBookFileName = myFolder + "/"+ myFolder.name + ".indb";
                                        myBookFileName_temp=myFolder.name ;
                                        myBookFile = new File( myBookFileName );
                                        myBook = app.books.add( myBookFile );  
                                       myBook.automaticPagination = false;
                                        for ( i=0; i < myFiles.length; i++ )
                                                   myBook.bookContents.add( myFiles[i] );             
                                        var pdfFile =File(File(myFolder).fsName + "\\"+myBookFileName_temp+"_WEB.pdf");
                                        var bookComps = myBook.bookContents;
                                        if (bookComps.length === 1)
                                                       bookComps = [bookComps];
                                         var myPDFExportPreset = app.pdfExportPresets.item("AER6");
                                        app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFEx portPreset,bookComps);
                                      //myBook.exportFile (ExportFormat.pdfType, pdfFile, false);
                                      //myBook.exportFile(pdfFile, false, pdfPref, bookComps);
                                        myBook.close(SaveOptions.yes);      

    Change the below line:
    app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset,bookComps);
    to
    app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset);
    Vandy

  • Invalid value for parameter error when value is in list of allowed parameters

    I have some documents with a lot of paragraph styles that have been organized into groups. I have a simple script that is meant to ungroup these styles and delete the now-empty groups.
    Code:
    #target indesign
    var myDoc = app.activeDocument;
    if (myDoc.paragraphStyleGroups.length > 0)
        myDoc.paragraphStyleGroups.everyItem().paragraphStyles.everyItem().move(LocationOptions.AT_END, myDoc);
        myDoc.paragraphStyleGroups.everyItem().remove();
    alert("Done")
    The error I receive is (emphasis mine):
    JavaScript Error!
    Error Number: 30477
    Error String: Invalid value for parameter 'reference' of method 'move'. Expected ParagraphStyle, ParagraphStyleGroup, CharacterStyle, CharacterStyleGroup, CellStyle, CellStyleGroup, TableStyle, TableStyleGroup, Document or Application, but received Document.
    As you can see, my pickle is that my value is of an allowed type. This only happens in some documents, and there's nothing that obviously distinguishes those documents from the ones in which it works.
    One thing I've noticed is that the error sometimes takes a while to appear (a minute or so), but none of the styles have been moved once I click OK. So, I don't know if it's specific to one style. I doubt it, only because other documents with the same style set work.
    Can anyone shed any light on what this error could mean in this context? I definitely have an activeDocument, so what could cause a Document to not be a Document?
    Any help much appreciated!

    Hi,
    It occurs when 2 or more styles have the same name, probably.
    Jarek

  • Prompt Group Text value for parameter that has cascading prompts.

    <p>Does anyone know how to get a Prompt Group Text value for parameter that has cascading prompts. C# sample would be great.</p>

    Hi Sateeesh,
             I delete main memory, but does not work. if I display prompt value in list box, it shows as text value, but in 'query prompt selector', it shows as key value. I am using SAP BO 4.0

  • Where clause as expression value for parameter?

    Is it possible to put a where clause in a expression so I could use as a parameter? I have 3 documents I was going to make as available values, but not sure how to put all of this in the expression. 
    Where clause:
    where document = 'doc1'
    and sentdate = (Select max(sentdate) from Communication where document = 'doc1')

    Hi Lezgettdrunk,
    According to your description, you want to specify available values for a report parameter.
    In Reporting Services, if we want to specify the available values for a report parameter in Report Parameter Properties, we should get those values from specified values or a dataset. When we select the “Specify values” option, we can give each label corresponding
    value. When we select the “Get values from a query” option, we should select a dataset which contains documents values. In your scenario, you could create a dataset with where clause to get document values, then specify parameter available values use this
    dataset.
    Reference:
    Lesson 2: Adding Parameters to Create a List of Available Values (SSRS)
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support
    Thank you! This worked for me.

  • How to generate "constructor" for parameter object

    Hello,
    As part of my research project I need to find the "constructor" of a given
    parameter object.
    For example: Suppose we have the following method -
    public void int pop(Stack st) {
    //some code...
    I want to generate code that calls this method and its parameter with its
    constructor. Like -
    pop(new Stack(10));
    As you can see I need to return a valid instance of the parameter to the
    method (null wont do).
    I dont know what library or API to use for this purpose.
    Your help is highly appreciated.
    Thanks,
    Fayezin

    That's not a great example. If you have a Stack class, then pop() should be a method on that class, not some other class. And if you created a new Stack object, then presumably it would be empty, so popping it should cause an exception.
    Anyway, if you want to get the constructor of a class, use Introspection. There may be a better solution though, depending on what you're actually trying to accomplish.

  • Custom Report Not fetching values for parameter of report (Valueset not pop

    Hi,
    I am running custom report on Oracle application R12. This report parameters used standard value set for fetching purchase order number. The value set is not populating any values for the custom report. but for the standard report where this valuse set populating proper result.
    It's bit Supprising ...the same valuset populating values for standard reports but not for custom report developed by me.
    Value set query using table valueset and getting values from po_headers (View)
    Thanks

    Hi All,
    Luckily I have been able to rectify the problem !
    I tried retrieving the output using LISTCUBE to show the SID of the InfoObject  also for which I was unable to get the data. After the report successfully gave the output for those I/O, I checked again I could see the data in the I/O maintain master data !
    It worked like magic to me !
    But I could guess that since it is a virtual I/O therefore it is not able to retrieve the data from the table directly and is able to do that only after the SID of this I/O is retrieved.
    (If a characteristic does not have any master data, the values from the SID table are displayed for the "Values in Master Data Table" mode.)
    Closing the thread !
    Regards
    Shalabh

  • Generate value for f:selectItems in bean

    Hello, i use Jdev 10g
    values for f:selectItems in bean i'm get from DB and set to list
                 list = new ArrayList<SelectItem>();
                    ViewObject vo = am.findViewObject("CountryView");
                    while (vo.hasNext()) {
                        CountryViewRowImpl row = (CountryViewRowImpl)vo.next();
                        SelectItem item = new SelectItem();
                        item.setValue(row.getCountryCode().stringValue());
                        item.setLabel(row.getCountryName());
                        list.add(item);
    <af:iterator value="#{informClient_bean.fields}" var="row"
                                   rows="40">
                        <af:switcher id="sw1" facetName="#{row.type}"
                                     defaultFacet="Text">
                          <f:facet name="9">
                            <af:selectOneChoice value="#{row.value}"
                                                requiredMessageDetail="обязательное поле не заполнено"
                                                autoSubmit="#{row.autoSubmit}"
                                                immediate="#{row.immediate}"
                                                label="#{row.label}"
                                                 required="#{row.requared}"
                                                readOnly="#{row.readOnly}"
                                                onmouseup="validMask();"
                                                shortDesc="#{row.shortDesc}">
                              <f:selectItems value="#{row.list}"/>
                            </af:selectOneChoice>
                          </f:facet>
                      </af:switcher>
                      </af:iterator>when working with a form, select a value from the code we get the selected value .... but sometimes (for example, if the field is read-only true) then the selected value is not the same.
    value label
    1 a
    4 b
    5 c
    If I choose "b" when working on the shape of the code will be 4
    if I open the form and read only true in the bean I get a code 1 and the value of "a"

    solved the problem as follows
    list = new ArrayList<SelectItem>();
           IdentityCardTypeViewImpl vo = (IdentityCardTypeViewImpl)am.findViewObject("IdentityCardTypeView");
                    vo.executeQuery();
                    Row[] icTypes = vo.getAllRowsArray();
                    for(int i=0; i<icTypes.length; i++) {
                        IdentityCardTypeViewRowImpl row = (IdentityCardTypeViewRowImpl)icTypes;
    SelectItem item = new SelectItem();
    item.setValue(row.getIdentityCardTypeId().stringValue());
    item.setLabel(row.getIctShortName());
    list.add(item);

  • Using expression in Default Value for Parameter in BI Publisher Model

    Hi Everyone,
    I have created a BI publisher data model with bind parameters. It works fine, however, I need to put a default value in the parameter that is the result of a query. I have a month and a year parameter and for month parameter, I want the default to be always the current month when the report is first opened. I put the sql query in the default column but it does not seem to work.
    Any help is greatly appreciated,
    Thanks,
    DRL

    Did you get a resolution for this?
    I might be able to use the solution

  • Multiple Values for Parameter

    I have to create a report that allows the users to choose more than one value on the Parameter. For example, the user may choose 1 and 2, or 1,2,3 or 4,5,6,7 or all.
    I can't create lexical parameters because the list of values is 300 rows plus it is dynamically changing. Is this a possibility in Report 6i.
    I have search on this forum and can't find any helpful solution. Any help will be appreciated. Thanks.

    In case it is such a long list of values, that is also dinamically changing, consider using a table, eventually a global temporary table to store the parameter values in.
    That temporary table (or normal table) should be populated before calling the report or in the afterpform trigger - depends how you generate those values.
    Then, in your where clause you should have
    ... and field1 in (select column1 from temp_table)

  • What value for parameter Workspace when run function RSAQ_DELETE_QUERY?

    Run function RSAQ_DELETE_QUERY to delete a query, it requires to input a Workspace value, what's that? and which value we should input for this parameter Workspace?
    Thanks

    Hi Kevin,
    I think you can just leave it space. In the popup, don't enter a value and press enter.
    Siggi
    PS: Don't forget, this is not a tested solution.
    Message was edited by: Siegfried Szameitat

Maybe you are looking for

  • New macbook pro problem, plz help

    hey everyone.i just bought the new macbook pro last week, 15" i7core 2ghz. i am a very serious musician, and im going going to university next year to study music, the whole reason i bought this computer is for recording, all the musicians i know who

  • Additional Feils in FBL1

    Dear Friends, Please tell me how we can insert the special feild in choose layout in fbl1 report. My user want to see the feild user name (USNAM) from BKPF table. How we can insert. Regards, Reva.

  • Migrating Files via Network

    I am trying to transfer my files from my PC to my mac. They are both on the same wireless network. I have tried to connect to my pc via IP, with no success. How to I transfer my files wirelessly? Also, could I do it via bluetooth? Yes, I have read th

  • Any way to restore the ML color coding instead of the tag system in maverick

    do not care for the tag system with maverick is there any way to restore the color tagging of the the entire file name with maverick

  • MAXL Filter Import

    I have a need to import security filters where a user may have multiple Reads and/or writes. I have been unsuccessful thus far in creating an import of anything other than a "no_access on" filter. I would greatly appreciate an example of a no_access,