Regarding the report BTCTRNS1

I want to know that when we execute this report BTCTRNS1 what happens to the background job which is currently running on the system. or this report waits for the background job to finish

Hi,
This report BTCTRNS1  transfers all jobs with the status 'Released' to the status 'Rescheduled due to upgrade'.
The Active jobs which are currently running, are not effected by this report.
Hope this helps.
Regards,
Vijay.

Similar Messages

  • Regarding the report for vendor stock

    Hello all,
    This is regarding the Subcontracting scenario. We have requirement of transferring the stock of material to Vendor by using 311 Q as the tye child material is in the project stock. In
    However the customer would like to have a report in which we can see the stock provided to vendor  ' Vendorwise or PO wise" .
    Kindly suggest the solution.
    Thanks & regards,
    Sudhir

    Hi
    The stock monitoring for SC stocks at vendor can be done uswing ME2O report.
    If you want to see the total stocks available at vendor then use report MBLB

  • Regarding the Report's Default Value

    Now the default value of the CrystalDecisions.CrystalReports.Engine is empty which is a problem clarified by both Luke and Don Williams. Don provided a good tips for code, referring Don's reply at Jan 10, 2014 and Jul 31, 2012, I’ve tested this and it is worked, and I got a default value. However, the other sever problem has been occurred. Since the unmanaged code (COM) can't construct (casting) to the managed code directly, since it is a interface. Otherwise the original all Crystal Document objects will be wiped out, and become null value. Here is my analysis referred Don’s code:
    foreach (CrystalDecisions.ReportAppServer.DataDefModel.ParameterField rasParamfield in                                                             myReport.ReportClientDocument.DataDefController.DataDefinition.ParameterFields)
    Here myReport is coming from CrystalDecisions.CrystalReports.Engine.ReportDocument, so this code will not be useful if you want to keep myReport active. From this point, I do not know what another alternatives could be used to achieve this or using Reflection , and how?
    Any responses would be so appreciated.
    J. Huang

    Hi Johnson,
    Correct, but mostly it works without having to set the viewer to the RAS Report Object but just in case you do then I use a flag id RAS has modified the report and set the viewer accordingly:
    You still need to open the report by the Engine but then assign it to the RAS client Doc:
    add these assemblies:
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    using CrystalDecisions.ReportAppServer;
    using CrystalDecisions.ReportAppServer.ClientDoc;
    using CrystalDecisions.ReportAppServer.Controllers;
    using CrystalDecisions.ReportAppServer.ReportDefModel;
    using CrystalDecisions.ReportAppServer.CommonControls;
    using CrystalDecisions.ReportAppServer.CommLayer;
    using CrystalDecisions.ReportAppServer.CommonObjectModel;
    using CrystalDecisions.ReportAppServer.ObjectFactory;
    using CrystalDecisions.ReportAppServer.Prompting;
    using CrystalDecisions.ReportAppServer.DataSetConversion;
    using CrystalDecisions.ReportAppServer.DataDefModel;
    using CrystalDecisions.ReportSource;
    Global flag:
    bool IsRpt = true;
    CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
    CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument rptClientDoc;
    In the routine to you update the values add IsRpt =  false;
    In your open method use this:
    rptClientDoc = new CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocument();
    rpt.Load(rptName.ToString(), OpenReportMethod.OpenReportByTempCopy);
    rptClientDoc = rpt.ReportClientDocument;
    Then in the view report button use this:
    try
        if (!IsRpt)
            crystalReportViewer1.ReportSource = rptClientDoc.ReportSource;
        else
            crystalReportViewer1.ReportSource = rpt;
    catch (Exception ex)
        btnSQLStatement.Text = "ERROR: " + ex.Message;
    Don

  • Help Regarding the Reports in BI

    Hi Everyone ,
    I have a question from BI Answers.
    So in 11g we can find all the recently viewed reports in the Most Recently viewed tabs in Home page ri8.
    We have a report with a Report Prompt on date and also we have this same Report on the dashboard .This Dashboard also contains a Dashboard prompt on date .
    We have a requirement .
    When the user opens the report from recently viewed tab .He need to get the date from the particular Report date prompt But When the user tries to open the report from Dashboard ,the dashboard date should pass to the report and the date which is in the report should be negated .
    Ex: Dashboard prompt has a date with june 13th and report has a date with may31. when the user tries to open the report from Recently viewed tab he need to see the data with MAY 31 and when he tries to open the same report from the dashboard then the JUNE 13th should pass to the Report and the report date MAY 31 should be negated .
    IS this possible with creating the repository variables and session variables for the dates .
    Any help is very Appreciated
    Thanks
    Sam

    Hi Sunny
    You can acheive something like your requirement by using a presentation variable and its default value.
    In your dashboard prompt, have it set a presentation variable called, say, v_date
    In your report put a filter on the date column and set it to "is equal to / is in". Click "Add More Options" and choose "Presentation Variable". In variable expr put: v_date and in the default type your report date in the correct format.
    Paul

  • Regarding the performance in report

    Hi Abap Gurus,
                              i am working on the report. my requirement is that after executing the report data gets extracting after 11 hours.the required data is comonf perfectly.  how to improve the performance. any tips to follow the performance in the report.  if possible post the code.
    Moderator Message: Please search the forum for available information.
    Edited by: kishan P on Oct 19, 2010 4:50 PM

    Hi,
    Please check below thread;
    Extract from ALV List
    Regards
    Jana

  • Regarding the upgradations from the bw3.5 to bi7.0 reporting

    Hi Experts,
                       Can any one help me how i have to upgrade the  reporting tool from the sap-bw 3.5 to sap-bi7.0 . right now allready we are having the sap-bw 3.5 version right now i want to upgrade it to the sap-bi 7.0 .I need clearly with the help of the steps.
                                                    Bye.

    Hi Vijay,
    please check the following links:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6a19f233-0e01-0010-6593-c47af5a8df3b
    https://www.sdn.sap.com/irj/sdn/event/webinars?rid=/library/uuid/90d58e76-e1b0-2a10-8b89-af8ceacf4b09
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/472443f2-0c01-0010-20ab-fbd380d45881
    /message/2082536#2082536 [original link is broken]
    Regards
    Erwin
    Edited by: Erwin  Buda on Feb 9, 2009 11:35 AM

  • Specifications for the report regarding the invoiced quantity.

    Hi all SAP gurus,
    I want to give specifications to the abaper regarding the layout of a report. The details are sales order, materials in it, order quantity, invoiced qty, balance qty and stock against the balance qty.
    I want to know the table & field name  where the qty is getting updated. Suppose order qty is 20, today i invoice 5 qty. The balance is 15. When i run the report, in the invoiced qty column the system should show 5. Tomorrow i invoice 10 qty, the balance will be 5. When i run the report again, in the invoiced qty column, the system should show 15.
    Where is the data stored regarding the updated qty which is already invoiced.
    The scenario is MTS. Is it possible to show the exact available qty in the balance qty. column some material may be confirmed for other sales order also.
    Regards,
    Allabaqsh G. Patil

    Hi
    Need to understand couple of more things before i tell you the fields as are you considering report Based ON invoice or delivery as you are saying that order quantity is 20 and invoice is 5 , ( do you mean to say delivered quantity is 5)
    secondly since this report is for stock are you taking into the account of all the pending orders not yet delivered , partially deliverd.
    Hope  you understand this as this report could change every minute the order is delivered
    And as per my knowledge there is no such table which can give  you that information , you need to write a logic which will consider the open orders, partially delivery , and stuff into .....hope i am in Sync with what you are asking
    Cheers

  • How to send a report for particular job chain every hour regarding the job

    Hi Gerben/Anton
    We are running one jobchain for all billing jobs . Is any chance is there to send a report automatically to certain pupils for every one hour regarding the job status(excel format ) .
    Coudl you please help on this it should be good if i get any reply on this .
    Thanks
    Ramkumar

    Hi Ram,
    I need your help on getting mail alert with  log file.
    here is how i have provide the parameter valure for job definition: system_mail_sent.
    Step1 with one job1 and step2 with one job1
    In step2 , i have included the job definition to send mail. with below parameter.
    Relative Job: Step 1, Job 1
    Job File: step 1, job 1: step 1/log.txt
    Please let me  know if the above method is correct or not.
    NOTE: mail server and from address are configured.
    Thanks,
    Karthik

  • Regarding displaying the report information in Geographical map

    Hi All,.
    I have a specific requirement where I have to display the number of Telephone connections activated in a geographical area (GEO map) . How to do it.
    Can any body provide the step by step process to display the reporting information in maps.

    Hi,
    To do this you have to have the settings done in Info object maintenance where in the Map should have been integrated already.
    Once that is done, in BEx designer you can have the setting by cloicking the icon.
    Hope this helps to start with.
    Assign points if useful.
    Regards,
    Venkat

  • Hi, i was wounding if anyone would help me get information on the company regarding the acquisition of, beats by dre, could someone please help me out as i am doing a college report on this and need some good sources of information

    hi, i was wounding if anyone would help me get information on the company regarding the acquisition of, beats by dre, could someone please help me out as i am doing a college report on this and need some good sources of information

    Try a search with Google.
    Why should we do your homework for you?

  • Query regarding the use of Mailto in a report

    Hi folks,
    I am having a problem using a mailto link within a report. The report sits on a page displaying information from two views, one is used to create the report the other isn't. The mailto link is on an email address displayed in the report and is generated from the value stored in the report and is called as below
    mailto:#CONTACT_EMAIL#
    Now what I want to do is carry across some other variables in both the subject and body text of the email. I have tried doing this by adding
    mailto:#CONTACT_EMAIL#?subject=#P40_VARIABLE#
    But this doesn't seem to work. It correctly interpretes the email address but not the other variable. So the question is does the variable have to be in the view used by the report or can I call it from elsewhere on the page. Sorry if this is not too clear as I am making it up as I go along.

    Thanks for the advise but it doesn't seem to work. It generates the email with the correct address but the subject is &P40_VARIABLE not the actual value of the variable.

  • Regarding the Status of Loaded Data in Report.

    Hi All,
    My client wants to view the status of the data that is being represented in the Reports. For example we are having data till today in R/3 but we have only loaded data till yesterday then he wants it to be represented in the report. Like “Data as on May 8th “. Is there any script that can be written to get this information dynamically in the report header???

    hi Yj,
    in web you can use web item 'text element' and choose element type 'general text' and element id ROLLUPTIME.
    <object>
        <param name="OWNER" value="SAP_BW">
        <param name="CMD" value="GET_ITEM">
        <param name="NAME" value="TextElements_1">
        <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS">
        <param name="DATA_PROVIDER" value="Data_Provider">
        <param name="GENERATE_CAPTION" value="">
        <param name="GENERATE_LINKS" value="">
        <param name="SHOW_FILTERS" value="">
        <param name="SHOW_VARIABLES" value="">
        <param name="ELEMENT_TYPE_1" value="COMMON">
        <param name="ELEMENT_NAME_1" value="ROLLUPTIME">
        <param name="ONLY_VALUES" value="X">
        ITEM:            TextElements_1
    </object>
    in bex analyzer, you can display the date with menu business explorer -> display text elements -> general, you will see some info, 'author'... 'last refreshed'.
    hope this helps.

  • Question regarding the date in MARC for a daily movement report

    Hi,
    I have a requirement, where i need to create a report, based on the selection screen parameters for <u>purchasing group</u> and <u>date</u> (the default is 1 minus the current date.)
    The report is used to view the daily movement, relating to the selected purchasing group and date.
    Where and how do i find entries for that specific date? What tables and field or fields do i use?
    Points will be rewarded and all help will be greatly appreciated.
    Thank You,
    John

    See the below example code :
    REPORT ZQA_MOVEMENT_ANALYSIS no standard page heading.
    *>>> ELEMENTS COPIED FROM REPORT BALVHT01 .
    ALV
    TYPE-POOLS: SLIS.
    Includes
    INCLUDE .
    tables: mkpf, mseg, marc, mara, makt, mard.
    DATA =============================================================== *
    DATA:       G_BOXNAM TYPE SLIS_FIELDNAME VALUE  'BOX',
                G_EXPANDNAME TYPE SLIS_FIELDNAME VALUE  'EXPAND',
                P_F2CODE LIKE SY-UCOMM       VALUE  '&ETA',
                P_LIGNAM TYPE SLIS_FIELDNAME VALUE  'LIGHTS',
                G_SAVE(1) TYPE C,
                G_TABNAME_HEADER TYPE SLIS_TABNAME,
                G_TABNAME_ITEM   TYPE SLIS_TABNAME,
              g_default(1) type c,
                G_EXIT(1) TYPE C,
                GX_VARIANT LIKE DISVARIANT,
                G_VARIANT LIKE DISVARIANT.
    CONSTANTS:
    GC_FORMNAME_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE',
    GC_FORMNAME_ITEM_EXPAND TYPE SLIS_FORMNAME VALUE 'ITEM_EXPAND',
    GC_FORMNAME_user_command type slis_formname value slis_ev_user_command.
    DATA: GT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
          GS_LAYOUT   TYPE SLIS_LAYOUT_ALV,
          GS_KEYINFO  TYPE SLIS_KEYINFO_ALV,
          GT_SORT     TYPE SLIS_T_SORTINFO_ALV,
          GT_SP_GROUP TYPE SLIS_T_SP_GROUP_ALV,
          GT_EVENTS   TYPE SLIS_T_EVENT.
    DATA: G_REPID LIKE SY-REPID.
    DATA: GT_LIST_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER.
    data: begin of i_movement occurs 0,
            matnr   like mseg-matnr,
            bwart   like mseg-bwart,
            budat   like mkpf-budat,
            mblnr   like mseg-mblnr,
            gjahr   like mseg-gjahr,
            shkzg   like mseg-shkzg,
            menge   like mseg-menge,
            meins   like mseg-meins,
          end of i_movement.
    data: begin of i_mat occurs 0,
            matnr   like mara-matnr,
            maktx   like makt-maktx,
            labst   like mard-labst,
            meins   like mara-meins,
          end of i_mat.
    data: begin of i_output occurs 0.
            include structure ZFD_MOVEMENT_ANALYSIS.
    data:  end of i_output.
    data i_popuptext like popuptext occurs 2 with header line.
    data: v_matnr like mara-matnr.
    data: x_movement  like i_movement.
    SELECTION-SCREEN --------------------------------------------------- *
    SELECTION-SCREEN BEGIN OF BLOCK period WITH FRAME TITLE text-001.
    select-options: so_budat   for mkpf-budat obligatory no-extension.
    SELECTION-SCREEN END OF BLOCK period.
    SELECTION-SCREEN BEGIN OF BLOCK org WITH FRAME TITLE text-002.
    parameters: p_werks   like marc-werks obligatory default '1000',
                p_lgort    like mard-lgort obligatory default '1000'.
    select-options: so_matnr   for mseg-matnr,
                    so_dept    for marc-zzdept,
                    so_kostl   for mseg-kostl,
                    so_ekgrp   for marc-ekgrp.
    SELECTION-SCREEN END OF BLOCK org.
    SELECTION-SCREEN SKIP 1.
    Variant
    SELECTION-SCREEN BEGIN OF BLOCK 0 WITH FRAME TITLE TEXT-P01.
    PARAMETERS: P_VARI LIKE DISVARIANT-VARIANT.
    SELECTION-SCREEN END OF BLOCK 0.
    INITITALIZATION ==================================================== *
    INITIALIZATION.
      G_REPID = SY-REPID.
      G_TABNAME_ITEM   = 'I_OUTPUT'.
    define keyinfo
      CLEAR GS_KEYINFO.
      GS_KEYINFO-ITEM01   = 'MATNR'.
      PERFORM E01_FIELDCAT_INIT  USING GT_FIELDCAT[].
      PERFORM E03_EVENTTAB_BUILD USING GT_EVENTS[].
      PERFORM E04_COMMENT_BUILD  USING GT_LIST_TOP_OF_PAGE[].
      PERFORM E06_T_SORT_BUILD   USING GT_SORT[].
      PERFORM E07_SP_GROUP_BUILD USING GT_SP_GROUP[].
    Set Options: save variants userspecific or general
      G_SAVE = 'A'.
      PERFORM VARIANT_INIT.
    Get default variant
      GX_VARIANT = G_VARIANT.
      CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
           EXPORTING
                I_SAVE     = G_SAVE
           CHANGING
                CS_VARIANT = GX_VARIANT
           EXCEPTIONS
                NOT_FOUND  = 2.
      IF SY-SUBRC = 0.
        P_VARI = GX_VARIANT-VARIANT.
      ENDIF.
    AT SELECTION-SCREEN ================================================ *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VARI.
      PERFORM F4_FOR_VARIANT.
    PAI
    AT SELECTION-SCREEN.
      PERFORM PAI_OF_SELECTION_SCREEN.
    START-OF-SELECTION ================================================= *
    start-of-selection.
      perform check_background_processing.
      PERFORM E05_LAYOUT_BUILD USING GS_LAYOUT.     "wg. Parameters
      perform get_data.
      perform build_report.
      perform write_report.
    AT LINE SELECTION ================================================== *
    at line-selection.
      if sy-lsind = 1.
        format intensified off.
        if not i_output-matnr is initial.
          v_matnr = i_output-matnr.
          loop at i_movement where matnr = i_output-matnr.
            write: / i_movement-mblnr hotspot on,
                     i_movement-bwart,
                     i_movement-budat,
                     i_movement-shkzg.
            if i_movement-shkzg = 'H'.
              format color col_negative.
            else.
              format color col_positive.
            endif.
            write:     i_movement-menge,
                       i_movement-meins.
            format color off.
            hide: i_movement-mblnr, i_movement-gjahr.
          endloop.
          clear i_movement.
        endif.
      elseif sy-lsind = 2.
        set parameter id 'MBN' field i_movement-mblnr.
        set parameter id 'MJA' field i_movement-gjahr.
        call transaction 'MB03' and skip first screen.
      endif.
    ==================================================================== *
    top-of-page.
      perform top_of_page.
    top-of-page during line-selection.
      read table i_mat with key matnr = i_output-matnr.
      write: i_output-matnr,
             i_mat-maktx,
             so_budat-low, ' to ', so_budat-high.
      uline.
      clear: i_mat, i_output.
    *&      Form  write_report
          text
    -->  p1        text
    <--  p2        text
    FORM write_report.
    Call ABAP/4 List Viewer
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
        I_INTERFACE_CHECK              = ' '
        I_BYPASSING_BUFFER             =
        I_BUFFER_ACTIVE                = ' '
          I_CALLBACK_PROGRAM             = g_repid
        I_CALLBACK_PF_STATUS_SET       = ' '
        I_CALLBACK_USER_COMMAND        = ' '
        I_STRUCTURE_NAME               =
          IS_LAYOUT                      = gs_layout
          IT_FIELDCAT                    = gt_fieldcat[]
        IT_EXCLUDING                   =
          IT_SPECIAL_GROUPS              = gt_sp_group[]
          IT_SORT                        = gt_sort[]
        IT_FILTER                      =
        IS_SEL_HIDE                    =
        I_DEFAULT                      = 'X'
          I_SAVE                         = g_save
          IS_VARIANT                     = g_variant
          IT_EVENTS                      = gt_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
      IMPORTING
        E_EXIT_CAUSED_BY_CALLER        =
        ES_EXIT_CAUSED_BY_USER         =
        TABLES
          T_OUTTAB                       = i_output
        EXCEPTIONS
          PROGRAM_ERROR                  = 1
          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.
    ENDFORM.                    " write_report
    *&      Form  get_data
          text
    -->  p1        text
    <--  p2        text
    FORM get_data.
      if so_dept[]    is initial and
         so_matnr[]   is initial and
         so_kostl[]   is initial and
         so_ekgrp[]   is initial.
        i_popuptext-text = 'Please choose a department, material number,'.
        append i_popuptext.
        i_popuptext-text = 'cost center or purchasing group'.
        append i_popuptext.
        CALL FUNCTION 'DD_POPUP_WITH_INFOTEXT'
          EXPORTING
            TITEL              = 'Please Note'
            START_COLUMN       = 1
            START_ROW          = 1
            END_COLUMN         = 5
            END_ROW            = 3
          INFOFLAG           = ' '
        IMPORTING
          ANSWER             =
          TABLES
            LINES          = i_popuptext.
      Stop execution until user enters a purch group or dept.
        stop.
      endif.
    get all materials matching selection criteria - exclude finished
    materials
      select kmatnr kmaktx labst meins
      from ( ( ( marc as c inner join makt as k
               on cmatnr = kmatnr ) INNER JOIN mard as d
               on cmatnr = dmatnr ) INNER JOIN mara as a
               on cmatnr = amatnr )
      into table i_mat
      where c~matnr in so_matnr   and
            c~ekgrp in so_ekgrp   and
            c~zzdept in so_dept   and
            c~werks  = p_werks    and
            d~werks  = p_werks    and
            k~spras  = 'E'        and
            d~lgort  = p_lgort
      order by k~matnr.
      if sy-subrc = 0.
        read table so_budat index 1.
        loop at i_mat.
        get all material movements for all materials identified since
        start date on date interval selected by user
          select matnr bwart budat bmblnr bgjahr shkzg menge meins
          appending table i_movement
          from (  mseg as b INNER JOIN mkpf as a
                ON bmblnr = amblnr AND
                   bmjahr = amjahr )
          where b~matnr = i_mat-matnr and
                a~budat >= so_budat-low.
        endloop.
      endif.
    ENDFORM.                    " get_data
    *&      Form  build_report
          text
    -->  p1        text
    <--  p2        text
    FORM build_report.
      data: x_movement        like i_movement,
            v_processed_inv   like mseg-menge.
      sort i_movement by matnr ascending
                         budat descending.
      loop at i_movement.
      if movement after end of period specified, use movement to work
      backwards to inventory at end of selected period end date
        if i_movement-budat > so_budat-high.
          if i_movement-shkzg = 'H'.
            add i_movement-menge to i_output-ending_inv.
          else.
            subtract i_movement-menge from i_output-ending_inv.
          endif.
        endif.
      compute inventory at beginning of period
        if i_movement-shkzg = 'H'.
          add i_movement-menge to i_output-begin_inv.
        else.
          subtract i_movement-menge from i_output-begin_inv.
        endif.
      if movement in the time period specified, summarize movements by
      type
        if i_movement-budat >= so_budat-low and
           i_movement-budat <= so_budat-high.
          if i_movement-bwart+0(1) = '1'.
            if i_movement-shkzg = 'S'.
              add i_movement-menge to i_output-purchased_inv.
            else.
              subtract i_movement-menge from i_output-purchased_inv.
            endif.
          elseif i_movement-bwart+0(1) = '2'.
            if i_movement-shkzg = 'S'.
              add i_movement-menge to i_output-transferred_inv.
            else.
              subtract i_movement-menge from i_output-transferred_inv.
            endif.
          elseif i_movement-bwart+0(1) = '4'.
            if i_movement-shkzg = 'S'.
              add i_movement-menge to i_output-transferred_inv.
            else.
              subtract i_movement-menge from i_output-transferred_inv.
            endif.
          elseif i_movement-bwart+0(2) = '55'.
            if i_movement-shkzg = 'S'.
              add i_movement-menge to i_output-scrapped_inv.
            else.
              subtract i_movement-menge from i_output-scrapped_inv.
            endif.
          elseif i_movement-bwart+0(1) = '6'.
            if i_movement-shkzg = 'S'.
              add i_movement-menge to i_output-sold_inv.
            else.
              subtract i_movement-menge from i_output-sold_inv.
            endif.
          elseif i_movement-bwart+0(1) = '7'.
            if i_movement-shkzg = 'S'.
              add i_movement-menge to i_output-cycled_inv.
            else.
              subtract i_movement-menge from i_output-cycled_inv.
            endif.
          elseif i_movement-bwart+0(2) = '96'.
            if i_movement-shkzg = 'S'.
              add i_movement-menge to i_output-recovered_inv.
            else.
              subtract i_movement-menge from i_output-recovered_inv.
            endif.
          else.
            if i_movement-shkzg = 'S'.
              add i_movement-menge to i_output-other.
            else.
              subtract i_movement-menge from i_output-other.
            endif.
          endif.
        endif.
      Summarize data for material number and add to output list
        x_movement = i_movement.
        at end of matnr.
          clear i_mat.
          read table i_mat with key matnr = i_movement-matnr.
          i_output-maktx = i_mat-maktx.
        inventory at end of period = current inventory + changes since end
        of period
          add i_mat-labst to i_output-ending_inv.
        inventory at begin of period = ending inventory + changes in
        interval
          add i_mat-labst to i_output-begin_inv.
        build percentages for types of movements in period - the only
        reason this data needs to be stored rather than computed on the
        fly is for sorting of data
          v_processed_inv = ( i_output-begin_inv - i_output-ending_inv )
                            + i_output-purchased_inv.
          if v_processed_inv <> 0.
            i_output-percent_sold =
                  ( i_output-sold_inv / v_processed_inv ) * 100 * -1.
            i_output-percent_scrapped =
                  ( i_output-scrapped_inv / v_processed_inv ) * 100 * -1.
            i_output-percent_transferred =
                  ( i_output-transferred_inv / v_processed_inv ) * 100 * -1.
            i_output-percent_cycled =
                  ( i_output-cycled_inv / v_processed_inv ) * 100 * -1.
            i_output-percent_recov =
                  ( i_output-recovered_inv / v_processed_inv ) * 100 * -1.
            i_output-other =
                  ( i_output-other / v_processed_inv ) * 100 * -1.
          endif.
        record material number
          move i_movement-matnr to i_output-matnr.
          i_output-meins = x_movement-meins.
          append i_output.
          clear i_output.
        endat.
      endloop.
      clear i_movement.
    ENDFORM.                    " build_report
          FORM E01_FIELDCAT_INIT                                        *
    -->  E01_LT_FIELDCAT                                               *
    FORM E01_FIELDCAT_INIT USING E01_LT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
      DATA: LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
           EXPORTING
              I_PROGRAM_NAME         =
                I_INTERNAL_TABNAME     = G_TABNAME_ITEM
                I_STRUCTURE_NAME       = 'ZFD_MOVEMENT_ANALYSIS'
              I_CLIENT_NEVER_DISPLAY = 'X'
                I_BYPASSING_BUFFER     = 'X'
           CHANGING
                CT_FIELDCAT            = E01_LT_FIELDCAT[].
    ENDFORM.
          FORM E03_EVENTTAB_BUILD                                       *
    -->  E03_LT_EVENTS                                                 *
    FORM E03_EVENTTAB_BUILD USING E03_LT_EVENTS TYPE SLIS_T_EVENT.
      DATA: LS_EVENT TYPE SLIS_ALV_EVENT.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
           EXPORTING
                I_LIST_TYPE = 1
           IMPORTING
                ET_EVENTS   = E03_LT_EVENTS.
    tell program which form to call for top of page event
      READ TABLE E03_LT_EVENTS WITH KEY NAME = SLIS_EV_TOP_OF_PAGE
                               INTO LS_EVENT.
      IF SY-SUBRC = 0.
        MOVE GC_FORMNAME_TOP_OF_PAGE TO LS_EVENT-FORM.
        APPEND LS_EVENT TO E03_LT_EVENTS.
      ENDIF.
    tell program which form to call for item expand event
      READ TABLE E03_LT_EVENTS WITH KEY NAME = slis_ev_item_data_expand
                               INTO LS_EVENT.
      IF SY-SUBRC = 0.
        MOVE GC_FORMNAME_ITEM_EXPAND TO LS_EVENT-FORM.
        APPEND LS_EVENT TO E03_LT_EVENTS.
      ENDIF.
    ENDFORM.
          FORM E04_COMMENT_BUILD                                        *
    -->  E04_LT_TOP_OF_PAGE                                            *
    FORM E04_COMMENT_BUILD USING E04_LT_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER.
      DATA: LS_LINE TYPE SLIS_LISTHEADER.
    Listenüberschrift: Typ H
      CLEAR LS_LINE.
      LS_LINE-TYP  = 'H'.
    LS_LINE-KEY:  not used for this type
      write sy-datum to LS_LINE-INFO.
      APPEND LS_LINE TO E04_LT_TOP_OF_PAGE.
      CLEAR LS_LINE.
      LS_LINE-TYP  = 'H'.
    LS_LINE-KEY:  not used for this type
      LS_LINE-INFO = 'FreshDirect Product Reorder Report'.
      APPEND LS_LINE TO E04_LT_TOP_OF_PAGE.
    Kopfinfo: Typ S
    CLEAR LS_LINE.
    LS_LINE-TYP  = 'S'.
    LS_LINE-KEY  = TEXT-050.
    LS_LINE-INFO = TEXT-010.
    APPEND LS_LINE TO E04_LT_TOP_OF_PAGE.
    LS_LINE-KEY  = TEXT-051.
    APPEND LS_LINE TO E04_LT_TOP_OF_PAGE.
    Aktionsinfo: Typ A
    CLEAR LS_LINE.
    LS_LINE-TYP  = 'A'.
    LS_LINE-KEY:  not used for this type
    LS_LINE-INFO = TEXT-002.
    APPEND LS_LINE TO  E04_LT_TOP_OF_PAGE.
    ENDFORM.
          FORM E05_LAYOUT_BUILD                                         *
    <->  E05_LS_LAYOUT                                                 *
    FORM E05_LAYOUT_BUILD USING E05_LS_LAYOUT TYPE SLIS_LAYOUT_ALV.
      E05_LS_LAYOUT-F2CODE            = P_F2CODE.
      E05_LS_LAYOUT-ZEBRA             = 'X'.
      E05_LS_LAYOUT-colwidth_optimize = 'X'.
    ENDFORM.
          FORM E06_T_SORT_BUILD                                         *
    -->  E06_LT_SORT                                                   *
    FORM E06_T_SORT_BUILD USING E06_LT_SORT TYPE SLIS_T_SORTINFO_ALV.
      DATA: LS_SORT TYPE SLIS_SORTINFO_ALV.
      CLEAR LS_SORT.
      LS_SORT-FIELDNAME = 'MATNR'.
      LS_SORT-TABNAME   = G_TABNAME_ITEM.
      LS_SORT-SPOS      = 1.
      LS_SORT-UP        = 'X'.
      APPEND LS_SORT TO E06_LT_SORT.
    ENDFORM.
          FORM E07_SP_GROUP_BUILD                                       *
    -->  E07_LT_SP_GROUP                                               *
    FORM E07_SP_GROUP_BUILD USING E07_LT_SP_GROUP TYPE SLIS_T_SP_GROUP_ALV.
      DATA: LS_SP_GROUP TYPE SLIS_SP_GROUP_ALV.
      CLEAR  LS_SP_GROUP.
      LS_SP_GROUP-SP_GROUP = 'A'.
      LS_SP_GROUP-TEXT     = TEXT-005.
      APPEND LS_SP_GROUP TO E07_LT_SP_GROUP.
    ENDFORM.
          FORM TOP_OF_PAGE                                              *
    FORM TOP_OF_PAGE.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
                IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
                  data v_repid like sy-repid.
    write: / sy-datum, sy-uzeit,
       100 'FreshDirect Material Movement Type Analysis Report'.
    show parameters chosen on selection screen in header
    v_repid = sy-repid.
    CALL FUNCTION 'Z_WRITE_SELECTION_SCREEN'
          EXPORTING
               REPID            = v_repid
          EXCEPTIONS
               REPORT_NOT_FOUND = 1
               OTHERS           = 2.
    write column headings
    format color col_heading.
    write: /(18) 'Material #',
             (40) 'Description',
             (16) '  Beginning Inv.',
             (16) '       Purchased',
             (16) '  Available Inv.',
             (16) '     Ending Inv.',
             (16) '  Processed Inv.',
             (25) '                     Sold',
             (25) '                 Scrapped',
             (25) '              Transferred',
             (25) '            Cycle Counted',
             (25) '                    Other'.
    format color off.
    uline /1(278).
    ENDFORM.
          FORM F4_FOR_VARIANT                                           *
    FORM F4_FOR_VARIANT.
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
           EXPORTING
                IS_VARIANT          = G_VARIANT
                I_SAVE              = G_SAVE
                I_TABNAME_HEADER    = G_TABNAME_HEADER
                I_TABNAME_ITEM      = G_TABNAME_ITEM
              it_default_fieldcat =
           IMPORTING
                E_EXIT              = G_EXIT
                ES_VARIANT          = GX_VARIANT
           EXCEPTIONS
                NOT_FOUND = 2.
      IF SY-SUBRC = 2.
        MESSAGE ID SY-MSGID TYPE 'S'      NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
        IF G_EXIT = SPACE.
          P_VARI = GX_VARIANT-VARIANT.
        ENDIF.
      ENDIF.
    ENDFORM.
    *&      Form  PAI_OF_SELECTION_SCREEN
          text
    FORM PAI_OF_SELECTION_SCREEN.
      IF NOT P_VARI IS INITIAL.
        MOVE G_VARIANT TO GX_VARIANT.
        MOVE P_VARI TO GX_VARIANT-VARIANT.
        CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
             EXPORTING
                  I_SAVE     = G_SAVE
             CHANGING
                  CS_VARIANT = GX_VARIANT.
        G_VARIANT = GX_VARIANT.
      ELSE.
        PERFORM VARIANT_INIT.
      ENDIF.
    ENDFORM.                               " PAI_OF_SELECTION_SCREEN
    *&      Form  VARIANT_INIT
          text
    -->  p1        text
    <--  p2        text
    FORM VARIANT_INIT.
      CLEAR G_VARIANT.
      G_VARIANT-REPORT = G_REPID.
    ENDFORM.                               " VARIANT_INIT
    INCLUDE ZQA_UTILITY_INCLUDE.
    ***INCLUDE ZQA_UTILITY_INCLUDE .
    *&      Form  display_popup_message
          text
    -->  p1        text
    <--  p2        text
    form display_popup_message using x_text1
                                     x_text2.
      data: int_popuptext like popuptext occurs 2 with header line.
      int_popuptext-text = x_text1.
      append int_popuptext.
      int_popuptext-text = x_text2.
      append int_popuptext.
      call function 'DD_POPUP_WITH_INFOTEXT'
        exporting
          titel              = 'Please Note'
          start_column       = 1
          start_row          = 1
          end_column         = 5
          end_row            = 3
        tables
          lines          = int_popuptext.
    endform.                    " display_popup_message
    *&      Form  upload_data_file
          text
         -->P_int_INPUTDATA  text
    form upload_data_file tables      x_inputdata
                          using x_filename like rlgrap-filename.
      clear x_inputdata.
      refresh x_inputdata.
    file on UNIX app server
      if x_filename+0(1) = '/'.
        open dataset x_filename for input.
        if sy-subrc <> 0.
          perform display_popup_message using 'Error opening file'
                                      x_filename.
          stop.
        else.
          do.
            read dataset x_filename into x_inputdata.
            if sy-subrc <> 0.
              exit.
            endif.
            append x_inputdata.
            clear x_inputdata.
          enddo.
        endif.
        close dataset x_filename.
      else.
    file on local PC of GUI
        call function 'UPLOAD'
          exporting
            filename                      = x_filename
            filetype                      = 'ASC'
          tables
            data_tab                      = x_inputdata
         exceptions
           conversion_error              = 1
           invalid_table_width           = 2
           invalid_type                  = 3
           no_batch                      = 4
           unknown_error                 = 5
           guint_refuse_filetransfer       = 6
           others                        = 7
        if sy-subrc <> 0.
          perform display_popup_message using 'Error opening file'
                                        x_filename.
          stop.
        endif.
      endif.
    endform.                    " upload_data_file
    *&      Form  check_background_processing
          text
    -->  p1        text
    <--  p2        text
    form check_background_processing.
    endform.                    " check_background_processing
    Reward Points if it is helpful
    Thanks
    Seshu

  • Regarding the textual description of InfoObejcts in Reports

    Hai
    I created the InfoObjects by giving the Length and its description .
    But when I create the Reports then I didn’t get the description of InfoObjects Fully .
    Why it is like that and what I have to do ???
    Is there any limit for textual description of InfoObjects??
    Please tell me the solution .
    I will assign the points
    Bye
    Rizwan

    Hi,
    Also check if you have loaded the Short, Medium and Full descriptions. In addition check which description is being used in reporting and whether its getting truncated in the text tables itself.
    Cheers,
    Kedar

  • Reports regarding the Database instance: how to get "Wait Bottlenecks"

    Hello,
    I've created some reports as a "healthcheck" for our databases. I've went through the documentation
    Oracle® Enterprise Manager Oracle Database and Database-Related Metric Reference Manual 10g Release 2 (10.2)
    ( http://download.oracle.com/docs/cd/B19306_01/em.102/b25986/toc.htm )
    to figure out which metrics are possible to use. Most of my queries for the report look like
    select target_name || ' => PGA Cache Hit (%): (' || metric_name || ' / ' || metric_column || ')', rollup_timestamp, average
    from mgmt$metric_daily
    where target_guid = ??EMIP_BIND_TARGET_GUID??
    and target_type = 'oracle_database'
    and metric_name = 'instance_efficiency'
    and metric_column = 'pgacachehit_pct'
    and rollup_timestamp >= ??EMIP_BIND_START_DATE??
    and rollup_timestamp <= ??EMIP_BIND_END_DATE??
    order by 2
    The target_type is always "oracle_database". In the example above I've used the metric_name "instance_efficiency" and found several useful metric-columns (e.g. pgacachehit_pct).
    When I looked in the above mentioned documentation I've found the interesting chapter "4.56 Wait Bottlenecks". Under this chapter there are many metrics which would be pretty helpful
    to show in a report. But when running the query
    select distinct metric_column
    from mgmt$metric_daily
    where target_name like 'SELLPROD%'
    and target_type = 'oracle_database'
    and metric_name = 'wait_bottlenecks'
    order by 1
    I get only these few records back:
    avg_user_cpu_time_pct
    host_cpu_usage_pct
    other_wait_cnt
    user_cpu_time_cnt
    userio_wait_cnt
    user_wait_time_pct
    As a matter of fact not as much as in chapter "4.56 Wait Bottlenecks". Looks to me if not all of those metrics are really available in the MGMT$... views of the repository of the GridControl.
    Is that correct or do I just look wrong?
    Any help will be appriciated
    Rgds
    JH

    Nobody replied - therefore I mark it as answered!

Maybe you are looking for

  • My Ipod nano 4th generation will not charge or turn on! Please help

    I bought a refurbished Ipod nano 4th generation 2 weeks ago from a good reliable ebay seller. It arrived and was in great working order with no issues what so ever. However this evening I realised it was out of battery, so I went to charge it and not

  • Internal table to a text file in Unix

    Hi , I was trying to download data from Internal table to a text file in Unix. How do I do this? One more thing is the fields on each record of the file should be delimited by the”!” (pipe) character. Any one please me with the code. Thanks

  • Image XObject using /F file specification

    We are having a problem where instead of the stream data being on the Image XObject itself, we want to use a stream that is an attached file (we are manually writing the pdf file at this point using internal tools).  Inevitably, it keeps trying to ge

  • INDESIGN PDFS

    Hi all, Wondering if you can help. I have recently started using InDesign. I have just created a look book for my business which I now intend to PDF and email to my customers. I am though having problems when I convert to PDF. Some of the images are

  • Files dragged or added to Finder not staying put

    In OSX Lion when I drag a file to the Finder side bar I cannot drop it there. If I highlight a file in a finder window and add to the side bar using Command-T it will be added under Favorites but will have disappeared next time the Finder is opened.