Alv - how to create a broader header line?

I'm using the 'TOP_OF_PAGE' parameter within 'AVL_GRID_DISPLAY' FM in connection with 'REUSE_ALV_COMMENTARY_WRITE' to create a Header Line for the List-display.
My Problem is, that I really need to get a broader header with approx. 120 characters but the only structure, 'REUSE_ALV_COMMENTARY_WRITE' seems to allow is 'slis_listheader' which is only three fields broad with 80 characters.
I need a line with 6 fields and 120 to 150 characters - how can i possibly submit that to the function module, or somehow different to 'TOP_OF_PAGE'...?
Thanks, Clemens

Clemens
I think you will have to format the header yourself.
The problem is that you need to have a pointer to the document (cl_dd_document class) so you can modify it as you want. The only way I found is to use I_CALLBACK_HTML_TOP_OF_PAGE parameter when you call REUSE_ALV_GRID_DISPLAY.
Unortunately, the form specified in I_CALLBACK_TOP_OF_PAGE parameter for REUSE_ALV_GRID_DISPLAY FM is not being called with any parameters. Therefore can't be used to create your heading.
Now, you need to call your FM like this:
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
            I_CALLBACK_HTML_TOP_OF_PAGE = 'TOP_OF_PAGE1'
...other parameters....
then you will need to create that FORM:
FORM TOP_OF_PAGE1 USING p_doc type ref to cl_dd_document.
DATA: mytoptext(255) TYPE C.
CONCATENATE 'This is my very long text. Probably about 140 chars long'
  'or more just to check if it all appears as is. Hopefully with a bit'
  'of luck we might have some success here.'
  into mytoptext separated by space.
CALL METHOD p_doc->new_line.
CALL METHOD p_doc->add_text
    EXPORTING text  = mytoptext.
ENDFORM.
I advise that you have a look on the original SAP FM (REUSE_ALV_GRID_COMMENTARY_SET), which is used to format your commentary (through memorised parameter DYNDOS_FOR_ALV) and based on that you can make your heading.
If you can't use I_CALLBACK_HTML_TOP_OF_PAGE parameter then probably defining your own grid is a solution (a bit longer to implement, though).
Hope this helps.
Wojtek

Similar Messages

  • How to create multiple report header line?

    Dear Experts!
    I am creating a report, which needs multiple lines for report header e.g. First row should have Report Name in bold. Then next line should have the month for which the report was executed and last line should have the person, who executed it.
    I know that I can get the text of these values by text variable but the problem is to format it and to put the text in different report header lines.
    Please help!
    Thank you,
    Tyagi

    Dear Tyagi,
    Are you using BEx Report Designer?
    You can use drag-and-drop for moving the fields. Just click on the cell and as the buttons appear, move it to your destination cell.
    Regards, Karol - SAP BI Development

  • How to add/change missing header lines in RNIF B2B?

    Hi all,
    We are using RNIF exchange protocol. We have sent invoice from BPEL to B2B. The message invoice reaches the trading partner but they are unable to process it or sent ack back as few header lines are missing in the RNIF envelope.
    Can anyone tell me or provide some pointers abt how to add/change missing header lines in B2B?
    These are the headers missing:
    Delivery header:
    <locationID> <Value>HostTradingPartner</Value> </locationID>
    Service Header:
    <messageStandard>
    <FreeFormText xml:lang="EN">PIDX</FreeFormText>
    </messageStandard> <standardVersion>
    <VersionIdentifier>1.0</VersionIdentifier>
    </standardVersion>
    Can anyone provide some inputs on this?

    As per RNIF standard, all these header elements (locationID in Delivery Header & messageStandard and standardVersion in Service Header) are optional. As you are using RossettNet over RNIF, so Oracle B2B might not be setting these headers.
    I do not have a 10g setup here so cann't test it. I would suggest you to raise a case with Oracle Support because PIDX is a non-RossettaNet standard and it's implementation in Oracle B2B will be different to RossettaNet implementation. Meanwhile, I would try the same in B2B 11g setup.
    Regards,
    Anuj

  • How to create a sub head(code) in a catalog- for service notification

    Hi everyone,
    How to create a sub head(code) in a catalog- for service notification?
    Please guide with your valuable comments.
    Please guide its very urgent.
    Thanks and Regards
    Edited by: MPVash Vash on Oct 24, 2008 8:14 AM
    Edited by: MPVash Vash on Oct 30, 2008 7:38 AM

    Hi,
    Go to T-code QS41, give the catalog and code group and enter.
    U can click on the code after selecting the code group and create new  codes.
    In SPRO u should see which type of catalog is assigned to the notification type. This u can see in the overview of the notification type by selecting the notification type in SPRO.
    Regards
    Haricharan

  • How can create and change PCA line items.

    How can create and change PCA line items.
    Please tell me the process and t.codes.

    If you are in version < 4.7 ee then use 9KE0 tcode for passing profict center entries or trasnafer of balances from one profit center to another.
    If you are in new GL regular FI entry like FB50 will hold good for account types "S"

  • Abap2xlsx create worksheet how to set fields in header line without filtersymbol?

    Hello Forum,
    I am using a package of abap2xlsx (Excel Export ABAP 2 XLSX)   and some methods from zcl_excel classes to create a worksheet for internal table gt_table and download it.
    Following is some Koding I am using,
    When the excel worksheet is downloaded, the header line contains filter symbols in all header fields, when using method bind_table (see A:).
    Is there a way to set the header line fields without a filtersymbol?
    if I replace the call on method bind_table (see A:)  by call on method convert (see B:)
    then there are no filtesymbols, but in this method I cannot give a fieldcatalog table as exporting parameter.
    And I want to change the texts in the header.
    Thanks for any suggestions,
    Regards Henricus Kroft
    DATA: lo_excel         TYPE REF TO zcl_excel,    
               lo_converter    TYPE REF TO zcl_excel_converter,
               lo_worksheet  TYPE REF TO zcl_excel_worksheet,
               lo_writer          TYPE REF TO zif_excel_writer,
    Data:
    gt_rawdata      TYPE solix_tab.
    ls_table_set-table_style  = zcl_excel_table=>builtinstyle_light1.
       lo_worksheet = lo_excel->get_active_worksheet( ).
      A begin:   lo_worksheet->bind_table( ip_table    = gt_table
                              it_field_catalog  = lt_field_catalog
                              is_table_settings = ls_table_set ).
      A end
       B begin:   lo_converter->convert( EXPORTING
                                    it_table     = gt_table
                                    i_row_int    = 1
                                    i_column_int = 1
                                    io_worksheet = lo_worksheet
                                 CHANGING
                                    co_excel     = lo_excel ) .
    B end
    * " create output file in EXCEL format as type RAW
      lf_xdata = lo_writer->write_file( lo_excel ).
    * After 6.40 via cl_bcs_convert
      gt_rawdata = cl_bcs_convert=>xstring_to_solix( iv_xstring  = lf_xdata ).
      lf_bytecount = xstrlen( lf_xdata ).
      OPEN DATASET gf_datn1_str FOR OUTPUT IN BINARY MODE.
      CHECK sy-subrc = 0.
      lf_bytes_left = lf_bytecount.
      LOOP AT gt_rawdata ASSIGNING <ls_rawdata>.
        AT LAST.
          CHECK lf_bytes_left >= 0.
          TRANSFER <ls_rawdata> TO gf_datn1_str LENGTH lf_bytes_left.
          EXIT.
        ENDAT.
        TRANSFER <ls_rawdata> TO gf_datn1_str.
        SUBTRACT 255 FROM lf_bytes_left.  " Solix hat Länge 255
      ENDLOOP.
      CLOSE DATASET gf_datn1_str.

    Dear SeánMacGC thanks for reply,
    But "a.changed" is not a field in GNMT_CUSTOMER_MASTER_CHG. what i am doing in this procedure is i am collecting bulck data and validating field by field from GNMT_CUSTOMER_MASTER_CHG with GNMT_CUSTOMER_MASTER table as their structure is same.. if v_name is not same as v_name_chg then i am setting changed flag to "Y" changed is "changed dbms_sql.varchar2_table" and updating GNMT_CUSTOMER_MASTER in bluck where changed flag ='Y'...
    type custRec is record
    n_cust_ref_no dbms_sql.number_table,
    v_name dbms_sql.varchar2_table,
    v_name_chg dbms_sql.varchar2_table,
    rowid rowidArray,
    *changed dbms_sql.varchar2_table*
    i cannot use simple SQL as i need to validate field for each records with GNMT_CUSTOMER_MASTER_CHG and insert into log file as well.....
    to run this procedure:
    execute DO_DC_NAME_UPDATE_OTHER_TAB.DO_NAME_UPDATE_OTHER_TAB;
    Thanks...

  • How to create schema for Header and Footer with pipe delimiter file BPEL11g

    Hi all,
    I have issule creating Schema for Header and Footer with body file .The file format is Pipe delimiter.The following format below like is...
    Softeware Components:File Adapter(Read) 11g,
    1|1211|000|577|5444
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|4544|000|yted
    I hope get the sollution for this from this Forum..Please help me out..Thankyou.

    You mean how many rows or columns..?
    If coloumns means 5 and rows only one(1).

  • How to create a persona header bar that displays correctly in all resolutions - Firefox 20 Linux

    I'm in the process of learning how to create Personas for Firefox, and have already created one which I am using locally, but I ran into an unexpected behavior: If I create a header bar that is 3000 X 200 pixels as specified in the guidelines, only the right third or so displays in my browser when the theme is applied. To get this header to display "properly" (as I find aesthetically pleasing) I have to resize the header to 1280 X 85 pixels.
    Should not the header bar scale automatically, or do I need to produce a persona header at each possible resolution width to get it to display properly?
    For what it's worth, the footer appears to be displaying the left hand third, but this is not so objectionable in this case.
    A screenshot of the persona is available at http://www2.netdoor.com/~horus/Persona_2013-04.png.
    Thanks for any insights. I feel as though I must be misunderstanding something here.
    (I tried to post troubleshooting information the first time, but it overflowed the character limit...)

    Probably best to ask that sort of question, or research the answer in one of the AMO forums ('''A'''ddons '''Mo'''zilla). I think this one may be appropriate:
    * https://forums.mozilla.org/addons/viewforum.php?f=30
    ** I think you will need to register before posting
    I am wondering where are you doing the learning ?
    <br />There are also resources on MDN
    *https://developer.mozilla.org/en-US/addons
    Detailed discussion of the subject is probably off topic for this forum, but linking to resources or giving as imple answer is not so I hope some of the above are helpful. (You may even find someone else interested and knowledgeable posting a direct answer)

  • How to create space between Header text of Hierarchical ALV List.

    hi,
    I am display data using Hierarchical ALV List.
    In Perform of field catalog, I am writing this code:
    PERFORM fill_catalogue USING :
         'CHKBX'      'T_HEADER' 20  'Sess Decision Box'(t19) 'X',
          'SESS_NO'    'T_HEADER' 11  'Session'(t20)           ' ' ,
          'SESS_STAT'  'T_HEADER'  4  'Status'(t39)            ' ',
          'HOLD_STAT'  'T_HEADER'  4  'HOLD'(t52)              ' ',
          'ICON'       'T_HEADER'  9  'Tracking'(t21)          ' ' ,
          'CREATE_DT'  'T_HEADER' 10  'Archiving Date'(t22)    ' '  ,
          'AGING'      'T_HEADER' 50  'Aging'(t23)             ' ',
          'OBJECT'     'T_HEADER' 12  'Archive Obj'(t24)       ' ',
          'HOLD_INFO'  'T_HEADER' 100 'Hold Reason'            ' ' ,
          'YFY_DATA'   'T_HEADER' 4  'Data Fiscal Year'(t48)  ' ' ,
          'COMMENTS'   'T_HEADER' 50  'Session Notes'(t26)     ' ' ,
          'DATATYPE'   'T_HEADER' 50  'Archive Object Description'(t25) ' ',
          'APPR_STAT'    'T_ITEM' 16  'Approval Status'(t29)   ' ',
          'DESTR_DT_REV' 'T_ITEM' 10  'New Date'(t30)          ' ',
          'REJCT_REASON' 'T_ITEM' 60  'Rejection Reason'(t31)  ' '  .
    At output of this program , there are two rows in HEADER details.
    I want text 'Session notes' of 2nd row  under 'Archiving Date' of 1st row.
    For this i have to create space between 'Data Fiscal Year' & 'Session notes' text.
    How i can do this.
    Regards,
    Mamta

    Hi,
    You can use TOP-OF-PAGE event and pass this event to Hierarchical ALV FM.
    Thanks,
    Kartavya Kaushik.

  • How to create a "traveling route" line on a map from point A to point B!

    Can someone explained or show me how I to create a clip (it will have a background map of Europe) depicting a “traveling route” line from point A to point B. The “traveling route” line I would like to display follows a Bezier curve path; it would start from point A (as a “dash”) and progressively the dash line lengthens until it reaches point B.
    To expand my request further - can one add a plane or ship icon (image) as the start “header” (starting from point A), move along the Bezier curve path and spits out the trailing “dashes” to form the “traveling route” line?
    I have seen this done on occasions, but I’m unable to create such clip. You help is appreciated.
    I’m using Premiere 6.5 and After Effect 5.5
    You can email me at [email protected]

    I don't remember which site, but I think I have a link to a tutorial site that includes that
    Go to my Adobe notes http://www.pacifier.com/~jtsmith/ADOBE.HTM
    Click on the Tutorial section and check the various sites
    Added
    You should never post a clear email address... spammers use software to harvest such
    Put something like
    myname at partone dot com

  • How to create a dynamic multi-line function in SQL Server

    I am attempting to create a Multi-Line Function in SQL Server that accepts a dynamic WHERE clause as a parameter. I need this so that the function can be as versatile as possible for the filter that needs to be applied. I am unfortunately getting an error
    upon creation of the function.  I don't know how to solve the problem. Can someone advise me?
    SQL:
    SET
    ANSI_NULLSON
    GO
    SET
    QUOTED_IDENTIFIERON
    GO
    -- =============================================
    -- Author:
    -- Create date: 2/3/2014
    -- Description: This multiline function will accept a generic WHERE Clause and apply it to the query for return.
    -- =============================================
    CREATE
    FUNCTIONTESTMULTILINEFUNCTION
    @WHEREvarchar(1024)
    ,@CHANGEDDATEasdatetime
    RETURNS
    @TESTTABLE
    TABLE
    IDint
    ,REVint
    AS
    BEGIN
    Declare@SQLSTRINGvarchar(4096)
    SET@SQLSTRING=''
    SET@SQLSTRING=@SQLSTRING+'SELECT
    REVS.ID, REVS.Revision
    FROM
    Select distinct result.ID, Max(Rev) as ''''Revision''''
    FROM
    Select * from dbo.BugsAll
    where
    [Changed Date] < @CHANGEDDATE
    ) result
    GROUP BY result.ID
    ) REVS
    join dbo.BugsAll BA on (BA.ID=REVS.ID AND BA.REV=REVS.revision)'
    IF
    (@WHEREisnotnullOR@WHERE<>'')
    BEGIN
    SET@SQLSTRING=@SQLSTRING+'
    WHERE '+@WHERE;
    END
    INSERT@TESTTABLE
    EXEC
    (@SQLSTRING)
    RETURN
    END
    GO
    ERROR:
    Msg 443, Level 16, State 14, Procedure TESTMULTILINEFUNCTION, Line 44
    Invalid use of a side-effecting operator 'INSERT EXEC' within a function.
    Senior Test Lead -- Microsoft

    >> Unfortunately I really need to form a dynamic query in a table valued function on the SQL SERVER. I have another tabled valued function that needs something returned as a table in order to further join the data. I am not allowed to use Stored
    Procedures in that function. <<
    You do know that real SQL programmers hate the proprietary nightmare of tabled valued functions?  This is how you procedural programmers avoid learning set-oriented declarative and functional programming. 
    Your mindset wants to write to a scratch tape or disk file (aka “tabled valued function result table”) just like you did BASIC, FORTRAN or COBOL. QL programmers do not have to materialize their data. We can use VIEW or a drive table as well as a base table. 
    >> Plus, there are occasions where I don't want to pass in a field [sic: columns are not fields] parameter or need to change a parameter list such that I don't wish the table function to filter by a particular field [sic] or other setting. <<
    What you want is a magical “Automobiles, Squids and Lady Gaga” function. An SQL programmer might write a complex VIEW then do simpler SELECTs off it. 
    >> My application pushes the WHERE clause from EXCEL to SQL to do the hard work as EXCEL is not the application in which I want to process the SQL statement and pass it via ODBC. I cannot run macros in Excel on the web.<< 
    This is a crazy language system. Usually we fetch data in SQL and then pass it to a math package, report writer, etc. We never keep logic (aka WHERE clauses) outside the database. 
    >> I am bummed about the fact that this feature doesn't work. It will up my server management costs to maintain unique tabular based functions based on WHERE clause query <<
    So stop writing those “tabular based functions”, change your mindset and start learning SQL and do it right. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • How to create tab in two lines

    Greetings,
    Created set of tabs. but they are displaying in a single line e.g Orientation Sales Day. it is apperaing in a single line and i want to display in two lines like
    "Orientation
    Sales Day"
    How i will achive this target ?
    Guide pls

    Hi,
    Looking at your example at http://apex.oracle.com/pls/apex/f?p=18686:1:561273670565801::::: posted on {thread:id=2423720}.
    /i/themes/theme_1/images/bg-tabs-r.gif image is only 35 pixel tall, so you will need to increase the height of this image.
    Similarly, you will need to increase the heights of /i/themes/theme_1/images/bg-tabs-current.gif and /i/themes/theme_1/images/bg-tabs-non-current.gif . Maybe you have to increase the height to 80 or 90 pixels. It is not going to look good on the page.
    Get yourself FF/Firebug or some such tool to inspect the HTML DOM and you will be able to see for yourself that the label of the tab is indeed wrapping with &lt;br /> , its just that the images ( and a result the display area) are not big enough to show the complete label.
    Cheers,

  • How to create a linear regression line series

    I am relatively new to Flex and I am currently working with charts in the data visualization components. It has been requested that I add a linear trendline (ie, linear regression trend line) to a column chart. From what I can tell, there is no linear regression form for the mx:LineSeries. Has anyone created a linear trendline using the data visualization components in Flex, or does anyone have any suggestions on how to accomplish this?

    Nicholas @ Bime posted a solution to this sort of problem earlier this year, apparently. He created a custom component that extends the CartesianDataCanvas, and can be called as an annotation element of the chart. See the following url: http://bimehq.com/data-visualization/introducing-flex-charting-trend-line-component/
    His solution works very well, with the only caveat being if you have mutiple series on your chart, all the trendlines will be the same color, and there is no label on the lines to show which line corresponds to which series.

  • How to create the no of line items in a PO

    Hi Sir,
    Please tell me how can i restrict the no of line items to be created in a PO say 20. where i have to do that.
    Regards,
    Krishan

    Hi Krishan
    I think u can not restrict the no of line items to be created in a PO in std SAP .U take a help of the ABAP ppl . They can write a program in such a way that in the ME21N, program checks
    the number of line items copied from purchase requisition,If it is more than 10, it should issue an error message.
    Regards
    Anjali

  • How to create WSSE soap header?

    I need to connect to a web service and it requires WSSE security namespace in the soap header. Does anyone know to create it using Java in the soap header using WSSE security namespace?
    Thanks
    I'm using Jdeveloper 11g

    Doesn't jdeveloper has a wizard in creating a template code for the subject task.

Maybe you are looking for