Skip to Content

selection-screen and top-of-page in ALV

Hello experts,

1. In my selection-screen I have 2 parameters as display only. Now, how can I position/move them?

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(10) text-002 FOR FIELD p_dcode.

PARAMETER: p_dcode LIKE zsoemailid-kunnr MODIF ID id1,

p_name1 LIKE kna1-name1 MODIF ID id1.

SELECTION-SCREEN END OF LINE.

SELECT-OPTIONS: s_sorder FOR vbap-vbeln MODIF ID id2,

so_date FOR vbap-erdat MODIF ID id2.

SELECTION-SCREEN END OF BLOCK b1.

2. In my ALV display, how can I make my header and ALV list display with no spaces. Example:

Dealer no: 12345

Address: XXXXXX

Tel: 00000

-


"<--ALV display

Again, thank you guys and have a nice day!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on May 15, 2006 at 05:54 AM

    Hi viray,

    For displaying top of page you can refer this link

    http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_rephead.htm

    Regards

    Sumit Bhutani

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 15, 2006 at 05:58 AM

    Hi viray,

    For positioning the parameters on selection screen you can use two additions pos_low and pos_high as in given example

    SELECTION-SCREEN BEGIN OF LINE.

    SELECTION-SCREEN COMMENT 10(15) TEXT-001

    FOR FIELD PARM.

    SELECTION-SCREEN POSITION POS_LOW.

    PARAMETERS PARM LIKE SAPLANE-PLANETYPE.

    SELECTION-SCREEN PUSHBUTTON POS_HIGH(8) PUSHY

    USER-COMMAND ABCD.

    SELECTION-SCREEN ULINE (5).

    SELECTION-SCREEN END OF LINE.

    SELECTION-SCREEN ULINE /12(10).

    Regards

    Sumit Bhutani

    Ps reward points if helpful

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 15, 2006 at 06:00 AM

    Hi Viray,

    For absolute positioning, specify the length of the comment field appropriately. You can change the length from 10 to an appropriate number to align your parameter fields or POSITION.

    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(10) text-002 FOR FIELD p_dcode.
    PARAMETER: p_dcode LIKE zsoemailid-kunnr MODIF ID id1,
    p_name1 LIKE kna1-name1 MODIF ID id1.
    SELECTION-SCREEN END OF LINE.
    

    Regards,

    Wenceslaus.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hello guys,

      Thanks for the replies. I cannot add points I don't know why but I will add them in a while. Anyway, What I need to do in is that I need to display my header(top-of-page) and ALV list with no spaces since I need to write a text just above the line of my ALV list.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.