Inserting addition field in ABAP query (SQ01) while generating reports.
Please let me know the procedure of adding field and applying mathematical formula in the query.
Hi,
have a look at the help <a href="http://help.sap.com/saphelp_erp2005/helpdata/EN/d2/cb4138455611d189710000e8322d00/frameset.htm">Creating and Changing Queries</a>. I doubt that you can add real formulas besides the predefined statistics.
Regards,
Christian
Similar Messages
-
Adding additional fields in Sql Query (SQ01)
Hi..
please tell me all the steps to use additional fields option in sap query (transaction code: SQ01)? can i use mandt field as additional field?
Thanks and Regards
Sri.Hi,
You can add it in infoset using extra button.
Here you can add the filed and the respective code for this field and add this in SQ01 in oytput list.
Thanks
Ajay -
Addition of checkbox and 2 fields in ABap query selection screen
Hi
I need to add chack boxes and 2 fields in ABAP query which is using LDB QMI. can u pls let me know how to do that.Hi Tarun,
I am still not clear with the problem..I guess you require plant in your selection screen which you have.
i guess if you go to sq01tcode there is a option infoset query from where you can give your selection options and value.
have you selected all the fields in infoset and made a selection screen?
When you have done with your infoset you just need to diplay the fields and there is a automatic program generated.
Let me know...
Regards,
Nihkil. -
Problem in Currency field in Abap Query
hi.
I have created an additional field for storing the currency type.
Based on some calculations i want to store the currency type into this additonal field.But the problem is that the currency field is not getting displayed in the report though i am getting the currency type in the additional field when i check it while debugging. Can anyone help me out...Vimal,
Is it ABAP Query problem(SQ01).If yes, then
In tcode SQ02(Infotype)>press extras button(F5)>In right side you will find 4 tabstrip buttons.Press on Extras--> create variable with same type of currency.
goto Field group button--> add this field to field groups.
In record processing event after your calculations assign your value of cuurncy to this new variable.
In tcode SQ01-->enter query name >F6>F6>F6>select your new varaible
>Press on basic list button(shift+F4)>left side you will find additional fields Node From there select your new field-->Save come back and execute the query.Now you will find your variable.
Don't forget ot reward if useful.... -
Populating Additional Field in InfoSet Query
Hello,
My team and I are working on generating a relatively simple report from the VBAK (Sales Header), VBAP (Sales Items) and VEDA (Date data) tables. We would prefer to be able to build an InfoSet (SQ02) and Query (SQ01) instead of writing a custom report.
The problem is the VEDA table contains data that may link to the VBAK and sometimes the VBAP table. The usage is that the header has begin and end dates for a contract, which is denoted by a blank value in POSNR field in the VEDA table. If a particular line on a contract has different dates than the header, there will be an additional record in the VEDA table where the POSNR value matches the POSNR value from the VBAP (Item) record.
The link to the VBAP table is straight forward being keyed off of the VBELN (doc number) and the POSNR (item number) fields in both tables. However, there's isn't a POSNR field in the VBAK (header) table and the VEDA table shows this as a blank value in the POSNR field.
The simplest thing I can think of doing is link the VEDA table to the VBAP and let it retrieve all the exact matches on Sales Doc & Item Number but add two "Additional Fields" to the Query that would represent the Sales Header begin and end dates.
I know how to add an additional field but how would you "re-query" the VEDA table and under which option under the Code tab.
ThanksHi Alex
Please see if below example helps you to understand:
Supposing, we are displaying material description within our query.
1. So we define the join with MARA & MAKT while creating infoset in transaction SQ02.
2. We create feild groups to identify the fiels we use for selection and display.
3. Here after selecting language key from MAKT, by default this will take SY-LANGU always for the case.
4. To make it applicable for different languages we can code in INITIALIZATION Event.
5. To do so we can do it by two options: Use menupath: Goto->Code->Initialization
i) First option using variable: <b>MAKT-SPRAS = SY-LANGU.</b>.
ii) Second option using Parameter-Id: <b>SET PARAMETER ID 'SPR' FIELD SY-LANGU</b>.
6. Save & Generate.
Now when we execute the query, we are defaulting the language as System Language.
Hope the above info helps you for better understanding.
Kind Regards
Eswar -
Creation of local field in ABAP Query
Hi
Please let me know how to create a local field in ABAP query. I am finding the option inactive in SQ01.
Regards
Priyadarshinihi priya,
*__Adding u201CLocal Fieldu201D (user defined field) in SAP Query_ :
There is also facility to add the user defined fields in SAP query output. Also we can provide calculation formula for calculating values for this user defined field.
Calculation formula consists of standard fields from standard SAP tables. So the values fetched for particular standard SAP fields from standard SAP tables get calculated as per the calculation formula defined for the user defined field and displays the value accordingly.
To do this first go to change mode for Query which automatically takes you to screen shown below and click on icon , as below :
Then further screen will appears. So select the Field group and again click on the same icon button .
Then switch on the Short names for the fields and give the short names to fields which we need to use in Calculation formula.
Give the short names and then created u201CLocal Fieldu201D, as shown in below screen shot. Also Short names are given to fields, which can be used further for calculation.
Defining Local Field u201CREM_QTYu201D along with its field type and Calculation formula.
In this case we have
defined field type for new
field as similar to
ORD_QTY and
Calculation formula is
defined.
Also its possible to have Conditional logic for Local field by putting Condition in u201CConditionu201D line.
Now activate this newly added Local field for coming it in output screen. To do the same again go to u201CBasic Listu201D and activate the Local Field as shown below :
i think this will help u
regards,
sindhu. -
Multiple Value in additional fields using SAP Query
HI All,
I have a question related additional field in SAP Query. I tried to create report about PR and PO using SAP Query. Since one PR can be converted to multiple PO, I decided to create additional field
po_1
to display the value of PO that related to the PR. But I meet problem when I want to show several PO number in additional field
po_1
, I couldn't look the way to solve this problem. Can anybody help me? Just for info, I assign value to additional field
po_1
in record processing part.
Thanks....HI,
IN SQ02, IF table is already in JOIN, just click on the PLUS sign to expand the strcture.
All the field showing Plus sign in the strcture are selected in your query and with MINUS sing are no selected.
So you have to just click on the MINUS sign for the field you want to use through table field.
Generate the query and execute thriugh SQ01.
If you want to add some other field which is not a part of JOIN,
then click on EXTRAS Button shown in the MENU option.
Click on Create button and system will ask abt the additional field.
Regds,
Anil -
Additional fields in infoset query can not be used as datasource fields
I create one infoset query with additional fields (using ABAP code) in R/3. When I create datasource RSO2 using this infoset query, system only show all fields without additional fields that I enhanced in infoset query. Does that mean we can not get additional fields information in generic datasource creation that we enhanced in infoset query?
dear Awa,
you are enhanced some fields in r/3.right that fields are shown in
rsa6 select your data source click on display your datasource then select
extract structure its shows how many fields are haveing particular
datasource .or otherwise goto rso2 select your data source display
double click on your extractstructure its show how many fields haveing
the particular datasource. check the Rsa6 what ever fields you newly added that field default hide mode
you remove the hide tickmark. -
Additional fields in SAP Query
Hi ,
We have a requirement in HR reporting wherein we are providing the late attendance records of the employees. That is the person is scheduled to come at a respective time but he comes in late and this record is created in attendence infotype . Now we need to see the variance in his planned and actual arrival . Majorly all the fields are availabe in the Infosets but the one with the variance is not there . So do we need to create a custom report for the same or it can be handled in the SAP query adding one field for calculation. If it can be handled , how can that be possible .
Thanks & RegardsPlease check this link:
Re: query report
I guess, it can help for your case too...
Even this:
Re: sap query infoset and fieldgroup
Re: Additional field in SAP Query
Kind Regards
Eswar -
Hi guys,
I want to make a ABAP Query via SQ01on SAP ECC.
First i had created an infoset, that only based on one table.
My requirement is to fetch alle data from this table grouped by customer number.
Using an sql statement is this very easy to do, but in i had trouble making this in SAP (SQ01):
SELECT CUST_ID, COUNT(ORDERID)
FROM
TABLE
WHRE CONDITIONS
GROUP by CUST_ID
HAVING COUNT(ORDERID) > 1
My question is where to put my requirement in order to get result using standard ABAP query SQ01.
I will really appreciate your help.
nabilHi,
Welcome to SDN.
This is not possible exactly with ABAP Query but can be easily done by ADHOC query. Using Set operation A-B.
Check the links for ADHOC Query -
<a href="http://www.sap.cmich.edu/fihr/hr/adhoc-query.doc">http://www.sap.cmich.edu/fihr/hr/adhoc-query.doc</a>
Regards,
Amit
Reward all helpful replies. -
Text of additional fields on SAP query show blank
Hi All,
I'm encountered a problem when text of additional fields on SAP query is not working and it's show blank after HRSP is implemented.
SAP_ABA : Rel. 701 Lvl. 3
SAP_BASIS: Rel. 701 Lvl. 3
SAP_HR: Rel. 604 Lvl. 8
Below are the config that we have done before HRSP in table: TEXC_FLD_C and it's work perfectly.
Table Name: P0000_AF
Field Name: ZZAPPRATING
Function Module: ZHRGYYFMPA_PDRATING_TEXT
Exception Priority: 1
Object Type Name: CL_HR_TEXT_IDENTIFIER
During debugging, we found that program (Form: %_GET_PERAS) is retrieve text of additional fields based on structure P0000_AF. At this point, text of fields are successfully take place and filled. However, program try to retrieve the text based on structure P0000 again right after that. Due to additional fields are added on P0000_AF not P0000 and no ZZAPPRATING field found in P0000, hence program has cleared the text which filled in previously. This give the result, text is blank.
Please advise, how should I get this resolved.
Thank you very much.
Best Regards,Please check this link:
Re: query report
I guess, it can help for your case too...
Even this:
Re: sap query infoset and fieldgroup
Re: Additional field in SAP Query
Kind Regards
Eswar -
Hi,
Please let me know , how to add two fields in ABAP Query. Please it showing two fields in list fileds but i want to add two into one.
thanks,
SonarThanks for Inf
Here I want to print total of two fields into one field, where concatenate should be there
mv_abrmenge, mn_abrmenge
select ebelnr, htariftyp, csparte, cvertrag, cvkont, mbelzart, cbegabrpe, cendabrpe, mv_abrmenge, mn_abrmenge, e~budat
from erchc as e
join dberchz1 as m
on ebelnr = mbelnr
join erch as c
on mbelnr = cbelnr
join ever as r
on cvertrag = rvertrag
join eanlh as h
on hanlage = ranlage
where h~tariftyp in @p1@
and c~erchc_v = 'X'
and c~simulation = space
and c~tobreleasd = space
and e~budat in @p2@
and e~simulated = space
Thanks,
Sonar -
FREC Error while Generating Reports in Quality Center
Hi,
We usually generate reports using Dashboard module of Quality Center . While generating reports on a particular PC, we are getting the following error.
The SQL Query <sheet1> has failed to run, with the following error:
Returned Result is not valid FREC.
We are able to generate the same report on a different PC.
Does anyone encounter this issue earlier? Could someone help us out in solving this issue.Issue popped up with me a few times and seemingly uncontrolled.
I resolved one query with replacing quotes in the string i.e. replace single with double by replace([field],chr(39),chr(34)) -
Error while generating report in RAR
Hello,
We are getting error while generating reports in RAR.
RAR runs sucessfully, can see there are risk, but we cannot dowload those file, usally we use to get zip file.
or cannot see details ,
gives error cannt be displayed.
Thanks,
DKHello,
we had same issues, this happed because the disk was full.
Please check with your basis team if the disk is full.
Thanks,
Prasant -
While generating reports in Oracle BI Publisher in pdf format, the generated pdf reports have hindi इ matra displaced by one character. For example, रिपोर्ट is printed as रपेिोरट. Word file generated of the same report have correct hindi इ matra position and also pdf generated from this word file also contains the same.
Maybe you are looking for
-
What Power Adapter for 15" Aluminum PB?
I have a 15"PB (Apple M9422LL/A) with a power adapter that's gone squirrelly on me. (There's apparently a loose wire at the junction between the brick and the wire that goes to the computer.) I'd like to get a compatible replacement, but the numbers
-
Is there a way to sync facebook events or a palm profile to iCal?
i want to sync my facebook events into iCal so that i can have all of my events there in one convenient location. i also have the palm pre until iphone comes to my network. is there a way that i can sync my palm profile to ical so that i can get my c
-
WebDynpro Exception: IDs with Namespace Must Have the Format / namespace /
Hi Experts, Can you please help me with this: I get the following error when I execute a webdynpro application. Can you please let me know where do I need to look to verify the <namespace> and <id>. Error when processing your request
-
I have no idea what is going on here, but anytime I try to use any online Java App it crashes my browser, Firefox and Internet Explorer. I have tried re installing wit no luck. It put this on my desktop, filename hs_err_pid3648.log # An unexpected er
-
Cant create subordinate under a supervisor
hi all, I have a doubt regarding OM- and I can create an HR Manager position & assign a task to him. But I 'm unable to create a subordinate under the manager as a position & cant assign any task Please any one guide me on this. Let me know is there