Dump DBIF_RSQL_INVALID_RSQL using pnp
Hi guys, i have a report which use the logical data base pnp but when it runs on productive enviroment with all personnel numbers it send me this dump: Run-time error "DBIF_RSQL_INVALID_RSQL" occurred, a tried to use a TRY ENDTRY befor the get event but does not accept it before the event....
What can i do to avoid this dump???
Thnks a lot.
Thx a lot for reply, i checked the note but it is for release 30 and we are in release higher so basis said that this note is not available any more.... we find this one 1298550 do u think it could solved the problem????
Or do u know another solution???
Edited by: Sandra Torres on Dec 22, 2009 7:56 PM
Similar Messages
-
Short Dump while using BAPI_PS_PRECOMMIT to set Project Definition Status
Hi All,
I am getting a short dump while using BAPI_PS_PRECOMMIT for setting the Project Definition status..
The requirement is to create a Project Definition and then set its status to REL from CRTD. For this purpose i am using the BAPI's in the following sequence :
1. BAPI_PS_INITIALIZATION
2. BAPI_PROJECT_MAINTAIN
3. BAPI_BUS2001_SET_STATUS
4. BAPI_PS_PRECOMMIT
5. BAPI_TRANSACTION_COMMIT
The Proj Def creation is happening successfully in step2. Interestingly, when I debug the program and stop at PRECOMMIT BAPI the program does not give a dump. I have also tried to give COMMIT WORK / WAIT FOR n SECONDS after BAPI_BUS2001_SET_STATUS, to give BAPI sometime for DB update but nothing seems to be a permanent solution.
Please give your views on a solution for this problem..
Thanks & Regards,
SomilCan you please check how to post code in SDN ...
I cannot read your code properly -
Dump - Access using NULL object reference is not possible!!!
Hi,
I'm using the BCS class for sending HTM format email so i use the below code for that its working,
DATA: gr_document TYPE REF TO cl_document_bcs,
gr_document = cl_document_bcs=>create_document(
i_type = 'HTM'
i_text = t_html
i_importance = '5'
i_subject = gc_subject ).
Next task is to send the image so i'm creating an another object to the same class, below code
*Image from MIME
DATA: o_mr_api TYPE REF TO if_mr_api.
DATA is_folder TYPE boole_d.
DATA l_img1 TYPE xstring.
DATA l_img2 TYPE xstring.
DATA l_loio TYPE skwf_io.
DATA: lo_document TYPE REF TO cl_document_bcs.
IF o_mr_api IS INITIAL.
o_mr_api = cl_mime_repository_api=>if_mr_api~get_api( ).
ENDIF.
CALL METHOD o_mr_api->get
EXPORTING
i_url = '/SAP/PUBLIC/ZDEMO/tick.png'
IMPORTING
e_is_folder = is_folder
e_content = l_img1
e_loio = l_loio
EXCEPTIONS
parameter_missing = 1
error_occured = 2
not_found = 3
permission_failure = 4
OTHERS = 5.
CALL METHOD o_mr_api->get
EXPORTING
i_url = '/SAP/PUBLIC/ZDEMO/Delete.png'
IMPORTING
e_is_folder = is_folder
e_content = l_img2
e_loio = l_loio
EXCEPTIONS
parameter_missing = 1
error_occured = 2
not_found = 3
permission_failure = 4
OTHERS = 5.
*Convert XSTRING to ITAB
DATA :lt_hex1 TYPE solix_tab,
lt_hex2 TYPE solix_tab,
ls_hex LIKE LINE OF lt_hex1,
lv_img1_size TYPE sood-objlen,
lv_img2_size TYPE sood-objlen.
CLEAR : lt_hex1, lt_hex2, ls_hex, lv_img1_size, lv_img2_size.
WHILE l_img1 IS NOT INITIAL.
ls_hex-line = l_img1.
APPEND ls_hex TO lt_hex1.
SHIFT l_img1 LEFT BY 255 PLACES IN BYTE MODE.
ENDWHILE.
WHILE l_img2 IS NOT INITIAL.
ls_hex-line = l_img2.
APPEND ls_hex TO lt_hex2.
SHIFT l_img2 LEFT BY 255 PLACES IN BYTE MODE.
ENDWHILE.
*Findthe Size of the image
DESCRIBE TABLE lt_hex1 LINES lv_img1_size.
DESCRIBE TABLE lt_hex2 LINES lv_img2_size.
lv_img1_size = lv_img1_size * 255.
lv_img2_size = lv_img2_size * 255.
*Attach Images
clear: lo_document.
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'png' " Document Class for Attachment
i_attachment_subject = 'img1' " Attachment Title
i_attachment_size = lv_img1_size " Size of Document Content
i_att_content_hex = lt_hex1 " Content (Binary)
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'png' " Document Class for Attachment
i_attachment_subject = 'img2' " Attachment Title
i_attachment_size = lv_img2_size " Size of Document Content
i_att_content_hex = lt_hex2 " Content (Binary)
but it throws the dump " Access using NULL object reference is not possible" when i tries to access for method add_attachment...
Thanks,
SivaYes there is commit work after that, Below code
gr_document = cl_document_bcs=>create_document(
i_type = 'HTM'
i_text = t_html
i_importance = '5'
i_subject = gc_subject ).
*Image from MIME
DATA: o_mr_api TYPE REF TO if_mr_api.
DATA is_folder TYPE boole_d.
DATA l_img1 TYPE xstring.
DATA l_img2 TYPE xstring.
DATA l_loio TYPE skwf_io.
DATA: lo_document TYPE REF TO cl_document_bcs.
IF o_mr_api IS INITIAL.
o_mr_api = cl_mime_repository_api=>if_mr_api~get_api( ).
ENDIF.
CALL METHOD o_mr_api->get
EXPORTING
i_url = '/SAP/PUBLIC/ZDEMO/tick.png'
IMPORTING
e_is_folder = is_folder
e_content = l_img1
e_loio = l_loio
EXCEPTIONS
parameter_missing = 1
error_occured = 2
not_found = 3
permission_failure = 4
OTHERS = 5.
CALL METHOD o_mr_api->get
EXPORTING
i_url = '/SAP/PUBLIC/ZDEMO/Delete.png'
IMPORTING
e_is_folder = is_folder
e_content = l_img2
e_loio = l_loio
EXCEPTIONS
parameter_missing = 1
error_occured = 2
not_found = 3
permission_failure = 4
OTHERS = 5.
*Convert XSTRING to ITAB
DATA :lt_hex1 TYPE solix_tab,
lt_hex2 TYPE solix_tab,
ls_hex LIKE LINE OF lt_hex1,
lv_img1_size TYPE sood-objlen,
lv_img2_size TYPE sood-objlen.
CLEAR : lt_hex1, lt_hex2, ls_hex, lv_img1_size, lv_img2_size.
WHILE l_img1 IS NOT INITIAL.
ls_hex-line = l_img1.
APPEND ls_hex TO lt_hex1.
SHIFT l_img1 LEFT BY 255 PLACES IN BYTE MODE.
ENDWHILE.
WHILE l_img2 IS NOT INITIAL.
ls_hex-line = l_img2.
APPEND ls_hex TO lt_hex2.
SHIFT l_img2 LEFT BY 255 PLACES IN BYTE MODE.
ENDWHILE.
*Findthe Size of the image
DESCRIBE TABLE lt_hex1 LINES lv_img1_size.
DESCRIBE TABLE lt_hex2 LINES lv_img2_size.
lv_img1_size = lv_img1_size * 255.
lv_img2_size = lv_img2_size * 255.
*Attach Images
create object lo_document type cl_document_bcs.
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'png' " Document Class for Attachment
i_attachment_subject = 'img1' " Attachment Title
i_attachment_size = lv_img1_size " Size of Document Content
i_att_content_hex = lt_hex1 " Content (Binary)
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'png' " Document Class for Attachment
i_attachment_subject = 'img2' " Attachment Title
i_attachment_size = lv_img2_size " Size of Document Content
i_att_content_hex = lt_hex2 " Content (Binary)
"Add document to send request
CALL METHOD gr_send_request->set_document( gr_document ).
TRY.
CALL METHOD gr_send_request->SET_SEND_IMMEDIATELY
EXPORTING
I_SEND_IMMEDIATELY = 'X'.
* CATCH CX_SEND_REQ_BCS INTO BCS_EXCEPTION .
**Catch exception here
ENDTRY.
DATA: LO_SENDER TYPE REF TO IF_SENDER_BCS VALUE IS INITIAL.
TRY.
LO_SENDER = CL_SAPUSER_BCS=>CREATE( SY-UNAME ). "sender is the logged in user
* Set sender to send request
gr_send_request->SET_SENDER(
EXPORTING
I_SENDER = LO_SENDER ).
* CATCH CX_ADDRESS_BCS.
****Catch exception here
ENDTRY.
"Send email
CALL METHOD gr_send_request->send(
EXPORTING
i_with_error_screen = 'X'
RECEIVING
result = gv_sent_to_all ).
IF gv_sent_to_all = 'X'.
WRITE 'Email sent!'.
ENDIF.
"Commit to send email
COMMIT WORK.
"Exception handling
CATCH cx_bcs INTO gr_bcs_exception.
WRITE:
'Error!',
'Error type:',
gr_bcs_exception->error_type.
ENDTRY. -
Selection screen validation when using PNP LDB
Hi guys,
I want to validate my selection screen parameters.Thats is if somebody wants to run the program without giving any input parameters to the selection screen(trying to run the report with a blank screen) I want to pop up an error/information message so that it will return the selection screen.I am using PNP Logical database for my selection screen.Please help.Thanks in advance.
Thanks,
Karthik.Welcome to SDN.
If you are using PNP logical data base then validating the fields will be little tricky...
You canc check all the other fields in START-OF-SELECTION and if they are empty return eroor. Remember all the field s on the scree... so I will suggest you to choose HR report Category accordingly.
Also,when it comes to date field then you need to check for the start and end dates rather than blank fields as SAP defaulted them to system start and end date.
Still, I will prefer to create a HE Report Category for the PNP database and use the screen while validating....that will be easy... -
How MSS Report passes values to R/3 report using PNP logical db
Heloo Gurus,
I am having some trouble where in i have added a new custom(Z) report in the MSS ->My Staff -> Reporting under report category -> Time Management (MSS). I am not able to find how the value of org unit which is selected on portal screen is passed to report in R/3 which is using PNP logical db.
I tested in debugging but selection screen parameter PNPORGEH contains nothing.
Many Thanks in advance for the help.Anyone ?
plz update. -
Hi Experts,
I am facing the problem in the select statement where it giving the short dump
DBIF_RSQL_INVALID_RSQL CX_SY_OPEN_S.
i have searched many forms, but i found that the select option s_matnr have the limitaion 2000 entreis, but i am passing same s_matnr to other select statement with more than 2000 entries but it is not giving me any short dump.
but i am facing problem with only one select statement where if i pass select option s_matnr more than 1500 entris also giving short dump.
my select statement is
SELECT * FROM bsim
INTO CORRESPONDING FIELDS OF TABLE g_t_bsim_lean
FOR ALL ENTRIES IN t_bwkey WHERE bwkey = t_bwkey-bwkey
AND matnr IN matnr
AND bwtar IN bwtar
AND budat >= datum-low.
in the internal table g_t_bsim_lean internal table contain all the fields of the table bsim with 2 fields from other table.
Please let me know whether i need to change the select statement or any other solution for this.
Regards,
udupimy select query is like this:
DATA: BEGIN OF t_bwkey OCCURS 0, "184465
bwkey LIKE bsim-bwkey, "184465
END OF t_bwkey. "184465
LOOP AT g_t_organ WHERE keytype = c_bwkey.
MOVE g_t_organ-bwkey TO t_bwkey-bwkey.
COLLECT t_bwkey. "184465
ENDLOOP. "184465
READ TABLE t_bwkey INDEX 1. "184465
CHECK sy-subrc = 0. "184465
SELECT * FROM bsim "n443935
INTO CORRESPONDING FIELDS OF TABLE g_t_bsim_lean "n443935
FOR ALL ENTRIES IN t_bwkey WHERE bwkey = t_bwkey-bwkey
AND matnr IN matnr
AND bwtar IN bwtar
AND budat >= datum-low. -
ABAP Dump while using "Upload from clipboard"
Hi,
We are facing ABAP dump when using "upload from clipboard" funciton without any data on the clipboard.
"Upload data" is working fine if some data exists on the clipboard. If in case of no data on the clipboard, it is leading to an ABAP dump.
Appreciate if anyone could point some OSS note or any solution if you've already faced this issue.
This is happening in our BW system with SAP_BASIS "SAPKB62018" and SAP_ABA "SAPKA62018".
Same thing happens in our BW test systems which are upgraded to the latest support pack.
Following is the error analysis
Error analysis
A RAISE statement in the program "CL_GUI_FRONTEND_SERVICES======CP " raised the
exception
condition "CNTL_ERROR".
Since the exception was not intercepted by a superior program
in the hierarchy, processing was terminated.
Short description of exception condition:
For detailed documentation of the exception condition, use
Transaction SE37 (Function Library). You can take the called
function module from the display of active calls.
How to correct the error
You may able to find an interim solution to the problem
in the SAP note system. If you have access to the note system yourself,
use the following search criteria:
"RAISE_EXCEPTION" C
"CL_GUI_FRONTEND_SERVICES======CP " or "CL_GUI_FRONTEND_SERVICES======CM00T "
"CLIPBOARD_IMPORT"Hi,
When you say 'We are facing ABAP dump when using "upload from clipboard" funciton without any data on the clipboard.', are you using this in a custom program and are you running your custom program in the background?
From the error you mentioned, to me it looks like you had a control error and controls are for foreground, online process and not suitable for background processing. Same argument holds good for most of the enjoy SAP transactions when you try to do BDC, they will give you a similar error if you hit the piece of code where controls are used.
Controls are created on the desktop of the user and in background this is not possible.
Please let me know if this is the reason.
Srinivas -
How to avoid default selection screen in HR interfaces(using pnp ldbs)
How to avoid default selection screen in HR interfaces(using pnp ldbs)
Dear Rakesh,
The report category is used to change the selection screen of programs that use the 'PNP' logical database.
See links bellow:
http://www.sapdevelopment.co.uk/hr/hr_repcat.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/15/229357553611d3967f00a0c9306433/frameset.htm
Report categories for selection screen in HR programming
Also visit the following blog:
/people/alvaro.tejadagalindo/blog/2006/02/19/how-to-deal-with-hr-payroll-reports
Regards,
Naveen. -
Adding a field in further selection option when using PNP
when we run a report using PNP we get a further selections button on top. can we add a new field like molga, in that further selection option if yes then how...can someone help me on that.
Hi,
I guess the Report your using must be SAP standard report.If yes, then you have to copy that program to some Z-program & make the change in the program itself.
Because this logic is in program itself.
This is the only way.
Correct me, if I am wrong.
Can I know the name of the report?
Thanks,sarika. -
Hi,
can anybody provide me demo code for using PNP ldb?
abctables pernr.
infotypes 0002.
data: begin of itab occurs 0,
vorna like pa0002-vorna,
end of itab.
data wa like line of itab.
*write 'abc'.
get pernr.
provide * from p0002
BETWEEN PNPbegda AND PNPENDDA.
move p0002-vorna to itab-vorna.
append itab.
clear itab.
endprovide.
end-of-selection.
loop at itab.
write:/ itab-vorna.
endloop. -
How to get locked records of a pernr while using PNP LDB
is there any way to retrieve locked records of a pernr
while using PNP LDB??currently the get pernr event is unable to load locked records of a pernr.Hi,
PL use this piece of code in your Program..
INITIALIZATION.
PNP-SW-IGNORELOCKEDRECORDS = 'N'.
Regards,
Suresh Datti -
How to add table Z to infoset that is using PNP or PNPCE
hello my friends... i thing that the subject explains my situation... i want to add a Z table to infoset that is using PNP or PNPCE database, then i want to use the fields of Z table to selection criteria
regards and thanks in advance
MárioHi Mario,
As you go to GOTO - Global Properties while maintaining the infoset, you will realize that an infoset can either have a logical database or table join-not both at the same time-.
However, in your case, you can use References - Text field for respective fields in field group.
If it is a custom infotype, you can directly relate the text table to the domain of the data element of the infotype field.
-Please check IT0002 Country of birth as reference-
Regards,
Dilek -
Assign defaulit values while using PNP
Hi Everybody,
I am using Logical Database PNP for the one of my implementation. i have to develop a new report using PNP logical database. Now I have to assign default values for Employee status and Employee Group. while executing the report, in the selection screen default values must be "3" and '1" . How to assign them.
Thank and regards,
giri.Initialization.
pnpstat2-sign = 'I'.
pnpstat2-option ='EQ'.
pnpstat2-low = '3'.
APPEND pnpstat2.
CLEAR pnpstat2. -
No Filtering while using PNP DB
HI all,
I am using PNP DB to get the HR data...
I m giving the data range in the std selection screen ...
but it is not filtering the data on the basis of data range....
it is giving all the data which are present in the DB...
plz help me in trobleshooting the problemm....
thnx
Rohit>
Rohit Kumar wrote:
> Thnx for replying SK....
> my code is like this...
>
> INFOTYPES: 0000, "Action
> 0001,
> 0002, "Personal Data
> 0006, "Address
> 0008,
> 1001,
> 0105, "Communication
> 0041. "Date Specification
> * 9000.
> *----
> * TABLES
> *----
> TABLES: "pernr, "Standard Selections for HR Master Dat
> t510,
> pa0000,
> hrp1001.
>
> TYPE-POOLS: slis.
> -
> -
> ..........
>
> START-OF-SELECTION .
> *Fetch Data from LDAP / Active Directory Server for reconcilation
> PERFORM get_ldap_data.
>
> *Get SAP HR data
> rp_set_data_interval 'P0002' PN-BEGDA PN-endda.
> rp-set-name-format.
>
> GET pernr.
> PERFORM get_sap_data.
>
> rp_provide_from_last p0002 space PN-BEGDA pn-endda.
> IF PNP-SW-FOUND = 1.
> * get last name
> MOVE p0002-nachn TO g_nachn.
> *get first name
> MOVE p0002-vorna TO g_vorna.
> endif.
>
> ....do the selection screen makes any differance....
>
> i m using std one.....
>
> plz suggest...
>
>
> and amit Gupta ---i am passing the values as shown above....as it is...
>
> Edited by: Rohit Kumar on Sep 17, 2008 6:26 PM
Hi Rohit
The code is working fine for me, could you please post the values of pn-begda and pn-endda and the data(key fields) returned by LDB into the internal table P0002 and let us know as why you think LDB is not restricting the data. Here is the code that i've tested
REPORT zytest.
INFOTYPES: 0000, " Actions
0001, " Org Assignment
0002, " Personal Data
0006, " Address
0008, " Basic Pay
1001, " Relationships
0070, " Court orders
0105, " Communication
0041. " Date Specification
*9000.
*TABLES
TABLES: pernr, "Standard Selections for HR Master Dat
t510,
pa0000,
hrp1001.
TYPE-POOLS: slis.
START-OF-SELECTION .
*Fetch Data from LDAP / Active Directory Server for reconcilation
*PERFORM get_ldap_data.
*Get SAP HR data
rp_set_data_interval 'P0002' pn-begda pn-endda.
rp-set-name-format.
GET pernr.
*PERFORM get_sap_data.
rp_provide_from_last p0002 space pn-begda pn-endda.
IF pnp-sw-found = 1.
*get last name
*MOVE p0002-nachn TO g_nachn.
**get first name
*MOVE p0002-vorna TO g_vorna.
ENDIF.REPORT zytest.
INFOTYPES: 0000, " Actions
0001, " Org Assignment
0002, " Personal Data
0006, " Address
0008, " Basic Pay
1001, " Relationships
0070, " Court orders
0105, " Communication
0041. " Date Specification
*9000.
*TABLES
TABLES: pernr, "Standard Selections for HR Master Dat
t510,
pa0000,
hrp1001.
TYPE-POOLS: slis.
START-OF-SELECTION .
*Fetch Data from LDAP / Active Directory Server for reconcilation
*PERFORM get_ldap_data.
*Get SAP HR data
rp_set_data_interval 'P0002' pn-begda pn-endda.
rp-set-name-format.
GET pernr.
*PERFORM get_sap_data.
rp_provide_from_last p0002 space pn-begda pn-endda.
IF pnp-sw-found = 1.
*get last name
*MOVE p0002-nachn TO g_nachn.
**get first name
*MOVE p0002-vorna TO g_vorna.
ENDIF. -
Strange Dump while using HR_INFOTYPE_OPERATION.
Hi frnz,
I am facing dump while using the FM 'HR_INFOTYPE_OPERATION' as below. <b>If I swap positions of w_p0041-endda and w_p0041-begda it does not give a dump but error msg is generated saying that no selection in the period(as obviously dates are in propper range).</b> <u>Whlie testing the FM in SE37 with the same data, it works fine.</u> Please help me find the problem.
data: TCLAS like PSPAR-TCLAS,
OPERATION like PSPAR-ACTIO,
infty like PRELP-INFTY.
infty = '0041'.
OPERATION = 'MOD'.
TCLAS = 'A'.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = infty
NUMBER = w_p0041-pernr
SUBTYPE =
OBJECTID =
LOCKINDICATOR =
VALIDITYEND = w_p0041-endda
VALIDITYBEGIN = w_p0041-begda
RECORDNUMBER =
RECORD = w_p0041
OPERATION = OPERATION
TCLAS = TCLAS
DIALOG_MODE = '0'
NOCOMMIT = SPACE
VIEW_IDENTIFIER =
SECONDARY_RECORD =
IMPORTING
RETURN = Return
KEY =Hi all ,
I have already tried converting date to internal format, the data types are also fine. I am not able to paste the screen shot so here is a part of it. Please help.
************DUMP************************************
If we can not remap we would like to just re-raise the
exception like below like "RAISE EXCEPTION exception.".
Unfortunately the kernel will then forget about the
original source position.
So this is the fallback strategy. Calling this method
is only allowed if the exception can be resolved. Since
this is not the case we indicate a parameter violation.
RAISE EXCEPTION TYPE cx_hrpa_invalid_parameter
EXPORTING
previous = exception
parameter = 'EXCEPTION'.
ENDMETHOD.
********************END**************
Thanks
Sachin
Maybe you are looking for
-
Unable to Load data in Planning
Hi, I am receiving this error when ever i am trying to load data. Launch error message: "An error occurred while running the specified calc script. Check the log for details." and some times "You will be unable to update data when essbase in archive
-
Hi Linksys, I have V1.00R24 of the firmwar installed. The PC is a HP Quad core running Vista Ultimate. Router is a Netgear DG834G ADSL Router (Sorry). Can you please assist with the following? Wireless Setup. I cannot set up the camera with either
-
Hello, I cannot find a fix for this. I have been doing research off and on for a week or so. Any ideas or directions in which to point me? Any help would be greatly appreciated. Thanks. Interval Since Last Panic Report: 27789 sec Panics Sin
-
Do I have to register all *.jsp servlets in web.xml?
All, I'm hoping someone in this forum can help me. I'm working on a report generator that uses JSP to generate a template which is fed to a formatter. What I want is to programatically call the JSP without having to add an entry for every single repo
-
I'm new to this. What's this header for?
Reader XI messes up PDF of Excel table. If I could learn the conversion rules maybe I could work around the problem. Otherwise the need for excessive trial and error would convince me to abandon XI. Does anyone know the conversion rules or how to get