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

regarding frame.

Former Member
0 Likes
559

how to get set of fields in frame in the o/p

let consider four variable ...

in output i want two variable as one frame and another two variables as another frame.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
534

Hi

We use the FRAME only in the selection screen purpose

We declare fields in the frame and accordingly we see on selection screen.

see the sample code

selection-screen begin of block b1 with <b>frame</b> title text-001.

select-options :

s_kostl for csks-kostl, " Cost Center

s_date for sy-datum. "Date

selection-screen end of block b1.

selection-screen begin of block b2 with <b>frame</b> title text-002.

select-options :

s_kunnr for kna1-kunnr, " Customer

s_matnr for mara-matnr. " material

selection-screen end of block b2.

<b>Reward points for useful Answers</b>

Regards

Anji

4 REPLIES 4
Read only

Former Member
0 Likes
535

Hi

We use the FRAME only in the selection screen purpose

We declare fields in the frame and accordingly we see on selection screen.

see the sample code

selection-screen begin of block b1 with <b>frame</b> title text-001.

select-options :

s_kostl for csks-kostl, " Cost Center

s_date for sy-datum. "Date

selection-screen end of block b1.

selection-screen begin of block b2 with <b>frame</b> title text-002.

select-options :

s_kunnr for kna1-kunnr, " Customer

s_matnr for mara-matnr. " material

selection-screen end of block b2.

<b>Reward points for useful Answers</b>

Regards

Anji

Read only

varma_narayana
Active Contributor
0 Likes
534

Hi..

You can Try using the System fields. SY-ULINE, SY-VLINE.

write:/ SY-ULINE(10),

/ SY-VLINE.

<b>Reward if Helpful</b>

Read only

Former Member
0 Likes
534

HI

THE FRAMES CAN BE AVAILABLE AT SELECTION SCREEN DESIGN

NOT AT THE OUTPUT LEVEL

IF YOU WANT TO DIFFER COULUMS

BY USING ADDING COLORS TO THIS

LIKE THIS

WRITE : SY-VLINE , 2 IT_PLANT-MATNR COLOR COL_KEY,

21 SY-VLINE , 22 IT_PLANT-WERKS COLOR COL_KEY,

27 SY-VLINE ,28 IT_PLANT-PSTAT COLOR COL_NORMAL,

43 SY-VLINE ,44 IT_PLANT-EKGRP COLOR COL_NORMAL.

REWARD IF USEFULL

Read only

Former Member
0 Likes
534

hi

good

to create a frame in the selection screen you can use the statement as selection screeon on block block name.

thanks

mrutyun^