How I can use SRW.RUN_REPORT in Reports6i?

Showing Answers 1 - 5 of 5 Answers

j.v.vijay bhaskar

  • Jul 10th, 2006
 

u can use srw.run_report as followssrw.run_report('module=modulename.rdf destype=screen paramform=yes');

  Was this answer useful?  Yes

Lavanya

  • Nov 21st, 2006
 

Can you please elaborate?

with a exampple in PO Module, Eg:Create Purchase Order Report, Parameters: a b c

  Was this answer useful?  Yes

SRW IS A PACKAGE WHICH IS USE IN REPORTS .HERE IS FOLLOWING PROCEDURES WHICH USE WITH SRW PACKAGE.
SRW.ADD_DEFINITION
SRW.APPLY_DEFINTION
SRW.BREAK
SRW.CONTEXT_FAILURE
SRW.DO_SQL
SRW.DO_SQL_FAILURE
SRW.GETTERR_RUN
SRW.GET_PAGE_NUM
SRW.INTEGER_ERROR
SRW.MAXROW_INERR
SRW.MAXROW_UNSET
SRW.MESSAGE
SRW.NULL_ARGUMENTS

SRW.PROGRAM_ABORT

SRW.REFERENCE
SRW.RUN_REPORT
SRW.RUN_REPORT_BATCHNO
SRW.RUN_REPORT_FAILURE
SRW.SETattributes
SRW.TRACE_ADD_OPTION
SRW.TRACE_END
SRW.TRACE_REM_OPTION
SRW.TRACE_START
SRW.TRACEOPTS.MASK
SRW.TRUNCATED_VALUE
SRW.UNKNOWN_QUERY
SRW.UNKNOWN_USER_EXIT

SRW.USER_EXIT
SRW.USER_EXIT20
SRW.USER_EXIT_FAILURE

FUNCTION FOO RETURN BOOLEAN IS
BEGIN
    srw.reference(:SAL);
    srw.user_exit('myexit sal');
EXCEPTION
    when srw.unknown_user_exit then
    srw.message(1000, 'User exit MYEXIT failed.
 Call Karen Smith x3455.');
    raise srw.program_abort;
RETURN (TRUE);
END;

  Was this answer useful?  Yes

SRW.RUN_REPORT('MonthlyCostsheet.rep PARAMFORM=NO P_BATCH='||''''||:batch_no||''''||' P_COMPANY_CODE ='||''''||:P_COMPANY_CODE||'''');--||' P_FROMDT ='||''''||:P_FROMDT||''''||' P_TODT ='||''''||:P_TODT||'''');

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions