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

Display a message while processing

Former Member
0 Likes
1,505

Hi,

I am processing a lot of files and it take some time to do it. I want to display a message when a file is processing. And one message when the process of all files is finished.

LOOP AT LT_FILES.
  CONCATENATE 'File processing: ' LT_FILES-NAME INTO LV_MSG
  MESSAGE LV_MSG TYPE 'S'.
  PERFORM F_PROCESS_FILE USING LT_FILES-NAME.
ENDLOOP.
MESSAGE 'The files are been processed' TYPE 'S'.

But it doesn't show anything while the files are been processing, just at the end the last message appears. Someone knows how can I do this? Like parallel tasks or something like threads?

Regards,

Isaac Melendez

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,006

into the loop put this:

CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'

EXPORTING

TEXT = 'File processing:'

EXCEPTIONS

OTHERS = 1.

after the endloop write the other message

4 REPLIES 4
Read only

Former Member
0 Likes
1,007

into the loop put this:

CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'

EXPORTING

TEXT = 'File processing:'

EXCEPTIONS

OTHERS = 1.

after the endloop write the other message

Read only

0 Likes
1,006

Hi heber,

Same, do not show anything.

Regards,

Isaac Melendez

Read only

Former Member
0 Likes
1,006

Hi,

Try using the FM

Increase the percentage for each loop

CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
              EXPORTING
                PERCENTAGE = 50
                TEXT       = text-025.

Read only

0 Likes
1,006

I already solve my problem. Thank you guys.

Regards,

Isaac Melendez