Help on Report _object

Hi All,
I am calling report from form
PROCEDURE Run_Rpt IS
rpt_id REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status varchar2(20);
BEGIN
     rpt_id := find_report_object('EMP');
:parameter.p_program_id := '1';
set_report_object_property(rpt_id, report_other, 'P_EMPNO='||:PARAMETER.P_PROGRAM_ID||' 'P_Deptno='||:Emp.Deptno||'P_year='||:Emp.year||' PARAMFORM=YES');
v_rep := RUN_REPORT_OBJECT(rpt_id);
     END IF;
do_key('clear_form');
EXCEPTION
when form_trigger_failure then do_key('clear_form');
END;
When i am calling report it is not sending all the parameter values.
Thanks

set_report_object_property(rpt_id, report_other, 'P_EMPNO='||:PARAMETER.P_PROGRAM_ID||' 'P_Deptno='||:Emp.Deptno||'P_year='||:Emp.year||' PARAMFORM=YES');
There is a quote at the end of 1st line, and another one at the beginning of the 2nd line.

Similar Messages

  • Creation of report with the help of report painter

    Dear Experts,
                         I need report painter material, if any body have  pls  farward to me.
    my intension to create controlling report with the help of report painter.
    I am ready to award full points.
    Thanks in advance
    Regards
    avudaiappan
    Moderator - Please read this:
    /thread/931177 [original link is broken]
    Thread locked

    Hello Chinasammy,
    Report Painter allows you to create reports using data from SAP application components, which you can adapt to meet your individual requirements.
    Many of your reporting requirements can already be met by using the standard reports provided by various SAP application components. If these SAP standard reports do not meet your reporting needs, Report Painter enables you to define your specific reports quickly and easily.
    When executing a Report Painter report, it is displayed by the system in Report Writer format. You thus have access to the same functions as for Report Writer reports defined in the same way, and can combine Report Painter and Report Writer reports together in a report group.
    Report Painter uses a graphical report structure, which forms the basis for your report definition and displays the rows and columns as they appear in the final report output.
    To facilitate report definition, you can use many of the standard reporting objects provided by SAP (such as libraries, row/column models, and standard layouts) in your own specific reports. When you define a Report Painter report you can use groups (sets). You can also enter characteristic values directly.
    Advantages of Report Painter include:
    Flexible and simple report definition
    Report definition without using sets
    Direct layout control: The rows and columns are displayed in the report definition as they appear in the final report output, making test runs unnecessary.
    =============================================
    Below mentioned is the process for creating reports using Report Painter as a tool.
    Selecting and maintaining a library for your report: As the transfer structure to Report Painter you use a report table, which is defaulted by SAP and can not be maintained. This table contains characteristics, key figures and predefined columns. In a library, you collect the characteristics, key figures, and predefined columns from the report table, which you need for your Report Painter reports.
    When you define a Report Painter report, you assign it to a library. Reports assigned to one library can only use the characteristics, key figures, and predefined columns selected for that library.
    When you create or maintain a library, the Position field determines the sequence in which the characteristics, key figures or (predefined) key figures appear in the Report Painter selection lists when you define a report. This allows you to position the objects that you use regularly in your reports at the beginning of the selection lists. If you do not make an entry in the Position field, you will not be able to use this object in Report Painter reports.
    You can use either the standard SAP libraries for your reports or define your own.
    (ii) Selecting or maintaining a standard layout for your report: Standard layouts determine report layout features and the format of your report data.If the SAP standard layouts do not meet your reporting requirements, you can create a new  standard layout or change an existing one.
    (iii) Defining row and column models: A model is a one-dimensional, predefined reporting structure that you can insert in either the rows or columns of your report.If you often use the same or similar row or column definitions in your reports, it is recommended that you create row or column models.
    You must define the row and/or column models that you want to include in your report definition before you define the report.
    You can also use the standard column models supplied by SAP.
    (iv) Defining the report: Defining a Report Painter report involves the following steps.
    (a) Define the report columns: You define the report columns using the characteristics, key figures, and predefined columns selected for the library that the report uses. Alternatively, you can use a column model for column definition. Column models are predefined column structures which you insert into your entire column definition, instead of defining each individual column.
    (b) Define the report rows: You define the report rows using the characteristics selected for the library selected for the report.
    Alternatively, you can use a row model for your row definition. Row models serve the same purpose as column models, but are used to define a report row.
    Edit and format the report rows and columns in line with your requirements. (For example, you can hide rows or columns, define the column width or define colors for your report rows).
    (iii)Define general data selection criteria for the selection of your report data: Selection criteria are the characteristics used to select data for the entire report. You cannot enter characteristics as data selection criteria if they are already being used in the report rows or columns.
    (iv) Assigning the report to a report group: Once you have defined a report, you must assign it to a report group. A report group can contain one or more reports from the same library. However, reports that share the same data will select data more quickly and improve processing time.
    Hopw this helps you. Please let me know if you need anything more and assign points.
    Rgds
    Manish

  • Help: calling report from report in report 9i

    Background:
    1. Report Builder 9i and the outputs are PDF files;
    2. Report A and Report B both have two identical parameters: P1 and P2;
    3. Calling Report A through FORM using web.show_document() with paraform=YES,
    Help:
    If Report B can be called from Report A, the parameters P1, P2 passed through calling report A, the user then needs not to enter twice P1 and P2 using web.show_document().
    Wishful way of thinking:
    The Calling FORM refered here is the one that provides all buttons for more than 20 reports and that is the reason of using parameter form. Consequently, I am looking for ways of making:
    Calling FORM -> REPORT A -> REPORT B
    where both Report A and B have same parameters, calling FORM calls REPORT A using REPORT A parameter form and hoping that REPORT A can call REPORT B with these parameters.
    Any help are greatly appreciated.
    Jimmy

    I tried something in Before Report trigger like:
    function BeforeReport return boolean is
    begin
    srw.run_report('batch=yes sf1='||:pf1 || 'sf2='||:pf2 || ' report=REPORT_B destype=cache desformat=pdf');
    return (TRUE);
    end;
    An error raised as: REP-1428: 'beforereport': Error while running SRW.RUN_REPORT.
    Here sf1, pf1 and sf2, pf2 and two pairs of identical parameters.
    Any suggestions?

  • Assign Search help in report program

    Dear All,
    I facing problem to assign search help in report program.
    I crated one elementary search help in which three fields i include
    -carrid
    -carrier name
    -booking  
    all three fields having import and export parameter in search help.
    while executing this search help in se11 it gives proper output.
    but while assigning this search help in report program it only fetch one carried.
    my report is also having three parameter
    -carrid
    -carrier name
    -booking
    i assign search help like
    PARAMETER :  p_carrid TYPE scarr-carrid
                               MATCHCODE OBJECT z01_carrid,
    with all three field but it fetch only carrid ...

    Hi Chintan,
    For such types of requirements you can use this Function Module:
    F4IF_INT_TABLE_VALUE_REQUEST.
    Use this functiom modue under AT SELECTION-SCREEN ON HELP-REQUEST FOR P_CARRID.
    With this function module, you can fill your remainng parameters : P_carriername and booking also.
    Sample Code:
         DATA : TMP_RETURN_TAB  LIKE TABLE OF DDSHRETVAL,                                TMP_RETURN      LIKE DDSHRETVAL,                    
                    TMP_FIELD       TYPE  DFIES-FIELDNAME.               
    CASE AKIND.                                        
       WHEN '1'.                                        
         TMP_FIELD = 'AENNR'.                                        
       WHEN '2'.                                        
         TMP_FIELD = 'VBELN'.                                        
       WHEN '3'.                                        
         TMP_FIELD = 'ZZTEHAI'.                                        
      ENDCASE.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'                                                                 
       EXPORTING                                                                                     
         RETFIELD               = TMP_FIELD                                                                      
         WINDOW_TITLE           = ATITEL                                                                      
         VALUE_ORG              = 'S'                                                                                
       TABLES                                                                                          
         VALUE_TAB              = ATABLES                                                                           
         RETURN_TAB             = TMP_RETURN_TAB                                                                      
       EXCEPTIONS                                                                                
         PARAMETER_ERROR        = 1                                                                           
         NO_VALUES_FOUND        = 2                                                                           
         OTHERS                 = 3.                                                                                
      IF SY-SUBRC =  0.                                                                                
        READ TABLE TMP_RETURN_TAB INDEX 1 INTO TMP_RETUN.                                                            
        AVALUE = TMP_RETURN-FIELDVAL.                                                                      
      ENDIF.                                                  
    Jus analyze this code, you can get ur requirement done.
    Regards
    Sandeep Reddy

  • Creating search help through reports

    Hello experts,
    Is there a method so that I can create search help through reports?
    Thanks,
    Mohit.

    hi,
    we can create F4 help through report and also we can create Input Help from the ABAP Dictionary  .
    please check this link for Input Help from the ABAP Dictionary  .
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa5435c111d1829f0000e829fbfe/content.htm
    and for F4 help in reports you can use some function modules:
    select-options :                 so_selgp FOR t458a-selgp  /
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_selgp-low .
      REFRESH gt_auskt[].
      here insert select query to fill your internal table .
      IF so_selgp[] IS NOT INITIAL.
        DELETE gt_t458a1  WHERE selgp NOT IN so_selgp[].
      ENDIF.
      SELECT aussl auslt FROM t458b INTO CORRESPONDING FIELDS OF  TABLE gt_t458b WHERE spras = 'E'.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
        DDIC_STRUCTURE         = ' '
          retfield               = 'SELGP'
        PVALKEY                = ' '
         dynpprog               = 'ZPPGL_MRP_LIST '
         dynpnr                 = '1000'
         dynprofield            = 'SO_SELGP'
         value_org              = 'S'
      IMPORTING
        USER_RESET             =
        TABLES
          value_tab              = gt_auskt   " internal table.
      EXCEPTIONS
        PARAMETER_ERROR        = 1
        NO_VALUES_FOUND        = 2
        OTHERS                 = 3

  • Table SOFFCONT1 to an external repository with help of report RSIRPIRL

    Hi experts,
    I have to relocate data from table SOFFCONT1 to an external repository with help of report RSIRPIRL...I went through all related Sap notes and it seems pretty straightforward.
    When I run the report RSIRPIRL I see all the fields I have to fill up (I have already created an content repository as well as a catalogue) but my question is how to select some data manually for testing purpose? Is it any way how to see from table SOFFCONT1 just 1 file for example?? I couldn't see that field in the report RSIRPIRL.
    Regards,
    Blaiso

    Applied OSS note 1536325 which will add an extra field to select by date and narrow the number of documents to test

  • Need help in Report Painter

    Can anybody help me in Report Painter? I need a link.
    Regards,
    Subhasish

    Please go through the enclosed document. This will give you step-by-step approach for Report painter:
    http://www.virtuosollc.com/PDF/Get_Reporter.pdf
    Check url
    http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
    Check Report Painter Step-by-Step example under Tools->Report Painter / Report Writer->Report Painter->Creating a Report Painter Report.
    Just go through These Links to learn about report Painter.
    http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm
    I have a standard report and it uses a structure to pull the data for the report. I need to create a custom report which uses the same structure, selection screen but a different layout. Could any of u plz advice, if its doable in report painter or just plain abap program?? Also I am interested to know how the report painter stores the actual report?? as ABAP program?? Please help..urgent..
    check the SAP help ..
    http://help.sap.com/saphelp_47x200/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/content.htm
    I had made couple of SD reports in report painter 4 year ago .. as far as process is concern you have create library , but it deals with information structure which start with s0* , after defining information structure in library it take to select the fields and display them on your out put . information structure have the statistical data most of the time . As i worked on information structure , so31,32,33 .....
    I t creates ABAP program like ABAP query creates in background . if you execute Customer Over due analysis or in Co02 cost analysis report or MC* ( MM stock reports ) those are in report painter .
    Hope this'll give you some guide line ...
    As far as I know about report painter, It create a report in background..Like when you make ABAP query (SQ01, 02, 03 ) .. It will create a report. You cant modify the report . You have to get OSS id in order to do that. if you're ready do it then you can pass it to Memory and can achieve your goal ...
    I think it will give you some hint. I wish I could have authorization to use report painter on my this project so I can help you out practically.
    Please see these steps , it`ll help you ...
    http://www.thespot4sap.com/Articles/Code_CostCentreReport.asp
    The variation objects are coming from the sets.
    For example, when you read the report 'Cost Centers: Actual/Plan/Variance'(T-code : S_ALR_87013611), you can find the characteristic 'Cost Center' is set as a 'set variable'. So the cost center in the report left side are coming from the cost center group that you input.
    Does any know if we could use Report Painter across two controlling areas? Any documentation available will be great. Yes. When setting up a report in CCA you can have multiple controlling areas. In the General data selection you will have the option for the CA as a selection.
    You can also use standard references objects to construct your own reports: libraries, standard layouts, default columns, and row and column models, all in the standard R/3 System, are available for custom reports.
    Report Painter report definition requires several Preparatory Steps, depending on the complexity of the report to be generated.
    1) Create a library and pick your reporting tables.
    2) Create your report
    3) define your set up within the report
    a)General data selections
    b)Colimns
    c) rows
    d) formulas
    Standard layouts are maintained in the IMG "Financial Accounting" under "Special Ledger -> Information System -> Maintain standard layout.
    Create libraries, which means assigning the
    characteristics
    key figures
    Predefined columns
    For each of these categories you need to select the objects to be used in reports of the specific library. You define the sequence of the objects in the selection lists of the Report Painter in field "Position". Frequently used objects should be at the top of the list.
    go to
    http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22ba743c611d182b30000e829fbfe/frameset.htm
    I have created a report through report writer/Painter(GR51). My query here is to link this report to a transaction code. Could you please suggest me how can I acheive this?
    Go to SE93 and select the Transaction with Parameters ( Parameter Transaction)
    Then in the Transaction field give: START_REPORT
    Skip initial screen
    Screen 0
    In the default value for the parameters give
    D_SREPOVARI-REPORTTYPE RW
    D_SREPOVARI-REPORT ( Give your Report Group )
    If you have any doubt pick any report painter tcode and check in SE93
    Follow below steps
    1) Execute report through report painter
    2) From system status get the program name
    3 ) go to se93 and select report transaction and assign
    program name .
    Is it possible to make bigger the text a I have on a text field?, Im using the screen painter and I need to put the title bigger (as a requirment).
    You can define your text as any length.If you are talking about the font,i am afraid you cannot do that.
    No, you can not change the size(font) of the text on the dynpro, you can hightlight it, which changes the color to "blue" to make it stand out. You can change this on the attributes tab when double-clicking on the element in screen painter.
    what is the sentence that open a screen painter file
    Don´t really understand what you mean with "open a screen painter file".
    If you are speaking about showing a form generated with the screen painter,
    Dim oXMLDoc As New MSXML2.DOMDocument
    oXMLDoc.load("Form.xml")
    SBO_Application.LoadBatchActions(oXMLDoc.xml)
    Dim oForm As SAPbouiCOM.Form
    oForm = SBO_Application.Forms.Item("YourFormID")
    oForm.Visible = True
    regards
    vinod

  • Query Help for reporting on last receipt qty

    SBO Version: 8.82 PL11
    Hello Forum,
    I am looking for some help devising a command behind a crystal report. We are hoping to achieve the last receipt quantity. To arrive at this we would like it to get the last GRPO for an item and total the quantity on that particular GRPO. In addition to this, we want to consider all the lines on the document and SUM them.
    At present, the query I have is as follows:
    Select SUM(c0.Quantity) from PDN1 c0 WHERE c0.ItemCode = T1.ItemCode AND Shipdate = (select Max(ShipDate) from PDN1 C0  INNER JOIN OPDN c1 ON c0.DocEntry = c1.DocEntry where C0.Itemcode =T1.ItemCode AND c1.DocStatus <> 'C'))
    Any assistance would be greatly received.
    Thanks
    Sarah

    Hi Sarah,
    Please repost to the SAP Business One Application  space.
    -Abhilash

  • Query Help in Report

    Hi guys ,
    I need to make a matrix report like the following
    Description Year(2002 Full),Year(2002 Till Date),Year(2002 Till Month),Year(2003 Full),Year(2003 Till Date),Year(2003 Till Month)
    Year its easy to get in the query as the following
    select item,sum(qty)to_char(v_date,'YYYY') from table group by item v_date
    but how will i get the year to date and year till month
    item wuill be my row
    qty will be cell
    and year will be column

    If the current date is 25th oct 2004 so in above query i need as
    2002 Full Year i.e jan 2002 to dec 2002
    2002 YTD Jan 2002 - 25t oct 2002
    2002 Year To Month - jan2002 oct 2002
    2003 Full Year i.e jan 2003 to dec 2002
    2003 YTD Jan 2003 - 25t oct 2003
    2003 Year To Month - jan 2003 oct 2003
    Any help will be appreciated

  • [Urgent Help Required] Report not displaying

    Dear All,
    Please help me with a issue in running report from form. I am using the following code to run a report from a form. The issue is that when i click the button i get all the success messages which are in the code and a new browser window opens but my report is not displaying. Please can any one help me with this issue. I have to submit my project with a week so this is very urgent.
    This is the code I am using:
    DECLARE
         v_report_id Report_Object;
         vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
         vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
         /* Get a handle to the Report Object itself. */
         v_report_id:= FIND_REPORT_OBJECT('REPORT7');
         message ('report found');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE, SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,cache);
         SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
         SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, 'repserver90');
         vc_report_job_id:=RUN_REPORT_OBJECT(v_report_id);
         message (vc_report_job_id);
         vc_rep_status := REPORT_OBJECT_STATUS(vc_report_job_id);
         message (vc_rep_status);
    IF vc_rep_status='FINISHED' THEN
         web.show_document 'http://localhost:8888/reports/rwservlet/getjobid='||vc_report_job_id ||'?server='|| 'repserver90','_blank');
         ELSE
              message ('Report failed with error message '||vc_rep_status);
         END IF;
    END;

    Any Help in this Regards will be highly appreciated

  • Urgent help in report

    hi,
    i am begineer in oracle apps
    i am facing a problem like this
    i design a report in developer having a parameter p_date. i upload it into apps server and i want to
    assign FND_STANDARD_DATE value_set to it. This will be used to set the "As of Date" value that user had requested.
    please help me what is the next step i followed
    please detail describe it

    If you are planning on running this report as a concurrent program, then you will have to register this report (EXECUTABLE AND PROGRAM DEFINITION).
    Under the Program difinition, while defining the report parameters, you can assign the required valueset.
    This is a standard method and the documentation,if needed, should be easily avialable.

  • Urgent help ALV report

    HI,
    report zhr2.
    tables:pernr.
    type-POOLs:slis.
    INFOTYPES:0001,0004,0041.
    data: begin of itab,
          pernr type pernr-pernr,
          MASSN type p0000-MASSN,
          STAT2 type p0000-STAT2,
          STAT3 type p0000-STAT3,
          PLANS type p0001-plans,
          WERKS type p0001-werks,
          PERSG type p0001-PERSG,
          PERSK   type p0001-PERSK,
      end of itab.
    data:it_itab type STANDARD TABLE OF itab,
         wa_itab like  itab.
    DATA: alv_fieldcat TYPE slis_t_fieldcat_alv,
          alv_layout TYPE slis_layout_alv.
    DATA: filled_lines LIKE sy-index,
          stru_disvar TYPE disvariant.
    select-options:s_pernr for pernr-pernr.
    start-of-SELECTION.
    get pernr.
    describe table p0001 lines filled_lines.
    if filled_lines gt 0.
      rp_provide_from_last p0001 space pn-begda pn-endda.
    clear wa_itab.
    move-CORRESPONDING  p0001 to wa_itab.
    append wa_itab to it_itab.
    if pnp-sw-found eq 0.
       reject.
       endif.
    endif.
    end-of-SELECTION.
    PERFORM fieldcat_init USING alv_fieldcat.
      alv_layout-colwidth_optimize = 'X'.
      alv_layout-zebra             = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
            I_INTERFACE_CHECK        = ' '
            I_BUFFER_ACTIVE             = ' '
                i_callback_program       = 'ZHR2'
            I_CALLBACK_PF_STATUS_SET = ' '
            I_CALLBACK_USER_COMMAND  = ' '
            I_CALLBACK_TOP_OF_PAGE      = ' '
            I_CALLBACK_HTML_TOP_OF_PAGE = ' '
            I_CALLBACK_HTML_END_OF_LIST = ' '
             I_STRUCTURE_NAME         =  'ITAB'
            I_BACKGROUND_ID             = ' '
              I_GRID_TITLE                = 'Date Specifications'
            I_GRID_SETTINGS             =
                is_layout              = alv_layout
                it_fieldcat            = alv_fieldcat
            IT_EXCLUDING             =
            IT_SPECIAL_GROUPS        =
            IT_SORT                  =
            IT_FILTER                =
            IS_SEL_HIDE              =
             I_DEFAULT                = 'X'
             I_SAVE                  = 'A'
             IS_VARIANT              = stru_disvar
            IT_EVENTS                =
            IT_EVENT_EXIT            =
            IS_PRINT                 =
            IS_REPREP_ID             =
            I_SCREEN_START_COLUMN    = 0
            I_SCREEN_START_LINE      = 0
            I_SCREEN_END_COLUMN      = 0
            I_SCREEN_END_LINE        = 0
            IT_ALV_GRAPHICS             =
            IT_ADD_FIELDCAT             =
            IT_HYPERLINK                =
       IMPORTING
            E_EXIT_CAUSED_BY_CALLER  =
            ES_EXIT_CAUSED_BY_USER   =
      TABLES
                t_outtab               = it_itab
          EXCEPTIONS
              program_error            = 1
              OTHERS                   = 2.
      IF sy-subrc = 1.
        WRITE: 'Program error'(002).
      ENDIF.
    FORM fieldcat_init USING p_fieldcat
              TYPE slis_t_fieldcat_alv.
      DATA: ls_fieldcat TYPE slis_fieldcat_alv.
      CLEAR ls_fieldcat.
      ls_fieldcat-fieldname = 'PERNR'.
      ls_fieldcat-ref_tabname = 'PERNR'.
      ls_fieldcat-key         = 'X'.
      APPEND ls_fieldcat TO p_fieldcat.
      CLEAR ls_fieldcat.
      ls_fieldcat-fieldname = 'MASSN'.
       ls_fieldcat-ref_fieldname = 'MASSN'.
    ls_fieldcat-ref_tabname = 'P0001'.
      APPEND ls_fieldcat TO p_fieldcat.
    CLEAR ls_fieldcat.
      ls_fieldcat-fieldname = 'STAT2'.
       ls_fieldcat-ref_fieldname = 'STAT2'.
    ls_fieldcat-ref_tabname = 'P0001'.
      APPEND ls_fieldcat TO p_fieldcat.
      CLEAR ls_fieldcat.
      ls_fieldcat-fieldname = 'STAT3'.
      ls_fieldcat-ref_tabname = 'STAT3'.
    ls_fieldcat-ref_tabname = 'P0001'.
      APPEND ls_fieldcat TO p_fieldcat.
      CLEAR ls_fieldcat.
      ls_fieldcat-fieldname = 'PLANS'.
       ls_fieldcat-ref_fieldname = 'PLANS'.
      ls_fieldcat-ref_tabname = 'P0001'.
      APPEND ls_fieldcat TO p_fieldcat.
      CLEAR ls_fieldcat.
    ls_fieldcat-fieldname = 'WERKS'.
    ls_fieldcat-ref_fieldname = 'WERKS'.
    ls_fieldcat-ref_tabname = 'P0001'.
      APPEND ls_fieldcat TO p_fieldcat.
      CLEAR ls_fieldcat.
    ls_fieldcat-fieldname = 'PERSG'.
      ls_fieldcat-ref_fieldname = 'PERSG'.
    ls_fieldcat-ref_tabname = 'P0001'.
      APPEND ls_fieldcat TO p_fieldcat.
      CLEAR ls_fieldcat.
    ls_fieldcat-fieldname = 'PERSK'.
      ls_fieldcat-ref_fieldname = 'PERSK'.
    ls_fieldcat-ref_tabname = 'P0001'.
      APPEND ls_fieldcat TO p_fieldcat.
    ENDFORM.
    IT is going dump plz can any one help in this .
    Thanks and regards,
    Vamshi

    HI,
    report zhr2.
    tables:pernr.
    type-POOLs:slis.
    INFOTYPES:0001,0004,0041.
    data: begin of itab,
          pernr type pernr-pernr,
          MASSN type p0000-MASSN,
          STAT2 type p0000-STAT2,
          STAT3 type p0000-STAT3,
          PLANS type p0001-plans,
          WERKS type p0001-werks,
          PERSG type p0001-PERSG,
          PERSK   type p0001-PERSK,
      end of itab.
    data:it_itab type STANDARD TABLE OF itab,
         wa_itab like  itab.
    DATA: alv_fieldcat TYPE slis_t_fieldcat_alv,
          alv_layout TYPE slis_layout_alv.
    DATA: filled_lines LIKE sy-index,
          stru_disvar TYPE disvariant.
    select-options:s_pernr for pernr-pernr.
    start-of-SELECTION.
    get pernr.
    describe table p0001 lines filled_lines.
    if filled_lines gt 0.
      rp_provide_from_last p0001 space pn-begda pn-endda.
    clear wa_itab.
    move-CORRESPONDING  p0001 to wa_itab.
    append wa_itab to it_itab.
    if pnp-sw-found eq 0.
       reject.
       endif.
    endif.
    end-of-SELECTION.
    PERFORM fieldcat_init USING alv_fieldcat.
      alv_layout-colwidth_optimize = 'X'.
      alv_layout-zebra             = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
            I_INTERFACE_CHECK        = ' '
            I_BUFFER_ACTIVE             = ' '
                i_callback_program       = 'ZHR2'
            I_CALLBACK_PF_STATUS_SET = ' '
            I_CALLBACK_USER_COMMAND  = ' '
            I_CALLBACK_TOP_OF_PAGE      = ' '
            I_CALLBACK_HTML_TOP_OF_PAGE = ' '
            I_CALLBACK_HTML_END_OF_LIST = ' '
             I_STRUCTURE_NAME         =  'ITAB'
            I_BACKGROUND_ID             = ' '
              I_GRID_TITLE                = 'Date Specifications'
            I_GRID_SETTINGS             =
                is_layout              = alv_layout
                it_fieldcat            = alv_fieldcat
            IT_EXCLUDING             =
            IT_SPECIAL_GROUPS        =
            IT_SORT                  =
            IT_FILTER                =
            IS_SEL_HIDE              =
             I_DEFAULT                = 'X'
             I_SAVE                  = 'A'
             IS_VARIANT              = stru_disvar
            IT_EVENTS                =
            IT_EVENT_EXIT            =
            IS_PRINT                 =
            IS_REPREP_ID             =
            I_SCREEN_START_COLUMN    = 0
            I_SCREEN_START_LINE      = 0
            I_SCREEN_END_COLUMN      = 0
            I_SCREEN_END_LINE        = 0
            IT_ALV_GRAPHICS             =
            IT_ADD_FIELDCAT             =
            IT_HYPERLINK                =
       IMPORTING
            E_EXIT_CAUSED_BY_CALLER  =
            ES_EXIT_CAUSED_BY_USER   =
      TABLES
                t_outtab               = it_itab
          EXCEPTIONS
              program_error            = 1
              OTHERS                   = 2.
      IF sy-subrc = 1.
        WRITE: 'Program error'(002).
      ENDIF.
    FORM fieldcat_init USING p_fieldcat
              TYPE slis_t_fieldcat_alv.
      DATA: ls_fieldcat TYPE slis_fieldcat_alv.
      CLEAR ls_fieldcat.
      ls_fieldcat-fieldname = 'PERNR'.
      ls_fieldcat-ref_tabname = 'PERNR'.
      ls_fieldcat-key         = 'X'.
      APPEND ls_fieldcat TO p_fieldcat.
      CLEAR ls_fieldcat.
      ls_fieldcat-fieldname = 'MASSN'.
       ls_fieldcat-ref_fieldname = 'MASSN'.
    ls_fieldcat-ref_tabname = 'P0001'.
      APPEND ls_fieldcat TO p_fieldcat.
    CLEAR ls_fieldcat.
      ls_fieldcat-fieldname = 'STAT2'.
       ls_fieldcat-ref_fieldname = 'STAT2'.
    ls_fieldcat-ref_tabname = 'P0001'.
      APPEND ls_fieldcat TO p_fieldcat.
      CLEAR ls_fieldcat.
      ls_fieldcat-fieldname = 'STAT3'.
      ls_fieldcat-ref_tabname = 'STAT3'.
    ls_fieldcat-ref_tabname = 'P0001'.
      APPEND ls_fieldcat TO p_fieldcat.
      CLEAR ls_fieldcat.
      ls_fieldcat-fieldname = 'PLANS'.
       ls_fieldcat-ref_fieldname = 'PLANS'.
      ls_fieldcat-ref_tabname = 'P0001'.
      APPEND ls_fieldcat TO p_fieldcat.
      CLEAR ls_fieldcat.
    ls_fieldcat-fieldname = 'WERKS'.
    ls_fieldcat-ref_fieldname = 'WERKS'.
    ls_fieldcat-ref_tabname = 'P0001'.
      APPEND ls_fieldcat TO p_fieldcat.
      CLEAR ls_fieldcat.
    ls_fieldcat-fieldname = 'PERSG'.
      ls_fieldcat-ref_fieldname = 'PERSG'.
    ls_fieldcat-ref_tabname = 'P0001'.
      APPEND ls_fieldcat TO p_fieldcat.
      CLEAR ls_fieldcat.
    ls_fieldcat-fieldname = 'PERSK'.
      ls_fieldcat-ref_fieldname = 'PERSK'.
    ls_fieldcat-ref_tabname = 'P0001'.
      APPEND ls_fieldcat TO p_fieldcat.
    ENDFORM.
    IT is going dump plz can any one help in this .
    Thanks and regards,
    Vamshi

  • Requires experts help - abap report in sales order

    hello,
    for the sales order details -  to display partner function and delivery status.
    first screen contains selection screen containing sales organization and a check box.
    if i enter the sales organization without clicking check box, it displays many sale orders clicking on any sale order, (interactive)  takes me to another screen, where i have push buttons for displaying partner func and delivery status. - this output is coming correctly.
    if i enter sales org. and <b>click the check box</b>, goes to next screen where i give sale order no. in parameter and after giving i should go to the same screen where i created pushbuttons for displaying the partner functions and delivery status of that particular vbeln.
    i am not getting the output for the above thing.
    ( i am not using dialog module). ordinary report only.
    can anybody help me in this regard.
    thank you.

    Hello Akilandeswari
    Sorry to say that but your application is an example of a poor user interface (UI).
    The following sample report <b>ZUS_SDN_TWO_ALV_GRIDS_SO</b> shows you how to display all sales order for a given sales organisation. Double-clicking on a sales order fills the second ALV list with the partner functions. Obviously, it would be a piece of cake to display the statusinfo in another ALV list (-> Alv).
    *& Report  ZUS_SDN_TWO_ALV_GRIDS
    *& Screen '0100' contains no elements.
    *& ok_code -> assigned to GD_OKCODE
    *& Flow logic:
    *  PROCESS BEFORE OUTPUT.
    *    MODULE STATUS_0100.
    *  PROCESS AFTER INPUT.
    *    MODULE USER_COMMAND_0100.
    REPORT  zus_sdn_two_alv_grids.
    DATA:
      gd_okcode        TYPE ui_func,
      go_docking       TYPE REF TO cl_gui_docking_container,
      go_splitter      TYPE REF TO cl_gui_splitter_container,
      go_cell_top      TYPE REF TO cl_gui_container,
      go_cell_bottom   TYPE REF TO cl_gui_container,
      go_grid1         TYPE REF TO cl_gui_alv_grid,
      go_grid2         TYPE REF TO cl_gui_alv_grid,
      gs_layout        TYPE lvc_s_layo.
    DATA:
      gt_outtab        TYPE STANDARD TABLE OF vbak,
      gt_partner       TYPE STANDARD TABLE OF vbpavb.
    *       CLASS lcl_eventhandler DEFINITION
    CLASS lcl_eventhandler DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS:
          handle_double_click FOR EVENT double_click OF cl_gui_alv_grid
            IMPORTING
              e_row
              e_column
              es_row_no
              sender.
    ENDCLASS.                    "lcl_eventhandler DEFINITION
    *       CLASS lcl_eventhandler IMPLEMENTATION
    CLASS lcl_eventhandler IMPLEMENTATION.
      METHOD handle_double_click.
    *   define local data
        DATA:
          ls_outtab      LIKE LINE OF gt_outtab.
        CHECK ( sender = go_grid1 ).
        READ TABLE gt_outtab INTO ls_outtab INDEX e_row-index.
        CHECK ( ls_outtab-vbeln IS NOT INITIAL ).
        CALL METHOD go_grid1->set_current_cell_via_id
          EXPORTING
    *        IS_ROW_ID    =
    *        IS_COLUMN_ID =
            is_row_no    = es_row_no.
    *   Triggers PAI of the dynpro with the specified ok-code
        CALL METHOD cl_gui_cfw=>set_new_ok_code( 'DETAIL' ).
      ENDMETHOD.                    "handle_double_click
    ENDCLASS.                    "lcl_eventhandler IMPLEMENTATION
    PARAMETERS:
      p_vkorg    TYPE vkorg  DEFAULT '1000'.
    START-OF-SELECTION.
      SELECT        * FROM  vbak INTO TABLE gt_outtab
             WHERE  vkorg = p_vkorg.
    * Create docking container
      CREATE OBJECT go_docking
        EXPORTING
          parent                      = cl_gui_container=>screen0
          ratio                       = 90
        EXCEPTIONS
          OTHERS                      = 6.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Create splitter container
      CREATE OBJECT go_splitter
        EXPORTING
          parent            = go_docking
          rows              = 2
          columns           = 1
    *      NO_AUTODEF_PROGID_DYNNR =
    *      NAME              =
        EXCEPTIONS
          cntl_error        = 1
          cntl_system_error = 2
          OTHERS            = 3.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Get cell container
      CALL METHOD go_splitter->get_container
        EXPORTING
          row       = 1
          column    = 1
        RECEIVING
          container = go_cell_top.
      CALL METHOD go_splitter->get_container
        EXPORTING
          row       = 2
          column    = 1
        RECEIVING
          container = go_cell_bottom.
    * Create ALV grids
      CREATE OBJECT go_grid1
        EXPORTING
          i_parent          = go_cell_top
        EXCEPTIONS
          OTHERS            = 5.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Set event handler
      SET HANDLER: lcl_eventhandler=>handle_double_click FOR go_grid1.
      CREATE OBJECT go_grid2
        EXPORTING
          i_parent          = go_cell_bottom
        EXCEPTIONS
          OTHERS            = 5.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Display data
      gs_layout-grid_title = 'Sales Orders'.
      CALL METHOD go_grid1->set_table_for_first_display
        EXPORTING
          i_structure_name = 'VBAK'
          is_layout        = gs_layout
        CHANGING
          it_outtab        = gt_outtab
        EXCEPTIONS
          OTHERS           = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      gs_layout-grid_title = 'Partner Functions'.
      CALL METHOD go_grid2->set_table_for_first_display
        EXPORTING
          i_structure_name = 'VBPA'
          is_layout        = gs_layout
        CHANGING
          it_outtab        = gt_partner  " empty !!!
        EXCEPTIONS
          OTHERS           = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Link the docking container to the target dynpro
      CALL METHOD go_docking->link
        EXPORTING
          repid                       = syst-repid
          dynnr                       = '0100'
    *      CONTAINER                   =
        EXCEPTIONS
          OTHERS                      = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * NOTE: dynpro does not contain any elements
      CALL SCREEN '0100'.
    * Flow logic of dynpro (does not contain any dynpro elements):
    *PROCESS BEFORE OUTPUT.
    *  MODULE STATUS_0100.
    *PROCESS AFTER INPUT.
    *  MODULE USER_COMMAND_0100.
    END-OF-SELECTION.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'STATUS_0100'.  " contains push button "DETAIL"
    *  SET TITLEBAR 'xxx'.
    * Refresh display of detail ALV list
      CALL METHOD go_grid2->refresh_table_display
    *    EXPORTING
    *      IS_STABLE      =
    *      I_SOFT_REFRESH =
        EXCEPTIONS
          OTHERS         = 2.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      CASE gd_okcode.
        WHEN 'BACK' OR
             'END'  OR
             'CANC'.
          SET SCREEN 0. LEAVE SCREEN.
    *   User has pushed button "Display Details"
        WHEN 'DETAIL'.
          PERFORM entry_show_details.
        WHEN OTHERS.
      ENDCASE.
      CLEAR: gd_okcode.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  ENTRY_SHOW_DETAILS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM entry_show_details .
    * define local data
      DATA:
        ld_row      TYPE i,
        ld_title    TYPE lvc_title,
        ls_outtab   LIKE LINE OF gt_outtab,
        lt_sadrvb   TYPE STANDARD TABLE OF sadrvb.
      CALL METHOD go_grid1->get_current_cell
        IMPORTING
          e_row = ld_row.
      READ TABLE gt_outtab INTO ls_outtab INDEX ld_row.
      CHECK ( syst-subrc = 0 ).
      REFRESH: gt_partner.
      CALL FUNCTION 'SD_PARTNER_READ'
        EXPORTING
          f_vbeln                = ls_outtab-vbeln
    *     OBJECT                 = 'VBPA'
          no_master_adress       = 'X'
        TABLES
          i_xvbadr               = lt_sadrvb  " dummy, obligatory
          i_xvbpa                = gt_partner.
      CONCATENATE ls_outtab-vbeln 'Partner Functions' INTO ld_title
        SEPARATED BY ': '.
      go_grid2->set_gridtitle( ld_title ).
      CALL FUNCTION 'BAPI_SALESORDER_GETSTATUS'
        EXPORTING
          salesdocument       = ls_outtab-vbeln
    *   IMPORTING
    *     RETURN              =
    *    TABLES
    *     STATUSINFO          = gt_status
    ENDFORM.                    " ENTRY_SHOW_DETAILS
    Regards
      Uwe

  • Need help for Report Generation

    I am using Designer 6i.
    I want to ask that :
    Is there any facility that can preserve the report layout when I want to generate the report, because every time I generate the report I can't preserve the last layout.
    Thank for helping me !
    null

    Hi,
    In the transaction OAOR, you should be able to insert your company Logo.
    GOTO - OAOR (Business Document Navigator)
    Give Class Name - PICTURES Class Type - OT..... then Execute
    It will show you the list, then select ENJOYSAP_LOGO.
    On that list, you will find one control with a "create" tab.
    Click std. doc types.
    Select SCREEN and double-click.
    It will push FILE selection screen.
    Select your company logo (.gif) and press OK.
    It will ask for a description- for instance: "company logo".
    It will let you know your doc has been stored successfully.
    You can find your logo under ENJOYSAP_LOGO->Screen->company logo.
    Just run your ALV program, you should find your company logo in place of the EnjoySAP logo.
    FORM TOP-OF-PAGE.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = HEADING[]
    I_LOGO = 'ENJOYSAP_LOGO'
    I_END_OF_LIST_GRID ='GT_LIST_TOP_OF_PAGE'.
    ENDFORM. "TOP-OF-PAGE
    Here 'ENJOYSAP_LOGO' will replace by ur created logo.
    n pls reply me.
    Refer this link
    http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_enhanced.htm
    http://www.sap-img.com/abap/alv-logo.htm
    http://www.sap-img.com/fu002.htm
    reward if it helps..
    Regards,
    Omkar.

  • Need help with Report Generation Toolkit: Excel Set Cell Format.vi

    Hi people,
    I've been searching and found this old thread of someone asking what is the input parameter "Number format". And I dont know what should I put in there. I've tried so many possibilities, but nothing works so far, such as:
    0,0
    0,?
    0,#
    #,0
    ?,0
    and also with @, doesnt works. Where would I find help about this parameter?
    I'm using Excel2003, german version, thus local decimal separator is a comma.
    I also found this help from NI, but seems doesnt help me either. Do I miss something important?
    thanks,
    Yan. 

    Hi,
    I've used your suggestion and some numbers in excel doesnt need to get "right click, change to numbers" anymore (green indicators on the left-top side in some cells are gone). But, I think its still not a number, because I cant use a simple formula, such as in cell A10 I type "= A1/2" (cell A10 equals cell A1 divided with 2) . I got error which says its not a number.
    Well, but other thing is found, any format-string I put in the input of Excel Set Cell Format.vi, such as #,########, will be shown the same as "customize #,########" if I right click in a cell in excel and click "Zellen formatieren" (formatting cell). But however, the numbers are still depends on the input of the format I put in the Append Table to Report.vi.
    regards,
    Yan.

Maybe you are looking for

  • Idoc to soap sync without bpm. is it possible? Helping me..

    Hi Experts, i have a small clarification Idoc to soap sync interface in sap pi 7.0. i created IDoc to Soap sync using BPM but some times the signals are stuck due to load issue in swpr, while reprocess those signals all going successfully to the rece

  • Regarding Value and Binding properties of af:inputTextBox

    Hi All, I am using JDeveloper 11.1.1.6.0. I want to set the value for af:inputTextBox from the backing bean. I observed there are two properties for this component, 'Value' and 'binding'. So, I thought of using 'Value' property. For this I created a

  • No USB Power when PC off

    Hi, I bought a MSI Z77a-g45 some weeks ago and I can't figure how to charge my devices when my computer is off (razer mamba). I just installed super-charger but it doesn't seem to work for this. I might have changed some bios settings trying to pursu

  • Loyalty formula calculation

    Hi gurus, We want t implement Loyalty Management. Question: It is possible to create the formula, rules calcultion based ion the invoice amount? Question 2: It is possible to get the invoice amouint from R/3 and then send it t CRM system? Thanks

  • Can't use Time Machine or Backup Error Code -36   (ioErrI/O error)

    Hi... I can't backup any of my files because when I try to use BACKUP or TIME MACHINE, I get an Error -36. Can anyone help me out? I repaired disk permissions and verified my disk. That didn't help. Thanks. Begin backup at 2009-02-11 16:47:19.331 -08