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

Report program underline on parameter

shinhye52
Explorer
0 Likes
1,977

Hi Expert,

This is a new SAP developer..

I would like to make underline on Currency looks same as SPMON and CCode,

it is like as Label on left, but I don't know how to make line on Report Program, SELECTION-SCREEN COMMENT.

could anyone know how? or let me know if it can not do..

Thank you in advance..

Regards,

1 ACCEPTED SOLUTION
Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
1,877

Hello shinhye

That kind of "label" is defined with SELECTION-SCREEN COMMENT FOR FIELD. However that doesn't work for radio buttons. Therefore I'd suggest to define a nested block for your radio buttons and put the label as the block title, e.g.

SELECTION-SCREEN BEGIN OF BLOCK b01 WITH FRAME TITLE text-b01.
  PARAMETERS: p_ccode TYPE bukrs.
  PARAMETERS: p_spmon TYPE spmon.

  SELECTION-SCREEN BEGIN OF BLOCK b02 WITH FRAME TITLE TEXT-b02.
    PARAMETERS p_radio1 RADIOBUTTON GROUP rg1.
    PARAMETERS p_radio2 RADIOBUTTON GROUP rg1.
  SELECTION-SCREEN END OF BLOCK b02.
SELECTION-SCREEN END OF BLOCK b01.

It's not exactly what you require, but I hope it's close enough.

Best regards

Dominik Tylczynski

4 REPLIES 4
Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
0 Likes
1,877

Would you share to piece of code that defines the selection screen?

Read only

FredericGirod
Active Contributor
1,877

my cristal ball says: look abapdocu for SELECTION-SCREEN COMMENT ... FOR FIELD ...

Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
1,878

Hello shinhye

That kind of "label" is defined with SELECTION-SCREEN COMMENT FOR FIELD. However that doesn't work for radio buttons. Therefore I'd suggest to define a nested block for your radio buttons and put the label as the block title, e.g.

SELECTION-SCREEN BEGIN OF BLOCK b01 WITH FRAME TITLE text-b01.
  PARAMETERS: p_ccode TYPE bukrs.
  PARAMETERS: p_spmon TYPE spmon.

  SELECTION-SCREEN BEGIN OF BLOCK b02 WITH FRAME TITLE TEXT-b02.
    PARAMETERS p_radio1 RADIOBUTTON GROUP rg1.
    PARAMETERS p_radio2 RADIOBUTTON GROUP rg1.
  SELECTION-SCREEN END OF BLOCK b02.
SELECTION-SCREEN END OF BLOCK b01.

It's not exactly what you require, but I hope it's close enough.

Best regards

Dominik Tylczynski

Read only

1,877

Thank you Dominik, That would be better.