Procedure for logging in PL/SQL

I am looking for a way to log sqlplus output from within a pl/sql procedure. When run through SQL*PLUS directly I can use SPOOL. Is there any way to do the same from within PL/SQL? Following is an example of what I was previously executing as a .sql script via command line SQLPLUS logon/password @instance @sqlscript.sql. Now I want to create a stored procedure to do the same...
Thanks,
Susan
spool dws_office.log
SET HEADING ON
SET ECHO ON
SET VERIFY ON
SET FEEDBACK ON
select TO_CHAR(CURRENT_DATE, 'DD-MON-YYYY HH:MI:SS AM') from DUAL;
TRUNCATE TABLE OFFICE;
INSERT INTO office
(SELECT office_id,
region_id,
office_name,
office_type,
primary_phone,
date_active,
agency,
default_email,
zip,
city,
agency_office_code,
county,
fax,
office_description,
office_JSC_id,
secondary_phone,
zip_plus_four,
state,
address1,
address2,
maintenance_user,
maintenance_date,
date_inactive
FROM office_data);
UPDATE office o
SET o.OfficeGroupID =
(SELECT og.OfficeGroupID
FROM OfficeGroup og
WHERE o.officeid = og.officeid),
o.OfficeGroupName =
(SELECT og.OfficeGroupName
FROM OfficeGroup og
WHERE o.officeid = og.officeid),
o.regionname =
(SELECT r.region_name
FROM regions r
WHERE o.regionid = r.region_id),
o.georegionid =
(SELECT g.georegionid
FROM georegion g
WHERE o.regionid = g.regionid),
o.georegionname =
(SELECT g.georegionname
FROM georegion g
WHERE o.regionid = g.regionid),
o.arearollupname =
(SELECT e.arearollupname
FROM esdrolluparea e
WHERE o.officeid = e.officeid);
commit;
select TO_CHAR(CURRENT_DATE, 'DD-MON-YYYY HH:MI:SS AM') from DUAL;
BEGIN
dbms_stats.gather_table_stats(ownname=> 'DWSCHEMA', tabname=> 'office', partname=> NULL);
END;
spool off
exit

Just keep in mind that SQL*Plus scripts invariably contains DDLs and SQL*Plus commands and that these cannot be simply wrapped into an Oracle DBMS_JOB.
You will need to loose all the SQL*Plus specific stuff and use dynamic SQL for all the DDLs.
In which case it is more sensible to rather wrap a script into a formal Oracle stored procedure or package instead, than it is to pass a huge block of anonymous PL/SQL code to execute to the DBMS_JOB handler.
If there are a series of jobs with dependancies, it can be done a couple of ways. Oracle 10G's DBMS_SCHEDULER is one option.
Another is to only use a single Oracle DBMS_JOB to run all the steps, and using exception handling to control/abort processing steps.
You also may not want Oracle to auto restart a job that raised an exception - and instead want to handle that manually or programatically in some other fashion.
As Justin mentioned, Oracle will auto restart a job that raises an exception. It will do so 16 times after which it will mark that continuously failing job as broken.
But then if a job fails, it will likely fail again and one may not want to keep on running that job into the same brick wall over and over again.
The bottom line in my view is to forget the how-it-was-done using the previous job scheduling system and re-look/redesign it for running using Oracle's job management systems. A simple "port" from one system to another will cause more new problems that solving existing ones IMO.

Similar Messages

  • Need to write a procedure for Log files (scheduled jobs)

    Hi,
    We have around 50 scheduled jobs.Jobs will run parallelly. In these jobs, some jobs will repeat at different timings.in these some jobs are daily jobs and some are weekly and some are monthly and some will run first and second working day of the month and some will run on some particular days.
    Now I want to write a procedure like, For every job it should create a log file like "
    <Job_Name> started on <Date> at <start_Time(timestamp)> and completed on <Date> at <End_Time(Timestamp)> successfully.
    <Job_Name> started on <Date> at <start_Time(timestamp)> and completed on <Date> at <End_Time(Timestamp)> abnormally.
    If all jobs complted successfully it should send an email to the mailgroup with attached log file (which contains the details of all the jobs) with format as follows.
    Jobname Start_date Start_time End_Date End_Time Status
    SALES 21-May-2011 12:00:00 21-May-2011 12:01:00 Completed Successfully
    21-May-2011 12:15:00 21-May-2011 12:16:00 Completed successfully
    Proudcts 21-May-2011 23:00:00 21-May-2011 23:16:00 Completed successfully
    ITEMS 21-May-2011 23:00:00 21-May-2011 23:16:00 Completed successfully
    If the status ="Completed abnormally" for any particular job
    immediately it should send an mail to the group like " FATAL_MESG_JOBANAME_Date_Time(timestamp)"
    for example if SALES job was failed at 15:00:00 then immediately it should send a mail.
    if ITEMS got failed then it should mail ( in between any job got failed it should send an email).
    if every thing is going cool then need send a final success mail to the group.
    so Please let me know how to write a program for this requiremnt.
    Thanks in advance.

    832581 wrote:
    Hi,
    Thanks for giving valuable link to gain the knowledge on DBMS_SCHEDULER.
    But here I didn't get clear idea to write a program which I need to schedule the job for every 1hr.
    Please suggest me to write the program..
    ThanksYou'll have to read the link i sent. Or google for an example.

  • What is the procedure for logging a Bug in AIR?

    I believe that a bug exists in AIR v1.0 when running a SWF
    created using ActionScript 2 (for FlashPlayer 8) - what is the
    process for reporting it or getting it fixed?
    This is a serious problem for my customer, as they are
    presently stuck to using AIR Beta 3 (which will expire)
    The AIR App that was working under FlexBuilder3 Beta 2 &
    Beta 3.
    In AIR v1, I now get an error during debug:
    ReferenceError: Error #1056: Cannot create property
    __OnEnterFrameBeacon on _main_mx_managers_SystemManager.
    It happens after button click in the SWF (loaded by
    SWFLoader)
    After I get this error, The SWF seems to 'lose itself', i.e.
    the screen goes a bit 'haywire'' (both running in debug and as an
    installed AIR Application). If I run the SWF without AIR it works
    fine
    Thanks,

    AIR bugs can be reported at www.adobe.com/go/wish.
    regards,
    Oliver Goldman | Adobe AIR Engineering

  • Possibility to register Pre-/Post-Procedures for an SQL Template Handler

    I would appreciate to see the possibility to register pre-/post-procedures for an SQL template handler in ORDS 3.0.
    Why:
    We use Oracle VPD/Row-Level-Security to secure data access. Hence a trigger sets a couple of attributes in the database session context at login time which are then used in static RLS predicates to limit which records the user can see/modify.
    With ORDS 3.0 all sessions are opened under the same technical user (e.g. APEX_REST_PUBLIC_USER), hence all users have the same/no attributes in the session context and could see/modify all data.
    To avoid this situation, I need to set the attributes (e.g. the authenticated user) in the database session context before the actual query/plsql handler is executed.
    Also, resetting the session context after the handler is executed would be good.
    This scenario is in line with scenarios 'One Big Application User' and 'Web-based applications' in http://docs.oracle.com/cd/B28359_01/network.111/b28531/vpd.htm#DBSEG98291.
    Different solution approach:
    Kris suggested to write a PL/SQL handler where the pre-procedure is called before the business logic procedure/query. This is ok for me as long as I modify data and only need to return no or little data.
    As soon as I need to return a lot of data (e.g. select c1, c19, c30 from t1), this approach will force me to write a lot of code in the PL/SQL handler in order to marshal the c1, c19 and c30 to JSON and put it in the HTTP response.
    But this is the beauty of ORDS - I can simply define a template, write a GET SQL Handler 'select c1, c19, c30 from t1'  and have the data available as REST service, without writing any code to write JSON marshaled data in the HTTP response.

    I tried to log the request at Oracle REST Data Services (ORDS) but I could only start a new discussion: Possibility to register Pre-/Post-Procedures for an SQL Template Handler
    As I mentioned there, the PL/SQL handler approach works for me as long as I have no or only little data to send back to the client (e.g. put/post/delete succeeded or an error message why the call failed).
    If I need to return a lot of data from the PL/SQL handler I would need to, as far as I understand, to marshal the data to JSON and write it to the response body in the PL/SQL handler.
    I don't want to do the marshaling, because ORDS does it better.
    However, this works for me:
    I write a pipelined stored procedure that takes as input the attributes I need to set in the session context. I then can reference it in the SQL handler:
    select * from table(my_pipelined_function(:USER, ....)
    Now the JSON/HTTP response is created by ORDS again.
    I still needed to code a couple of lines, but it is way better than duplicating the functionality already existing in ORDS.
    With the hooks it would be perfect because I would not have to write any code (apart from the procedure to set the session context attributes), just configure the REST services in ORDS.

  • How to write procedure or function or any sql statement for requirement

    Hi,
    i have a table named letter,it contains 2 columns named as letter_id and letter_content.
    select * from letter;
    letter_id letter_content
    103 Dear MFR
    103 This is in regards to the attached DM List
    103 Please Credit us after reviewing it.
    103 Thanks
    103 Regards
    103 xxxx
    108 Dear customer
    108 This is to inform that ur DM List is as follows
    108 Credit us according to the Dm after reviewing it.
    108 Thanks
    108 Regards
    108 xxxx
    now my requirement is,i need send a parameter as letter_id to a procedure or function in pl/sql in oracle,the output should be as follows:
    if we will pass parameter(letter_id) = 103 then it displays as follows:
    Dear MFR
    This is in regards to the attached DM List.Please Credit us after reviewing it.
    Thanks
    Regards,
    XXXXX.
    if we will pass parameter(letter_id) = 108 then it should displays as follows:
    Dear customer,
    This is to inform that ur DM List is as follows. Credit us according to the Dm after reviewing it.
    Thanks
    Regards,
    XXXXX.
    ---------------------------------------------------------------------------------------------------------

    i am really appriciate ur help.
    thank u so much for ur suggestions.
    when i am uning line_seq its giving an error
    ORA-00904: "LINE_SEQ": invalid identifier
    so,in my table i had created a sequense named content_seq.
    select * from letter;
    content_seq letter_id letter_content
    1 103 Dear MFR
    2 103 This is in regards to the attached DM List
    3 103 Please Credit us after reviewing it.
    4 103 Thanks
    5 103 Regards
    6 103 xxxx
    7 108 Dear customer
    8 108 This is to inform that ur DM List is as follows
    9 108 Credit us according to the Dm after reviewing it.
    10 108 Thanks
    11 108 Regards
    12 108 xxxx
    then i had used ur code as follows:
    select linefrom ( select content_seq , letter_content || case content_seq when 2 then ' ' || lead(letter_content) over (partition by letter_id order by content_seq) end as line from letter where letter_id = 103 )where content_seq <> 3;
    LETTER_CONTENT
    Dear MFR
    this is in regards to the attached DM List Please credit us after reviewing it
    thanks
    Regards
    EXP
    but when i take letter_id = 108 the format is comming different.it was unable to combine 2lines.
    Message was edited by:
    user579585
    Message was edited by:
    user579585

  • The process could not execute 'sp_repldone/sp_replcounters' error for Log Reader Agent and SQL Server Assertion 17066 & 3624 errors in SQL Logs

    One of our SQL Server started creating SQLDUMP file and and on investigation I found the error longs are filled with Errors 3624 & 17066. There is transnational replication configured on one of the databases is the LogReader Agent is failing error "The
    process could not execute 'sp_repldone/sp_replcounters' on XXXXX". 
    Not sure if both these Assertion & Logreader Agent errors are related. Before I remove and put the replication, I wanted to check if anyone has experienced the same issues or aware of what the cause. 
    ***********Error messages from SQL Logs******
    **Dump thread - spid = 0, EC = 0x0000000111534460
    Message
    A system assertion check has failed. Check the SQL Server error log for details. Typically, an assertion failure is caused by a software bug or data corruption. To check for database corruption, consider running DBCC CHECKDB. If you agreed to send dumps to
    Microsoft during setup, a mini dump will be sent to Microsoft. An update might be available from Microsoft in the latest Service Pack or in a QFE from Technical Support.
    Error: 3624, Severity: 20, State: 1.
    SQL Server Assertion: File: <logscan.cpp>, line=2123 Failed Assertion = 'UtilDbccIsInsideDbcc () || (m_ProxyLogMgr->GetPru ()->GetStartupState () < RecoveryUnit::Recovered)'. This error may be timing-related. If the error persists after rerunning
    the statement, use DBCC CHECKDB to check the database for structural integrity, or restart the server to ensure in-memory data structures are not corrupted.
    Error: 17066, Severity: 16, State: 1.
    External dump process return code 0x20000001.
    External dump process returned no errors.
    Thank you in advance.

    You need to determine if this error is a transient one or a show stopper one.
    It sounds like your log reader agent has crashed and can't continue.
    If so your best bet is to call Microsoft CSS and open a support incident.
    It also sounds like DBCC CHECKDB was running while the log reader agent crashed.
    If you need to get up and running again run sp_replrestart, but then you might find that replicated commands are not picked up. You will need to run a validation to determine if you need to reinitialize the entire publication or a single article.
    I have run into errors like this, but they tend to be transient, ie the log reader agent crashes, and on restart it works fine.
    looking for a book on SQL Server 2008 Administration?
    http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search?
    http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941

  • Stored Procedures for Simple SQL statements

    Hi Guys,
    We are using Oracle 10g database and Web logic for frontend.
    The Product is previously developed in DotNet and SQL Server and now its going to develop into Java (Web Logic) and Oracle 10g database.
    Since the project is developed in SQL Server, there are lot many procedures written for simple sql queries. Now I would like to gather your suggestions / pointers on using procedures for simple select statements or Inserts from Java.
    I have gathered some list for using PL/SQL procedure for simple select queries like
    Cons
    If we use procedures for select statements there are lot many Ref Cursors opened for Simple select statements (Open cursors at huge rate)
    Simple select statements are much faster than executing them from Procedure
    Pros
    Code changes for modifying select query in PL/SQL much easier than in Java
    Your help in this regard is more valuable. Please post your points / thoughts here.
    Thanks & Regards
    Srinivas
    Edited by: Srinivas_Reddy on Dec 1, 2009 4:52 PM

    Srinivas_Reddy wrote:
    Cons
    If we use procedures for select statements there are lot many Ref Cursors opened for Simple select statements (Open cursors at huge rate)No entirely correct. All SQLs that hit the SQL engine are stored as cursors.
    On the client side, you have an interface that deals with this SQL cursor. It can be a Java class, a Delphi dataset, or a PL/SQL refcursor.
    Yes, cursors are created/opened at a huge rate by the SQL engine. But is is capable of doing that. What you need to do to facilitate that is send it SQLs that uses bind variables. This enables the SQL engine to simply re-use the existing cursor for that SQL.
    Simple select statements are much faster than executing them from ProcedureAlso not really correct. SQL performance is SQL performance. It has nothing to do with how you create the SQL on the client side and what client interface you use. The SQL engine does not care whether you use a PL/SQL ref cursor or a Java class as your client interface. That does not change the SQL engine's performance.
    Yes, this can change the performance on the client side. But that is entirely in the hands of the developer and how the developer selected to use the available client interfaces to interface with the SQL cursor in the SQL engine.
    Pros
    Code changes for modifying select query in PL/SQL much easier than in JavaThis is not a pro merely for ref cursors, but using PL/SQL as the abstraction layer for the data model implemented, and having it provide a "business function" interface to clients, instead of having the clients dealing with the complexities of the data model and SQL.
    I would seriously consider ref cursors in your environment. With PL/SQL servicing as the interface, there is a single place to tune SQL, and a single place to update SQL. It allows one to make data model changes without changing or even recompiling the client. It allows one to add new business logical and processing rules, again without having to touch the client.

  • Is there a custom function available which can be used for logging errors captured in a sp in a sql table

    Is there a custom function  available which can be used for logging errors captured in a sp during and after execution in a sql table?
    Basically we  would like to utilize such function  in every sp and log errors of each sp in a error log table
    Mudassar

    Thanks .
    I was able to write this however I am thinking I am missing something
    CREATE FUNCTION testfunction1()
    RETURNS @temp_error TABLE (
    id int identity(1,1),
    procedure_name varchar(255),
    line_number int,
    error_number int,
    error_message varchar(max),
    error_state int,
    error_severity int,
    occurence_datetime datetime default current_timestamp,
    user_name sysname default suser_name(),
    login_name sysname default suser_name()
    AS
    BEGIN
    insert @temp_error(procedure_name,line_number,error_number,error_message,error_state,error_severity)
    select error_procedure(),error_line(),error_number(),error_message(),error_state(),error_severity()
    RETURN;
    END;
    CREATE TYPE test_type AS TABLE(
    id int identity(1,1),
    procedure_name varchar(255),
    line_number int,
    error_number int,
    error_message varchar(max),
    error_state int,
    error_severity int,
    occurence_datetime datetime default current_timestamp,
    user_name sysname default suser_name(),
    login_name sysname default suser_name()
    GO
    create proc usp_error_test
    @test_type AS test_type READONLY
    as
    begin
    begin try
    select 1/0
    end try
    begin catch
    select * from testfunction1(@test_type)
    end catch
    end
    Mudassar

  • SQL Procedures for dimension maintenance?

    I can't seem to find any stored procedures for refreshing dimensions & measures in 10.2. Looking at version 10.1 of the OLAP reference lists procedures such as:
    execute dbms_awm.refresh_awdimension ('MYSCHEMA', 'MYAW', 'AW_PROD');Is there an equivalent in 10.2.0.3? The OLAP reference docs have changed quite significantly from 10.1 to 10.2, so I'd assume so too has the database and the methods it uses to refresh structure. Docs for 10.2 don't appear to mention refreshing structure anywhere.
    Can anyone point me in the right direction? We're essentially looking for the same functionality as is provided in AWM's Maintain Dimension/Measure wizards, only called from our own application.
    Thanks,
    Aaron

    Hi,
    Have you tried having AWM creating a maintenance script for you?
    In the end of the maintenance wizard theres an option for selecting "create to script" or something similar.
    This will generate an anonymous PL/SQL block you can put into whatever procedure or application you want as long as it can run PL/SQL.
    Ragnar

  • Need to wite pl sql procedure for dynamic select statement

    Need pl sql procedure for a Dynamic select statement which will drop tables older than 45 days
    select 'Drop table'||' ' ||STG_TBL_NAME||'_DTL_STG;' from IG_SESSION_LOG where substr(DTTM_STAMP, 1, 9) < current_date - 45 and INTF_STATUS=0 order by DTTM_STAMP desc;

    I used this to subtract any data older than 2 years, adjustments can be made so that it fits for forty five days, you can see how I changed it from the originaln dd-mon-yyyy to a "monyy", this way it doesn't become confused with the Static data in the in Oracle, and call back to the previous year when unnecessary:
    TO_NUMBER(TO_CHAR(A.MV_DATE,'YYMM')) >= TO_NUMBER(TO_CHAR(SYSDATE - 365, 'YYMM'))

  • Using cron-job to call the PL/SQL procedure for every 5 min

    Hi All,
    i wrote one procedure. using cron-job to call this PL/SQL procedure for every 5 min. i don't have any idea about cron job & what is thescript file formate .where can i place that script file. what are the details we placed in that script

    Really appreciate you. I like this approach .
    please give me advice for the below thing
    job_action =>an i give my procedure name under this?
    BEGIN
    -- Job defined entirely by the CREATE JOB procedure.
    DBMS_SCHEDULER.create_job (
    job_name => 'Job_schedule_update',
    job_type => 'PLSQL_BLOCK',
    job_action => 'BEGIN Schedule_update; END;',
    start_date => SYSTIMESTAMP,
    repeat_interval => 'FREQ=HOURLY;BYMINUTE=5',
    end_date => NULL,
    enabled => TRUE,
    comments => 'Job defined entirely by the CREATE JOB procedure.');
    END;

  • Drop Transation Log Files in SQL server

    Hi friends,
                  I am useing sql server 2005 , in my databse transation log file is increased up to 20 GB ,so i am adding  one more transation file , so i want delete pervious unused transation log file,so what is the procedure for drop the transation log file from my databse any one can help me....
    Thanks,
    Nageswar

    Hi,
    Check SAP Note 363018
    also check MSSQL Transaction Log full
    Re: space problem
    regards,
    kaushal

  • Procedure for Exporting database

    Hi All,
    As i am really bad in coding, i am trying to learn ....so hope you all don't mind.
    I am trying to write a procedure which will take the database export, and schedule it in a job for 9.2.0.8 database.I have created a procedure for 10g using dbms_datapump and its successful.
    In 9i i tried the following
    1. create or replace a directory 'EXP'
    2. Created a text file into the directory containing the exp command (exp_batch.txt)
    3. create a procedure
    CREATE OR REPLACE PROCEDURE EXP
    as
    vInHandle utl_file.file_type;
    vNewLine VARCHAR2(2000);
    BEGIN
    vInHandle := utl_file.fopen('EXP', 'exp_batch.txt', 'R');
    LOOP
        BEGIN
          utl_file.get_line(vInHandle, vNewLine);
    EXCEPTION
    when others then
           raise_application_error(
               -20000, 'Unable to get line because of: '||
               sqlerrm);
    END;
    execute immediate vNewLine;
    UTL_FILE.FCLOSE(vInHandle);
    end loop;
    end;
    Procedure created.The procedure is created , but when i execute it
    21:34:15 ravan >exec exp;
    BEGIN exp; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'EXP'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignoredThe exp_batch.txt contains
    @date /t > E:\oracle\exp\cp.txt
    @for /F "tokens=1,2" %%i in (E:\oracle\exp\cp.txt) DO @echo %%j> E:\oracle\exp\cp.txt
    @for /F "delims=/  tokens=1,2,3" %%i in (E:\oracle\exp\cp.txt) DO @EXP 'sys/xxx@ravan as sysdba'  FILE=E:\oracle\exp\FULL_%%j-%%i-%%k.DMP LOG=E:\oracle\exp\FULL_%%j-%%i-%%k.LOG full=y
    @for /F "delims=/  tokens=1,2,3" %%i in (E:\oracle\exp\cp.txt) DO "C:\Program Files\WinRAR\WinRAR.exe"  E:\oracle\exp\FULL__%%j-%%i-%%k  E:\oracle\exp\FULL_%%j-%%i-%%k.DMPSO, can we do something like this, if yes then how.This is just for testing.
    Thanks & Regards,
    Anand

    Anand,
    Instead of writing a complex procedure you can simply write a batch script ( or shell script and you can use cygwin). I use cygwin to use the shell scripting on windows and it works fien and do wonder.
    Regards

  • Stored Procedure for Accounts Receivable

    Hi. First off, apologies in advance if I have put this question into the wrong topic. Secondly, I first saw SAP 3 weeks ago when I stared my new job and have had no training so please bear with me if some of what I ask doesn't make much sense.
    OK, the issue is this.  In SAP B1, there is a built in Report called "Customer Receivables Aging" which allows you to see Customer Receivable Accounts by age (e.g 0-30, 31-60, 61-90, 90+) and so on.  The problem with the built in report is that it doesn't show all the fields I want - it only shows the Customer Name, balance, and then the aging balances.  I want to be able to see things like the customer's contact details, etc. I know this makes no sense because the whole point of the report is to be able to drill down into the different rows, but this report needs to be issued in printed form, hence the need for the extra fields.
    Since I can't seen any way from within SAP to change the fields returned by this report, I thought I'd have a stab at writing my own SQL to select out the same data along with the extra fields I wanted.  That's when the problems began...try as I might, I cannot get my figures to tally with the SAP Report.
    They are almost correct, but not quite. I am sure that I am missing a selection or some other element of the logic that B1 uses to create the built in report.
    If you want, I can post the SQL I'm using....I'm not an SQL guru by any means, but I do know my way around it; the biggest problem I have is that I cannot find any documentation as to the 4 letter tables that SAP uses and their relationships except on the most basic level (e.g ORIN is Open Return Invoice [maybe])
    Then I thought maybe it might be possible to edit that report section in B1 using the SDK.  That would be a better solution as I would not have to 'reinvent the wheel', I can just SELECT an extra field or three to include in the report.
    So my question is
    ->Does anyone have a stored procedure for SQL Server that can replicate correctly the SAP B1 "Customer Receivable Aging", even just the process SAP uses to gather this data would be good.
    OR
    is it possible to edit this report in SAP to put in the extra fields I want.
    Or, am I totally barking up the wrong tree? Thanks in advance, I know this is a long post.

    Hi Stephen,
    There should be a print layout attached to the on-screen report. This can be altered to show the additional fields you want without resorting to SDK or SQL development.
    When you have the Customer Receivables Ageing report open on screen, choose Tools-Print Layout Designer or click on the Print Layout Designer icon on the toolbar. When prompted, choose the layout you wish to edit and you'll be taken to the layout design. In the layout, you can add additional fields and should be able to add most business partner fields. As the report is set to portrait by default, I recommend changing it to landscape so you have lots more space to add the extra fields you want. This report writer is fairly intuitive, if a little basic.
    You will need to save this new report design, set it to be the default layout and then when you select to print the Customer Receivables Ageing report (ie Print Preview or Print) you will see the new report.
    Hope this helps,
    Owen

  • Stored Procedure For Web Service in Visual Composer 7.1

    Hello,
    I want to use stored procedure for Webservice in Visual Composer 7.1
    I can find this Web service but not supported. ( ex) prcreleased_test - Not supported )
    Log.
    Message: Error in connection - Can' t execute Web service.
    Date: 2008-07-01
    Time: 16:41:43:906
    Category: com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent
    Location: com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.processExecution: 
    Application: sap.com/test~kmshim_wf_impl
    Thread: HTTP Worker [1]
    Data Source: j2ee\cluster\server0\log\defaultTrace_00.trc
    Correlator ID: 240496500000034715
    Argument Objects: 
    Arguments: 
    DSR Component: n.a.
    DSR Transaction: cb4b3560473711dd9fb4001e4f3b8fcb
    Log2
    Message: Stopped further execution since the interpreter is unusable
    Date: 2008-07-01
    Time: 16:41:43:906
    Category: com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent
    Location: com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.XGLInterpreter
    Application: sap.com/test~kmshim_wf_impl
    Thread: HTTP Worker [1]
    Data Source: j2ee\cluster\server0\log\defaultTrace_00.trc
    Correlator ID: 240496500000034715
    Argument Objects: 
    Arguments: 
    DSR Component: n.a.
    DSR Transaction: cb4b3560473711dd9fb4001e4f3b8fcb '
    Help me^^ plz..

    Hi Tanna.
    Thanks for your reply^^
    I create webservice that access my stored procedure.
    But not supported.
    http://dmp.humaxdigital.com/HumaxCmdwService/Service1.asmx?wsdl
    There are two service. (Hello World - Test, prcrelease_test - Stored Procedure )
    'Hello World' is supported but prcrelease_test is not supported. I can't drag to storyboard.
    Our company's DB is MSSQL2005.
    please help me^^

Maybe you are looking for

  • Slow loading files in Dreamweaver

    I am noticing that any file that I'm opening in DW takes FOREVER to load. I have no idea what woudl cause this. I'm running a MacBook Pro, Leopard, with DW CS3... This is sooo frustrating. Any help would be awesome.

  • Combining encrypted p/w protected files

    I have downloaded .pdf copies of credit card statements for years.  I want to combine one year's statements into a single .pdf file, but am prohibited from doing this because the file is protected.  It says it is encrypted and password protected. Any

  • Learning spanish, french, english, teaching german

    I´m living in Germany, a retired teacher and interested in foreign languages (spanish, french, english)My writing skills are much better, now I would like to improve my speaking skills too.My skype-adress: [Removed for privacy]. 

  • Why won't my iphone exit out of my settings or allow me to shut it off or lock it?

    Why won't my iphone exit out of my settings or allow me to shut it off or lock it?

  • PSE 6 in XP help button

    Nothing happens when I click the help button or hit F1. New installation from CD, reinstalled twice. Is this something others have experienced? Pops