Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

selection-screen and top-of-page in ALV

aris_hidalgo
Contributor
0 Kudos

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!

1 ACCEPTED SOLUTION

sbhutani1
Contributor
0 Kudos

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

4 REPLIES 4

sbhutani1
Contributor
0 Kudos

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

sbhutani1
Contributor
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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.