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

Write to screen, again!

Former Member
0 Likes
887

Hi all,

the next question looks simple, but any one got any idea how to solve the following?

My report selects some data that will be presented to the screen. No fancy ALV or so in this case.

When the customer is satisfied about the report, (s)he can press a button and some info will be posted. I will spare the details of that.

What I want is, that a confirmation will be given on screen, once the posting succeeded.

Now the program 'jumps' to a new screen and write the confirmation message there. When I press F3, the program returns to the earlier given list.

I guess I can give a popup after posting but that cannot be printed. in the list.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
858

Hi,

You can add the another field called STATUS in the interanal table which you pass to ALV. Whenever user select the particular record and process it and the after processing the update the error/sucess messsage in this status field of the Internal table and refresh the ALV.

Now the message will be displayed for the correspoing reocrd in the STATUS fiels in ALV.

7 REPLIES 7
Read only

Pawan_Kesari
Active Contributor
0 Likes
858

You can give a pop-up and that can be list, just use command

leave to list-processing

in PBO of screen

Read only

tarangini_katta
Active Contributor
0 Likes
858

Hi Ron,

After u r SY-UCOMM use the function mdule.

POPUP_TO_CONFIRM.

From this display ur message.

After FM.

IF SY-SUBRC = '0'.

write : 'Confirmation message'.

leave to list processing.

endif.

I hope it may help you.

Read only

0 Likes
858

Hi,

I don't want to use a popup. I want to write the confirmation of the posting in the same list!.

That way you can see the confirmation when the list is printed.

Read only

Former Member
0 Likes
859

Hi,

You can add the another field called STATUS in the interanal table which you pass to ALV. Whenever user select the particular record and process it and the after processing the update the error/sucess messsage in this status field of the Internal table and refresh the ALV.

Now the message will be displayed for the correspoing reocrd in the STATUS fiels in ALV.

Read only

0 Likes
858

hi Avinash,

it's not al ALV.. .. . . ...

Read only

0 Likes
858

Hi

U need to write again the list and the confirmation message at the end.

START-OF-SELECTION.

  PERFORM write.

  WRITE: / '@15@' AS ICON HOTSPOT, 'Press Icon'.

AT LINE-SELECTION.
  sy-lsind = sy-lsind - 1. "Stay at primary list
  PERFORM write.

  WRITE: / '@19@' AS ICON, 'OK'.
*&---------------------------------------------------------------------*
*&      Form  WRITE
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  -->  p1        text
*  <--  p2        text
*----------------------------------------------------------------------*
FORM write .
  WRITE: 'Welcome:', sy-uname.
ENDFORM.                    " WRITE

Max

Read only

0 Likes
858

Thanks Max, that's it! I was already figuring out if I could use sy-lsind. but I just forgot to write the report again.

(All others also thanks for your effort!)