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

parameter

Former Member
0 Likes
813

hi,

how to maintain parameters side by side in a single line.the following code is not working.

selection-screen begin of line.

parameters : p_ven like lfa1-lifnr.

selection-screen comment (10)10 text-000.

parameters : p_cty like lfa1-ort01.

selection-screen comment 50(10) text-001.

selection-screen end of line.

5 REPLIES 5
Read only

Former Member
0 Likes
773

Use SELECTION-SCREEN POSITION also

Read only

Former Member
0 Likes
773

Hi,

Lets say we have 2 parameters in a Selection screen, If you want tose parameters in a single line then you need to use the SELECTION-SCREEN BEGIN of LINE

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(10) TEXT-001.

PARAMETERS: P1(3), P2(5), P3(1).

SELECTION-SCREEN END OF LINE.

Regards

Sudheer

Read only

Former Member
0 Likes
773

HI,

try this

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(10) TEXT-001 FOR FIELD P1.

PARAMETERS: P1 LIKE SAPLANE-PLANETYPE.

selection-screnn comment 30(20) text-002 for filed p2.

parameters: p2 like matnr.

SELECTION-SCREEN END OF LINE.

reward points if helpful,

thanks & regards,

venkatesh

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
773

Hi,

You should put comment first and then paramter.

selection-screen begin of line.

selection-screen comment (10)10 text-000.

parameters : p_ven like lfa1-lifnr.

selection-screen comment 50(10) text-001.

parameters : p_cty like lfa1-ort01.

selection-screen end of line.

Try now.

Regards,

Sesh

Read only

Former Member
0 Likes
773

just try this, U will definetly get the result...........

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 10(10) comm1.

PARAMETERS : p_matnr LIKE makt-matnr.

SELECTION-SCREEN COMMENT 50(10) comm2.

PARAMETERS : p_maktx LIKE makt-maktx.

SELECTION-SCREEN END OF LINE.

AT SELECTION-SCREEN OUTPUT.

comm1 ='Material'.

comm2 ='Description'.

reward if useful

anju