Error while passing parameter fot class method
Hi abapers,
i am trying to do alv grdi dispaly using class cl_gui_alv_grid. i am getting error "ITAB1" is not type-compatible with formal parameter 'IT_OUTTAB'.
i attached code here.
Internal Tables
types: begin of itab,
matnr type mara-matnr,
maktx type makt-maktx,
end of itab.
data: itab1 like itab.
DATA: alvgrid type ref to cl_gui_alv_grid.
CALL METHOD ALVGRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_BUFFER_ACTIVE =
I_BYPASSING_BUFFER =
I_CONSISTENCY_CHECK =
I_STRUCTURE_NAME = 'ITAB'
IS_VARIANT =
I_SAVE =
I_DEFAULT = 'X'
IS_LAYOUT =
IS_PRINT =
IT_SPECIAL_GROUPS =
IT_TOOLBAR_EXCLUDING =
IT_HYPERLINK =
IT_ALV_GRAPHICS =
IT_EXCEPT_QINFO =
CHANGING
IT_OUTTAB = itab1.
IT_FIELDCATALOG =
IT_SORT =
IT_FILTER =
EXCEPTIONS
INVALID_PARAMETER_COMBINATION = 1
PROGRAM_ERROR = 2
TOO_MANY_LINES = 3
others = 4
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
please help me.
Try this -
CALL METHOD ALVGRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_BUFFER_ACTIVE =
I_BYPASSING_BUFFER =
I_CONSISTENCY_CHECK =
I_STRUCTURE_NAME = 'ITAB'
IS_VARIANT =
I_SAVE =
I_DEFAULT = 'X'
IS_LAYOUT =
IS_PRINT =
IT_SPECIAL_GROUPS =
IT_TOOLBAR_EXCLUDING =
IT_HYPERLINK =
IT_ALV_GRAPHICS =
IT_EXCEPT_QINFO =
CHANGING
IT_OUTTAB = <b>itab1[].</b>
IT_FIELDCATALOG =
IT_SORT =
IT_FILTER =
EXCEPTIONS
INVALID_PARAMETER_COMBINATION = 1
PROGRAM_ERROR = 2
TOO_MANY_LINES = 3
others = 4
Cheers
Similar Messages
-
Error while passing parameter in Oracle Jdeveloper
Hi All,
I was passed Crystal report viewer object From Servlet it is Running fine but one problem in that while passing parameter from that page to data base it is not supporting (The ok Button on page).
can any one tell me how to find Action Button (.Jsp page)
Because i am using .jsp page That was made in CR4E
in that i found only jsp code I have not get how to work Action of that button
Also another problem while making Viewer.jsp pge ..rpt-Crystal reports--->>Create Viewer Jsp->>Insert CrysatlReport viewer API code------->>>1.Connectparameterinthat report 2.connect the crystalreportPageViewer while makin this page i was running on Apache tomcat Server it is not displaying Anything only Displaying Blank Browser
Can Any one help me...
Sincerly
AmolFor your first question can you please be a little more clear as to what you are referring to? I am not familiar with an action button for the parameter pages.... what I can tell you is that we don't have any jsp code for the viewer controls, all of that is generated dynamically at runtime. We do have a viewer SDK that you can use to set properties on the viewer; information about this can be found in the [Developer Library|https://boc.sdn.sap.com/developer/library] in the Viewer SDK documentation book.
For your second question, I assume you are referring to generating a viewer page from a report in Crystal Reports for Eclipse. You will need to uncomment the viewer code (for some reason when the page is generated, the viewer code has block comments surrounding it). You will probably want to make sure the parameter code is uncommented as well.
In addition to this, there is a helper file called JRCHelperSample.java that contains all of the helper methods for the automatically generated viewer page. This can be modified in whatever way you wish to suit your needs. -
Error while passing internal table between methods at design time
Hi,
In a method (say method1 for eg) I have declared an internal table, IT_RANGE2 as:
DATA: IT_RANGE2 TYPE STANDARD TABLE OF ZTTRANGE
ZTTRANGE is a tabletype in SE11 and has a line type ZRANGE.
In this method, I am calling another method (method2)
WD_COMP_CONTROLLER->HOLD_DATA( CHANGING IT_RANGE = IT_RANGE2 ).
IT_RANGE has been declared as;
PARAMETER TYPE REFTO ASSOCIATED TYPE
IT_RANGE CHANGING ZTTRANGE.
I am getting an error: IT_RANGE2 is not type-compatible with formal parameter IT_RANGE.
Please help.
MIckchange it_range2 like this
DATA: IT_RANGE2 TYPE ZTTRANGE -
Error While Passing Parameter from Form to Report
I am using Dev 9ids. And i am compiling every forms from form 5 to form 9i. and report too.
Most of reports are running.
in some i am getting problem where i do pass more than 5,6 parameters.
for e.g in one case say
set_report_object_property(rep_id,REPORT_OTHER,'comp_code='||:global.vc_comp_code||' inv='||inv||' invoice_no='||inv_no||' invoice_date='||inv_dt||' vc_name='||cust_name||' Paramform=no');
this will not run and give error FRM-41214
when i exclude vc_name or shorten the value of cust_name report run fine.
length of cust_name and in report vc_name is proper.
I also need to pass more parameters to report.
I do think there might be parameter size in any of report system files to be increased.
Pls help me out how to rectify this problem.
thanks in advance.
rajYou are not getting the result in the report because you have chosen the button event as Query.
Edit the form, for the Execute button, choose the button event Custom and use the same pl/sql code that you have used before.
If the event is Query, then the session object does not have value of A_EMPNO at the point where you have written your code. The session object is populated after the Query event has taken place. -
Error while passing parameter(quoted string parameter ) to sql script
Hi all,
I have a master script insert_attribute_single.sql which takes 6 parameter. when i am using in sql prompt
SQL>@@INSERT_ATTRIBUTE_SINGLE.SQL 'LEED PROJECT START DATE' 7 'N' 27265185 '7'22'008' NULL;
then it is giving error for the 5th parameter. and i need to pass 5th parameter '7'22'008' in this.
in the master script it is giving error - ORA-06550 here.
dbms_output.put_line('Processing attribute : &1 Project : &4 Char value : &5 Numeric Value : &6 ' ) ;
can you please help me to resolve this with single quotes in string.
Thanks in advance.
regards
shyam~Here is my sql file:
declare
a_Var VARCHAR2(10) := '&1';
begin
dbms_output.put_line(a_var||','||'&2');
end;
/Here is how I am calling the sql file with parameter values containing quotes in itself:
SQL> @@d:\a.sql '12''''23''''23' '123'
old 2: a_Var VARCHAR2(10) := '&1';
new 2: a_Var VARCHAR2(10) := '12''23''23';
old 4: dbms_output.put_line(a_var||','||'&2');
new 4: dbms_output.put_line(a_var||','||'123');
12'23'23,123
PL/SQL procedure successfully completed.
SQL> -
Error while pass parameter to procedure....
We have developed procedure with parameter ORG_ID (Number) then create executable and define program. When we execute this executable and pass ORG parameter, we get following error, pl help in this regard:
Data type of parameter and column is same
Cause: FDPSTP failed due to ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'COST_ELEMENT_UPDATION_CUST'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignoredprocedure works in pl/sql developer but when we define as "PL/SQL Stored Procedure" in application it prompt error.
CREATE OR REPLACE PROCEDURE Cost_Element_Updation_Cust(P_ORG IN number) IS
--P_ORG NUMBER(10) := 91;
BEGIN
--FOR 1PP ORG, for average costing header line
INSERT INTO CST_ITEM_COSTS
SELECT M.INVENTORY_ITEM_ID,
M.ORGANIZATION_ID,
C.COST_TYPE_ID,
SYSDATE,
C.LAST_UPDATED_BY,
SYSDATE,
C.CREATED_BY,
C.LAST_UPDATE_LOGIN,
C.INVENTORY_ASSET_FLAG,
C.LOT_SIZE,
C.BASED_ON_ROLLUP_FLAG,
C.SHRINKAGE_RATE,
C.DEFAULTED_FLAG,
C.COST_UPDATE_ID,
C.PL_MATERIAL,
C.PL_MATERIAL_OVERHEAD,
C.PL_RESOURCE,
C.PL_OUTSIDE_PROCESSING,
C.PL_OVERHEAD,
C.TL_MATERIAL,
C.TL_MATERIAL_OVERHEAD,
C.TL_RESOURCE,
C.TL_OUTSIDE_PROCESSING,
C.TL_OVERHEAD,
C.MATERIAL_COST,
C.MATERIAL_OVERHEAD_COST,
C.RESOURCE_COST,
C.OUTSIDE_PROCESSING_COST,
C.OVERHEAD_COST,
C.PL_ITEM_COST,
C.TL_ITEM_COST,
C.ITEM_COST,
C.UNBURDENED_COST,
C.BURDEN_COST,
C.ATTRIBUTE_CATEGORY,
C.ATTRIBUTE1,
C.ATTRIBUTE2,
C.ATTRIBUTE3,
C.ATTRIBUTE4,
C.ATTRIBUTE5,
C.ATTRIBUTE6,
C.ATTRIBUTE7,
C.ATTRIBUTE8,
C.ATTRIBUTE9,
C.ATTRIBUTE10,
C.ATTRIBUTE11,
C.ATTRIBUTE12,
C.ATTRIBUTE13,
C.ATTRIBUTE14,
C.ATTRIBUTE15,
C.REQUEST_ID,
C.PROGRAM_APPLICATION_ID,
C.PROGRAM_ID,
C.PROGRAM_UPDATE_DATE,
C.ROLLUP_ID,
C.ASSIGNMENT_SET_ID
FROM APPS.CST_ITEM_COSTS C, APPS.MTL_SYSTEM_ITEMS_B M
WHERE C.INVENTORY_ITEM_ID =
(SELECT ITEM_ID FROM IFL.COST_ELEMENT_CUST WHERE ORG_ID = P_ORG) AND
C.ORGANIZATION_ID = P_ORG AND C.COST_TYPE_ID = 1002 AND
M.SEGMENT3 = 'IMPORTED' AND
M.SEGMENT1 IN ('F ASSET', 'SPARES', 'TOOLS', 'STORES') AND
M.ORGANIZATION_ID = P_ORG
--AND M.INVENTORY_ITEM_ID=154540
--Get item from cost which are pending for costing
AND M.INVENTORY_ITEM_ID NOT IN
(SELECT DISTINCT INVENTORY_ITEM_ID
FROM apps.CST_ITEM_COST_DETAILS_V
WHERE COST_TYPE_ID = 1002 AND ORGANIZATION_ID = P_ORG);
COMMIT;
END Cost_Element_Updation_Cust; -
Error while attaching the document using Method add_attachment
Hello Friends,
We are getting an error while using the BCS Class Method for attaching the documents to the mail.
We are using method: add_attachment()
For this I am passing the parameters:
attachment_type: PDF
attachment_subject: XXXXXXX
att_content_hex: content_hex[] "Internal table
The system is throwing error message X_ERROR.
Friends please help me in how to rectify the error message.
Thanks and Regards
Pradeep GoliHi,
Please code as below.
data: binary_content type solix_tab.
CALL METHOD Document->add_attachment EXPORTING i_attachment_type = u2018PDFu2019
i_attachment_subject = u2018My attachmentu2019 i_att_content_hex =
binary_content.
Regards
chitra -
Getting error while passing implicit request object from JSP to JavaBean
Hi,
I am getting error while passing implicit object ie( request object)
from within JSP to JavaBean.
Following is source for JSP, JavaBean and Error message I am getting.
vaLookup.jsp Source
<jsp:useBean id="db" class="advisorinsight.javabeans.DisplayPages"
scope="request">
<jsp:setProperty name="db" property="request" value="<%= request %>"
/>
</jsp:useBean>
<jsp:getProperty name="db" property="totalrecords" />
JAVABEAN DisplayPages.java source
package javabeans;
import java.io.Serializable;
import javax.servlet.http.HttpServletRequest;
public final class DisplayPages implements Serializable {
private String totalrecords;
private HttpServletRequest request;
public void setRequest(HttpServletRequest req){
this.request = req;
public java.lang.String getTotalrecords()
this.totalrecords =
this.request.getParameter("totalrecords");
return this.totalrecords;
public DisplayPages(){
totalrecords = "";
request = null;
error after executing vaLookup.jsp
[30/Nov/2001 11:56:04:5] info: EXTMGR-006: GXExtensionManager: Extension
service JavaExtData successfully loaded
[30/Nov/2001 11:56:04:5] info: EXTMGR-006: GXExtensionManager: Extension
service LockManager successfully loaded
[30/Nov/2001 11:56:04:5] info: EXTMGR-006: GXExtensionManager: Extension
service RLOPManager successfully loaded
[30/Nov/2001 11:56:04:5] info: REQ-012: thread add
[30/Nov/2001 11:56:04:5] info: REQ-012: thread add
[30/Nov/2001 11:56:04:5] info: REQ-012: thread add
[30/Nov/2001 11:56:04:5] info: REQ-012: thread add
[30/Nov/2001 11:56:04:5] info: REQ-012: thread add
[30/Nov/2001 11:56:04:5] info: REQ-012: thread add
[30/Nov/2001 11:56:04:5] info: REQ-012: thread add
[30/Nov/2001 11:56:04:5] info: REQ-012: thread add
[30/Nov/2001 11:56:04:7] info: ENGINE-ready: ready: 10819
[30/Nov/2001 11:56:46:0] info: --------------------------------------
[30/Nov/2001 11:56:46:0] info: JSPRunnerSticky: init
[30/Nov/2001 11:56:46:0] info: --------------------------------------
[30/Nov/2001 11:56:51:7] error: Exception: SERVLET-compile_failed:
Failed in compiling template: /va/valookup.jsp, javac error:
c:\iplanet\ias6\ias\APPS\variabl
S\va\valookup.java:76: Undefined variable: JSP_8
db.setRequest(_JSP__8);
^
1 error
Exception Stack Trace:
java.lang.Exception: javac error:
c:\iplanet\ias6\ias\APPS\variableannuity\va\WEB-INF\compiled_jsp\jsp\APPS\va\valookup.java:76:
Undefined variable: JSP_8
db.setRequest(_JSP__8);
^
1 error
at
com.netscape.server.servlet.jsp.JSPCompiler.compileJSP(Unknown Source)
at
com.netscape.server.servlet.jsp.JSPCompiler.compileOrLoadJSP(Unknown
Source)
at
com.netscape.server.servlet.jsp.JSPCompiler.compileInstance(Unknown
Source)
at
com.netscape.server.servlet.jsp.JSPCompiler.compileInstance(Unknown
Source)
at
com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callJspCompiler(Unknown
Source)
at
com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUri(Unknown
Source)
at
com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUriRestrictOutput(Unknown
Source)
at
com.netscape.server.servlet.platformhttp.PlatformRequestDispatcher.forward(Unknown
Source)
at com.netscape.server.servlet.jsp.JSPRunner.service(Unknown
Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:479)The only thing that I see that looks funny to me is when you pass the request object into the method using <%=request%>, Im not sure whats going to happen here because that is suppose to print the results. Have you tried simply using <%request%>?
-
Getting error , while passing parameters from one page to another page
Hello friends,
i am getting error, while passing parameters from one page to another page, below code i wrote.
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
ArrayList arl=new ArrayList();
EresFrameworkAMImpl am=(EresFrameworkAMImpl)pageContext.getApplicationModule(webBean);
ERecordImpl ERecordObj=new ERecordImpl();
HashMap hMap = new HashMap();
hMap.put("1",ERecordObj.getTransactionName());
hMap.put("2",ERecordObj.getTransactionKey());
hMap.put("3",ERecordObj.getDeferredMode());
hMap.put("4",ERecordObj.getUserKeyLabel());
hMap.put("5",ERecordObj.getUserKeyValue());
hMap.put("6",ERecordObj.getTransactionAuditId());
hMap.put("7",ERecordObj.getRequester());
hMap.put("8",ERecordObj.getSourceApplication());
hMap.put("9",ERecordObj.getPostOpAPI());
hMap.put("10",ERecordObj.getPayload());
// hMap.put(EresConstants.ERES_PROCESS_ID,
if(pageContext.getParameter("item1")!=null)
pageContext.forwardImmediately(EresConstants.EINITIALS_FUNCTION,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
hMap,
true,
OAWebBeanConstants.ADD_BREAD_CRUMB_YES
Error(71,2): method forwardImmediately(java.lang.String, byte, null, java.util.HashMap, boolean, java.lang.String) not found in interface oracle.apps.fnd.framework.webui.OAPageContext
Thanks
krishna.Hi,
You have imported the wrong class for HashMap.
Import
com.sun.java.util.collections.HashMap; instead of java.util.HashMap
Thanks,
Gaurav -
Error while passing date parameters in procedure and commit issue
Hi
1) I am doing a archiveing records and pls find my code below and i have couple of issue,pls find my code and want to ensure the commit is happening every 100000 rows inserted but i am archeiving a huge table but when i checks the table frequently it shows 0 records and after it shows count the actual rows around 20 million records.How can i ensure it commiting on every 100000 records. pls find my code my db version is 10g on windows
CREATE OR REPLACE PROCEDURE doins as
cnt number:=0;
FOR x IN (select * from Call_log
where trunc(c_date) = to_date('11-Aug-2008','DD-MON-YYYY'))
LOOP
INSERT INTO call_arch
select * from Call_log
where trunc(c_date) = to_date('11-Aug-2008','DD-MON-YYYY');
cnt := cnt + 1;
IF( cnt = 10000 )
THEN
cnt := 0;
commit;
END IF;
commit;
END LOOP;
2) Error while passing date as parameter i am getting following errors while passing date parameter pls find my code and errors
CREATE OR REPLACE PROCEDURE doins(p_date date) as
cnt number:=0;
begin
FOR x IN (select * from Call_log
where trunc(c_date) = to_char(p_date,'DD-MON-YYYY'))
LOOP
INSERT INTO call_arch
select * from Call_log
where trunc(c_date) = to_char(p_date,'DD-MON-YYYY');
cnt := cnt + 1;
IF( cnt = 10000 )
THEN
cnt := 0;
commit;
END IF;
commit;
END LOOP;
end;
exec doins(11-Aug-2008) then gives
SQL> exec doins(11-Aug-2008);
BEGIN doins(11-Aug-2008); END;
ERROR at line 1:
ORA-06550: line 1, column 16:
PLS-00201: identifier 'AUG' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
if i gave exec doins(11-08-2008) it gaves
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'DOINS'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
rgds
roshCREATE OR REPLACE PROCEDURE doins(p_date varchar2) as
cnt number:=0;
begin
FOR x IN (select A.rowid,A.* from Call_log A
where trunc(c_date) = to_date(p_date,'DD-MON-YYYY'))
--hope that's c_date columne is DATE datatype
LOOP
INSERT INTO call_arch
select * from Call_log
where rowid=x.rowid;
cnt := cnt + 1;
IF( cnt = 10000 )
THEN
cnt := 0;
commit;
END IF;
commit;
END LOOP;
end;
thats your correct procedure - but NOT CORRECT ISSUE.
You should use bulk collect with limit clause and forall clause to do it faster!!! Or Merge clause. -
Hi All,
I am working on Version 12.1.8 Build(20), I have referred SAP notes 1294013 and placed the following files
- serializer.jar
- xalan.jar
- xercesImpl.jar
- xml-apis.jar
- xsltc.jar
in the specified path.
now when i use XSLT transformation block using IllumRowsetTableWithPageBreaks.xsl i am getting an error
[ERROR] [XSL_Transformation_0]XSLTransform error: while trying to invoke the method javax.xml.transform.Transformer.transform(javax.xml.transform.Source, javax.xml.transform.Result) of an object loaded from local variable 'processor'
please guide me.Hi Alex,
No, the case you have explained is not applicable to me. Sharing the code snippet for your reference. This is the code due to which my XSLT gives an error, if I remove these lines of code then the XSLT works fine.
<xsl:variable name="ENERGY" select="translate(ENERGY,',','')">
<xsl:choose>
<xsl:when test="ENERGY= ''">
<xsl:value-of select="0.00"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="ENERGY"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
Also, the same XSLT works absolutely fine in 12.1 but gives error in 14.0 SP05.
Warm Regards,
Anuj -
hi i have a situation where i have to pass parameter to my method i don't what to pass the parameter define from the viewO because am not using parameter to query from the view,i just what to pass it to my procedure,my method is
public void submit_agr(String par_id,String dref_id,String tas_id,String agr_id){
ViewObject sub = this.findViewObject("AGR1");
i don't what to use this-> sub.setNamedWhereClauseParam("tas_id", tas_id); the tas_id is not in AGR1 VIEWO
// sub.
sub.executeQuery();
Row row = sub.first();
par_id = (String)row.getAttribute("par_id");
agr_id = (String)row.getAttribute("id");
callPerformSdmsLogon("SMS_FORM_TO_ADf.delete_agr(?)", new Object[] {par_id,dref_id,tas_id,agr_id});
}i try this AM IN jDEVELOPER 11.1.2.1.0
public void submit_agr(String par_id,String dref_id,String tas_id,String agr_id){
ViewObject sub = this.findViewObject("AGR1");
Row row = sub.first();
sub.setNamedWhereClauseParam("tas_id", new Number(10));-how will i pass this to my procedure
sub.setNamedWhereClauseParam("dref_id", new Number(10));-how will i pass this to my procedure
par_id = (String)row.getAttribute("par_id");
agr_id = (String)row.getAttribute("id");
sub.executeQuery();
callPerformSdmsLogon("SMS_FORM_TO_ADf.delete_agr(?)", new Object[] {par_id,dref_id,tas_id,agr_id});
}how will i pass the two prameter to my procedure
Edited by: Tshifhiwa on 2012/07/01 3:14 PM -
Missing Parameter in class method
Hi,
This is with regard to the Survey transaction. For survey, I did some modifications and I did the modifications based on a parameter in class method CL_UWS_PUBLISHING=>PUBLISH. It was working fine in our development server. But when I ported it to the Quality system, an erro appears telling that the parameter ID_SURVEY_ID is not available in the system.
As part of the implementation, our team has applied several notes to the application. Is it that, this parameter came as part of some note? If so, how can I find the relevant note. I searched for notes regarding survey but didn't find this one.
Please do help me in this regard.
Regards,
JubishHi All,
Please do help in this regard.
Regards,
Jubish -
Error while calling a super class public method in the subclass constructor
Hi ,
I have code like this:
CLASS gacl_applog DEFINITION ABSTRACT.
PUBLIC SECTION.
METHODS:
create_new_a
IMPORTING pf_obj TYPE balobj_d
pf_subobj TYPE balsubobj
pf_extnumber TYPE string
EXPORTING pfx_log_hndl TYPE balloghndl
EXCEPTIONS error
ENDCLASS.
CLASS gacl_applog IMPLEMENTATION.
METHOD create_new_a.
DATA: ls_log TYPE bal_s_log.
Header aufsetzen
MOVE pf_extnumber TO ls_log-extnumber.
ls_log-object = pf_obj.
ls_log-subobject = pf_subobj.
ls_log-aluser = sy-uname.
ls_log-alprog = sy-repid.
ls_log-aldate = sy-datum.
ls_log-altime = sy-uzeit.
ls_log-aldate_del = ls_log-aldate + 1.
CALL FUNCTION 'BAL_LOG_CREATE'
EXPORTING
i_s_log = ls_log
IMPORTING
e_log_handle = pfx_log_hndl
EXCEPTIONS
OTHERS = 1.
IF ( sy-subrc NE 0 ).
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING error.
ENDIF.
ENDMETHOD.
CLASS gcl_applog_temp DEFINITION INHERITING FROM gacl_applog.
PUBLIC SECTION.
DATA: log_hndl TYPE balloghndl READ-ONLY
, t_log_hndl TYPE bal_t_logh READ-ONLY
METHODS: constructor
IMPORTING pf_obj TYPE balobj_d
pf_subobj TYPE balsubobj
pf_extnumber TYPE string
EXCEPTIONS error
, msg_add REDEFINITION
, display REDEFINITION
ENDCLASS.
CLASS gcl_applog_temp IMPLEMENTATION.
METHOD constructor.
CALL METHOD create_new_a
EXPORTING pf_obj = pf_obj
pf_subobj = pf_subobj
pf_extnumber = pf_extnumber
IMPORTING pfx_log_hndl = log_hndl.
IF ( sy-subrc NE 0 ).
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING error.
ENDIF.
ENDMETHOD.
A public method of Super class has been called from the constructor of the sub class. we are getting the syntax error :
' In the constructor method, you can only access instance attributes, instance methods, or "ME" after calling the constructor of the superclass '
Can you please suggest how to change the code with out affecting the functioanlity.
Thank you ,
Lakshmi.Hi,
Call that method by instance of Subclass. OR
SUPER-->method.
Read very useful document
Constructors
Constructors are special methods that cannot be called using CALL METHOD. Instead, they are called automatically by the system to set the starting state of a new object or class. There are two types of constructors - instance constructors and static constructors. Constructors are methods with a predefined name. To use them, you must declare them explicitly in the class.
The instance constructor of a class is the predefined instance method CONSTRUCTOR. You declare it in the public section as follows:
METHODS CONSTRUCTOR
IMPORTING.. [VALUE(]<ii>[)] TYPE type [OPTIONAL]..
EXCEPTIONS.. <ei>.
and implement it in the implementation section like any other method. The system calls the instance constructor once for each instance of the class, directly after the object has been created in the CREATE OBJECT statement. You can pass the input parameters of the instance constructor and handle its exceptions using the EXPORTING and EXCEPTIONS additions in the CREATE OBJECT statement.
The static constructor of a class is the predefined static method CLASS_CONSTRUCTOR. You declare it in the public section as follows:
CLASS-METHODS CLASS_CONSTRUCTOR.
and implement it in the implementation section like any other method. The static constructor has no parameters. The system calls the static constructor once for each class, before the class is accessed for the first time. The static constructor cannot therefore access the components of its own class.
Pls. reward if useful.... -
Error while passing values from Interactive form to Webdynpro Application
Hi,
Iam working on AdobeInteractive Forms using GP.There is an interactive form with a submit button on my desktop. Now when i click on submit the values in the Interactive Form should be passed to an Webdynpro application.But when i click on submit button i was getting error.Can any one solve my issue.
The Error is:
SAP Guided Procedures - Error Page
What happened?
An internal error occurred while processing your request
What can you do?
Try again later. If the problem persists, contact your system administrator.
Additional Error Information
Error while processing document via ADS
com.sap.caf.eu.gp.base.exception.EngineException: Error while processing document via ADS
at com.sap.caf.eu.gp.model.iforms.adapter.pdf.AdobePDFAdapter.processPDF(AdobePDFAdapter.java:842)
at com.sap.caf.eu.gp.model.iforms.adapter.pdf.AdobePDFAdapter.getSessionContext(AdobePDFAdapter.java:1116)
at com.sap.caf.eu.gp.model.iforms.postproc.FormPostprocessor.processData(FormPostprocessor.java:396)
at com.sap.caf.eu.gp.model.iforms.FormPostProcessor.doPost(FormPostProcessor.java:182)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
Caused by: com.sap.tc.webdynpro.pdfobject.core.PDFObjectRuntimeException: Processing exception during a "GetData" operation. Request start time: Thu May 01 12:33:23 CDT 2008 com.adobe.ProcessingException: Error creating PDF Document - PDF Exception: Stream does not represent a PDF document. [Ljava.lang.StackTraceElement;@309d01f5 Exception Stack Trace: com.adobe.ProcessingException: Error creating PDF Document - PDF Exception: Stream does not represent a PDF document. [Ljava.lang.StackTraceElement;@309d01f5
at com.adobe.ads.remote.PDFState.getDocumentFromFile(Unknown Source)
at com.adobe.ads.remote.PDFState.getDocument(Unknown Source)
at com.adobe.ads.remote.EJB_PDFAgent.exportFormData(Unknown Source)
at com.adobe.ads.operation.GetData.execute(Unknown Source)
at com.adobe.ads.operation.ADSOperation.doWork(Unknown Source)
at com.adobe.ads.request.Request.processOperations(Unknown Source)
at com.adobe.ads.request.Request.process(Unknown Source)
at com.adobe.AdobeDocumentServicesEJB.processRequest(Unknown Source)
at com.adobe.AdobeDocumentServicesEJB.rpData(Unknown Source)
at com.adobe.AdobeDocumentServicesLocalLocalObjectImpl0_0.rpData(AdobeDocumentServicesLocalLocalObjectImpl0_0.java:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)
at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)
at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)
at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)
at SoapServlet.doPost(SoapServlet.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
Caused by: com.adobe.internal.pdftoolkit.core.exceptions.PDFCosParseException: Stream does not represent a PDF document.
at com.adobe.internal.pdftoolkit.core.cos.CosDocument.init(Unknown Source)
at com.adobe.internal.pdftoolkit.core.cos.CosDocument.<init>(Unknown Source)
at com.adobe.internal.pdftoolkit.core.cos.CosDocument.newDocument(Unknown Source)
at com.adobe.internal.pdftoolkit.pdf.document.PDFDocument.<init>(Unknown Source)
at com.adobe.internal.pdftoolkit.pdf.document.PDFDocument.newInstance(Unknown Source)
... 35 more
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:413)
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.getData(PDFObject.java:311)
at com.sap.caf.eu.gp.model.iforms.adapter.pdf.AdobePDFAdapter.processPDF(AdobePDFAdapter.java:816)
... 19 more
Caused by: com.sap.tc.webdynpro.pdfobject.core.PDFObjectRuntimeException: Processing exception during a "GetData" operation. Request start time: Thu May 01 12:33:23 CDT 2008 com.adobe.ProcessingException: Error creating PDF Document - PDF Exception: Stream does not represent a PDF document. [Ljava.lang.StackTraceElement;@309d01f5 Exception Stack Trace: com.adobe.ProcessingException: Error creating PDF Document - PDF Exception: Stream does not represent a PDF document. [Ljava.lang.StackTraceElement;@309d01f5
at com.adobe.ads.remote.PDFState.getDocumentFromFile(Unknown Source)
at com.adobe.ads.remote.PDFState.getDocument(Unknown Source)
at com.adobe.ads.remote.EJB_PDFAgent.exportFormData(Unknown Source)
at com.adobe.ads.operation.GetData.execute(Unknown Source)
at com.adobe.ads.operation.ADSOperation.doWork(Unknown Source)
at com.adobe.ads.request.Request.processOperations(Unknown Source)
at com.adobe.ads.request.Request.process(Unknown Source)
at com.adobe.AdobeDocumentServicesEJB.processRequest(Unknown Source)
at com.adobe.AdobeDocumentServicesEJB.rpData(Unknown Source)
at com.adobe.AdobeDocumentServicesLocalLocalObjectImpl0_0.rpData(AdobeDocumentServicesLocalLocalObjectImpl0_0.java:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)
at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)
at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)
at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)
at SoapServlet.doPost(SoapServlet.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
Caused by: com.adobe.internal.pdftoolkit.core.exceptions.PDFCosParseException: Stream does not represent a PDF document.
at com.adobe.internal.pdftoolkit.core.cos.CosDocument.init(Unknown Source)
at com.adobe.internal.pdftoolkit.core.cos.CosDocument.<init>(Unknown Source)
at com.adobe.internal.pdftoolkit.core.cos.CosDocument.newDocument(Unknown Source)
at com.adobe.internal.pdftoolkit.pdf.document.PDFDocument.<init>(Unknown Source)
at com.adobe.internal.pdftoolkit.pdf.document.PDFDocument.newInstance(Unknown Source)
... 35 more
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:400)
... 21 moreHi Praveen,
The concept what we have observed is When you click on Submit the values were sent to GP. There GP framework takes care of all these. After that when you try to login to Portal and click on GP Inbox and try to open the application, what ever the data that is sent previously will be retrieved.
Due to some reasons like Delegation and other conecpts where GP will not fit we have scrapped GP and got back to workflow. There we have used the concept of Portal Webservice inorder to send the data to R/3 by clicking on Submit button.
We have successfully implemented the Adobe Forms Offline Scenario using Portal Webservice.
Maybe you are looking for
-
Passing values from method array to class array
HELP!! Plz excuse any ignorance. Am a noob and have created an array within my class. I then try to alter those array values from inside one of the classes methods. When I try to access the new values from the class array, they don't exist. I think i
-
I have an ipad that was issued from my company. I would like to add a second itunes account for just media with my personal credit card. I have another itunes account on my mac air. Can I download it to my ipad without disturbing my work appicatio
-
Is there a way to restore my wallpaper as a photo ?
Hi ! I took this wonderful photo and set it as my lockscreen wallpaper AND standard wallpaper. However I lost this photo in phone changes- I can't get this photo back- Yet it does still exist in the system since it is displayed as wallpaper. Is there
-
Re: Demand calculation from forecast figures
Hi All experts, I am trying to configure a test scenarion for my client. He has a scenario where the demnad for the FG will calculated from the previous consumption figures. To map this I have tried to use the forecast view of the material master whe
-
LDAP Setup in SAP GRC 10 system
Hello All, We are implementing SAP GRC 10 and trying to connect GRC with LDAP to sync users but we are facing below error while doing configuration in LDAP t-code Errro "Could not login to directory " But it's working fine when we are trying to login