Maintenace Report RSPO0041 blocks all batch queues

Hi there,
a default maintenance report RSPO0041 (reorg of spool) on my app sever seems to hang and blocks all BTC queues. This can only be solved by restarting the app server.
I deleted the sheduled job definitions but the job started again. I do not know which definition has started this job.
Any Ideas?
This is only a test server and I do not use spool files.
Thank you in advance,
Andi
10     BTC     2572     läuft          ja                    551699     SAPLSTUP     000     DDIC          
11     BTC     3660     läuft          ja                    465297     SAPLSDI0     000     DDIC     Direktes Lesen     TADIR
12     BTC     2752     läuft          ja                    378894     SAPLSDI0     000     DDIC     Direktes Lesen     TADIR
13     BTC     2292     läuft          ja                    292492     SAPLSDI0     000     DDIC     Direktes Lesen     TADIR
14     BTC     4100     läuft          ja                    206089     SAPLSDI0     000     DDIC     Direktes Lesen     TADIR
15     BTC     3828     läuft          ja                    119686     SAPLSDI0     000     DDIC     Direktes Lesen     TADIR
16     BTC     4472     läuft          ja                    39404     RSPO0041     000     OERDING     Direktes Lesen     TSP01
17     BTC     1024     läuft          ja                    33284     SAPLSDI0     000     DDIC     Direktes Lesen     TADIR
Edited by: A. Hartmann on Apr 27, 2009 10:52 AM

Andi,
Did you find all RSPO0041 batch jobs in SM37, searching for all job status, * for after event, and future dates?
Delete all entries.
Also, as a test, you could change your profile to have no Batch processes and restart.  Then you could find and delete all RSPO0041 jobs without them running.  Then add back the Batch processes.
You may also want upload a trace on the batch process.
Good luck!
PJ

Similar Messages

  • Run_report_object in forms10g: Reports Server only accept batch jobs

    Hi all,
    We've migrated an old forms application to forms 10g R1. To run report objects from the form applications, I use the following code to run reports with a report server (10g):
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_FILENAME,'c:\path\to\report.rep'');
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_SERVER,'repserver');
    l_rep_return := RUN_REPORT_OBJECT(l_rep_id, pl_id);
    The parameter pl_id is a pre-filled parameter list, and the parameter l_rep_id is the report_object, which was added to the reports-node in the fmb.
    By running this code, the reportserver successfully executes the report and via the report server queue I can open the created PDF file.
    But, as the report_comm_mode is set to ASYNCHRONOUS, the code doesn't wait until the reportserver has finished the execution of the report, so it's impossible to show the report by web.show_document. So I've set the report_comm_mode to SYNCHRONOUS:
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_FILENAME,'c:\path\to\report.rep'');
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_SERVER,'repserver');
    l_rep_return := RUN_REPORT_OBJECT(l_rep_id, pl_id);
    But when I executes this code, the execution of the report failes, and the following error code is shown in the report server queue:
    Terminated with error: REP-188: Reports Server only accept batch jobs
    But as you can see, the execution_mode is set to BATCH, so that is not the problem.
    Is there anyone who can help me to fix this problem?
    Regards,
    Jeroen

    I just sent you an e-mail, I hope it helps!

  • How to generate Inventory Report to display all details at end of mon/yr?

    Hi Guys..
    I would like to know how we can generate a
    Inventory report to display all inventory details at the end of every
    month or year?
    Also, another question.How can we create a PO past delivery date report?
    Any help is appreciated.
    Thanks,
    Sri Harsha;

    Hi,
    Pls the code here-
    TYPES :
            BEGIN OF ty_mard,
              matnr TYPE matnr,
              werks TYPE werks_d,
              lgort TYPE lgort_d,
              labst TYPE labst,
              retme TYPE retme,
              umlme TYPE umlme,
            END OF ty_mard.
    TYPES :
           BEGIN OF ty_mska,
              matnr TYPE matnr,
              kalab TYPE labst,
              vbeln TYPE vbeln,
              posnr TYPE posnr,
            END OF ty_mska.
    TYPES :
            BEGIN OF ty_vbap,
              matnr TYPE matnr,
              kwmeng TYPE kwmeng,
              pstyv TYPE pstyv,
            END OF ty_vbap.
    TYPES :
            BEGIN OF ty_mbew,
              matnr TYPE matnr,
              salk3 TYPE salk3,
              stprs TYPE stprs,
            END OF ty_mbew.
    TYPES :
            BEGIN OF ty_mchb,
              matnr TYPE matnr,
              charg TYPE charg_d,
            END OF ty_mchb.
    TYPES :
            BEGIN OF ty_mara,
              matnr TYPE matnr,
              mfrpn TYPE mfrpn,
            END OF ty_mara.
    TYPES :
           BEGIN OF ty_makt,
             matnr TYPE matnr,
             maktx TYPE maktx,
           END OF ty_makt.
    TYPES :
            BEGIN OF ty_ekpo,
             matnr TYPE matnr,
             netpr TYPE bprei,
             meins TYPE bstme,
            END OF ty_ekpo.
    DATA :
           BEGIN OF final OCCURS 0,
            matnr LIKE mard-matnr,
            maktx LIKE makt-maktx,
            werks LIKE mard-werks,
            lgort LIKE mard-lgort,
            mfrpn LIKE mara-mfrpn,
            usp LIKE mbew-stprs,
            labst LIKE mard-labst,
            salk3 LIKE mbew-salk3,
            kalab LIKE mska-kalab,
            vbeln LIKE mska-vbeln,
            sov LIKE ekpo-netpr,
            uom LIKE ekpo-meins,
            posnr LIKE mska-posnr,
            pstyv LIKE vbap-pstyv,
            kwmeng LIKE vbap-kwmeng,
            retme LIKE mard-retme,
            umlme LIKE mard-umlme,
           END OF final.
    DATA :
          BEGIN OF itab OCCURS 0,
            matnr LIKE mard-matnr,
            werks LIKE mard-werks,
            lgort LIKE mard-lgort,
            labst LIKE mard-labst,
            retme LIKE mard-retme,
            umlme LIKE mard-umlme,
            charg LIKE mchb-charg,
          END OF itab.
    DATA :
           i_mard TYPE STANDARD TABLE OF ty_mard,
           i_mbew TYPE STANDARD TABLE OF ty_mbew,
           i_mchb TYPE STANDARD TABLE OF ty_mchb,
           i_mara TYPE STANDARD TABLE OF ty_mara,
           i_vbap TYPE STANDARD TABLE OF ty_vbap,
           i_mska TYPE STANDARD TABLE OF ty_mska,
           i_makt TYPE STANDARD TABLE OF ty_makt,
           i_ekpo TYPE STANDARD TABLE OF ty_ekpo.
    DATA :
           wa_mard TYPE ty_mard,
           wa_mbew TYPE ty_mbew,
           wa_mchb TYPE ty_mchb,
           wa_mara TYPE ty_mara,
           wa_vbap TYPE ty_vbap,
           wa_mska TYPE ty_mska,
           wa_makt TYPE ty_makt,
           wa_ekpo TYPE ty_ekpo.
    DATA :
           sov_total TYPE currency,
           urestrict_total type currency.
    *Select options:
    SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE text-001.
    SELECT-OPTIONS : s_matnr FOR gf_matnr, " Material No.
                     s_werks FOR gf_werks, " Plant
                     s_lgort FOR gf_lgort, " Storage Location
                     s_charg FOR gf_charg. " Batch No.
    SELECTION-SCREEN END OF BLOCK a.
    *Validation of Selection Fields
    AT SELECTION-SCREEN.
      IF     s_matnr IS INITIAL
         AND s_werks IS INITIAL
         AND s_lgort IS INITIAL
         AND s_charg IS INITIAL.
        MESSAGE e001(zcir).
      ENDIF.
    *Function Module for Checking the inputs
      CALL FUNCTION 'MMIM_ENTRYCHECK_MAIN'
        TABLES
          it_matnr = s_matnr
          it_werks = s_werks
          it_lgort = s_lgort.
    *Checking of input values for S_CHARG
      IF NOT s_charg-low IS INITIAL OR NOT s_charg-high IS INITIAL.
        SELECT charg FROM mchb into table LT_charg WHERE charg IN s_charg.
        IF sy-subrc NE 0.
          MESSAGE e002(zcir).
        ENDIF.
        clear wa_mchb.
      ENDIF.
    *TOP OF PAGE
    TOP-OF-PAGE.
      FORMAT COLOR COL_HEADING.
      WRITE sy-uline(105).
      WRITE :/ '|',2 text-101, "MATERIAL NO:
             16 text-102,    "MATERIAL DESCRIPTION
             52 text-103,    "PLANT
             60 text-104,    "STORAGE LOCATION.
             74 text-105,    "MANUFACTURE PARTNER NO.
             88 text-106,    "VALUATED STOCK.
             95 text-107.    "STANDARD PRICE.
            105 '|'.
      FORMAT COLOR COL_GROUP.
      WRITE :/ '|',2 text-108, " UNRESTRCTED STOCK
              16 text-109,     " SALES DOCUMENT NO:
              20 text-110,     " ITEM NO:
              27 text-111,     " UNIT
              32 text-112,     " NET VALUE
              39 text-113,     " ITEM CATEGRY
              50 text-114,     " QUANTITY
              60 text-115,     " BLOCKED STOCK
              79 text-116,     " TOTAL STOCK
              95 text-117.     " STOCK TRANSFER
             87 '|'.
      FORMAT COLOR OFF.
      WRITE sy-uline(105).
    *START OF SELECTION
    START-OF-SELECTION.
      IF NOT s_matnr IS INITIAL
        OR NOT s_werks IS INITIAL
        OR NOT s_lgort IS INITIAL.
        PERFORM select1.
      ELSEIF NOT s_charg IS INITIAL.
        PERFORM select2.
      ELSEIF NOT s_matnr IS INITIAL
        OR NOT s_werks IS INITIAL
        OR NOT s_lgort IS INITIAL
        AND NOT s_charg IS INITIAL.
        PERFORM select3.
      ENDIF.
      PERFORM final1.
      PERFORM collect.
    *END OF SELECTION
    END-OF-SELECTION.
      LOOP AT LT_FINAL.
        FORMAT COLOR COL_KEY.
        WRITE :/2 LT_FINAL-matnr,
               14 LT_FINAL-maktx,
               52 LT_FINAL-werks,
               58 LT_FINAL-lgort,
               69 LT_FINAL-mfrpn,
               73 LT_FINAL-labst,
               87 LT_FINAL-usp.
        FORMAT COLOR OFF.
        FORMAT COLOR COL_NORMAL.
        WRITE :/2 LT_FINAL-kalab,
                14 LT_FINAL-vbeln,
                17 LT_FINAL-posnr,
                24 LT_FINAL-uom,
                28 LT_FINAL-sov,
                36 LT_FINAL-pstyv,
                46 LT_FINAL-kwmeng,
                57 LT_FINAL-retme,
                65 LT_FINAL-salk3,
                75 LT_FINAL-umlme.
      ENDLOOP.
      FORMAT COLOR COL_TOTAL.
      WRITE :/2 text-119,     " TOTAL VALUE
              28 V_sov_total,
              87 V_urestrict_total.
      FORMAT COLOR OFF.
    Form Name: select1
    text: Population of internal table LT_MARD and using LT_MARD populating
          the internal table LT_MCHB
    FORM select1.
      SELECT matnr
             werks
             lgort
             labst
             retme
             umlme
             FROM mard
             INTO TABLE LT_mard
             WHERE matnr IN s_matnr
             AND werks IN s_werks
             AND lgort IN s_lgort.
      SELECT matnr
             charg
             FROM mchb
             INTO TABLE LT_mchb
             FOR ALL ENTRIES IN LT_mard
             WHERE matnr EQ LT_mard-matnr.
    ENDFORM.                                                    "select1
    Form Name: select2
    text:Population of internal table LT_MCHB and using LT_MCHB populating
         LT_MARD
    FORM select2.
      SELECT matnr
             charg
             FROM mchb
             INTO TABLE LT_mchb
             WHERE charg IN s_charg.
      SELECT matnr
             werks
             lgort
             labst
             retme
             umlme
             FROM mard
             INTO TABLE LT_mard
             FOR ALL ENTRIES IN LT_mchb
             WHERE matnr EQ LT_mchb-matnr.
    ENDFORM.                                                    "select2
    Form Name: select3
    text: Population of internal table LT_TAB using inner join and then
          populating internal tables LT_MARD and LT_MCHB
    FORM select3.
      SELECT a~matnr
             a~werks
             a~lgort
             a~labst
             a~retme
             a~umlme
             b~charg
             INTO CORRESPONDING FIELDS OF TABLE LT_TAB
             FROM mard AS a
             INNER JOIN mchb AS b ON bmatnr = amatnr
             WHERE a~matnr IN s_matnr
             OR a~werks IN s_werks
             OR a~lgort IN s_lgort
             AND b~charg IN s_charg.
      LOOP AT LT_TAB.
        MOVE: LT_TAB-matnr TO wa_mard-matnr,
              LT_TAB-werks TO wa_mard-werks,
              LT_TAB-lgort TO wa_mard-lgort,
              LT_TAB-labst TO wa_mard-labst,
              LT_TAB-retme TO wa_mard-retme,
              LT_TAB-umlme TO wa_mard-umlme,
              LT_TAB-matnr TO wa_mchb-matnr,
              LT_TAB-charg TO wa_mchb-charg.
        APPEND wa_mard TO LT_mard.
        APPEND wa_mchb TO LT_mchb.
      ENDLOOP.
    ENDFORM.                                                    "select3
    Form Name:collect
    text:population of LT_FINAL internal table-LT_FINAL using other internal
          tables
    FORM collect.
      LOOP AT LT_mard INTO wa_mard.
        MOVE : wa_mard-matnr TO LT_FINAL-matnr,
               wa_mard-werks TO LT_FINAL-werks,
               wa_mard-lgort TO LT_FINAL-lgort,
               wa_mard-labst TO LT_FINAL-labst,
               wa_mard-retme TO LT_FINAL-retme,
               wa_mard-umlme TO LT_FINAL-umlme.
        READ TABLE LT_makt INTO wa_makt WITH KEY matnr = wa_mard-matnr.
        MOVE wa_makt-maktx TO LT_FINAL-maktx.
        READ TABLE LT_mska INTO wa_mska WITH KEY matnr = wa_mard-matnr.
        MOVE: wa_mska-kalab TO LT_FINAL-kalab,
              wa_mska-vbeln TO LT_FINAL-vbeln,
              wa_mska-posnr TO LT_FINAL-posnr.
        READ TABLE LT_vbap INTO wa_vbap WITH KEY matnr = wa_mard-matnr.
        MOVE: wa_vbap-kwmeng TO LT_FINAL-kwmeng.
        READ TABLE LT_mara INTO wa_mara WITH KEY matnr = wa_mard-matnr.
        MOVE : wa_mara-mfrpn TO LT_FINAL-mfrpn.
        READ TABLE LT_mbew INTO wa_mbew WITH KEY matnr = wa_mard-matnr.
      Calculation of Unrestricted value
        LT_FINAL-usp = wa_mard-labst * wa_mbew-stprs.
        V_urestrict_total = V_urestrict_total + ( wa_mard-labst * wa_mbew-stprs ).
       CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
         EXPORTING
           input         = V_urestrict_total
        IMPORTING
          OUTPUT        = V_urestrict_total
        MOVE wa_mbew-salk3 TO LT_FINAL-salk3.
        READ TABLE LT_ekpo INTO wa_ekpo WITH KEY matnr = wa_mard-matnr.
        MOVE wa_ekpo-meins TO LT_FINAL-uom.
      Calculation of Sales Order Value
        LT_FINAL-sov = wa_mska-kalab * wa_ekpo-netpr.
        V_sov_total = V_sov_total + ( wa_mska-kalab * wa_ekpo-netpr ).
        APPEND LT_FINAL.
      ENDLOOP.
    ENDFORM.                    "collect
    *Form Name:FINAL1
    *Population of all the internal tables
    FORM FINAL1.
      SELECT matnr
             kalab
             vbeln
             posnr
             FROM mska
             INTO TABLE LT_mska
             FOR ALL ENTRIES IN LT_mard
             WHERE matnr EQ LT_mard-matnr.
      SELECT matnr
             kwmeng
             pstyv
             FROM vbap
             INTO TABLE LT_vbap
             FOR ALL ENTRIES IN LT_mard
             WHERE matnr EQ LT_mard-matnr.
      SELECT matnr
             salk3
             stprs
             FROM mbew
             INTO TABLE LT_mbew
             FOR ALL ENTRIES IN LT_mard
             WHERE matnr EQ LT_mard-matnr.
      SELECT matnr
             mfrpn
             FROM mara
             INTO TABLE LT_mara
             FOR ALL ENTRIES IN LT_mard
             WHERE matnr EQ LT_mard-matnr.
      SELECT matnr
             maktx
             FROM makt
             INTO TABLE LT_makt
             FOR ALL ENTRIES IN LT_mard
             WHERE matnr EQ LT_mard-matnr.
      SELECT matnr
             netpr
             FROM ekpo
             INTO TABLE LT_ekpo
             FOR ALL ENTRIES IN LT_mard
             WHERE matnr EQ LT_mard-matnr.
    ENDFORM.                                                    "final1
    Reward if helpful.
    Chandralekha

  • Sessions from apex are blocking by batch job

    Hi All,
    In my 10.2.0.3 linux with apex 3.1.1
    We have a batch job using a package,that is doing DML operation in tables depends upon some condition.And this job will run daily 5 hours.
    The sessions from apex that is also using some procedures in the same package.Some days the sessions from apex are blocking by batch job.While blocking wait event from apex sessions are 'library cache pin'.Once the batch job completes then automatically removes the block.
    What may be the reason?
    Thanks in Advance,
    Sunil

    The query against v$lock is not relevant if the blocked sessions are waiting on "library cache pin" - so you seem to have two separate problems.
    If you have a session waiting on another session's transaction slot in mode 4 there are several possible causes - often related to indexes, but there are a couple of "internal" problems as well. If you see this locking issue again some of the simplest things to check for would be session 1 inserting (without commit) some rows in a table with a unique key, and session 2 then trying to insert a duplicate. Session 2 has to wait for session 1 to commit or rollback before deciding whether to return a "duplicate key" error, or to continue processing.
    The "library cache pin" waits suggest that the package had become invalid while the batch job is running it, and one of the Apex jobs is trying to recompile it. But if the batch job is currently running (hence pinning) the "executable", then the Apex job can't get the necessary exlusive pin until the batch job ends and releases its pin.
    Read the notes in the script $ORACLE_HOME/rdbms/admin/catblock.sql about creating views that let you see more of the information about library cache (KGL) locks and pins.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
    "Science is more than a body of knowledge; it is a way of thinking"
    Carl Sagan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • I am recieving calls from a solicitor. Show up as no caller Id. I want to block all calls that do not show caller Id. Can I do that? I am on the do not call list

    How do I block all in coming calls that do not show on my caller Id. Phone says "no caller id" This particular call is from a place selling septic tank cleaner. They leave an automated voice mail. They are calling me over and over. I am on the national do not call list but that's no help. Because the caller id doesn't show anything I can't even report them.
    I remember in the past calling a number and before my call would go thru I would have to enter my phone number so the party I was calling knew who was calling them. That is what I want to do. I want to block all calls from "no caller id" "number unavailable" Just FYI my phone is an IPHONE 5 and I am on Verizon.
    Any help would be appreciated.
    Thanks

        itbitybob, good day!
    Thank you for taking the time to reach out to us today. I know how frustrating it can be getting phone calls from "no caller id" numbers. We do have an option that is called Family Base that will allow you to block unknown numbers, private numbers, or caller id. This link will provide you with the full details of this option. http://vz.to/1gIklla I hope this is able to answer your question. If you have further questions please feel free to reach back out to us at any time.
    KevinR_VZW
    Please follow us on Twitter @VZWSupport 

  • Blocking messages in Queue

    Hi All,
    We have two different interfaces for different projects . If we get any error for first interface it will block
    all the messages in the Queue of other interfaces. I unlocked a week back  using SMQ2 but again the same problem today.
    Any idea to outcome of thise issue .
    Thanks....

    Hi,
    This is bound to happen, if messages are stuck in one queue then all other messages in sequence of the same queue will get blocked and unless you clear the queues, they won't be processed.
    You can use EOIO(Exactly once in order) service for the interface for which messages are failing.
    Here you have to mention the queue name for this particular interface, so that all the messages of it will take the same queue.
    And all other messages of other interface will take different queue and will  get processed.
    -Supriya.

  • Standard report to see the Batch numbers for the materials

    Hi Gur's
    I am searching for a standard report that would give out details from the purchase order. The details that i need are as following fields 1. Purchase order batch, 2. Purchase order number 3. material
    can you any one help me on this
    regards
    AM

    Hi Teja
    You can use T-Code - MB51, here you can generate report material wise purchase order with batch numbers and here to see stock in so give movement type 101 to see all Batches received against purchase orders
    regards
    madhu

  • Stored Procedure for Batch Number Format and Block Duplicate Batch Number

    Hi Experts !
    I am new one in forum asking question.. I want Stored procedure for Batch Number Format. I want fix one Batch number format in Stored Procedure.
    Example :
    My Batch number format Like  BATCH00001 - It should be first five digit is text format and next five is Numeric.
    IF create Goods receipt PO or Goods receipt stage I create batch number like BATCH 00001 or any other number means don't add that document and also duplicated batch number also does not allowed. please give me the solutions. I am sorry for my bad english .

    Dear Nagarajan K.
                         Thanks for your replay ..
    IF @transaction_type IN ('A','U') AND (@object_type = '106' )
    BEGIN
    set @item = LEFT( @list_of_cols_val_tab_del, CHARINDEX(CHAR(9),  @list_of_cols_val_tab_del,1) - 1)
    set @batch = substring(@list_of_cols_val_tab_del, len(@item)+1, (CHARINDEX(CHAR(9),  @list_of_cols_val_tab_del,len(@item)+2)) - (len(@item)+1))
    --set @base =( select basetype from ibt1 where batchnum = ltrim(rtrim(replace(@batch,char(9),''))))
    set @count = (select count(*) from oibt quantity > 0 and where  batchnum = ltrim(rtrim(replace(@batch,char(9),''))))
    if @count > 1
    begin
    set @error = 1
    set @error_message = 'Please enter different Batch Code for batch ''' + @batch + ''' for item ' + @item 
    select @error, @error_message
    END
    END
                  I used above Stored Procedure. here we can use one batch number for different item but  i want to block one batch we should use one item and one time only after than we never use that batch number for same item and another item.
             After that I want format for Batch, we should follow unique Batch number for all items.

  • Report to retrieve all Z_Programs

    Dear Gurus,
    I am looking for a report which retrieves all the Z_Programs from the system. I have checked the table TRDIR and TADIR and tried looking through the Where used list but couldnt fine any Report which retrieves all the Z_Programs.
    Can anyone help me for the same... Thanks in advance
    Regards
    Pr

    Hi
    This is something I put together a little while ago, you may need to remove references to the Z messages etc. Please reward points if it helps you.
       NAME        : GGL: Program List
       DESCRIPTION : List of Programs/Reports by GGL
                 M O D I F I C A T I O N   L O G
       CREATED BY : Brad Gorlicki
       DATE       : 10 OCTOBER 2007
    REPORT ZGGLPROGRAMS MESSAGE-ID ZEW01.
    TABLE DEFINITION
    TABLES: TRDIR,     "Program Names
            TSTC,      "SAP Transaction Codes
            TSTCT.     "Transaction Code Text
    INTERNAL TABLE DEFINITION
    Program Names
    DATA: BEGIN OF I_TRDIR OCCURS 0,
            NAME LIKE TRDIR-NAME,
            CNAM LIKE TRDIR-CNAM,
            CDAT LIKE TRDIR-CDAT,
            UNAM LIKE TRDIR-UNAM,
            UDAT LIKE TRDIR-UDAT,
            TCODE LIKE TSTC-TCODE,
            TTEXT LIKE TSTCT-TTEXT,
            Z TYPE C,
          END OF I_TRDIR.
    SAP Transaction Codes
    DATA: BEGIN OF I_TSTC OCCURS 0,
            TCODE LIKE TSTC-TCODE,
            PGMNA LIKE TSTC-PGMNA,
          END OF I_TSTC.
    Transaction Code Text
    DATA: BEGIN OF I_TSTCT OCCURS 0,
            TCODE LIKE TSTCT-TCODE,
            TTEXT LIKE TSTCT-TTEXT,
          END OF I_TSTCT.
    Search Criteria table
    DATA: BEGIN OF I_SEARCHDATA OCCURS 0,
            NAME(50) TYPE C,
          END OF I_SEARCHDATA.
    General Variables
    DATA: BEGIN OF VAR,
             FOUND(1)             TYPE C,            "Search Found
             FIELD(80)            TYPE C,
             POS                  TYPE I,
          END OF VAR.
    ABAP LIST VIEWER DEFINITIONS
    TYPE-POOLS: SLIS.
    DATA: FIELDCAT      TYPE SLIS_T_FIELDCAT_ALV,
          FIELDCAT_LN   LIKE LINE OF FIELDCAT.
    DATA: COL_POS TYPE I.
    DATA: GS_LAYOUT   TYPE SLIS_LAYOUT_ALV.
    DATA: EVENTS        TYPE SLIS_T_EVENT.
    CONSTANTS : C_USER_COMMAND TYPE SLIS_FORMNAME VALUE 'USER_COMMAND'.
    SELECTION SCREEN
    *     SELECTION CRITERIA
    SELECTION-SCREEN BEGIN OF BLOCK 01 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: S_NAME  FOR TRDIR-NAME.
    SELECT-OPTIONS: S_CNAM  FOR TRDIR-CNAM.
    SELECT-OPTIONS: S_TCODE FOR TSTC-TCODE.
    SELECTION-SCREEN END OF BLOCK 01.
    SELECTION-SCREEN BEGIN OF BLOCK BOX2 WITH FRAME TITLE TEXT-002.
    PARAMETERS: P_SEARCH(80).
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN COMMENT 1(79) T1.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN COMMENT 2(79) T2.
    SELECTION-SCREEN END OF BLOCK BOX2.
    EVENT: INITIALIZATION
    *     PRE PROCESSING
    AT SELECTION-SCREEN OUTPUT.
      T1 = 'A multiple keyword search requires a comma seperator ie. Technical, Help, SAP'.
      T2 = 'NB! - If ANY of the keywords are found, record(s) will be displayed'.
    EVENT     START OF SELECTION
    START-OF-SELECTION.
      PERFORM DOCUMENT_SEARCH.
      PERFORM F????_FETCH_DATA.
      PERFORM F????_BUILD_DATA.
      PERFORM F????_BUILD_ALV_COLUMNS.
      PERFORM F????_START_LIST_VIEWER.
    FORM          FETCH_DATA
    FORM: F????_FETCH_DATA.
    If no transaction code entered select all programs
    first then select the transaction code
      IF S_TCODE[] IS INITIAL.
        SELECT NAME CNAM CDAT UNAM UDAT
          FROM TRDIR
          INTO CORRESPONDING FIELDS OF TABLE I_TRDIR
         WHERE NAME IN S_NAME
           AND CNAM IN S_CNAM
           AND NAME LIKE 'Z%'.
        SORT I_TRDIR BY NAME.
    Select all Transaction Codes
        SELECT TCODE PGMNA
          FROM TSTC
          INTO CORRESPONDING FIELDS OF TABLE I_TSTC
           FOR ALL ENTRIES IN I_TRDIR
         WHERE PGMNA = I_TRDIR-NAME
           AND TCODE IN S_TCODE.
        SORT I_TSTC BY PGMNA.
    If there was a Transaction Code entered select this first
      ELSEIF NOT S_TCODE[] IS INITIAL.
        SELECT TCODE PGMNA
          FROM TSTC
          INTO CORRESPONDING FIELDS OF TABLE I_TSTC
         WHERE TCODE IN S_TCODE.
        SORT I_TSTC BY PGMNA.
        IF NOT I_TSTC[] IS INITIAL.
    If Transaction Code entered select all programs related now
          SELECT NAME CNAM CDAT UNAM UDAT
            FROM TRDIR
            INTO CORRESPONDING FIELDS OF TABLE I_TRDIR
             FOR ALL ENTRIES IN I_TSTC
           WHERE NAME = I_TSTC-PGMNA
             AND CNAM IN S_CNAM
             AND NAME IN S_NAME.
          SORT I_TRDIR BY NAME.
        ENDIF.
      ENDIF.
    Select Transaction Code Text
      SELECT TCODE TTEXT
        FROM TSTCT
        INTO CORRESPONDING FIELDS OF TABLE I_TSTCT
         FOR ALL ENTRIES IN I_TSTC
       WHERE TCODE = I_TSTC-TCODE
         AND SPRSL = 'E'.
      SORT I_TSTCT BY TCODE.
    ENDFORM.                    "F????_FETCH_DATA
    FORM          BUILD_DATA
    FORM: F????_BUILD_DATA.
    Read Transaction Codes and Text
      LOOP AT I_TRDIR.
        READ TABLE I_TSTC WITH KEY PGMNA = I_TRDIR-NAME
                                          BINARY SEARCH.
        I_TRDIR-TCODE = I_TSTC-TCODE.
        IF SY-SUBRC = 0.
          READ TABLE I_TSTCT WITH KEY TCODE = I_TRDIR-TCODE
                                            BINARY SEARCH.
          I_TRDIR-TTEXT = I_TSTCT-TTEXT.
          IF NOT I_SEARCHDATA[] IS INITIAL.
            LOOP AT I_SEARCHDATA.
    Search for transaction Text
              SEARCH I_TRDIR-TTEXT FOR I_SEARCHDATA-NAME.
              IF SY-SUBRC NE 0.
                DELETE I_TRDIR.
                VAR-FOUND = 'X'.
              ELSE.
                CLEAR VAR-FOUND.
              ENDIF.
            ENDLOOP.
          ENDIF.
        ENDIF.
    Check record is to be modified
        IF VAR-FOUND = ''.
        MODIFY I_TRDIR TRANSPORTING TCODE TTEXT.
        ENDIF.
        IF NOT I_SEARCHDATA[] IS INITIAL.
    Check the program has transaction code text
          IF I_TRDIR-TTEXT = SPACE.
            DELETE I_TRDIR.
          ENDIF.
        ENDIF.
        CLEAR: I_TRDIR, I_TSTC, I_TSTCT.
      ENDLOOP.
    ENDFORM.                    "F????_BUILD_DATA
    FORM: DOCUMENT_SEARCH
    *     CREATE KEYWORDS TO SEARCH FOR INTO INTERNAL TABLE
    FORM DOCUMENT_SEARCH .
      IF P_SEARCH CS ',' AND P_SEARCH NE ','.
        TRANSLATE P_SEARCH TO UPPER CASE.
    Multiple search
        WHILE P_SEARCH <> ''.
          IF P_SEARCH CS ','.
            VAR-FIELD = P_SEARCH+0(SY-FDPOS).
            I_SEARCHDATA-NAME = VAR-FIELD.
            CONDENSE I_SEARCHDATA-NAME NO-GAPS.
            APPEND I_SEARCHDATA.
            VAR-POS = SY-FDPOS + 1.
            P_SEARCH = P_SEARCH+VAR-POS.
          ELSEIF P_SEARCH NE SPACE.
            I_SEARCHDATA-NAME = P_SEARCH.
            CONDENSE I_SEARCHDATA-NAME NO-GAPS.
            APPEND I_SEARCHDATA.
            CLEAR P_SEARCH.
          ENDIF.
        ENDWHILE.
      ELSEIF NOT P_SEARCH IS INITIAL.
    Single search
        I_SEARCHDATA-NAME = P_SEARCH+0(SY-FDPOS).
        APPEND I_SEARCHDATA.
      ENDIF.
    ENDFORM.                    " document_search
    FORM          BUILD_EVENT_TOPOFPAGE
    FORM BUILD_EVENT_TOPOFPAGE USING LT_EVENTS TYPE SLIS_T_EVENT.
      DATA: LS_EVENTS TYPE SLIS_ALV_EVENT.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          I_LIST_TYPE = 0
        IMPORTING
          ET_EVENTS   = LT_EVENTS.
    Double Click Event
      READ TABLE EVENTS WITH KEY NAME = SLIS_EV_USER_COMMAND
                        INTO LS_EVENTS.
      IF SY-SUBRC = 0.
        MOVE C_USER_COMMAND TO LS_EVENTS-FORM.
        APPEND LS_EVENTS TO LT_EVENTS.
      ENDIF.
    ENDFORM.                    "BUILD_EVENT_TOPOFPAGE
    FORM          USER_COMMAND
    Subroutine for at user command for calling transaction
    FORM USER_COMMAND USING P_UCOMM LIKE SY-UCOMM
    LS_SELFIELD TYPE SLIS_SELFIELD.
      CASE P_UCOMM.
        WHEN '&IC1'.                                           "Double Click
          READ TABLE I_TRDIR INDEX LS_SELFIELD-TABINDEX.
          IF SY-SUBRC = 0.
            SET PARAMETER ID 'RID' FIELD I_TRDIR-NAME.
            CALL TRANSACTION 'SE38' AND SKIP FIRST SCREEN.
          ENDIF.
      ENDCASE.
    ENDFORM.                    "generate_usercommand
    FORM          BUILD_ALV_COLUMNS
    FORM F????_BUILD_ALV_COLUMNS.
      CLEAR FIELDCAT_LN.
      ADD 1 TO COL_POS.
      FIELDCAT_LN-REF_TABNAME = 'TRDIR'.
      FIELDCAT_LN-FIELDNAME = 'NAME'.
      FIELDCAT_LN-KEY = 'X'.
      FIELDCAT_LN-COL_POS = COL_POS.
      APPEND FIELDCAT_LN TO FIELDCAT.
      CLEAR FIELDCAT_LN.
      ADD 2 TO COL_POS.
      FIELDCAT_LN-REF_TABNAME = 'TRDIR'.
      FIELDCAT_LN-FIELDNAME = 'CNAM'.
      FIELDCAT_LN-COL_POS = COL_POS.
      APPEND FIELDCAT_LN TO FIELDCAT.
      CLEAR FIELDCAT_LN.
      ADD 3 TO COL_POS.
      FIELDCAT_LN-REF_TABNAME = 'TRDIR'.
      FIELDCAT_LN-FIELDNAME = 'CDAT'.
      FIELDCAT_LN-COL_POS = COL_POS.
      APPEND FIELDCAT_LN TO FIELDCAT.
      CLEAR FIELDCAT_LN.
      ADD 4 TO COL_POS.
      FIELDCAT_LN-REF_TABNAME = 'TRDIR'.
      FIELDCAT_LN-FIELDNAME = 'UNAM'.
      FIELDCAT_LN-COL_POS = COL_POS.
      APPEND FIELDCAT_LN TO FIELDCAT.
      CLEAR FIELDCAT_LN.
      ADD 5 TO COL_POS.
      FIELDCAT_LN-REF_TABNAME = 'TRDIR'.
      FIELDCAT_LN-FIELDNAME = 'UDAT'.
      FIELDCAT_LN-COL_POS = COL_POS.
      APPEND FIELDCAT_LN TO FIELDCAT.
      CLEAR FIELDCAT_LN.
      ADD 6 TO COL_POS.
      FIELDCAT_LN-REF_TABNAME = 'TSTC'.
      FIELDCAT_LN-FIELDNAME = 'TCODE'.
      FIELDCAT_LN-COL_POS = COL_POS.
      APPEND FIELDCAT_LN TO FIELDCAT.
      CLEAR FIELDCAT_LN.
      ADD 7 TO COL_POS.
      FIELDCAT_LN-REF_TABNAME = 'TSTCT'.
      FIELDCAT_LN-FIELDNAME = 'TTEXT'.
      FIELDCAT_LN-COL_POS = COL_POS.
      APPEND FIELDCAT_LN TO FIELDCAT.
    ENDFORM.                    " F????_BUILD_ALV_COLUMNS
    FORM          START_LIST_VIEWER
    FORM F????_START_LIST_VIEWER .
      PERFORM BUILD_EVENT_TOPOFPAGE USING EVENTS[].
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM = 'ZBRADTEST4'
          I_GRID_TITLE       = 'GGL Program List'
          IS_LAYOUT          = GS_LAYOUT
          IT_FIELDCAT        = FIELDCAT
          IT_EVENTS          = EVENTS[]
          I_SAVE             = 'A'
        TABLES
          T_OUTTAB           = I_TRDIR.
    ENDFORM.                    " F????_START_LIST_VIEWER

  • How to block all goods movements incurs to a warehouse?

    Hi all,
    I am wondering if you can provide me a way, a transaction code on how to perform the following?
    How to block all goods movements incurs to a warehouse.
    I am trying to execute LX23 (Stock comparison IM/WM) and try to remove the differences using batch input file.
    SAP document indicates the prerequisite to use this feature is that all inventory movements to the warehouse be blocked before clearing the differences (i.e. adapt the IM figure to that of WM figure).
    Appreciates.
    Daniel

    I think the requirement here is to block inventory movement (GR, GI, PCN etc.) to storage locations which are connected to your warehouse. Blocking movement on storage types in your warehouse does not serve this purpose.
    Is it really necessary to block inventory movement when running LX2? LX23 eventually will need to correct the stock via IM posting at the end.
    Anyway, if storage location level authorisation check is not currently in use in your system (OLMB -> Authorisation Management -> Authorisation check on storage location), you may try to activate authorisation check on storage locations connected to your warehouse so that those who has no M_MSEG_LGO assigned won't be able to post inventory movement to the warehouse.

  • Reg blocking of batch on expiry date

    Dear all,
    What are the selections to be done in QA07 for blocking a batch on expiry date which is 3 days from today, we also have batch status active.
    Thanks in advance
    Madhav

    Hi
    In QA07 select
    1. Block batch at lot creation.
    2.Initial Run  in days : 3 or maore
    3.click on the check box of Block batch
    Also Mainatin shelf life data in MM and keep expiry date 3 days later.
    schedule the batch run in the background.
    I hope this will add some values
    Regards
    Sujit

  • [ Server Side Cookie ] Browser blocked all cookie.

    Hi,
    I use server side cookie to pass value between two pages.
    But if I blocked all cookie in my broswer setting, and the server cookie doesn't work.
    How could I pass value in this condition?
    Thank you!

    Hi Eason,
    that's not possible: client settings cannot block the server side cookie.
    Let's assume this coding in the OnInputprocessing at page A:
      username = sy-uname.
      TRANSLATE username TO LOWER CASE.
    Store.
      cl_bsp_server_side_cookie=>set_server_cookie( name                  = 'SEARCH'
                                                      application_name      = runtime->application_name
                                                      application_namespace = runtime->application_namespace
                                                      username              = username
                                                      session_id            = runtime->session_id
                                                      data_name             = 'FOUNDS'
                                                      data_value            = founds
                                                      expiry_time_rel       = '600' ).
    This defines a ssc (server side cookie).
    You can show cookies via report BSP_SHOW_SERVER_COOKIES.
    On page B (the successor of A) you can get the content via:
        CALL METHOD cl_bsp_server_side_cookie=>get_server_cookie
          EXPORTING
            name                  = 'SEARCH'
            application_name      = runtime->application_name
            application_namespace = runtime->application_namespace
            username              = username
            session_id            = runtime->session_id
            data_name             = 'FOUNDS'
          CHANGING
            data_value            = founds.
    Try this.
    Best regards,
    Stefan

  • 9ias v2 - reports server failed, all else worked, how to fix?

    My install went fine with the one exception of the reports server. It generated an error but all else kept on working.
    A couple of answers if anybody knows though would be great.
    1. How do you install ONLY the reports server.
    2. I can't find the Discoverer Plus or Viewer html start files.
    Could this have been caused by the reports server not installing?
    3. I've installed 9i database v2, 9ias v2, 9ids, etc. Where is the documentation
    to now get Portals up?
    Thx. for the help.

    It looks like the error indeed has to do with the rwaddpag.sql problem.
    Here's the message below:
    ====================================================
    Oracle Home : c:\oracle\ora9ias2
    Deploying Reports for OC4J
    Reports deployment was successful
    Starting file instantiation
    File instantiation succeeded
    Registering Reports as a database provider
    Queue null
    Number of actions : 1
    Done
    Starting Action : SQLPlus
    Command c:\oracle\ora9ias2/bin/sqlplus.exe -s "PORTAL/XXXX@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=bigbang.workgroup)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=iasdb.bigbang.workgroup)))" @"c:\oracle\ora9ias2/portal/admin/plsql/wwd/rwaddpag.sql"
    Process destroyed
    Process err
    Process out
    Action queue failedoracle.ifs.utils.common.ProcessDestroyedException
    Error executing : rwaddpag.sql
    Reports registration failed
    Starting EM integration
    EM integration was successful
    Reports Configuration failed
    =====================================================
    The answer is as you suggested in the Reports release notes. However,
    the notes say to "Log on to the Oracle Internet Directory and obtain
    the Oracle9iAS Portal user database password".
    1. What the heck is that and how do I log on to it?
    2. If I 'log on' to it, it'll show the Portal user database password?
    Inquiring minds (mine) want to know!
    Thanks for any assistance.
    Russ I recieved this advice :
    Start up the Oracle Internet Directory administration tool:
    Start > Programs > (9iAS Instance) > Oracle Internet Directory > Oracle Directory Manager
    Log into the oidadmin tool using the OID administrator account
    (cn=orcladmin) for the Infrastructure installation.
    Username: cn=orcladmin
    Password: administrator_password (note this is the one you set during install)
    Server : host running Oracle Internet Directory and port number where
    Oracle Internet Directory is listening (this may be 4032)
    Navigate the administration tool.
    => Entry Management
    => cn=OracleContext
    => cn=Products
    => cn=IAS
    => cn=Infrastructure Databases
    => orclReferenceName=Single Sign-On database SID:Single Sign-On Server
    hostname
    (for example: orclReferenceName=iasdb:infra.acme.com)
    => orclResourceName=PORTAL
    Click the above entry and look for the orclpasswordattribute attribute
    value on the right panel. This value is the Oracle9iAS Portal user
    database password

  • Report with Classification Data & Batch

    Hi,
    We have created a Material, say 10001, with Classification View with the following details:
    Class Type: 023     
    Class: PAPER_BATCH
    Characteristic: 1. Paper Bulk, 2. Paper Brightness
    While doing Goods Receipt for the Material 10001, we have entered the values 10 & 15 for Characteristic Paper Bulk & Paper Brightness respectively and Batch 082010.
    Now I want a report where in I can view the following all the above data like Material, Batch, and the Values of the Characteristic entering during the Goods Receipt
    What all are the reports related with Class & Batch?
    Please guide.
    Regards,
    PK

    Hi,
    There is No Standard SAP report
    Check this link
    Re: Table for Material Classification data
    check the above link for the table
    Using the table you can write Z reports
    Regards
    G.Ganesh Kumar

  • Reporting on Blocks of Long Text - Netweaver 7.0

    Hi all,
    I have read the forums and especially Eugene Khusainov's blogs on modelling and reporting long texts (> 60 chars) in BW - however this all seems to apply to version 3.5.  Does anyone know whether the situation for loading long texts has improved in netweaver V7.0?  Or is it still necessary to create multiple attributes of 60 chars each?
    If so, is there a limit on how many of these can be created?  Or is this indefinite?  I suspect my requirements could stretch to many hundreds of characters as a block of text to be reported.
    Are there also performance and best practise implications in keeping huge blocks of text in BI?  presumably the long text limit was set at 60 chars for a good reason ie that it is not good practise to fill up BI with strings of text..?
    Thanks all for your help
    Mischa

    Thanks for your answer.
    However I've realised that Eugene's solution will probably not help me.  My requirement is to actually report on blocks of text - for example, the users want a transcript of a call centre call within a report.
    Eugene's example will work for a description (ie a long text attached to a characteristic) but my requirement is not a text description in the 'traditional' sense - the 'block of text' needs to be reported on as if it is a separate characteristic within the cube.  At the moment the only solution I can see, is to create multiple characteristics of 60chars each, and actually load these blocks of text into the cube.
    This sounds like a horrendous solution - first of all the blocks of text can run into many hundreds of characters.  Secondly, surely the performance WILL be terrible if the cube has to hold rows and rows of free text?
    Please advise.  If this solution is really not feasible in BI, then I will have to tell the business that it cannot be done.
    I notice that it is possible to upload free text into a web template.  Is this a better solution?
    Thanks again
    Mischa

Maybe you are looking for

  • What is wrong with my log in display screen?

    Hey There guys, This problem started occurring right after i updated to Yosemite, which was quite a while back. Every time I turn on my computer and I get to the log in screen where I put my password, half the screen is normal and the other half is b

  • A set of configurable adjustment brushes

    I would like to have a set of 6 adjustment brushes that I could configure individually then assign it to one of the 6 brushes in the set on the tool bar.

  • Formatting a conditional field

    Hello, I have a situation where I am printing a field as follows: If (condition A) then Field X If (condition B) then Field Y I can see the result value in Regular Text format, but when I try to change it to number format (#,##0.00), I don't see anyt

  • ECC6.0 code download/upload with unicode

    Hi, we have a need for on-going parallel code maintenance of 2 separate development instances.  In end effect we need to manually synchronize two development instances for a period of time.  We have before in the past used custom programs and some of

  • Are changes to ESS/webdynpro transportable?

    when I personalize an ESS page (hiding input fields for example) using the Portal content administration by pressing CTRL right click on the input field I need to personalize, are those changes transportable? or I need to redo them in each environmen