How and where should I create a parameter list

Hi, I4m trying to create a parameter lists but I don4t know where and how.
I guess as a program unit but as function or procedure, sorry I4m new on this for that I4m finding this a bit difficult. Please, someone could help me to understand this:
PROCEDURE Run_Emp_Report IS
pl_id ParamList;
BEGIN
** Check to see if the 'tmpdata' parameter list exists.
pl_id := Get_Parameter_List('tmpdata');
** If it does, then delete it.
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
** Create the 'tmpdata' parameter list afresh.
pl_id := Create_Parameter_List('tmpdata');
** Add a data parameter to this parameter list that will
** establish the relationship between the named query
** 'EMP_QUERY' in the report, and the record group named
** 'EMP_RECS' in the form.
Add_Parameter(pl_id,'EMP_QUERY',DATA_PARAMETER,'EMP_RECS');
**Pass a Parameter into PARAMFORM so that a parameter dialog
will not appear
**for the parameters being passing in.
Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
** Run the report synchronously, passing the parameter list
Run_Product(REPORTS, 'empreport', SYNCHRONOUS, RUNTIME,
FILESYSTEM, pl_id, NULL);
END;

Hi,
What you've pasted the code here is absolutely correct.
You'll have to write the code in Forms builder.
You can either paste the same code in a procedure & call that procedure
from button's When-Button-Pressed trigger or paste the code in
your button's When-Button-Pressed trigger like this :
DECLARE
pl_id ParamList;
BEGIN
** Check to see if the 'tmpdata' parameter list exists.
pl_id := Get_Parameter_List('tmpdata');
Run_Product(REPORTS, 'empreport', SYNCHRONOUS, RUNTIME,
FILESYSTEM, pl_id, NULL);
END;
However, don't write the code in a function as you will need to return some value from the function.
Thanks,
Mayur Shah
[email protected]

Similar Messages

  • How (and where) can I create a new Nokia Messaging...

    Hi,
    I just got a new E7 which I am currently pretty happy with, however when I go to email.nokia.com I only see a log-in form for the existing customers. Where can new users register and how can I do it? I can see that there is a Nokia Mail by Yahoo, but cannot find anything useful about push-mail there.
    (Added later)I have successfully added a Google mail as a push mail to my phone and it IS WORKING,but I would like to add also our mail server but I cannot (I get a message that the password is wrong however it isn't since I can add the mailbox as POP3). After reading a lot of tutorials I SHOULD be able to log in to email.nokia.com with the first push-mail login credentials (in my case of google mail), however I get an error when trying to do so.
    TIA,
    Matej
    Solved!
    Go to Solution.

    Hi justme123,
    Thank you for your post and welcome to the forums!
    Nokia Messaging account should be automatically created when you add a new mailbox to your email client.  All account management and configuration are handled within the Nokia Messaging clients on the Nokia device. If you want to have Nokia Mail account, please see here. 
    To set up Hotmail or Gmail in Exchange ActiveSync, perform the following steps:
    Go to the Mail application and select New mailbox.
    Preparing for setup is displayed.
    Select Exchange ActiveSync.
    Enter your email address, password, username and domain.
    Connecting server is displayed.
    Enter the server name when requested.
    For Gmail Setup use the following values:
    User Name: full email address (for example [email protected])
    Domain: google
    Mail for Exchange server: m.google.com
    Hope this helps,
    Puigchild
    If you find this post helpful, a click upon the white star at bottom would always be appreciated.
    If it also solves your problem, clicking ACCEPT AS SOLUTION below it will benefit other users!

  • How and where will we create " hierarchy "variables?-urgent

    hi,
    how to create hierarchy variables?
    where they will be seen while creating a query?
    plz tell in detail..
    Message was edited by:
            neeraja devi

    Hi,
    Refer this
    http://help.sap.com/saphelp_nw04/helpdata/en/5c/8db07d555411d189660000e829fbbd/frameset.htm
    When you maintain a local variable for a hierarchy node, you only need to enter the replacement type. If you want, you can also enter an identifier for the variable. For variables for hierarchies, you can only maintain an identifier, since replacement is automatically mandatory.
    When you maintain global hierarchy variables and choose replacement type "2" (replacement by manual entry), be sure to enter "3" (Mandatory variable which is not blank (technical)) in the field Optional entry.
    Hope this helps
    Regards
    Karthik

  • If my native method depends on other dll, how and where should place them?

    I write a native method called A, and A needs to call some funciton in b.dll, c.dll,
    then I generate the dll for A, and load in the java code, but how should I deal with b and c.dll
    thanks

    according to what you say, i just need to put the dlls which the native method depend on to the you mentioned location,right?
    I tried but failed.
    can you give me more idea?

  • I want to create a "Play All" chapter marker that will play the video from start to finish in addition to the standard chapters I have-I guess I can auto start the DVD but would prefer a button-how and where would I put this "play all" marker??

    I want to create a "Play All" chapter marker that will play the video from start to finish in addition to the standard chapters I have…I guess I can auto start the DVD but would prefer a button…how and where would I put this "play all" marker?? Thanks..

    The start chapter button is a play the whole movie button regardless of how many other markers you have.
    Once a DVD starts playing it continues to the end.
    Chapters marker simply gives the viewer a place to start playback whether it be the start, middle or near the end.
    Al

  • How and where can I combine several pdf files?

    I have written a Guide Book for Music Teachers in Word, converted it into a pdf file and would now like to insert sheet music files written with Sibelius Notation Program which have also been converted into pdf files, since they are otherwise not compatible with Word. How and where can these diverse pdf files be combined?

    First, make sure you open Acrobat, and not Adobe Reader.  It's a common mistake.
    From Acrobat, use File | Create | Combine Files into a Single PDF:
    On the next panel you can select the files you want to combine, rearrange them, etc., and finally click Combine.
    P.S. your menu may look slightly different, as we may not be using the same Acrobat version.

  • How and where can i do a "User GRANT to SYSADM,SYSCTRL,.." ?

    Hello all,
    the first time we installed a new SAP-System with sapinst on DB2/LUW V9.
    SAP works. (As yet we "drove" DB2 only on z/os)
    SAP Created four db2 User : DB2<SID>, <SID>ADM, SAP<SID> and SAP<SID>DB!
    They all have no "Grant" privilege?
    How and where can i do a User grant to SYSADM,SYSCTRL,.. ,
    there's no admin?
    Thanks a lot!
    Markus

    Hi Markus,
    in addition to explicit GRANTs DB2 LUW has the concept of privileges.
    db2<dbsid> is instance owner and part of the SYSADM group db<dbsid>adm.
    <sapsid>adm is part of the SYSCTRL group db<dbsid>ctl.
    sap<sapsid> is part of the SYSMAINT group db<dbsid>mnt.
    In addtion to that <sapsid>adm is DBADM. This right is explicitly granted during the installation with SAPInst.
    The relationship between OS group and privilege is controlled by the database manager configuration parameters SYSADM, SYSCTRL and SYSMAINT.
    The rights of these privileges are described in the DB2 documentation.
    Regards, Jens

  • I just updated my iPhone 4s iOS to iOS 8 and but can no longer find personal hotspot, How and where can I find it on my iPhone 4s

    I just updated my iPhone 4s iOS to iOS 8 and but can no longer find personal hotspot, How and where can I find it on my iPhone 4s.
    Usually I share my internet with other device with ios7 but now that I have ios8 on my iPhone 4s I can no longer find the personal hotspot. How can I share internet with other device using ios8 on my iPhone 4s?
    THanks

    Settings>Cellular>Personal Hotspot. The carrier has to support this for you. This is where you should find the setting to turn it on or off.

  • I have Amazon instant video app, and recently downloaded a movie. How and where can I find it?

    I have Amazon instant video app, and recently downloaded a movie. How and where can I find it?

    Your downloaded movie should be in the library tab of the Amazon instant video app.

  • How and where to define  movement type for O4G1 or O4H1

    Hello.
    When Loading confirm(O4G1) and Delivery confirm(O4H1), some movement types create.
    For example, 
    After Loading confirm 311->647->101.
    After Delivery confirm 309.
    How and where to define  movement type for O4G1 or O4H1.
    Please, answer to me.
    Good day~!

    Hi Bulk shipment type and   intransit posting group will determine the Movement type.
    For Define bulk shipment type  ;
    SPRO => Industry Solution Oil & Gas (Downstream)=>TD   (Transportation and Distribution) =>TD Bulk Shipment => Define bulk shipment type
    For Define intransit posting group  :
    SPRO => Industry Solution Oil & Gas (Downstream)=>TD   (Transportation and Distribution) =>TD Bulk Shipment =>Intransit Stock =>Define intransit posting group.

  • How and where to keep deletion flag for existing BP-Prospect

    Hi CRM GURU'S
    Can anybody help me how and where to keep deletion flag for existing BP-Prospect
    how to check duplicate record while creating or maintaining a prospect
    Thanks in advance
    Chandra

    Hi Chandra,
    The Deletion flag for the BP is stored in tabl BUT000. The field is XDELE. In the table, this field has description 'Central Archiving Flag'. You cannot maintain deletion flag from the UI. THe UI only allows you to maintan the Archiving Flag. To maintain the deletion flag,you need to use transaction BUPA_PRE_DA. The selction screen in BUPA_PRE_DA is self explanatory,mark the appropriate flags and execute.
    Archiving flag and deletion flag have the same field on th e UI, but the flags have different INTERNAL STATUS.
    To Check for DUPLICATE records -
    Implement the BADI ADDRESS_SEARCH. You can refer to the SAP provided implementation SIC_ADDRESS_SEARCH also. This does the duplicate check while creating and changing BP's .
    Hope this helps!
    Cheers,
    Rishu.

  • I'm trying to move a video file on to my airport time capsule but it keeps asking me to click Authenticate - how and where do I do this?

    I'm trying to move a video file on to my airport time capsule but it keeps asking me to click Authenticate - how and where do I do this?

    Unmount the TC disk and manually mount it in Finder..
    Use Go, Connect to Server.
    Type in the network name or IP address thusly.
    AFP://TCname.local (TCname is the actual network name of the TC.. this is not the same as its name unless you use correct SMB naming.. so simply fix the name or find its network name. local is domain). 
    or
    AFP://10.0.1.1 (That is default IP, type in your TC ip which should only be used if static)
    When you do the above it will request a password, type in your TC disk access password.
    You should be able to copy files to the TC now.. but please remember the TC is not a great place to store files and Time Machine cannot back it up.

  • Was gonna by myself 160gb ipod for christmas...not gonna now...backing up music today... what mp3 players out there are good besides apple and where should i store my music now?

    was gonna by myself 160gb ipod for christmas...not gonna now...backing up music today... what mp3 players out there are good besides apple and where should i store my music now?

    Content acquired with an Apple ID is permanently tied to that ID.
    There is no reason to create a new Apple ID, frankly that will just create more issues.
    It is possible to load content from multiple Apple ID's onto a single device.  If the content is in the computer that the device syncs with, simply select the content and sync it.

  • I bought Ivory II. How and where to find Ivory II in Mainstage 2, I bought Ivory II. How and where to find Ivory II in Mainstage 2

    Dear friends
    Anyone can tell me how and where to load Ivory II in Mainstage 2? Thanks!

    You should, like Logic, be able to click on the Input for the channel strip.  Example:  on an existing channel strip in the mixer, click on the input button.  it is below the "I/O" header at the bottom of the channel strip but above the fader and meters.  CLick and hold, and Ivory should be there in the list along with the standard input generators and Audio Units.

  • How and where the URL is mapped to welcome or Home template?

    Hi,
    Could any body tell me how the URL (say www.abc.com) is mapped to our home template(/home.tcl).
    we use the URL www.abc.com, when we access it display the home page. This home page is generated by a TCL template- "/home". I wanted to know where this template path is mapped to www.abc.com,
    Is it done at web-server level or Appserver lavel or VCMS lavel ? What configuration file I have to look into?
    Also we have one more registered URL "www.abc.fr".. accessing this URL should redirect to "www.abc.com/home_french?locSet=FR". How and where could I do this ?
    We use :Webserver -- iPlanet ,
    Appserver -- Websphere
    Content management server -- Vignette-6

    can you give me example of it
    i am trying with
    workflowProperties.Item[
    "WorkFlowState"] =
    this.PreviousStateName;
    and then checking
    if
    (this.onTaskChangedRequestorAction_AfterProperties1.ExtendedProperties["Workflowstatus"].ToString().Contains("Escalate-the-case-further")
    && workflowProperties.Item["WorkFlowState"].ToString().Contains("SupervisorAction"))
    do you have any example?
    MCTS,ITIL

Maybe you are looking for

  • I am having trouble with some of my links having images. For example, Foxfire has a picture that looks like a small world. The links in question are blank.

    I am having trouble with my links/websites having images attached to them. The place where the image should be is blank. For example, AARP has an A for its image. My storage website has a blank broken box where the image should be. I forgot I had tro

  • Applications folder missing

    Hello all, Kind of freaking out here...I recently downloaded a trial version of Episode Pro to try out with FCP. I didn't work to my liking. I decided to uninstall it, because there was an uninstall option in the finder window with the trial applicat

  • UNC paths of fileshares vs SharePoint

    Hi, I have some ASP.NET code on a page (see below for the URL) that basically reads the querystring parameter "source" from the URL and the "source" is always a UNC path location.  What this code is doing is basically taking an Excel file from a UNC

  • Playing live radio through iTunes

    I used to have a selection of radio stations to play live through itunes and it's gone on the new version. How can I listen live. I need to go through iTunes- not just the station stream, to use my speakers thanks

  • Get videos to post w/out using .mac

    Does anyone know how to get videos to upload to your site? I already had a url and hosting and don't need a .mac account. After about a week of playing with fetch I finally got my website to connect and now run online. However, my videos did not post