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

Title

Former Member
0 Likes
1,126

Hi Experts,

My Querry is,

DATA: TITLE TYPE LVC_TITLE.

FORM TITLE.

WRITE BUDAT-LOW DD/MM/YYYY TO DATE1.

WRITE BUDAT-HIGH DD/MM/YYYY TO DATE2.

CONCATENATE IT_FINAL-NAME1 'Reconcilliation Statement From'

DATE1 'TO' DATE2

INTO TITLE SEPARATED BY SPACE .

ENDFORM. "TITLE

My out put is: ABCD Electronincs India Ltd Reconcilliation Statement From 02.02.1998 to 03.

I am not getting the budat-low , it is reducing as per the length of the lfa1-name1.

Please advice.

Karthik.

8 REPLIES 8
Read only

Former Member
0 Likes
1,041

please use meaningful subjectlines henceforth

Read only

Former Member
0 Likes
1,041

Hi Karthik,

the data type of TITLE (LVC_TITLE) is 70 char length. So anything above 70 is truncated. Makes sense.

Ravi

Read only

0 Likes
1,041

I knew it, I want any other method to overcome it.

Read only

0 Likes
1,041

Karthik,

then redefine the title as

data: title(100)

Ravi

Read only

Former Member
0 Likes
1,041

Dear,

since your lengh of title is exceeding that's why it is truncating.

do one thing jus write it in 2 parts means break in 2 line then you will get the required Title.

Regards

vijay

Read only

0 Likes
1,041

Hi Vijay,

Please advice afer breaking how do I call the title to FM.

Thanks

Karthik.

Edited by: Karthik R on Feb 27, 2009 6:16 AM

Edited by: Karthik R on Feb 27, 2009 6:17 AM

Read only

Former Member
0 Likes
1,041

Hi,

LVC_TITLE lenght is 70 .

Use:

DATA: TITLE TYPE STRING.

Hope issue will be resolved.

Regards,

Gurpreet

Read only

Former Member
0 Likes
1,041

Dear,

if you will use line type H then it will be in bold and for S it will be in small letter.

DATA: g_repid LIKE sy-repid,

standard_header TYPE slis_t_listheader,

gt_events TYPE slis_t_event,

event TYPE slis_alv_event.

*prepare standard header

PERFORM prepare_standard_header.

*prepare TOP event

event-name = 'TOP_OF_PAGE'.

event-form = 'TOP_OF_PAGE'.

APPEND event TO gt_events.

FORM prepare_standard_header .

DATA: line TYPE slis_listheader,

w_string(30) TYPE c,

w_date(10) TYPE c,

w_date1(10) TYPE c,

w_prctr TYPE cepct-prctr,

w_ltext TYPE cepct-ltext,

w_prctr1 TYPE cepct-prctr,

w_p(6) TYPE c.

line-typ = 'H'.

line-info = 'MULTI SCREEN MEDIA PVT. LTD.'.

APPEND line TO standard_header.

line-typ = 'H'.

line-info = 'BILLING REPORT'.

APPEND line TO standard_header.

line-typ = 'S'.

line-key = 'Company Code'.

line-info = COMP_COD.

APPEND line TO standard_header.

CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'

EXPORTING

date_internal = POST_DAT-low

IMPORTING

date_external = w_date.

CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'

EXPORTING

date_internal = POST_DAT-high

IMPORTING

date_external = w_date1.

CONCATENATE w_date 'To' w_date1 INTO w_string

SEPARATED BY space.

line-typ = 'S'.

line-key = 'Posting Date'.

line-info = w_string.

APPEND line TO standard_header.

CLEAR w_date.

CLEAR w_string.

ENDFORM. " prepare_standard_header

regards

vijay