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

SAPGUI_PROGRESS_INDICATOR

Former Member
0 Likes
837

I have in a report that i made an SAPGUI_PROGRESS_INDICATOR .

i have the following problem : I can't write the sentence below

999999 date:08/03/2007 . The problem is that i can't pass the space character and i have to use the _ character always between the words .

my code is :

SY-DATUM CONCATENATE 'No of Billing Doc:_' VBRK-VBELN '_'

VBRK-FKDAT6(2) '/' VBRK-FKDAT4(2) '/' VBRK-FKDAT(4) INTO INFO1.

CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'

EXPORTING

PERCENTAGE = SY-TABIX

TEXT = INFO1.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
686

Try with :

CONCATENATE txt1 txt2 txt3 INTO txt SEPARATED BY SPACE.

4 REPLIES 4
Read only

Former Member
0 Likes
687

Try with :

CONCATENATE txt1 txt2 txt3 INTO txt SEPARATED BY SPACE.

Read only

Former Member
0 Likes
686

Use the separated by space addition for the concatenate statement.

Regards,

Ravi

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
686

I understand why you are trying to do this, he is an addtional tip, keep the '_' and simly translate the INFO1 after the CONCATENATE.

CONCATENATE 'No of Billing Doc:_' VBRK-VBELN '_'
VBRK-FKDAT+6(2) '/' VBRK-FKDAT+4(2) '/' VBRK-FKDAT(4) INTO INFO1.


translate info1 using '_ '.


CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = SY-TABIX
TEXT = INFO1.

Regards,

RIch Heilman

Read only

Former Member
0 Likes
686

Hi,

Please try this.


DATA: WA_DATE(10).

WA_DATE(2) = VBRK-FKDAT+6(2).
WA_DATE+2(1) = '/'.
WA_DATE+3(2) = VBRK-FKDAT+4(2)
WA_DATE+5(1) = '/'.
WA_DATE+7(4) = VBRK-FKDAT(4).

CONCATENATE 'No of Billing Doc: ' VBRK-VBELN WA_DATE INTO INFO1 SEPERATED BY SPACE.

Regards,

Ferry Lianto