Skip to Content
author's profile photo
Former Member

List Display After ALV Display.

Hi,

i want to use write statement after display of the GRID ALV report. I User-command is getting dynamically called up when i presses the button.

FORM user_command USING p_ucomm LIKE sy-ucomm

p_selfield TYPE slis_selfield.

CASE p_ucomm.

WHEN '&GENERAL'.

READ TABLE i_general INTO wa_general INDEX p_selfield-tabindex.

IF sy-subrc = 0.

LEAVE TO LIST-PROCESSING.

WRITE : sy-uline(90).

write: / 'Serial: ', wa_general-serial.

ENDIF.

ENDFORM.

the problem is i m not able to use back button in the dynamic list display. Use pf-status as well but not working. Pressing BACK button does nothing.

Want to activate print and back button in the dynamic list display. (used pf-status which has back and print fucntion code but not working.)

Reward points sure for right answers.

Kartavya

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    Posted on Sep 29, 2007 at 06:00 AM

    Hi..

    Try this.....

    FORM user_command USING p_ucomm LIKE sy-ucomm

    p_selfield TYPE slis_selfield.

    CASE p_ucomm.

    WHEN '&GENERAL'.

    READ TABLE i_general INTO wa_general INDEX p_selfield-tabindex.

    IF sy-subrc = 0.

    <b>SET PF-STATUS SPACE.</b> "this will call the Standard GUI

    LEAVE TO LIST-PROCESSING.

    WRITE : sy-uline(90).

    write: / 'Serial: ', wa_general-serial.

    ENDIF.

    ENDFORM.

    <b>Reward if Helpful.</b>

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 29, 2007 at 05:36 AM

    Did you copy standard pf status to your own custom pf status and are you using the same in your program?

    And if you just need to show serial no, you can display the same in the pop up. Do you need to show it in secondary list?

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 29, 2007 at 05:40 AM

    Thanks for the reply but It is required to display in the secondary list. Please let me know ur inputs. Urgent.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      That should not be a problem, why aren't you using ALV for secondary list also. You just need to call ALV fm to display report.

      Have you copied pf-status to custom pf-status?

      See this example for interactive ALV.

      interactive-alv

  • author's profile photo
    Former Member
    Posted on Sep 29, 2007 at 07:00 AM

    Hi,

    set pf-status space

    worked for me...thanks infy tree. u have ur 10 pointer.

    Add comment
    10|10000 characters needed characters exceeded