Need to display a value before the header based on a user parameter.

I have a select on the user parameter list of values.
SELECT DISTINCT GROUP_ROWID, STR_GROUP_NAME
FROM TBL_COMPANY_GROUP;
I select the option hide the first column in order to show only a list of values and not the row_ids.
I need to display the str_group_name within the header as a title. I insert a field in the header and in source select the name of the parameter p_groupid but the only thing that I get is the row_id value not the name. I use the row_id to pass it on my queries but I need the name value in the header. Any ideas? Please help.
Thanks.

create a parameter called p_header.
in the after parameter form trigger
select str_group_name into :p_header
from tbl_company_group
where group_id = :p_groupid;Have the header field source be p_header.

Similar Messages

  • How to display text value in the header data (Header text) of credit memo

    Hi...
    I need to display the text value of the text field in the header text of the header data in credit memo.
    The text values are stored in a ztable and i need to display it based on the billing document stored in vbrk (zfield) that was inserted during the creation of credit request..
    Appreciate your help on how to do this...
    Thansk and will surely reward the points..
    Kanthi..

    Hi kanthi ,
                   Read the value from Z Table and during the creation of cedit memo check out for some exit where u the value from The zTABLE AND use function module SAVE_TEXT with object and id in the header text .
    Please award if useful.

  • How to calculate and update value of the field2 based on what user enters i

    I have a field1 (date type) in page1, while saving this value to the table, I also need to update other field (field2) based on field1 on the same table. (for ex. field2 is 60 days greater than field1).
    Also on next page I want to display field2 as read only (grayed out)...
    I tried to display value of field2 on next page using "ITEM" of page1, but that is not what I need..
    While proccesing page1 I need to calculate and save value of field2, and then on next page display it from the table (not from previous page's item)
    Could you please either help or point me to the document that has a similar example?
    Thank you very much.

    how are you updating the row..
    if its using the commit button then have an actionlistener and then derive and assign the value to the particular column of the row..
          DCIteratorBinding dciter;
          BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
          dciter = (DCIteratorBinding) bindings.get("lineItemIterator");
            dciter.getCurrentRow().setAttribute("column4", value);

  • Need to display -ve sign before the dollor sign for the negative amount

    I am working on XML Publisher report, I have a total amount field which comes from Summary column from the rdf. So when ever the amount is -ve, it displays as
    $-30.00. But i have to make it dispaly as -$30.00, so how can i achieve it on XML Template? or is there any way i can achieve this?
    I tried <?format-number:empno ; 'S$999G999D99'?>,
    This has worked for me good, when ever there is a -ve amount it displays as -$30.00, but this has aroused a new problem, which is if it is a positive output it is displaying as +$30.00. i don't want that + sign to be displayed when it is positive amount.
    MY requirement is to display $-30.00 as -$30.00.
    Can you please let me know your thoughts.

    Thanks for the response, I have tried <?format-number:empno;'$999G999D99;'S$9G999D99'?>, the concurrent program is generating warning as Post processing failed, program runs fien without this change.
    I wanted to try
    <?xdofx:decode(<?xdofx:substr(<?format-number:empno;'S$9G999D99'?>,1,1)?>,'-',<?format-number:empno;'S$9G999D99'?>,<?format-number:empno;'$9G999D99'?>)?>
    But this above syntax is too long, that it doesn't fit in the text form field options-> help text window.

  • Date range to be displayed  & Displaying multiple values on the report

    Hi,
    I have date range parameters, but I also need it to be displayed it on the report. Is there any way I can display it. E.G If a parameter is created one can drag and drop it on the report if it needs to be displayed on the report, I tried to do the same for the date range parameter but it does not work.
    Also If a parameter is created by selecting the option 'Allow Multiple Values', and if you drag and drop it on the report only the first value is displayed and the rest does not show. Has anyone tried this before and been successful in displaying multiple values in the report.
    Thanks in advance.

    Hi,
    A multi-value parameter is actually treated as an array in Crystal Reports.
    To display the values selected in the parameter, create a formula from the Field Explorer and type this code:
    Join({?ParameterName},",");
    Place this formula on the header or the footer sections of the report.
    Regarding the date range issue, please follow Sastry's advice and it should work fine.
    Make sure you're using the parameter in the Minimum and Maximum functions. For eg: If I was to create a date range parameter called OrderDate, my formula to show the start date would look like this:
    Minimum({?OrderDate})
    -Abhilash

  • How to select all single values in the header area

    Dear Experts
    I got a request that the user wants to select a single value or all single values in the header area. E.g. if the values from characteristic master data are A, B, C and D, the selection can be one of these values or all of them. With the standard BPS configuration, due to the unique combination in the header area, selection of  'All' single values is not possible. Is there a way to select all single values in the header area?
    Thanks, Jessica

    Hi Jessica,
    Here is a solution where you need not to change your planning layout or to create a new variable or any exit function.
    Step 1 - Maintain master data value 'ALL' in the required characteristic.
    Step 2 - Create a copy function to copy all the required data records to 'ALL'. you can use standard copy function where you have to include only this characteristic in the fields to be change.
    Copy -
    From = all values (A,B,C,D etc)
    To = "ALL".
    Step 3 - Call this function on layout opening. you can include it in the planning folder and change the function attribute to call it on layout opening.
    Step 4 - Create a standard Delete function. you have to call this function on save operation. In this function, you have to delete all data records present in the buffer where required char contains 'ALL' value.
    This approach can impact the performance of the planning application. It depends on the number of data records you are dealing with. Standard Copy and Delete functions are pretty fast in nature.
    I hope it will help you. please let me know if you need more inputs.
    Regards
    Tarun

  • Need to display null values against table

    Hi All,
    I have one table in which I only need to display null values along with the rest of columns. for example
    ename sal date
    scott 2000 15/07/06
    Michal
    now my query should return---
    ename sal date
    michal
    hare krishna
    Alok

    Maybe it is something like this?:
    michaels>  select column_name || ' contains ' ||
           dbms_xmlgen.getxmltype ('select sum(nvl2(' || column_name || ',0,1)) c from ' || table_name ).extract ('//text()').getnumberval() ||
           ' NULL values' null_columns
      from cols
    where table_name = 'EMP'
       and dbms_xmlgen.getxmltype ('select sum(nvl2(' || column_name || ',0,1)) c from ' || table_name ).extract ('//text()').getnumberval() > 0
    NULL_COLUMNS                                                                               
    MGR contains 1 NULL values                                                                 
    COMM contains 10 NULL values  

  • How to insert a script code before the /head tag?

    Would like to insert a <script> code inside all the pages of my website, and it has to be placed before the </head> code.
    Can I manage this with muse? Else, each time when I export the site as HTML, I need to open the updated file(s) and copy and paste again the SCRIPT code in the HEAD.

    Adding scripts to the head section of your documents is not currently supported in Muse, however it is planned for future versions of Muse.
    You can add links for scripts using Object -> Insert HTML, but they will be inserted roughly at the position of the HTML page item.

  • Target finish value and Actual confirmed value for the header material

    Hi guys,
    For a given production order, I need to get the below mentioned two values for the header material of the production order:
    1. Planned or Target finish value
    2. Actual confirmed value
    will this value be calculated like: 
    Target finish quantity x standard price of the material (maintained in MBEW-STPRS)  = Target Finish Value
    Actual confirmed quantity x standard price of the material (maintained in MBEW-STPRS)  = Actual confirmed Value
    OR
    I can get these required value directly in DB table.
    Please guide here.
    Thanks & regards,
    Ravish
    Edited by: Ravish Kumar Ojha on Oct 28, 2009 5:41 AM
    Edited by: Ravish Kumar Ojha on Oct 28, 2009 5:41 AM

    CO03- go to Costs-- Analysis should give you these details.
    if you are not OK with the columns appearing, you can change by selecting the change Layout and selecting the required options.
    Regards
    Ratan

  • How to delete value in the header line of itab

    dear all,
    i have create an internal table.
    i would like to delete value of the header line after have used read table to read the contents.
    how can i do it ?

    If your internal table is something like this:
    data: begin of i_mara occurs 0.
    include structure mara.
    data: end of i_mara.
    That clears the matnr field of the header line...
    CLEAR i_mara-matnr.

  • Need to set default values for the fields plant and location in ME21N

    Hi All,
    i need to set default values for the fields plant and location in ME21N tcode.
    In accout assignment if we give 'A' then we need to create asset by clicking the Asset tab,there you have the fields plant and location.
    How to resolve this?
    Thanks in Advance

    hi .
    i needed to set default strorage location and plant in personal setting  in me21n.
    i solve it with this way.
    go to program SAPLMEPERS in se38.
    create new function in output with the sample name :MODULE ZTEST_001 OUTPUT.
    in this module write:
    if MEPOITEM_PROP-WERKS is INITIAL and  MEPOITEM_PROP-LGORT is INITIAL.
    MEPOITEM_PROP-WERKS = '1000'.
    MEPOITEM_PROP-LGORT = '0032'.
    endif.
    this is the solution.
    best regards.
    maryam

  • Lines needs to create when u create the header

    Hi Friend,
    this is my requirement,
    1) i have header and lines related page, both header and lines will have save when you click the save button.
    2) here i need to perform one validation that on save button, lines need to create when u create the header.header must have lines.
    3)under save button i have written commit operatition, both line and header table having one common column called -> hid
    can you please provide me some psudococe on this

    Hey,
    You can implement the above requirement in both ways:
    1.Using EO
    2. Using PLSQL Packages.
    Using EO's
    Create the below : MasterVO, ChildVO,  MasterChildVL
    Create an advanced table with details region in it.  You can refer DevGuide for more info. if you want.
    Make use of advancedTable : addRow functionality.  When you commit it.. data will be saved in both tables.
    Regards
    Sridhar

  • Urgent -Need to Add new values for the LOV field in forms

    HI,
    I am customizing an existing form. In that i need to add some values for the LOV fied which can be used during run time.
    Please Can some one help me in doing this?
    Thanks
    Suresh P

    Go to Navigator and edit the LOV or create a new one.
    hope that helps!

  • Add default value to the Header Text of the Quotation

    Hi All,
    I want to add the default value to the header text of the Quotation.
    I've created the Text Type and Access Sequence usign the VOTXN,
    but I want some default text shown on the header text when user click on the Text type.
    for e.g.
    "The reason", "Qty"....
    I've check the routine of data transfer and also the User Exit MV45AFZB Userexit_MOVE_FIELD_TO_TVCOM_H...still no solution.
    Please help.
    Terry

    Please check below link.
    http://www.sapfans.com/forums/viewtopic.php?f=5&t=324385

  • Get value from the array based on the HashCode

    public static void runJoin(int[][] t1,int[][] t2)
         PrintWriter out=null;
         int rows = 1000;
         int cols = 7;
         int [][] myTable3 = new int[rows][cols];
         int x = 0;
         System.out.print("Running HashJoin:Method loads the "+
         "smaller table in the memory and applies a hashing function "+
         "to common column and stores it in another table. "+
         "The larger table is then read from the file. "+
         "The same hashing function is applied to Col n of the table and a       matching record in the first table is looked up. A match will create a row in Table 3. ");          
    //Apply hashing function to smaller table and store it in the memory.
              Integer[] It2 = new Integer[t2.length];
              int [] hashCodest2 = new int[t2.length];
              Hashtable ht = new Hashtable();
              for(int i =0; i <t2.length;i++){
                   It2[i] = new Integer(t2[0]);
                   hashCodest2[i] = It2[i].hashCode();
                   ht.put(new Integer(hashCodest2[i]),It2[i]);
              //Larger table get hashcodes
              Integer It1[] = new Integer[t2.length];
              int [] hashCodest1 = new int[t2.length];          
              for(int j =0; j <t1.length;j++){
                   It1[j] = new Integer(t1[j][4]);
                   hashCodest1[j] = It1[j].hashCode();               }
              //Based on the hashcode get the value from the Table2;
              try{
    out = new PrintWriter( new FileOutputStream( "c:\\HashJoinTable.txt" ) );
              Enumeration e = ht.keys();
                   while(e.hasMoreElements())
    //How do I get the value from the array based on the HashCode? Do I need to do a loop here???                         
    hashCodes1.get(e.nextElement());           
              }catch(Exception e){}

    ok I got it......
              //Apply hashing function to smaller table and store it in the memory.
              Integer[] It2 = new Integer[t2.length];
              int [] hashCodest2 = new int[t2.length];
              Hashtable ht = new Hashtable();
              for(int i =0; i <t2.length;i++){
                   It2[i] = new Integer(t2[0]);
                   hashCodest2[i] = It2[i].hashCode();
                   ht.put(new Integer(hashCodest2[i]),It2[i]);
              //Larger table get hashcodes and compare
              Integer It1[] = new Integer[t2.length];
              int [] hashCodest1 = new int[t2.length];          
              Hashtable ht2 = new Hashtable();
              for(int j =0; j <t1.length;j++){
                   It1[j] = new Integer(t1[j][4]);
                   hashCodest1[j] = It1[j].hashCode();               
                   ht2.put(new Integer(hashCodest1[j]),It1[j]);
              //Based on the hashcode get the value from the Table2;
              try{
    out = new PrintWriter( new FileOutputStream( "c:\\HashJoinTable.txt" ) );
              Enumeration e = ht.keys();
              Integer t3[] = new Integer[t2.length];
                   while(e.hasMoreElements())
                        t3[x] = (Integer) ht2.get(e.nextElement());                
                        x++;
              }catch(Exception e){}

Maybe you are looking for