Problem in executing query in RSCRM_BAPI & output in application server!
hi Experts,
We executed a query using RSCRM_BAPI transaction and write it to the application server.We found the following problem.
In the query we have restricted the keyfigures such that each have 2 decimal places but when we execute the query using RSCRM_BAPI and writing into the application server the more than 2 decimal places are coming in to the file.
For example:
In the query the value is 12.12 but in the application server its written as 12.1200000
So the width gets elongated and some of the keyfigures are truncated.
We have already have gone through the restrictions in the SAP Note Number 605208
Please help us to find a solution to get output of keyfigures same as whatever coming in the output of query.
Thanks in advance
Somenath
sorry, i mistakenly sent it in different id....this is my id.......if it is useful assign points to this id...
Using RSCRM_BAPI, RSCRM_REPORT, suitable for simple query.
In your query you are using Restricted, calculated keyfigure.in that case RSCRM_BAPI, RSCRM_REPORT has some restriction.
Check OSS 605208 which describes RSCRM_BAPI restrictions .
Re: Master Data Datasources
You can Modify the Wrtiequery abap program for your requirement.
or
Create a ABAP program for extracting a bw query and upload it in Application server in csv format.
Thanks,
senthil kumar
Similar Messages
-
Drill down problem when execute CR Viewer from Sap Web Application Server
Hello,
We are using Sap Was 7.01.
The report viewer jar files deployed to the j2ee engine , and I am using j2ee servlet application to execute the report.
Everything works OK, but when I am trying to drill down to the next sub report the screen become blank.
I checked with httpwatch and it seems that there is no response from the server , after DD.
The web.xml file look like this:
<web-app>
<display-name>WEB APP</display-name>
<description>WEB APP description</description>
<context-param>
<param-name>crystal_image_uri</param-name>
<param-value>./CrystalReports/crystalreportviewers</param-value>
</context-param>
<context-param>
<param-name>crystal_image_use_relative</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>crystal_servlet_uri</param-name>
<param-value>/CrystalReportViewerHandlers</param-value>
</context-param>
<servlet>
<servlet-name>CrystalReportViewerServlet</servlet-name>
<servlet-class>com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>reportviewerClient.jsp</servlet-name>
<jsp-file>/reportviewerClient.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>ReportViewerSrvlt1</servlet-name>
<servlet-class>com.illumiti.demo.ReportViewerSrvlt1</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>CrystalReportViewerServlet</servlet-name>
<url-pattern>/CrystalReportViewerHandler</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ReportViewerSrvlt1</servlet-name>
<url-pattern>/jRun</url-pattern>
</servlet-mapping>
</web-app>
There are no javascript errors and I can see that the following JS files exist on the browser cache:
allInOne.js
allStrings_en.js
crv.js
Also the dynamic rendering of the graphic objects working, for exampale:
http://sapdevpor.themigroup.net:52000/ReportViewerNwds/CrystalReportViewerHandler?dynamicimage=crystal1258027361240644774257355486184.png
sapdevpor is the Sap application server.
Need help with this asap.
Thanks
NirHello,
to which directory have you unzipped the Files? I would suggest C:\temp because there are problems with long filenames. Have you tried to reboot and then disconnect Drive M:?
Regards
Gregor -
Output to application server.
Hello All,
I have ouput in HIERARCHIAL LIST. Im displaying Header table G_T_VBAK and Item table G_T_VBAP.
I want to save this output in application server. Can any one help?
My code is as follows.
OPEN DATASET g_f_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc NE 0.
MESSAGE e899(mm) WITH 'not possible' space space space.
EXIT.
ELSE.
LOOP AT g_t_vbak.
TRANSFER g_t_vbak TO g_f_file.
LOOP AT g_t_vbap.
TRANSFER g_t_vbap TO g_f_file.
ENDLOOP.
ENDLOOP.
ENDIF.
It is giving dump at the line TRANSFER g_t_vbap TO g_f_file. (second loop statement).
Good answers will be appriciated with points.
Thanks in advance.
Best Regards,
Sasidhar Reddy Matli.Hello Kris,
The dump message is as follows:
What happened?
Error in ABAP application program.
The current ABAP program "ZSSR_ORDER_DETAILS_HIER1" had to be terminated
because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
Error analysis
Only character-type data objects are supported at the argument
position "f" for the statement
"TRANSFER f TO ...".
In this case, the operand "f" has the non-character-type "u". The
current program is flagged as a Unicode program. In the Unicode context,
type X fields are seen as non-character-type, as are structures that
contain non-character-type components.
Source code extract
002370 FORM download_to_application_server .
002380
002390 OPEN DATASET g_f_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
002400
002410 IF sy-subrc NE 0.
002420
002430 MESSAGE e899(mm) WITH 'not possible' space space space.
002440 EXIT.
002450
002460 ELSE.
002470
002480 LOOP AT g_t_vbak.
002490
002500 TRANSFER g_t_vbak TO g_f_file.
002510
002520 LOOP AT g_t_vbap.
> TRANSFER g_t_vbap TO g_f_file.
002540 ENDLOOP.
002550
002560 ENDLOOP.
002570
002580 ENDIF.
002590
002600 ENDFORM. " download_to_application_server
Best Regards,
Sasidhar Reddy Matli. -
Problem in executing query in browser and bex analyzer
i am not able to execute query in browser nor bex analyzer...
problem is that i dont have option to run in bex analyzer in query designer (menu bar seems missing in query designer and how can i get enabled
and when execute the query in browser using bex query designer ..it prompts me with following error
URL http://saperpdev.saperpdev.com:8002/sap/bw/BEx call was terminated because the corresponding service is not available
Note
■The termination occurred in system ERD with error code 403 and for the reason Forbidden.
■The selected virtual host was 0
ErrorCode:ICF-NF-http-c:000-u:SAPSYS-l:E-i:SAPERPDEV_ERD_02-v:0-s:403-r:Forbidden
and i tried to open the query from bex analyzer level
it prompts me as follows
macros are disabled because the security level is set to high and digitally signedtrusted certificate is not attached to the macros,to run the macros change the security level to lower settings
pls suggest mehi suman,
thanks for your response.. but let me be more clear
i am using sap gui 7.20 front end and when i execute rrmx i am able to navigate to BEx analyzer but when i tried to open a report which i create i get following error message..
you do not have sufficient authorization for infoprovider zic_proj
function module /SDF/AL_MAP_TRANSID_LOGH doesnt exit
second thing is that i tried from bex query designer to execute the report ..but i am not able to execute the report...
i hope some connections seems missing..please let me know what to do ASAP..
and where can i post this question to get fast reply -
Problem in Execute query on non-database block and database block together
Hi All,
In my form,i have
1. First block is Non-database block with one non-database item.
2. Second and third blocks are database blocks.
Now the problem is that i want to perform execute-query for all the blocks.
If the cursor is on the non-database item of 1st block and i clicks on the "Enter-query" then i am getting message " This function can not be performed here".
If i click on the item of the database block and then clicks on the "Enter-query" and then "execute-query" it's working fine.
But i don't want to do in this way.
My cursor will be on the First block only and then it should perform execute-query.
I am using this non-database item to copy value of this item to the item of the database block item.
I think i make you understand about my problem.
I am using forms 10g on Window xp.
Please help me.Hi!
Simply create a enter-query trigger on the non-database-block:
begin
go_block ( 'database_block' );
enter_query;
end;If your search criteria is in the non-database-item in the first block,
you actually do not need the enter_query build-in.
Just create a execute-query trigger on the first block like:
begin
go_block ( 'database_block' );
execute_query;
go_item ( :System.trigger_item );
end;And in a pre-query trigger on the database-block copy the
value of your seach item into the item you want to search for.
Regards -
Problem in execute query?
hello all,
table structure:
create table cor_dept_mst (dept_locn_code varchar2(6) not null,
dept_code varchar2(2) not null, dept_name varchar2(200), constraint cordeptmst_pk primary key(dept_locn_code,dept_code));
in form all 3 feilds dispaly.
when i save new record.. save successfully.
but when i execute query records not display (do not pass any value)
records are display after execute if and only if i pass value to dept_code. in this case i pass 01 for dept_code and all records displaying...
this very silly error.. i use block where clause.
please help
thanks
yashoopss.....
there was a silly code which halt the execute query... -
Problem of Delete and Overwrite XLS file on Application Server
Hi Experts,
I want to transfer file on application server using below code and try to delete after successfully transfer on application file to other location.
I have problem during deleting file and overwrite file.
DATA: G_S_FILE TYPE EPSFILNAM,
G_S_DIR TYPE EPSDIRNAM,
G_T_FILE TYPE EPSFILNAM,
G_T_DIR TYPE EPSDIRNAM.
DATA : DELFILE(60).
G_S_FILE = '1400000051.XLS'.
G_S_DIR = '\\Dev\PO\'.
G_T_FILE = '1400000051.XLS'.
G_T_DIR = '\\Dev\PO\bkup'.
DELFILE = '\\Dev\PO\1400000051.XLS'.
CALL METHOD CL_CTS_LANGUAGE_FILE_IO=>COPY_FILES_LOCAL
EXPORTING
IM_SOURCE_FILE = G_S_FILE
IM_SOURCE_DIRECTORY = G_S_DIR
IM_TARGET_FILE = G_T_FILE
IM_TARGET_DIRECTORY = G_T_DIR
IM_OVERWRITE_MODE = 'S'
EXCEPTIONS
OPEN_INPUT_FILE_FAILED = 1
OPEN_OUTPUT_FILE_FAILED = 2
WRITE_BLOCK_FAILED = 3
READ_BLOCK_FAILED = 4
CLOSE_OUTPUT_FILE_FAILED = 5
OTHERS = 6.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
OPEN DATASET DELFILE FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF SY-SUBRC = 0.
DELETE DATASET DELFILE.
ELSE.
WRITE / 'File not found'.
ENDIF.
Thanks,
Himanshu Patel.Write a Java program using Apache POI that reads in a tab delimited file and outputs an xls file (in what they call Horrible Spread Sheet Format. Create your tab delimited file and then run your Java program using appropriate OS commands.
Jelena Perfiljeva wrote:
In all honesty, I find it hard to believe other application can't accept any other format. It's actually seems rather unreasonable to expect an ERP system to create a file in an outdated format of a desktop software. Even Excel itself can open many formats, so this just doesn't make any sense.
This.
Unless you can explain exactly why the destination must be xls and no other format is acceptable, I'm going to close the thread. What is this third party tool? Why can it only read the obsolete xls file format.
I'm going through this thread and rejecting all the responses that attempt a solution that isn't xls.
I'm surprised that the OP thought that simply saving with an xls file extension would cause some magic to happen and produce an actual Excel file. -
Query to be saved in Application Server
Hi Gurus ,
We are on BI 7.0 SP 10 , We have a requirement, to send a Query Report to an Application Server .
Is it Possible ??? If yes how ? Appreciate if you can give in detail how we can implement this in BI 7.0 .
Waiting for a quick Reply .
Thanks in Advance !
Thanks & Regards
Zeenath Syeda
Hewlett Packard
SingaporeHi Chetan ,
Thanks for giving different options , but as i understand from Tcode RSCRM_BAPI, the report which we have done with queries or workbooks can't be sent through this Tcode as excel , it can be downloaded as .CSV or file fixed Length . We want the normal query or workbook need to be sent to the user at the application server in the form of formatted reports .
So the only option left is the third one ie the KM using the EP .
Any other option left apart from this for my this kind of requirement .
Please suggest , if any .
Thanks
Regards
Zeenath -
Spool to PDF output in application server
Hi Experts,
I have a problem with converting spool to PDF. If I download the spool to presentation, the outputs is fine, BUT when I download it to application server and try to view it in al11, a set of characters comes out and if I try to save it on my local drive, an error message pops out stating that it could not read the file because it is either not a supported file type or because the file has been damaged. Please help me. I've tried doing everything I can already. I cannot run the convertion of spool file to presentation because it always ends up as run time error, that's why I have no choice but to run it in background. These files needs to be distributed to all branch offices. Please, please.......help......I'm desperate......Hi Nikhil,
I'm sorry....but I'm still stucked. If I try to view the pdf output in AL11 this characters are still displayed "═䑆ⴱ⸳ഊ◢팍ਲ扪ഊ⽗楮䅮獩䕮捯摩湧ഊ敮摯扪ഊ㌠〠潢樍਼㰍ਥ䑥癴祰攠偏協㈠⁆潮琠䍏啒䥅删潲浡氠䱡湧⁅不ਯ呹灥 䙯湴ഊ⽓畢瑹灥 呹灥ㄍਯ䉡獥䙯湴 䍯畲楥爍ਯ乡浥 䘰", and when the basis transferred it to the local folder the same error came out that the file could not be read either it is corrupted or file type is not supported. Please.....I've been on it for hours and can't seem to get the problem. Here's what I did with the program....Please tell me where I went wrong.....Help......
PARAMETERS: p_file TYPE LOCALFILE DEFAULT TEXT-F02 OBLIGATORY.
DATA: gd_buffer TYPE STRING OCCURS 0 WITH HEADER LINE.
lt_conv LIKE gd_buffer OCCURS 0 WITH HEADER LINE.
DATA lv_string TYPE string.
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING '~'.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~'.
APPEND gd_buffer.
DO.
counter = strlen( gd_buffer ).
IF counter GE 255.
lt_conv = gd_buffer(255).
APPEND lt_conv.
SHIFT gd_buffer LEFT BY 255 PLACES.
ELSE.
lt_conv = gd_buffer(counter).
APPEND lt_conv.
EXIT.
ENDIF.
ENDDO.
IF lt_conv[] IS NOT INITIAL.
OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc EQ 0.
IF sy-subrc <> 0.
MESSAGE e398(00) WITH 'Error creating file' p_file.
ENDIF.
LOOP AT lt_conv INTO lv_string.
TRANSFER lv_string TO p_file.
ENDLOOP.
CLOSE DATASET p_file.
IF sy-subrc EQ 0.
ELSE.
MESSAGE e398(00) WITH 'Error closing file' p_file.
ENDIF.
ELSE.
MESSAGE e398(00) WITH 'Error creating file' p_file.
ENDIF.
ENDIF. -
Problem accessing data from Pointbase embedded in the application server
When i try to access any information from a table in the pointbase database thru my jsp file it gives the error :"Invalid table name 'Table-name' specified at position 'position'.
I am using the sun application server installed on the solaris machine and i created new table in the sample database PBPublic schema (a default schema that comes with the embedded pointbase database) and when i try to get data from the table i created i get the specified error.The connection string i use is :
String l_driver = "com.pointbase.jdbc.jdbcUniversalDriver";
Class.forName(l_driver).newInstance();
// The URL for the sample PointBase database
String l_URL = "jdbc:pointbase:embedded:sample";
// Database UserID
String l_UID = "pbpublic";
// Database Password
String l_PWD = "pbpublic";
// Establish connection with the database and return a Connection object
con = DriverManager.getConnection(l_URL, l_UID, l_PWD);
it connects me to the database but does not fetch results on the query i execute.
can anyone suggest what am i suppose to do for resolving this error.I've never used an embedded db. My connection settings are:
<jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="com.pointbase.jdbc.jdbcDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" name="jdbc-pointbase-pool" pool-resize-quantity="2" steady-pool-size="8">
<property name="DatabaseName" value="jdbc:pointbase:server://localhost:9092/sample"/>
<property name="Password" value="pbpublic"/>
<property name="User" value="pbpublic"/>
</jdbc-connection-pool>
-- markus. -
Problem with saving data in text file in Application server
Hello Experts,
I am trying to save a text file in application server.When I text file have less that 60000 (i.e 59999) records, it saves the file successfully, but if records in text file (saved in application server) is more than 60000 (i.e 60002), it creates a new file at the 60000th record with the continued records.
Can anyone please advise, why it is creating a new file if records are more that 60000. I tested it with 59000 records in my internal table and it is working fine. I have not given any restriction in my program to create a new file if records are more than 60000.
The logic I implemented is the following:
*Open file
open dataset g_accnt_file for output in text mode encoding utf-8.
if sy-subrc = 0.
clear g_header_record.
*Building header record for Accounting Validation file
concatenate gc_hdr_desc
gc_filetype
gc_sequence
gc_idntf_refresh
gc_cmpny_idntf
gc_accnt_id
sy-datum
sy-uzeit
gc_linde_group
sy-sysid
gc_not_used into g_header_record separated by
gc_deliminator.
transfer g_header_record to g_accnt_file.
*Move Cost center data to file to create a detail record for Accounting
*Validation file
loop at gt_csks into gs_csks.
*Remove leading Zeros
call function 'CONVERSION_EXIT_ALPHA_OUTPUT'
exporting
input = gs_csks-kostl
importing
output = gs_csks-kostl.
* Overlay gs_csks-kostl with space.
* SHIFT gs_csks-kostl RIGHT DELETING TRAILING gc_space.
*Prepare Cost Centre String
perform prepare_costcentre_string.
*Prepare detail record with Company Code & Cost Centre
perform prepare_detail_record.
clear:g_detail_record,gs_csks,g_coa.
endloop.
*Move Order data to file to create a detail record for Accounting
*Validation file
loop at gt_aufk into gs_aufk.
*Remove leading Zeros
call function 'CONVERSION_EXIT_ALPHA_OUTPUT'
exporting
input = gs_aufk-aufnr
importing
output = gs_aufk-aufnr.
* SHIFT gs_aufk-aufnr RIGHT DELETING TRAILING gc_space.
*Prepare Order String
perform prepare_order_string.
*Prepare detail record with Company Code & Order
perform prepare_detail_record.
clear:g_detail_record,gs_aufk,g_coa.
endloop.
*Move WBS data to file to create a detail record for Accounting
*Validation file
loop at gt_prps into gs_prps.
call function 'CONVERSION_EXIT_ABPSP_OUTPUT'
exporting
input = gs_prps-pspnr
importing
output = g_wbs_element.
* SHIFT g_wbs_element RIGHT DELETING TRAILING gc_space.
*Prepare WBS Element String
perform prepare_wbs_string.
*Prepare detail record with Company Code & WBS Element
perform prepare_detail_record.
clear:g_detail_record,gs_prps,g_coa.
endloop.
*Building trailer record for Accounting Validation file which will
*contain the total number of detail records in file
concatenate gc_trail_desc
g_total_count
into g_trailer_record
separated by gc_deliminator.
transfer g_trailer_record to g_accnt_file.
*Close file
close dataset g_accnt_file.
if sy-subrc = 0.
message s036(/lig/fi).
endif.
endif.
endform. " SELECT_DATA
Edited by: Matt on Sep 30, 2010 11:02 AM - added tagsHi Pankaj,
Can u check the concatenate statement with one more data. Check the no of lines for a single file.
concatenate gc_hdr_desc
gc_filetype
gc_sequence
gc_idntf_refresh
gc_cmpny_idntf
gc_accnt_id
sy-datum
sy-uzeit
gc_linde_group
sy-sysid
sy-subrc
gc_not_used into g_header_record separated by
gc_deliminator.
Regards,
Amitava -
Writing smartform output in application server
Hi,
i have a smartform output having logo and other details. After this i am converting the smartform output to PDF file and i tried write into application server using Open Dataset, Close Dataset. The thing is i am unable to see the output in pdf file and when i tried to open am getting some error. Is there any way to write pdf file which having logo into application server.
please guide me.what mode did you use in th open dataset statement?
You should use BIN mode in open dataset statement.
Regards,
Ravi -
How to Programatically send adobe form output to Application Server?
Has anyone got a program which calls adobe form function module and then dumps the output to App Server?
used function 'ADS_WRITE_TO_FILE'
-
Not displaying the actual output in application server.
HI expert's,
thanks in advance.
i am getting output in grid format, it displaying data in grid format,but i am trying to pass this grid internal table into application server , my file is going to application server but there output coming in row wise, not in colum wise.
how i will get same output wat i am getting in grid output, in to application server.
i have an internal table that data is storing in that,i am thinking we have to convert grid to normal display is it correct ? or not( )
please response as soon as possibe please.yes, i tried like this also,
but my output what iam getting in grid format , not exactly getting in application server
just find below ex.
(ex: grid output: aaa bbb cccc dddd
111 222 3333 4444)
in application server output like below.
aaa
bbb
ccc
ddd
111
like so on)
i need same output wat i am getting in grid output, in to application server. -
Download PrintWork Bench Output on Application Server
Hi Experts,
My requirement goes like this.
I have to download the output of the form IS_U_METER_READING_DOWNLOAD into .txt files on application server.
and Also, these files should be named as "CCYYMMCitycodePORTIONMRUD.txt"
How do I do it?
Even a small help will also be appreciated.
Thank you!Hi Sabu,
IS_U_METER_READING_DOWNLOAD is an application form for PrintWork Bench.
and it has SAP Script.
Appreciate ur time and concern.
Thanks.
Regards,
Dev!
Maybe you are looking for
-
Bug in apex_util.GET_PRINT_DOCUMENT?
When call apex_util.get_print_document like this on apex.oracle.com t_pdf := apex_util.get_print_document( p_report_data => t_xml , p_report_layout => t_xsl I get a ORA-00942: table or view does
-
Button to open a seperate page
Hello All, Oracle 11g, Apex 3.1.2 i have a button with label - "Search Dictionary" when i click this button , it opens the url link in the same page - but i want to open as a seperate page . How to do so. Second thing is how to create a URL link on a
-
I just recently made the big jump to using final cut pro. Right off the bat I'm having trouble with importing video. The camcorder connects and imports video fine with Imovie HD, but when i use final cut pro it says that there is no connection in the
-
Missing part of MP3 when in Clip Trimmer
Hey guys, I just started using iMovie, was quite knowledgable with Adobe Premiere, but switched to a Mac. Working on a little side project with a band and I have my video clip alright, but when I come to add the 26min sound clip, in the clip trimmer,
-
AppleMobileBackup crashes during restore
I need to restore my iPhone 3G from a backup. I connected it to my computer, right clicked on my iPhone in iTunes, and chose "Restore from Backup...". It said it was restoring, but after several minutes Windows XP reported that AppleMobileBackup.exe