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

abt paramers

Former Member
0 Likes
1,052

Hi,

I created 2 parameters. its looking like 1 by 1 but my requirement z side by side.

how it z possible

Thanks in Advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,016
*Abap code
SELECTION-SCREEN BEGIN OF BLOCK out WITH FRAME TITLE text-s01.
selection-screen begin of line.
  selection-screen comment 1(7) text-su9.  "su9 = Clerk
  parameters: p_clerk1 LIKE knb1-busab OBLIGATORY DEFAULT '51'.
  selection-screen comment 15(19) text-su1. "su1 = Surname begins with
  parameters: p_cstr1(20) type c OBLIGATORY DEFAULT 'ABCD'.
selection-screen end of line.
SELECTION-SCREEN END OF BLOCK out.

http://www.sapdevelopment.co.uk/reporting/selscr/selscr_sameline.htm

This will solve ur problem, reward points and close the thread if this solves.

Hi,

I created 2 parameters. its looking like 1 by 1 but my requirement z side by side.

how it z possible

Thanks in Advance

9 REPLIES 9
Read only

Former Member
0 Likes
1,017
*Abap code
SELECTION-SCREEN BEGIN OF BLOCK out WITH FRAME TITLE text-s01.
selection-screen begin of line.
  selection-screen comment 1(7) text-su9.  "su9 = Clerk
  parameters: p_clerk1 LIKE knb1-busab OBLIGATORY DEFAULT '51'.
  selection-screen comment 15(19) text-su1. "su1 = Surname begins with
  parameters: p_cstr1(20) type c OBLIGATORY DEFAULT 'ABCD'.
selection-screen end of line.
SELECTION-SCREEN END OF BLOCK out.

http://www.sapdevelopment.co.uk/reporting/selscr/selscr_sameline.htm

This will solve ur problem, reward points and close the thread if this solves.

Read only

Former Member
0 Likes
1,016

Hello

Check this:


SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(10) INPUT1.
PARAMETERS P1 TYPE I.
SELECTION-SCREEN COMMENT 40(10) INPUT2.
PARAMETERS P2 TYPE I.

SELECTION-SCREEN END OF LINE.

INITIALIZATION.
INPUT1 = 'INPUT1'.
INPUT2 = 'INPUT2'. 

Vasanth

Read only

Former Member
0 Likes
1,016

Hi Lakshmi,

Then you have to use the SELECTION-SCREEN BEGIN OF LINE.

Regards,

John.

Read only

Former Member
0 Likes
1,016

See the demo example:

demo_sel_screen_beg_of_line_1

Read only

Former Member
0 Likes
1,016
REPORT YCHATEST LINE-SIZE 350.
 
 
SELECTION-SCREEN BEGIN OF BLOCK B1.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 5.
PARAMETERS : P_VAR1(10).
SELECTION-SCREEN POSITION 35.
PARAMETERS : P_VAR2(10).
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B1.
Read only

Former Member
0 Likes
1,016

hi laxmi,

it is possible with this statement

begin of line xxx.

parameters:a like i,

b like c.

end of line xxx.

if useful reward points

regards

praveen

Read only

Former Member
0 Likes
1,016

Pls observe the following code.

it gives one after the other....

By adjusting position of seletion parameter and by writing the selection screen elements between SELECTION-SCREEN BEGIN OF LINE. and SELECTION-SCREEN END OF LINE. , u can achieve ur task.

SELECTION-SCREEN SKIP .

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN POSITION 19.

SELECT-OPTIONS : s_bukrs FOR t001-bukrs.

SELECTION-SCREEN COMMENT 5(15) text-001 FOR FIELD s_bukrs.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN POSITION 19.

SELECT-OPTIONS : s_bldat FOR bkpf-bldat.

SELECTION-SCREEN COMMENT 5(15) text-002 FOR FIELD s_bldat.

SELECTION-SCREEN END OF LINE.

Hope this clue may help u.

Regards

Sujatha.

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
1,016

Hi

Use the DWDM transaction it can give you a list of programs.

For those you can choose the program which suits your requirements.

Then you can simply copy the code which suffi you.

Regards,

kumar

Read only

Former Member
0 Likes
1,016

hi

try this format.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN POSITION n.

parameters p_kunnr like kan1-kunnr..

SELECTION-SCREEN COMMENT 5(15) text-001 FOR FIELD p_kunnr.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN POSITION n+1.

Parameters p_vbeln like vbak-vbeln.

SELECTION-SCREEN COMMENT 5(15) text-002 FOR FIELD p_vbeln.

SELECTION-SCREEN END OF LINE.

regrds,

shamim.