Application Development and Automation 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: 
Read only

Abap reporting

Former Member
0 Likes
443

Hi guys Iam at the begining stage.

Iam practing abap reporting. Currently Iam using selection-screen statements and parameters statements. Iam trying to insert a comment using selection screen comment statement, but Iam not getting the output as desired.When I discard the comment statement Iam getting the desired output. How can I use the comment statement with the desired output.

Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
427

You didn't say what changes between your desired and not-desired outputs... but it could be you haven't defined the text symbol for the comment... if this is so, have a read of

http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba7a135c111d1829f0000e829fbfe/frameset.htm

where they show you a couple of ways of defining the text... one uses "text-001" (which you can define by double clicking on it, entering the text you want, then activating the texts), and one uses in-line "comm1" and "comm2" that are defined in the initialization event.

Jonathan

Read only

Former Member
0 Likes
427

Hi

You should use comment with position.

Try it

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).

L.Velu

Read only

Former Member
0 Likes
427

Hi,

See the example code.

SELECTION-SCREEN COMMENT /2(50) TEXT-001 MODIF ID SC1.

SELECTION-SCREEN SKIP 2.

SELECTION-SCREEN COMMENT /10(30) COMM1.

SELECTION-SCREEN ULINE.

PARAMETERS: R1 RADIOBUTTON GROUP RAD1,

R2 RADIOBUTTON GROUP RAD1,

R3 RADIOBUTTON GROUP RAD1.

SELECTION-SCREEN ULINE /1(50).

SELECTION-SCREEN COMMENT /10(30) COMM2.

SELECTION-SCREEN ULINE.

PARAMETERS: S1 RADIOBUTTON GROUP RAD2,

S2 RADIOBUTTON GROUP RAD2,

S3 RADIOBUTTON GROUP RAD2.

SELECTION-SCREEN ULINE /1(50).

INITIALIZATION.

COMM1 ='Radio Button Group 1'.

COMM2 ='Radio Button Group 2'.

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'SC1'.

SCREEN-INTENSIFIED = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.