Skip to Content

Use Event print_list to display all search results in print preview

Hello SDN Fellows,

our users want to get a printable List of their search results in Opportunities and Account Management. I've found the Event PRINT_LIST and added it to the Toolbar-Group OPP_OIC.

Now I start a search for opportunities and found about 30 matches. By default 5 are displayed. When I click now on the Button "Print" a new window opens and shows me this 5. When I click the Icon "Maximize" I see 20 opportunities. When I click "Print" I only see a print preview for this 20.

How can get displayed all my search results?

I've tried also to implement my own print preview function as Debasish Pattnayak has described here: Calling Smartform from PCUI application But the problem is that my Access Class is only called when a Opportunity is selected. What must I do to get it also called when no Opportunity is selected? Where can I read the search result list?

Regards

Gregor

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2005 at 05:03 AM

    Hi ,

    You know the screen-structure of the search-result area.Then in your Model-Access-Class (for this structure )the read method will be reading the search result list.

    Within the framework the method CL_CRM_BSP_FRAME_SRES->DO_GET_DATA reads this data from the read method of the MAC.Put a breakpoint there and you can see this list in gr_data_context->gr_table after the 'do_read' method is called.

    Regards,

    Satyadeep

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Gregor Wolf

      Hi ,

      So far as getting this table in model acccess class , well you do have that data in model-access class itself!

      Check the parameter ET_SCREEN_STRUCTURE of the read method of model-access-class .This is the data that you i.e. the application or model or model-access-class (you can call it by any name) pass to the framework controller

      CL_CRM_BSP_FRAME_SRES .

      The program flow from CL_CRM_BSP_FRAME_SRES->do_get_data is as follows :

      It calls the method CL_CRM_BSP_DC_GENERIc->do_read,

      which internally calls CL_CRM_BSP_DATA_CONTEXT->read which calls CL_CRM_BSP_IL->read.

      (These three classes are framework classes and you shoudn't change them.)

      The CL_CRM_BSP_IL->read finds out the model access class for the given screen-structure , and calls the read method of that class.

      You cannot change the model access class provided by SAP but you can copy the MAC into a zclass , modify it and then map this new class to the screen-structure (mapping is stored in table crmc_access) .

      Regards,

      Satyadeep

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.