Skip to Content
author's profile photo Former Member
Former Member

New Page in NR19 transaction

In alv list display of the NR19 transaction, how to trigger new page automatically depending of the order type.

By example: a new page every time that change the attending physician.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jan 11, 2008 at 11:45 AM

    Hi Alberto,

    the report RNLAPPDL (transaction NR19) does not offer an automatic refresh. Two solution ideas come to my mind:

    1. Check to use the Clinical Workplace (NWP1) which offers automatic refresh of views. Depending on the information your users need you may configure a respective view.

    2. Enhancing the functionality of RNLAPPDL so that the list is refreshed automatically. In SDN there are some examples for ALV in general how this can be done. Using the SDN search I found

    [this thread.|Autorefresh dialog with ALVs; There is also a code sample in the Wiki https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/autorefreshalv+Program.

    One of my development colleagues told me they were using the SAP timer control (CL_GUI_TIMER) in the Clinical Workplace and that you could probably create a little wrapper program which calls RNLAPPDL using a selection variant in respective cycles.

    Regards

    Claudius

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2008 at 12:50 PM

    Hi Claudius,

    thank you for your answer. But, I want that at the moment of print, every time that change the attending physician by example, made a page break and print the new attending physician in the new page.

    Best Regards,

    Alberto.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Claudius Metze

      Hi again,

      the printing of the appointment list is done daily and there are approximately 60 physicians from different specialties.

      The idea is to give them the list at the start of the clinic to call patients.

      Regards,

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2008 at 02:27 PM

    Hi Alberto,

    as a workaround you could write a small ABAP report which calls the RNLAPPDL report in a loop for all the physicians.

    Something like:

    " select the right physicians

    select * from ngpa into it_ngpa where...

    " loop over the selected physicians and start the report

    loop at it_ngpa into lwa_ngpa.

    " fill the the right parameter values

    submit rnlappdl with p_.... = lwa_pernr

    ......

    endloop

    This is not tested and I don't have a IS-H system here so I don't know the parameter names of the rnlappdl report.

    Kind regards,

    Martin Nauta

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      In SM36 you can create a job and in the startcondition. Here you can define it to "execute it periodically" and how often (e.g. each workingday).

      Before you define a job you have to create a variant for your report (NR19 press SAVE button). Here you can enter the constant startvalues (e.g. OU, physician) and the variable startvalues for the parameters (e.g. selectiondate). (In the variant: select the "selectionvariable" checkbox -> button selectionvariables -> select the second icon (in the middle) (dynamic date calculation) and choose a date calculation. This variant has to be used in the jobdefinition.

      Martin

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.