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: 

Regarding selection screens in alv.

Former Member
0 Kudos

Hi experts,

SELECTION-SCREEN COMMENT 01(31) text-026 for field rastbis1.

what is meant by this statement, and what is meant by 01(31) after comment.

4 REPLIES 4

former_member386202
Active Contributor
0 Kudos

Hi,

It means it will display the comment on sel;ection screen and 01 is a column number .It will start on 01 column and 31 is a length of text.

Regards,

Prashant

Former Member
0 Kudos

HI

SELECTION-SCREEN COMMENT 01(31) text-026 for field rastbis1

this statment means that

for filed RASLBIS! put TEXT-026 as the comment at location starting at 01 loaction and up to 31 location

after this statment for that filed from 01 location to 31 you can write any comment

it will display on the screen

see this example

for radiobuttons normally the text will display before and next button

i had changed that button first and text next like this

REPORT ZNNR_REPORT NO STANDARD PAGE HEADING MESSAGE-ID ZNNR LINE-SIZE 100 LINE-COUNT 65(4).

******DATA DECLARATIONS**********

DATA : BEGIN OF IT_PLANT OCCURS 0,

MATNR LIKE MARA-MATNR,

WERKS LIKE MARC-WERKS,

PSTAT LIKE MARC-PSTAT,

EKGRP LIKE MARC-EKGRP,

END OF IT_PLANT.

DATA : BEGIN OF IT_PONO OCCURS 0,

EBELN LIKE EKKO-EBELN,

EBELP LIKE EKPO-EBELP,

MATNR LIKE EKPO-MATNR,

WERKS LIKE EKPO-WERKS,

LGORT LIKE EKPO-LGORT,

END OF IT_PONO.

TABLES EKKO.

********END OF DATA DECLARATIONS*********

********SELECTION SCREEN DESIGN ***********

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.

PARAMETER : P_WERKS LIKE MARC-WERKS MODIF ID S1.

SELECT-OPTIONS : S_EBELN FOR EKKO-EBELN NO INTERVALS MODIF ID S2.

SELECTION-SCREEN END OF BLOCK B1.

SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-004.

SELECTION-SCREEN BEGIN OF LINE.

<b>PARAMETERS : R1 RADIOBUTTON GROUP G1 DEFAULT 'X'.

SELECTION-SCREEN COMMENT 5(20) TEXT-002 FOR FIELD R1.</b>

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

<b>PARAMETERS : R2 RADIOBUTTON GROUP G1.

SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R2.</b>

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK B2.

******END OF SELECTION SCREEN DESIGN****************

<b>Rewar dif usefull</b>

Former Member
0 Kudos

Hi,

Data in text-026(text element) will be displayed as title of the field rastbis1 in the selection screen.

01(31) means 31 characters of title will be displayed, starting from 1st column (position) of selection screen.

Former Member
0 Kudos

Hi ADITYA

there is no other meaning fo this

<b>COMMENT 01(31)</b> means comment start at location 01 and end at 31 location onthe screen

<b>text-026</b> text to be displyed for that filed

<b>for field rastbis1</b>for which that comment should be applied