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

Text issues in Report

Former Member
0 Likes
1,301

HI All,

in our BW Report , we have out put for 0fiscper field like the below. ( Our source is s/4 hana and we are on BW4hana)..

January 2019

February 2019

March 2019 etc.

So our requirement is to get the same as

Jan 2019

Feb 2019

March 2019.

Is it possible using ABAP ? if yes please provide few inputs.

Regards,

RaKi

Thanks for your inputs. i will check it,.

5 REPLIES 5
Read only

FredericGirod
Active Contributor
0 Likes
1,175

something like that ?

SPLIT ... AT ' ' INTO TABLE IT_Split_Table IN CHARACTER MODE.

LOOP AT IT_Split_Table INTO DATA(IS_Split_Line).

IF sy-tabix eq 1.

CONCATENATE LV_Line IS_Split_Line-Line+0(3) into LV_line

else.

CONCATENATE LV_line IS_Split_Line-Line into LV_Line.

endif.

ENDLOOP.

Read only

0 Likes
1,175

thanks for your inputs. but wat about year. we want year also. anyway i will try the logic provided by you. thanks again.

Read only

former_member199306
Participant
0 Likes
1,175

Hi Ravi,

you can use FM : HR_IN_GET_DATE_COMPONENTS, there you can enter date and will get

the output in desired format .

Regards,
Read only

0 Likes
1,175

Thanks for your inputs. i will check it,.

Read only

Former Member
0 Likes
1,175

using code i have done this. field routine.