ABAP report Query
in an internal table(I_VEPO) i have two reocords with fields SDABW , TKNUM, VBELN, ERDAT , and TOT_VALUE(hardcoded). these reocords are having same data except TOT_VALUE so i want to make it single records by adding their TOT_VALUE, please giv me the soution how to work on this.
1 PS2 13108970 202.50
2 PS2 13108970 11,988.00
must be
PS2(SDABW) 13108970(TKNUM) 12,190.50(TOT_VALUE)
Ps. Or, try looping & adding then putting the values into a new internal table. You can create an identical one in one line:
data: t_new like t_old occurs 0 with header line.
Kind regards
Ash Thomas
<a href=http://www.ashthomas.com>Sap Abap CV & Sap Abap Resume</a>
<a href=http://www.ashthomas.com>www.ashthomas.com</a>
Similar Messages
-
Can i call a BEx query in ABAP report and display in ALV grid. if so please give me the syntax.
Thanks
Akila.RLook at the FM "RSDRI_INFOPROV_READ".
With this you can read data into a internal table of your program.
With this FM, you can do a selective read and select only the key figures and characteristics that you wish to read in your ABAP.
I am not ure, if you can call a BEx report in your ABAP. But with what I mentioned here, you can acheive what you want.
Ravi Thothadri -
Executing ABAP Report- No memory for processing HTTP, HTTPS or SMTP query
Hello experts,
I am getting same error while running ABAP Report- /OSP/TRIGGER_LEAVE_SCHEDULER
Error-
No memory for processing HTTP, HTTPS or SMTP query .
Please help.
Regards,
ShashankHello
This should solve it
1562539 - No memory for processing HTTP, HTTPS, or SMTP queries.
Thanks
Alagappan -
Hi Experts,
We have a requirement to convert already existed SQL query report to normal ABAP report.
we need to develop the report from scratch or is there any short cut way to reduce the development time.
can you please guide me .
Thanks in advance.
Thanks
Sai
Edited by: sai on Oct 12, 2010 7:28 AM
Edited by: sai on Oct 12, 2010 7:42 AM
Edited by: sai on Oct 12, 2010 7:44 AMclosing the thread.
-
Conversion from query to ABAP report
Hi,
I have already a query (report), displaying some data.working perfectly.
now i want to convert that Query to ABAP report, with same selection screen and functionality?
Is there any process for conversion or i have to create just like a normal report and writing the code....
Thanks in advance,
fractalThere is no standard conversion available as such, but you can find out the Query Report name and then copy that to another program and make your changes. But it is preferable to just write it from the start as queries are notorious for their select statements.
I don't know why you intend to write a report even though your query is working, but if you want to do it, write your own program. You can always keep the same selection screen.
Regards,
Srinivas -
Hi Experts,
I have a question regarding ABAP query and report.
what is the difference between ABAP query and ABAP report ?
will the query be more efficient than abap report ?
Is there a standard SAP report that could replace a query?
Thanks in advance,
ManojHi,
A report is a piece of logic that you write in (this case) in a programming language (ABAP). It uses the syntax of the normal commands of the PL.
ABAP Query is a higher level tool, that reduces or eliminates the need to "program" in the PL, and rather uses more intuitive, graphic tools, to basically get the same results.
Generally speaking, if the reporting needs are simple and standard, it is easy and feasible to use the query. The more complex the logic gets, the more you'll probably need to use programming.
Regards,
Mario -
Hi Experts,
I have question regarding ABAP Reports, SAP Query, and Transaction with variant. How are we securing one the above reports that we assign them through pfcg. We can secure custom program by custom transaction or define the auth group in S_PROGRAM auth object but in this case we have to assign SA38 in production. is that correct?
Please help me understand difference between the ABAP reports and SAP query. Is the ABAP reports same as Program or they are different.
Thanks in advance
Faisal
Edited by: Faisal on Jun 30, 2009 11:06 PMHi,
1) End user security (role matrix coordinate with process team)
This role Matrix design is most important where we can put restrictions and use SoD.
2) Secure Table (by auth group)
Table TDDAT and use of transaction se54 for security tables to right auth Groups. Secure s_tabu_dis, s_tabu_cli.
3) Secure program (as you said ABAP reports are referred to Program)
Use of table TPGP and program RSCSAUTH for assignment of groups to Program. SA38 Running of SA38 requires a minimum SUBMIT in user Action. A user having SA38 is dangerous as he/she is now enabled to run any report. Hence protection in Auth Group is needed. Verify each and every program is having authority check statement and Auth Group or not before assigning sa38. As you mentioned its best to avoid SA38 and create CUSTOM TXN for each report.
(We should also SECURE S_DEVELOP in Production properly along with ur points. Please Note).
4) Secure some batch jobs roles for batch job
Secure by s_btch* objects and less access to se36.
5) Create support roles for cutover activity during Go-live
That is always needed. Go ahead.
6) Emergency roles & IT roles for support
This is very much needed as a role of Mitigation and Fire Fighting for Temporary access. Ensure to enable ur audit parameters in RZ10 (rsau* sm20,RSLG* for sm21). Give emergency access but enable audit via sm19 and get audit reports from sm20 and sm21 immediately after the use of emergency access.
There are also other auth objects we need to be care ful which is a long list and hope every body ensures that (s_cts,a_admi,s_trans, tables ssm_cust, prgn,t000) etc and a host of others. Besh wishes. Let us know if any issue.
Regards
Aveek. -
Need knowledge on sap upgrade 4.7 to ecc 6.0 in abap reports and sap query
please give me some ideas and useful links on sap upgrade 4.7 to ecc 6.0 in abap reports and sap query
Hi Jaya,
Not very clear with your question.
Are you looking for changes in areas od ABAP reports & SAP query when we upgrade SAP from 4.7 to ECC 6.0 ??
If the response is YES, then please refer to SAP solution browser www.sapsolutionbrowser.com
Define source release and target release .
You will get module wise details on new features for target release.
Hope this helps.
Regards,
Deepak Kori -
Hi,
1.What is the difference between ABAP Query and ABAP report?
2.What are the advantages of LSMW over BDC?
Regards,
AjitHi,
Please read the rules of engagement before you post.
Step 1: Finding An Answer
Rule number one: Try to find the answer first. There are tons of resources out there, show that you have tried to find the answer. A question that shows that the person is willing to try and help themselves is more likely to be answered than one which simply demands information. Tell us what you have done to try and solve the problem yourself - often we can learn from that too!
Search the forums, the articles, the blog posts and the Frequently Asked Questions (FAQ) in the Wiki for your topic. -
Bex query for BW abap report/ transaction
Hi Experts, Here is a scenario: I developed ABAP program in BW using multiple DSOs for complex logic. Since I cannot use abap program directly in BO reports, I need to develop a query in BW for my abap program. Is it possible to develop a bex query for BW abap report / transaction in BW? I have limited knowledge on BW and BO. Please help me. Thanks in advance Raghu
First of all thanks for your suggestion Matthew..!
As you said, I created virtual info cube based on function module.
In the info cube, I defined (4)dimensions and (1)key figure.
In the fucntion module, appropriate below parameters defined and code written for the data table (e_t_data)
CALL ZFM_XXXXXXX
EXPORTING
i_infoprov = " Name of InfoProvider
i_th_sfc = " rsdri_th_sfc: List of Characteristics
i_th_sfk = " rsdri_th_sfk: List of Key Figures
* i_t_range = " rsdri_t_range: Range List
* i_tx_rangetab = " rsdri_tx_rangetab: Table from Range List
* i_first_call = " rs_bool First Call
* i_packagesize = 100000 " i Package Size
IMPORTING
e_t_data = " standard table: Data Table
e_end_of_data = " rs_bool :End of Data Reached
e_t_msg = " rs_t_msg : BW: Table with Messages
Test:
Right click the info cube and choose "displayed data", immediately it triggered above function module.
when I see the import parameters data,
no characteristcs data in i_th_sfc. But, key figures has data (1 record) in i_th_sfk.
Not sure, Did I missed anything? Please help me.
Thanks in advance -
Calling ABAP report from BEx query
Good day!
I want to call ABAP report from BEx query by right-clicking on the field and using context menu. I know that transaction RSBBS is used (sender-receiver connecting), but I don't know how to transfare data to ABAP program
In ABAP program I want to know at least data from those cell in BEx query, that was right-clicked.Depending on your requirement and environment, you have the following options:
1. Use an info spoke and make selections as you would in a query.
2. USe FM RS_VC_GET_QUERY_VIEW_DATA_FLAT to send the data to a file and your ABAP can read this file.
Ravi Thothadri -
ABAP Query Need to Convert ABAP Report
Dear All,
We have 3 queries which are linked to service management, now, user wants to consolidated one ABAP report with feilds of 3 queries, which consist of total 100 feilds. he want provision of downloading each single query (in ABAP report).
Is ther anyway whee we can pass all the 3 quries values in internal tables and pass to ABAP report?? is there any better way so that we will reduce the writing of big logic for 100 feilds??
Thanks in advance.
Regards
RamkiHi ,
you can do this way..
for every query there is a
* Validating Variant name for Query Name
CONCATENATE '%' <query group> '%' <Query name > '%' INTO w_rname.
SELECT SINGLE * FROM varid WHERE report LIKE w_rname
AND variant EQ p_variant.
IF sy-subrc NE 0.
ENDIF.
* Submit report in background and creating spool
SUBMIT (w_rname) USING SELECTION-SET p_variant
TO SAP-SPOOL WITHOUT SPOOL DYNPRO
SPOOL PARAMETERS wa_pri_params AND RETURN.
COMMIT WORK AND WAIT.
"create spool like above for three query and and capture in Spool and format the three spools
"into one internal table and form one report.
Prabhudas -
One of our abap report is extremely slow, this report is used by all
branches of our company
and we are facing serious performance problem in this report. I have
analyzed the problem
and noted following things.
1) The report used "BSIS" table for a query.
2) In peak times it is observed lot of IO wait is happening on that
particular report and on
"BSIS" table.
3) After analysis of table BSIS it is noted that table has more than 12
million records and
exceeding table class limit in technical setting of tables.
4) Size of table is 4 GB.
5) Table also does not have other indexes apart from one composite PK-
unique index. This
index is composed of 9 fields.
6) Update Stats is has been taken in 10 minutes of BSIS~0.
We are closely analyzing code and where clause of our report.
I want to ask do we need other indexes specially on DATE field which is
not included in
existing index?
Do we need index rebuild as stats are gathered in 10 minutes which is
quite a long time in
my opinion?
Do we need table partition right now as BSIS has 12 million records and
4 GB of size ?
Best Regards
WaqasHi,
1) table bsis is the table for open items (GL-accounts)
-> perfect state of such a table is that there are <b>zero</b> entries,
because all open items had to be cleared and are moved to table bsas
(cleared items)
-> so 1st there is an organisational problem in your company / account dept.
why there are so many open items?
2) analyse the select statements and the abaps, which fetch bsis-table with
st05
-> check, whether key-fields BUKRS and HKONT are filled in where-clause
3)-> look to wiki- ABAP Performance and Tuning
https://wiki.sdn.sap.com/wiki/display/HOME/ABAPPerformanceand+Tuning#ABAPPerformanceandTuning-Whattoolscanbeusedtohelpwithperformancetuning%3F
regards Andreas -
Hi All,
I want add image in ABAP Report.
Please let me know how it can be done?
Regards,
Jagdish MoreHi Jagdish,
to upload the image follow these steps.
1. Upload image in web repository.
Go to Transaction SMW0 to upload the image in SAP web Repository. elect second radiobutton u201DBinary data for WebRFC applicationsu201D and click on find.
2. Click on Execute.
3. Click on Create and give the obj.name and description and click on import.
once the image gets uploaded.in your program do the following
1. Create a Screen.Go to Layout and create Custom Control.I have named it as u2018CONTAINERu2019.
2. Declare container(Custom Control name),picture(child of Container) and url in Top of the program.
data container type ref to cl_gui_custom_container.
data picture type ref to cl_gui_picture.
data url(256).
3. Now create the object Container and Picture.
create object container
exporting container_name = 'CONTAINER'.//name of the custom control
create object picture
exporting parent = container
exceptions error = 1.
4. Now we have to load the picture from the database which we have uploaded. For this we need to declare the following:-
data query_table like w3query occurs 1 with header line.
data html_table like w3html occurs 1.
data return_code like w3param-ret_code.
data content_type like w3param-cont_type.
data content_length like w3param-cont_len.
data pic_data like w3mime occurs 0.
data pic_size type i.
5. Refresh the Query table and give the name of Query table as u2018_OBJECT_ID_u2019 and value as the name of logo/Image which u have uploaded.Append the value in the Query Table.
refresh query_table.
query_table-name = '_OBJECT_ID'.
query_table-value = 'ZLOGO.GIF'."name of logo
append query_table.
6. Now call the function WWW_GET_MIME_OBJECT to get the logo/image which u have uploaded and call the function DP_CREATE_URL to create the url where the image is present.
call function 'WWW_GET_MIME_OBJECT'
tables
query_string = query_table
html = html_table
mime = pic_data
changing
return_code = return_code
content_type = content_type
content_length = content_length
exceptions
object_not_found = 1
parameter_not_found = 2
others = 3.
if sy-subrc = 0.
pic_size = content_length.
endif.
call function 'DP_CREATE_URL'
exporting
type = 'image'
subtype = cndp_sap_tab_unknown
size = pic_size
lifetime = cndp_lifetime_transaction
tables
data = pic_data
changing
url = url
exceptions
others = 1.
7. Finally we have to upload the image from the URL, this can be done by calling the method: picture->load_picture_from_url
call method picture->load_picture_from_url
exporting
url = url.
Now Save,Activate and Execute the Program , Image/Logo got successfully uploaded.
I have already done this program and uploaded the image...
this will surely help you
Thanks and regards,
Tanmaya -
IP - Is it possible to call exit planning function from ABAP Report..
Hi All,
Greetings.
Is it possible to call exit planning function from ABAP Report (t-code SE38) ? Or I mean is not limited only to be called from ABAP Report, perhaps from BSP / Web-Dynpro / Function Module.
If somebody here has been doing it before, I'm keen to ask to kindly share it. Particularly how to call and transfer data to that exit function.
Or if somebody has done in BPS, appreciate if it can be shared too .
Thanks a lot and have a good day,
Best regards,
Daniel N.Hi.
You can achive this as suggested by Mattias in your previous post.
Lets say you have next data structure:
CostCenter | Amount | PercentForDistibution |
Create input ready query in this format. Restrict cost center by variable type range.
Create WAD with analysis item.
When you run web page you enter range of cost centers (lets say you will enter 101004 to 101010).
I assume you have data only for 101004 in your cube (lets say 1000).
You will see only one record in your webpage.
CostCenter | Amount | PercentForDistibution |
101004 | 1000 | NOTHING
When you create WAD in analysis item properties set "NUMBER_OF_NEW_LINES" to lets say 1 (so in WAD you will see always one blank line for entering new data).
Just add 6 new records:
CostCenter | Amount | PercentForDistibution |
101005 | NOTHING| 10
101006 | NOTHING| 30
101007 | NOTHING| 20
101008 | NOTHING| 25
101009 | NOTHING| 5
101010 | NOTHING| 10
Then run planning FOX function like this:
FOREACH Z_COST_CENTER.
IF {Amount, Z_COST_CENTER} <> 0
Z_AMNT_TO_DISTRIBUTE = {Amount, Z_COST_CENTER}.
ENDIF.
ENDFOR.
FOREACH Z_COST_CENTER.
IF {PercentForDistibution Z_COST_CENTER} <> 0.
{Amount, Z_COST_CENTER} = Z_AMNT_TO_DISTRIBUTE * {PercentForDistibution Z_COST_CENTER}.
ENDIF.
ENDFOR.
It is not perfect FOX, but as an idead, it should work.
Regards.
Maybe you are looking for
-
Smartforms and 2D Barcodes.
Hi, we use the new SAP Technology to print barcodes with smartforms. How to print more than 255 into a Barcode? As you know there is a limitation, that the variable in the smartforms cann't be longer than 255 charachters and it is sometimes too shor
-
How to Install/Access HANA Academy Workshop Exercise Solutions and Templates
In Thomas Jung's HANA Academy tutorial on "Native Development Workshop", solutions and templates are cited in the "Simple "Hello World"" video... HANA Academy - HANA Native Development Workshop: Simple "Hello World" - YouTube Where are ther
-
No e-mail via Microsoft Outlook
Can't sync e-mail via my new computer. Opted for Microsoft Outlook for my AT&T Yahoo e-mail on this computer, rather than directly using Yahoo Mail. All Inbox mail transferred correctly to Microsoft Outlook from Yahoo Mail, but now can't see any mail
-
T Code for Graphical view of OM
Hi Friends, What is the TCode for Graphical view of OM
-
TS3694 its coming up with an error occured 3194 what does that mean
its coming up with an error occured 3194 what does that mean