Dynamic report titles

I notice that when you create a report, you can only enter a static title but I want the title to be dynamic (based on SQL). What's the best way to do this AND have it displayed over the report table ? Create a "Display Only" item? Create a one line report that displays the title?

found the answer:
Region Title Customization

Similar Messages

  • Dynamic Report Title

    Hi
    Can anyone tell me how to change the title of the report dynamically.
    Thanks

    check this thread
    https://forums.sdn.sap.com/click.jspa?searchID=3405613&messageID=3617876
    Raja

  • ISQL*PLUS dynamic reports - how to pass connect string in the URL

    When we run dynamic reports thru ISQL*PLUS, does anyone know how
    to pass the connect string info in the URL
    The following is the code from ISQL*PLUS users guide but it
    dosen't show how to pass the connect string
    when I tried to pass hr/your_secret_password@dbserver for userid
    I got an error msg
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    <HTML>
    <HEAD>
    <TITLE>iSQL*Plus Dynamic Report</TITLE>
    </HEAD>
    <BODY>
    <H1>iSQL*Plus Report</H1>
    <H2>Query by Employee ID</H2>
    <FORM METHOD=get ACTION="http://host.domain/isqlplus">
    <INPUT TYPE="hidden" NAME="userid"
    VALUE="hr/your_secret_password">
    <INPUT TYPE="hidden" NAME="script"
    VALUE="http://host.domain/employee_id.sql">
    Enter employee identification number: <INPUT TYPE="text"
    NAME="eid" SIZE="10">
    <INPUT TYPE="submit" VALUE="Run Report">
    </FORM>
    </BODY>
    </HTML>
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Thanks
    Jay

    The form you use should work when your change
    "hr/your_secret_password" to a valid username, password
    and connect identifier like "hr/hr@MYDB". Don't forget to
    configure MYDB in your tnsnames.ora file on the machine that has
    the iSQL*Plus server.
    What was the error you got?
    The full URL syntax did seem to go missing from the 9.0.1 doc.
    See below for the full syntax. This should be appearing in a
    forthcoming FAQ.
    - CJ
    What syntax can I use to run an iSQL*Plus Dynamic Report?
    You can run a dynamic report by entering the report URI in the
    location field of your browser, or by making the report server a
    link or the action for an HTML form. The iSQL*Plus 9i Release 1
    documentation has examples of these.
    The general syntax for running a dynamic report is:
    {uri}?[userid=logon&]script=location[&param...]
    where uri
    Represents the Uniform Resource Identifier (URI)
    of the iSQL*Plus Server, for example:
    http://host.domain/isqlplus
    where logon
    Represents the log in to the database to which you
    want to connect:
    {username[/password][@connect_identifier]}
    where location
    Represents the URI of the script you want to run.
    The syntax is:
    http://[host.domain/script_name]
    The host serving the script does not have to be
    the same as the machine running the iSQL*Plus server.
    where param
    Specifies the named parameters for the script you
    want to run.
    Named parameters consist of varname=value pairs.
    iSQL*Plus will define the variable varname to equal value prior
    to executing the script e.g.
    ...script=http://server/s1.sql&var1=hello&var2=world
    This is equivalent to the SQL*Plus commands:
    SQL> define var1=hello
    SQL> define var2=world
    SQL> @http://server/s1.sql
    iSQL*Plus, SQL*Plus and SQL keywords are reserved
    and must not be used as the variable names (varname). Note also,
    that since variables are delimited by the ampersand character,
    there is no requirement to enclose space delimited values with
    quotes. However, to embed the ampersand character itself in the
    value, it will be necessary to use quotes.
    For compatibility with older scripts using the &1
    variable syntax, varname may be replaced with the equivalent
    variable position as in:
    ...script=http://server/s1.sql&1=hello&2=world
    Note the & is the URL parameter separator and not
    related to the script's substitution variable syntax.
    Commands and script parameters may be given in any
    order in the dynamic report URI. However, please note that if any
    parameters begin with reserved keywords such as "script" or
    "userid" then it may be interpreted as a command rather than a
    literal parameter.

  • How to display dynamic header title in the report?

    I have a req to display dynamic header title in the report.
    When a id is entered in the prompt text, it will display the user data based on that user_id.
    so similarly....the header title should vary each time when you select different user_id.
    How can we implement this?

    >
    Zack H wrote:
    > Lazaro,
    >
    > It depends on what you want displayed in the heading for each id.
    > Please elaborate.
    >
    > Thanks,
    > Zack H.
    Zack..I have several projects listed under several project id's...
    so when a user selects project id 00164 then it should display something like "Project document for Jon Doe"
    again when the user selects project id as 00192 then it should display something like "project document for Zimmerman"
    Did you get it??

  • How to change report title dynamically??

    Hi,
    I need to change the report title dynamically. The report title must contain the value of a particular culumn in the same report.
    ex:
    col1----col2
    123----abcd
    Report title should be report123
    Thanks

    Hi BIPUser,
    Thanks for your answer.
    @1 in title view is not working. It shows @1 in the title view.
    But Narrative view is working fine.
    Thanks again
    Have great weekend
    Edited by: bob123 on Apr 2, 2010 8:41 AM

  • Insert dynamic variable in report title?

    Hi
    I am new to Discoverer. I have created a report that displayed a set of data based on the value of last month. So I have created a calculation that gets the value of last month:
    LAST_MONTH = TO_CHAR(ADD_MONTHS(TRUNC(SYSDATE,'MM'),-1),'MON/YYYY')
    I then use the value of LAST_MONTH to select dates from my data where DATE LIKE LAST_MONTH.
    But I want the report title to actually have the value of LAST_MONTH in it, so it actually says something like
    Report for NOV/2009
    dynamically etc.
    Is this possible?
    Thanks
    Lee

    Hi Lee
    To add to what Rod has said, which is 100% correct, let me explain why.
    In order to get something into the title of any report or document, whether this be Word, Excel, SQL or even Discoverer, that something must be applicable to all of the values currently displayed on the page of the report. Whereas Word or Excel will allow you to manually place something into the title, Discoverer does not. In order for Discoverer to allow you to place something into the title it must either be a Page Item or a Parameter. This is because Page Items and Parameters are guaranteed to be unique to the page of the report being displayed. Thus, if you had more than one Page Item, as you move from one to the next the title would dynamically change. When you have a fixed value or calculation, such as your LAST_MONTH, you still need to display it in the Page Items in order to place it on your title.
    To make a Page Item or Parameter display in the title you simply type the & character followed by the name of the item as it appears in the Page Items or by the name you gave the Parameter. Case is import too so last_month is not the same as LAST_MONTH.
    Whenever Discoverer encounters the character & in the title it starts looking for a Parameter or Page Item named by whatever is following the &. If it finds a match it displays the value. It no match is found then it literally displays whatever you typed. Any additional characters that you type after a successful match are also display literally.
    For example: suppose you Page Item is called LAST_MONTH and the value was NOV-09 but in the title you typed &LAST_MONTHS then what will display would be NOV-09S. However, if you typed $last_months then you will literally see &last_month in the title.
    I hope this helps.
    Best wishes
    Michael

  • Set Report Title in Center Dynamically

    I have 3 crosstabs in WEBI report and the column of those tables are changing dynamically. So how can I set my report title in center when the report is changed.
    Please help me.
    Thanks in advance

    You cannot do it unfortunately. It can only be achieved in horizontal and vertical tables.

  • How to display the sort value in the selection screen in the report title

    Dear All,
    How to display the sort value in the selection screen in the report title? I have selected a value in the selection screen for sorting , but i need that values by which i have sorted with in the report title. Can you please throw some light on this!!
    Good day,
    Thanks and regards
    Arun S

    Hi Arun,
    Try this.
    1, Set one dynamic parameter,
    2, Drag and drop that parameter into  your report title.
    3, Pass the value(sort value) dynamically from your application,
    4, Cheers..
    Other wise Try with Dataset, create a dataset and fill thev alue into that.. Then  set the data source from CR designer. and darg and drop that data column into the report.
    Hope this will work,
    Regards,
    Salah
    Edited by: salahudheen muhammed on Mar 25, 2009 11:13 AM

  • How to add a filter/selection into the report title?

    Hi experts,
    Currently I try to fugure out how to set up a field into the page header (title) of a report in order to dynamically adapt the title to selected filter criteria. I tried to use the Reprot Filter Summary, but since I do have several sheets in my reports the information given through it is not applicable.
    What I would like to achieve is that the end user can select e.g. a category X and Y and the title says: "Report title - categories: X,Y" Somthg like this. I'd appreciate any tips.
    Best regards

    Hi guys,
    thanks so far. I managed to show prompts in the report. But still my problem is nor 100% solved
    I would like t achieve that the filtered criteria in the report title is separated through a comma like in the report filter summary - e.g.: {001, 002, 003, 004} followed by just 1chart/table that is including the whole information.
    When I however just drag a variable into the report it automatically created different sections, right? Like ........ table, chart, whatever... .......table chart whatever........
    Regards

  • Text Variable for Report Title

    Hi All,
    My requirement is to keep a dynamic text as current fiscal period in the Title of the report.
    I have created a Customer exit variable and the value is getting populated. But the user does'nt wanna see the Key (Ex 2007004 ), he want to see the text as
    Apr 2007.
    If i am using a replacement path variable, then i can say replace with text. But as the text variable need to be in the report title, i have choosen the cust exit which will give only the key not the text.
    Can anyone suggest me how to solve it.
    Thanks In Advance
    Ram

    Hi,
    check the below thread.
    0CALMONTH values need to display in Texts
    Regards,
    Siva.

  • Use of Presentation Variables in Navigated Report Title

    Hi All,
    It's regarding the presentation variable in report title. I have value interaction to another report based on Prompted values. But when we click on the value it will go to another report page and giving the results, but the title view is not changing as per the requested value. The title should change dynamically, but it is showing the P.Variables in place of prompted value.
    Below are the ways i have used the P.Variables:
    @{brand1} at @{customer}, @{sensitivity}% Sensitivity
    @{brand1}{'Prod'} at @{customer}{'CVS'}, @{sensitivity}{'15'}% Sensitivity -----(default values here)
    Version : OBIEE 11.1.1.5.0
    Could you provide me the solution for this issue.
    Thanks in Advance,

    Hi,
    You can use the presentation variable when you are passing the value from the prompt and filtering after
    clicking on the 'GO' or 'APPLY' button. So that assigns one value and is passed in the report in the
    page used.
    What you need to do is you need to have the 'is prompted' for the column used in the title
    or you can make the column is equal to @{pres_var}.
    But still if you dont use the columns in the report and you dont want to filter the report with the title columns
    then you can use narrative view with all the columns used in the title and have 'is prompted' and make its formatting similar to title view and save as a separate report
    And place the narrative view above the report
    Regards,
    MuRam

  • Create dynamic report or query for piece count

    Hi abaper's
    This is a very straight forward requirement. so please give me code
    First you have to get the corresponding plant from table T320 for the given warehouse numbers in the selection screen. 
    1.     Get the sum of order qty of sales orders from the sales order tables      for the given warehouse(Plant), distribution channel and the give date      range.
    2.     Get the confirmed transfer orders qty from the TO master table where      TO confirmation date is in the given date range and WH number.
    3.     Get the total PGIed qty from the delivery master table where PGI'ed      date in the given date range, shipping point is in the corresponding      plant of the WH and for the given distribution channel.
    As you are going to use the major tables please try to write the select commands effectively to avoid further performance issues.

    How to improve the performance fo this code.....this very urgent.
    & Issue Number          : 22199                                    &
    & Programmer            : Anjaneyulu.Pabba                         &
    & Transport Number      : D01K962471                               &
    & Date of Creation      : 19/03/2008                               &
    & Description           : Dynamic report or query for piece count  &
    & Requested By          : Parvati.Polisetty                        &
    REPORT  ZR_SD_PIECE_COUNT_ALV no standard page heading
                                  line-size 255
                                  line-count 65.
                          TABLES DECLARATION
    *TABLES: T320,   "Assignment IM Storage Location to WM Warehouse Number
          VBAK,   "Sales Document: Header Data
          VBAP,   "Sales Document: Item Data
          TVKOV,  "Org. Unit: Distribution Channels per Sales Organization
          LTAK,   "WM transfer order header
          LTAP,   "Transfer order item
          LIKP,   "SD Document: Delivery Header Data
          LIPS.   "SD document: Delivery: Item data
                          TYPE-POOLS DECLARATION
    TYPE-POOLS: SLIS .
         Internal Table Declaration
    DATA : BEGIN OF TY_T320,
            WERKS TYPE WERKS_D,
            LGNUM TYPE LGNUM,
           END OF TY_T320.
    DATA : BEGIN OF TY_VBAK,
            VBELN  TYPE VBELN_VA,
            VTWEG  TYPE VTWEG,
            WERKS  TYPE WERKS_D,
            KWMENG TYPE KWMENG,
            VSTEL  TYPE VSTEL,
           END OF TY_VBAK.
    DATA : BEGIN OF TY_LTAK,
            LGNUM TYPE LGNUM,
            TANUM TYPE TANUM,
            VISTA TYPE LTAP_VISTA,
           END OF TY_LTAK.
    DATA : BEGIN OF TY_LIKP,
            VBELN TYPE VBELN_VL,
            WERKS TYPE WERKS_D,
            LFIMG TYPE LFIMG,
           END OF TY_LIKP.
    DATA : BEGIN OF TY_ITAB ,
    LGNUM  TYPE LGNUM,    "Warehouse Number / Warehouse Complex
    WERKS  TYPE WERKS_D,  "Plant
    VBELN  TYPE VBELN_VA, "Sales Document
    VTWEG  TYPE VTWEG,   "Distribution Channel
    KWMENG TYPE KWMENG,  "Cumulative order quantity in sales units
    TANUM  TYPE TANUM ,     "Transfer Order Number
    VISTA  TYPE LTAP_VISTA, "Source actual quantity in alternative
                                                 unit of measure
    LFIMG  TYPE LFIMG,  "Actual quantity delivered (in sales units)
    END OF TY_ITAB .
    DATA: T_T320 LIKE STANDARD TABLE OF TY_T320 INITIAL SIZE 0 WITH HEADER
                                                                   LINE,
          T_VBAK LIKE STANDARD TABLE OF TY_VBAK INITIAL SIZE 0 .
    DATA: T_LTAK LIKE STANDARD TABLE OF TY_LTAK INITIAL SIZE 0 WITH HEADER
                                                                    LINE.
    DATA :T_LIKP LIKE STANDARD TABLE OF TY_LIKP INITIAL SIZE 0 WITH HEADER
                                                                    LINE.
    DATA:T_ITAB LIKE STANDARD TABLE OF TY_ITAB INITIAL SIZE 0 WITH HEADER
                                                                   LINE .
    *&      Fieldcatalog Declaration
    DATA : T_FCAT TYPE SLIS_T_FIELDCAT_ALV,
           W_FCAT TYPE SLIS_FIELDCAT_ALV.
    DATA : W_LAYOUT TYPE SLIS_LAYOUT_ALV.
    ********Global Data Declaration***
    DATA :G_REPID        LIKE SY-REPID,
         G_EXIT(1)      TYPE C,
         GX_VARIANT     LIKE DISVARIANT,
         X_SAVE,                          "for Parameter I_SAVE
         GS_VARIANT TYPE DISVARIANT.      "for parameter IS_VARIANT
    data: g_lgnum type t320-lgnum,
          g_vtweg type vbak-vtweg,
          g_erdat type vbak-erdat.
    *&      Selection-Screen
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS : S_LGNUM FOR  g_lgnum, "Warehouse Number
                    S_VTWEG FOR g_vtweg, "Distribution Channel
                    S_ERDAT FOR g_erdat ."Date on which the record was
    **********"created
    SELECTION-SCREEN END OF BLOCK B1 .
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    PARAMETER: P_VARI LIKE DISVARIANT-VARIANT.  "Layout
    SELECTION-SCREEN END OF BLOCK B2.
    *&       INITIALIZATION EVENT
    INITIALIZATION.
      CLEAR GS_VARIANT.
    'gs_variant' must at least contain the report-id to allow
    saving a variant.
      G_REPID = SY-REPID.
    § 2.At least field REPORT of this structure has to be filled!
      GS_VARIANT-REPORT = G_REPID.
    § 3.Determine saving options.
      X_SAVE = 'A'.   "The user may save all types of variants
    *******Validating selection-screen values**********************
    getting F4 value for display variant field
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VARI.
      PERFORM F4_FOR_VARIANT.
    ****validation of F4 value of display variant
    AT SELECTION-SCREEN.
      PERFORM PAI_OF_SELECTION_SCREEN.
    *&      Start-Of-Selection
    START-OF-SELECTION.
    *****Subroutine to  select Plant from T320
      PERFORM FIND_PLANT .
    *****Subroutine to select Order Quantity from VBAP
      PERFORM ORDER_QUANTITY .
    *****Subroutine to select Transfer Order Quantity from LTAK and LTAP
      PERFORM TRANSFER_ORDER_QUANTITY.
    *****Subroutine to select TDelivery Quantity from  LIKP and LIPS
      PERFORM DELIVERY_QUANTITY.
    *&      End-Of-Selection
    END-OF-SELECTION.
    *****Subroutine for Fieldcatalog
      PERFORM FIELDCATALOG .
    *****Subroutine for Final Output
      PERFORM DISPLAY_OUTPUT .
    *&     Subroutine Implementaion
    *&      Form  FIND_PLANT
          text
    -->  p1        text
    <--  p2        text
    FORM FIND_PLANT .
      SELECT  WERKS
              LGNUM
              FROM T320
              INTO  TABLE T_T320
              WHERE LGNUM IN S_LGNUM.
    ENDFORM.                    " FIND_PLANT
    *&      Form  order_quantity
          text
    -->  p1        text
    <--  p2        text
    FORM ORDER_QUANTITY .
      SELECT VK~VBELN
             VK~VTWEG
             VP~WERKS
             VP~KWMENG
             VP~VSTEL
             INTO TABLE T_VBAK FROM VBAK AS VK
             INNER JOIN  VBAP AS VP
             ON VKVBELN = VPVBELN
             FOR ALL ENTRIES IN T_T320
             WHERE VK~VTWEG IN S_VTWEG
             AND   VK~ERDAT IN S_ERDAT
             AND   VP~WERKS = T_T320-WERKS.
    ENDFORM.                    " order_quantity
    *&      Form  Transfer_order_quantity
          text
    -->  p1        text
    <--  p2        text
    FORM TRANSFER_ORDER_QUANTITY .
      SELECT LK~LGNUM
             LK~TANUM
             LP~VISTA
             INTO TABLE T_LTAK FROM LTAK AS LK
             INNER JOIN LTAP AS LP
             ON LKLGNUM = LPLGNUM
             WHERE LK~KQUIT = 'X'
             AND   LK~BDATU IN S_ERDAT
             AND   LK~LGNUM IN S_LGNUM.
    ENDFORM.                    " Transfer_order_quantity
    *&      Form  Delivery_QUANTITY
          text
    -->  p1        text
    <--  p2        text
    FORM DELIVERY_QUANTITY .
      SELECT  VBELN WERKS LFIMG FROM LIPS
              INTO TABLE T_LIKP
              FOR ALL ENTRIES IN T_T320
              WHERE WERKS = T_T320-WERKS
              AND ERDAT IN S_ERDAT
              AND VTWEG IN S_VTWEG.
    ENDFORM.                    " Delivery_QUANTITY
    *&      Form  fieldcatalog
          text
    -->  p1        text
    <--  p2        text
    FORM FIELDCATALOG .
      W_FCAT-COL_POS       = '1' .
      W_FCAT-FIELDNAME     = 'LGNUM' .
      W_FCAT-REF_TABNAME   = 'T320'.
      W_FCAT-REF_FIELDNAME = 'LGNUM' .
      APPEND W_FCAT TO T_FCAT.
      CLEAR W_FCAT.
      W_FCAT-COL_POS       = '2' .
      W_FCAT-FIELDNAME     = 'VTWEG' .
      W_FCAT-REF_TABNAME   = 'VBAK'.
      W_FCAT-REF_FIELDNAME = 'VTWEG' .
      APPEND W_FCAT TO T_FCAT.
      CLEAR W_FCAT.
      W_FCAT-COL_POS       = '3' .
      W_FCAT-FIELDNAME     = 'KWMENG' .
      W_FCAT-REF_TABNAME   = 'VBAP'.
      W_FCAT-REF_FIELDNAME = 'KWMENG' .
    *w_fcat-seltext_m     = '# of Orders'.
      APPEND W_FCAT TO T_FCAT.
      CLEAR W_FCAT.
      W_FCAT-COL_POS       = '4' .
      W_FCAT-FIELDNAME     = 'VISTA' .
      W_FCAT-REF_TABNAME   = 'LTAP'.
      W_FCAT-REF_FIELDNAME = 'VISTA' .
    *w_fcat-seltext_m     = '# of Pcs Picked'.
      APPEND W_FCAT TO T_FCAT.
      CLEAR W_FCAT.
      W_FCAT-COL_POS       = '5' .
      W_FCAT-FIELDNAME     = 'LFIMG' .
      W_FCAT-REF_TABNAME   = 'LIPS'.
      W_FCAT-REF_FIELDNAME = 'LFIMG' .
    *w_fcat-seltext_m     = '# of Pcs Shipped'.
      APPEND W_FCAT TO T_FCAT.
      CLEAR W_FCAT.
    W_FCAT-COL_POS       = '6' .
    W_FCAT-FIELDNAME     = 'TANUM' .
    W_FCAT-REF_TABNAME   = 'LTAK'.
    W_FCAT-REF_FIELDNAME = 'TANUM' .
    **w_fcat-seltext_m     = '# of Pcs Shipped'.
    APPEND W_FCAT TO T_FCAT.
    CLEAR W_FCAT.
    W_FCAT-COL_POS       = '7' .
    W_FCAT-FIELDNAME     = 'WERKS' .
    W_FCAT-REF_TABNAME   = 'T320'.
    W_FCAT-REF_FIELDNAME = 'WERKS' .
    **w_fcat-seltext_m     = '# of Pcs Shipped'.
    APPEND W_FCAT TO T_FCAT.
    CLEAR W_FCAT.
    ENDFORM.                    " fieldcatalog
    *&      Form  display_output
          text
    -->  p1        text
    <--  p2        text
    FORM DISPLAY_OUTPUT .
      LOOP AT T_T320 INTO TY_T320.
        TY_ITAB-WERKS = TY_T320-WERKS.
        TY_ITAB-LGNUM = TY_T320-LGNUM.
        READ TABLE T_VBAK INTO TY_VBAK WITH KEY WERKS = TY_T320-WERKS.
        IF SY-SUBRC = 0.
        TY_ITAB-VBELN  = TY_VBAK-VBELN.
        TY_ITAB-VTWEG  = TY_VBAK-VTWEG.
        TY_ITAB-KWMENG = TY_VBAK-KWMENG + ty_itab-kwmeng.
        ENDIF.
        READ TABLE T_LTAK INTO TY_LTAK WITH KEY LGNUM = TY_T320-LGNUM.
        IF SY-SUBRC = 0.
        TY_ITAB-TANUM = TY_LTAK-TANUM.
        TY_ITAB-VISTA = TY_LTAK-VISTA + ty_itab-vista.
        ENDIF.
        READ TABLE T_LIKP INTO TY_LIKP WITH KEY WERKS = TY_T320-WERKS.
        IF SY-SUBRC = 0.
        TY_ITAB-LFIMG = TY_LIKP-LFIMG + ty_itab-lfimg.
        ENDIF.
        APPEND TY_ITAB TO T_ITAB.
      ENDLOOP.
    Function Module for Displaying Final Output ********
      W_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM = SY-CPROG
          IS_LAYOUT          = W_LAYOUT
          IT_FIELDCAT        = T_FCAT[]
        TABLES
          T_OUTTAB           = T_ITAB.
    ENDFORM.                    " display_output
    *&      Form  f4_for_variant
          text
    -->  p1        text
    <--  p2        text
    FORM F4_FOR_VARIANT .
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
        EXPORTING
          IS_VARIANT = GS_VARIANT
          I_SAVE     = X_SAVE
        IMPORTING
          E_EXIT     = G_EXIT
          ES_VARIANT = GX_VARIANT
        EXCEPTIONS
          NOT_FOUND  = 2.
      IF SY-SUBRC = 2.
        MESSAGE ID SY-MSGID TYPE 'S'      NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
        IF G_EXIT = SPACE.
          P_VARI = GX_VARIANT-VARIANT.
        ENDIF.
      ENDIF.
    ENDFORM.                    " f4_for_variant
    *&      Form  pai_of_selection_screen
          text
    -->  p1        text
    <--  p2        text
    FORM PAI_OF_SELECTION_SCREEN .
      IF NOT P_VARI IS INITIAL.
        MOVE GS_VARIANT TO GX_VARIANT.
        MOVE P_VARI TO GX_VARIANT-VARIANT.
        CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
          EXPORTING
            I_SAVE     = X_SAVE
          CHANGING
            CS_VARIANT = GX_VARIANT.
        GS_VARIANT = GX_VARIANT.
      ELSE.
        PERFORM VARIANT_INIT.
      ENDIF.
    ENDFORM.                    " pai_of_selection_screen
    *&      Form  variant_init
          text
    -->  p1        text
    <--  p2        text
    FORM VARIANT_INIT .
      CLEAR GS_VARIANT.
      GS_VARIANT-REPORT = G_REPID.
    ENDFORM.                    " variant_init

  • Passing report name as report title

    Using Desktop Publisher for Word and a standalone BIP Enterprise version, is it possible to pass the report name to the rtf template so that it could be used as the report title?
    This feature would be useful when there are multiple reports (different names and slightly different queries/criteria) that use the same templates. We could then dynamically change the report title based on the report name.
    Thanks,
    Haresh

    Haresh,
    I'm not sure if there is any simple way to print report name in rtf template.
    But there is a work around. Follow below steps...
    1>create parameter called Report_Name in every report
    2>put default value for that parameter as report name (Title)
    3>select parameter type as Hidden
    Now in rtf template.
    <?param@begin:Report_Name?>
    <?$Report_Name?>

  • Interactive Report - Alternative Report Title!

    Hello,
    I have a tricky requirement. I created an interative report and saved as primary report. then I created several alternative reports with different selection criteria. Now, I want to have a report title depending on the report the user selects, it may be primary and alternative 1, alternative 2 etc.,
    Can anybody suggest how to change the report title name dynamically?
    Appreciate your help.
    Thanks --

    What type of region type are you using for your interactive report?  Maybe the region type does NOT support a title..
    Thank you,
    Tony Miller
    LuvMuffin Software
    Blog: http://glassfish1.revion.com/apex/f?p=BLOG:HOME:0:::::

  • Need correction for dynamic report

    Hi Experts,
    As i have very less experience in SAP , can anyone please help me.
    The report code i attached here generate only 10 columns in the report and all the lines in internal table i am showing in these 10 columns, the problem is if i have more that 10 lines in the tline(script for long material text- MM03) then it leaves those lines, so
    I need to create a dynamic report for this which will create columns depending on the lines in the tline.As i dnt no much about ALV i read so namy things but not able to make it dynamic
    Please, can anyone help me by doing changes in this code and make it dynamic report/ALV
    REPORT  zmm_test_mat_desc.
    TABLES : ekpo,makt, t001w.
    TYPE-POOLS: slis.
    DATA : thread LIKE thead.
    DATA : l_index LIKE sy-tabix.
    DATA : p_index LIKE sy-tabix.
    DATA: BEGIN OF int_out OCCURS 0,
    matnr LIKE makt-matnr,
    maktx LIKE makt-maktx,
    tdline1 LIKE tline-tdline,
    tdline2 LIKE tline-tdline,
    tdline3 LIKE tline-tdline,
    tdline4 LIKE tline-tdline,
    tdline5 LIKE tline-tdline,
    tdline6 LIKE tline-tdline,
    tdline7 LIKE tline-tdline,
    tdline8 LIKE tline-tdline,
    tdline9 LIKE tline-tdline,
    tdline10 LIKE tline-tdline,
    werks LIKE ekpo-werks,
    END OF int_out.
    DATA: BEGIN OF int_out_new OCCURS 0,
    matnr LIKE makt-matnr,
    maktx LIKE makt-maktx,
    tdline1 LIKE tline-tdline,
    tdline2 LIKE tline-tdline,
    tdline3 LIKE tline-tdline,
    tdline4 LIKE tline-tdline,
    tdline5 LIKE tline-tdline,
    tdline6 LIKE tline-tdline,
    tdline7 LIKE tline-tdline,
    tdline8 LIKE tline-tdline,
    tdline9 LIKE tline-tdline,
    tdline10 LIKE tline-tdline,
    tline LIKE tline OCCURS 0,
    werks LIKE ekpo-werks,
    END OF int_out_new.
    DATA: it_tlines LIKE tline OCCURS 10 WITH HEADER LINE.
    ****ALV list definintion
    DATA: ws_cat TYPE slis_fieldcat_alv ,
    int_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    DATA: g_container TYPE scrfname VALUE 'BCALV_GRID_DEMO_0100_CONT1',
    g_custom_container TYPE REF TO cl_gui_custom_container.
    DATA : it_heading TYPE slis_t_listheader WITH HEADER LINE.
    *DATA : it_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    DATA : lay TYPE slis_layout_alv.
    DATA : it_sort_subtotal TYPE slis_t_sortinfo_alv WITH HEADER LINE.
    DATA : it_event TYPE slis_t_event WITH HEADER LINE.
    DATA: v_repid LIKE sy-repid.
    *selection-screen
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_werks FOR ekpo-werks OBLIGATORY .
    SELECT-OPTIONS: s_matnr FOR makt-matnr OBLIGATORY .
    SELECTION-SCREEN END OF BLOCK b1.
    INITIALIZATION.
    AT SELECTION-SCREEN.
      SELECT SINGLE * FROM t001w WHERE werks IN s_werks.
      IF sy-subrc NE 0.
        MESSAGE e001(319) WITH 'Plant does not Exist!'.
      ENDIF.
      SELECT SINGLE * FROM makt WHERE matnr IN s_matnr.
      IF sy-subrc <> 0.
        MESSAGE e001(319) WITH 'Material does not Exist!'.
      ENDIF.
    START-OF-SELECTION.
      BREAK-POINT.
      PERFORM get_data.
    PERFORM field_catalog.
    PERFORM display_data.
    END-OF-SELECTION.
    *FORM GET_DATA.
    FORM get_data.
      DATA: l_index LIKE sy-tabix.
    *To Fetch Data From Makt.
      SELECT b~werks a~matnr a~maktx
      INTO CORRESPONDING FIELDS OF TABLE int_out
      FROM makt AS a INNER JOIN marc AS b ON a~matnr = b~matnr
      WHERE a~matnr IN s_matnr
      AND b~werks IN s_werks.
      LOOP AT int_out.
        l_index = sy-tabix.
    read table int_out_new with key matnr = int_out-matnr.
        int_out_new-werks = int_out-werks.
        int_out_new-matnr = int_out-matnr.
        int_out_new-maktx = int_out-maktx.
        thread-tdname = int_out-matnr.
        CALL FUNCTION 'READ_TEXT'
          EXPORTING
            client                  = sy-mandt
            id                      = 'BEST'
            language                = sy-langu
            name                    = thread-tdname
            object                  = 'MATERIAL'
          TABLES
            lines                   = it_tlines
          EXCEPTIONS
            id                      = 1
            language                = 2
            name                    = 3
            not_found               = 4
            object                  = 5
            reference_check         = 6
            wrong_access_to_archive = 7
            OTHERS                  = 8.
    *Loop on it_tlines where long text is coming .
        LOOP AT it_tlines.
          IF sy-subrc = 0.
            p_index = sy-tabix.
            IF p_index = 1.
              int_out_new-tdline1 = it_tlines-tdline.
            ELSEIF p_index = 2.
              int_out_new-tdline2 = it_tlines-tdline.
            ELSEIF p_index = 3.
              int_out_new-tdline3 = it_tlines-tdline.
            ELSEIF p_index = 4.
              int_out_new-tdline4 = it_tlines-tdline.
            ELSEIF p_index = 5.
              int_out_new-tdline5 = it_tlines-tdline.
            ELSEIF p_index = 6.
              int_out_new-tdline6 = it_tlines-tdline.
            ELSEIF p_index = 7.
              int_out_new-tdline7 = it_tlines-tdline.
            ELSEIF p_index = 8.
              int_out_new-tdline8 = it_tlines-tdline.
            ELSEIF p_index = 9.
              int_out_new-tdline9 = it_tlines-tdline.
            ELSEIF p_index GE 10.
              int_out_new-tdline10 = it_tlines-tdline.
            ENDIF.
          ENDIF.
        ENDLOOP.
        DELETE ADJACENT DUPLICATES FROM int_out .
        APPEND int_out_new.
        CLEAR int_out_new.
      ENDLOOP.
    Field Catalog
    ***MATERIAL NO no
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'WERKS'.
      int_fcat-reptext_ddic = 'Plant'.
      APPEND int_fcat .
    ***MATERIAL NO no
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'MATNR'.
      int_fcat-reptext_ddic = 'Material N0'.
      APPEND int_fcat .
    *material Short Description
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'MAKTX'.
      int_fcat-reptext_ddic = 'Material Short Description'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '45'.
      APPEND int_fcat .
    Material Long Description1
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE1'.
      int_fcat-reptext_ddic = 'Material Long Description1'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '75'.
      APPEND int_fcat .
    Material Long Description2
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE2'.
      int_fcat-reptext_ddic = 'Material Long Description2'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '75'.
      APPEND int_fcat .
    Material Long Description3
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE3'.
      int_fcat-reptext_ddic = 'Material Long Description3'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '75'.
      APPEND int_fcat .
    Material Long Description4
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE4'.
      int_fcat-reptext_ddic = 'Material Long Description4'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '75'.
      APPEND int_fcat .
    Material Long Description5
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE5'.
      int_fcat-reptext_ddic = 'Material Long Description5'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '75'.
      APPEND int_fcat .
    Material Long Description5
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE5'.
      int_fcat-reptext_ddic = 'Material Long Description5'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '75'.
      APPEND int_fcat .
    Material Long Description5
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE5'.
      int_fcat-reptext_ddic = 'Material Long Description5'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '75'.
      APPEND int_fcat .
    Material Long Description6
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE6'.
      int_fcat-reptext_ddic = 'Material Long Description6'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '75'.
      APPEND int_fcat .
    Material Long Description7
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE7'.
      int_fcat-reptext_ddic = 'Material Long Description7'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '75'.
      APPEND int_fcat .
    Material Long Description8
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE8'.
      int_fcat-reptext_ddic = 'Material Long Description8'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '75'.
      APPEND int_fcat .
    Material Long Description9
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE9'.
      int_fcat-reptext_ddic = 'Material Long Description9'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '75'.
      APPEND int_fcat .
    Material Long Description10
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE10'.
      int_fcat-reptext_ddic = 'Material Long Description10'.
      int_fcat-datatype = 'CHAR'.
    int_fcat-outputlen = '75'.
      APPEND int_fcat .
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program = sy-repid
          it_fieldcat        = int_fcat[]
        TABLES
          t_outtab           = int_out_new
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
    ENDFORM. "display_data
    Regards
    Nik.

    Nikhil,
    Instead of declaring 10 lines, please declare a variable of type STRING.
    Then append each line of your material text and concatenate it into the string.
    Then you can comfartably have one long text and have it displayed to the user.
    Please let us know if any further information is required.
    Thanks
    Ganesh.S

Maybe you are looking for

  • Why does not my iPhone 5S work on LTE of Plus GSM network in Poland although my model supports LTE Band 3?

    am My iPhone 5S does not support LTE of the Plus GSM network in Poland? It works in Band 3 and my model supports that band but it is not possible to use LTE although it works on my other Android phone. The network operator suggested contacting Apple.

  • Manual bank reconciliation statement FF67

    Hi ,   what are the data to be enter the data in FF67 for manual bank reconciliation statement and how to post the bank G/L? How to check whether it is posted or not? Please tell me the steps..   If use BDC for Tcode FF67...Bank G/L will be posted au

  • LABVIEW based pda program to run in winCE

    for our purpose we need to read analog signals through different sensors which is connected to samsung s3c mini 2440 arm board. for this purpose we have some VB based example programs. but we need some example files of LABVIEW based pda program that

  • What version of Essbase Excel add-in support 64 bit Windows 7 on our PC?

    1) Can anyone tell us what is latest version of 64 bit Essbase Excel-add-in 11.1.1.3.x and will this latest version of Essbase Excel add-in support 64 bit Windows 7 on our PC? 2) we downloaded Essbase excel add-in 11.1.2 and was not able to connect t

  • No Option to Change Default Calendar

    I've been struggling with this and can't find an answer anywhere.  On both my iPhone (3GS running iOS 5) and my iPad (first gen running iOS 5), there is no option for me to change the default calendar in Settings>Mail, Contacts, Calendar.  The only o