Order of the selection fields in SAP QUERY
Hello All,
How can we set the order of the selection fields in SAP QUERY!
Regards!
Ashish
Hi,
You can go into infoset and change the order.
Or you can select 1 by 1 in the same order, you want to display.
Below is the link which might help you:
help.sap.com/printdocu/core/Print46c/EN/data/.../BCSRVQUE.pdf
Please revert, if needed more clarifications
Regards,
Yashwin
Similar Messages
-
I need use conditions in the select fields of a query.
Hello,
Is possible, that I can have conditions in the select fields of a query? In a invoice when the type is cancellation I want to put *-1 to price and if is other type the price is normally.
If VBRK.FKART = 'S1' THEN KWERT*-1 else KWERT .
Thank you very much.you can do two things:
1. select the data into internal table and loop through the internal table and do the necessary changes
SELECT fkart kwert
FROM vbrk
INTO TABLE itab
WHERE ...
LOOP AT itab.
IF itab-fkart EQ 'S1'.
itab-kwert = itab-kwert * -1 .
MODIFY itab.
ENDIF.
ENDLOOP.
2. use select-endselect and change the data acc. to your needs inbetween and append the internal table.
SELECT fkart kwert
FROM vbrk
INTO wa
WHERE ...
IF wa-fkart EQ 'S1'.
wa-kwert = wa-kwert * -1 .
ENDIF.
APPEND wa TO itab.
ENDSELECT.
(The first approach is probably faster.) -
No hide fields or select fields in SAP Query Extractor?
HI Gurus,
I want to generate a data source, extraction data from SAP Query.
Now I want to hide some fields or to mark some fields as relevant for selection.
But after saving my settings are unavaiable...?
Does somebody have an idea? Is this standard when extracting from Query or is this maybe an OSS...?
ThanksHello,
Just logoff and Login again, then check it.
Also see
SAP Note 1014073 DFG: Changes to the DataSource are displayed incorrectly
SAP Note 1073714 DataSource in RSA6: Unable to display/change customer fields
SAP Note 925398 RSA6: DataSource enhancement only visible after restart
Thanks
Chandran -
Problem with selection fields in SAP Quick Viewer
Hi Friends
I am using SQVI t-code to develop the SAP queries. I have developed a query using tables KNA1, VBAK and VBAP. Initially I used customer number, customer name, city, document creation data, document type and document number as selection fields. Now I have removed customer name, city, document creation data, document type from selection fields. I am executing this query through a Function module "RSAQ_REMOTE_QUERY_CALL". While passing the data to selection table, even after deleting the 4 selection fields, still I have to pass the sales document number positioning as 6. Is there any way to solve this and make its position as 2.
I have gone through the FM "RSAQ_IMPORT_QUERY", there one table parameter O_DBSE will retrieve the values for selection fields are designed for that query, again its tedious process, I have create a customized function module and make the required changes. Instead of using this FM, is there any table which stores the data of the selection fields of a query. I have tried for the table and I failed to find that.
Please help me in this regards
Regards
PraveenHello, I am trying to create LSMW to upload KP06 also, we have been uploading by copying and pasting once we run the iverview layout and then save. The problem is that we can only do this by G/L account. We want to use one file to upload all. Can you give me some tips how you were able to accomplished. I am familiar with LSMW, but tcode KP06 behaves in different ways. Do you use the flexible upload to load the fiel thru LSMW? Can you tell me which fields you touch in KP06 when you were recording?
Thanks You, -
SAP Query; change the name of the selection fields
Hi,
I created a SAP query using SQ01. When I execute the report, the selection field are the names of the table fields. As an example, I would like to change the selection field name «Customer number 1» for «Customer number». How can I change this selection field name in a SAP Query?
Thanks,
JulienCheck Page Number 8 of this below mentioned document
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40bec8da-4cd8-2910-27a9-81f5ce10676c
a® -
Code order in sq02, Problem in the selection fields in sq01
Hi all,
I'm writing a query with sq01 and sq02.
In sq02 I have some joined tables, and 2 extras fields named: "TIME" and "LEFT_ER".
in this fields I wrote a code to calculate something from fields in the tables.
The problem is:
1. When I write the code in the coding section "Additional field/structure" for each field, If I want to use this fields in the selection fields (in sq01) the query can't find any record.
But if I run this query without any selection in this fields, I get all the records, with my calculated fields.
2. I tried to write this code in the coding section "Record processing", and it seems that I can use this fields in the selection fields (in sq01), and get all the records I wanted.
But in the sq02 I get a Warning messages:
"Access error in code for additional field *GET******
*GET****** has sequence number 00
Access to LEFT_ER with sequence number 00"
In this case my field LEFT_ER has no code.
And when I change the order of the sequence number, I didn't get the Warning message, but I could not use my fields in the selection fields (in sq01), like at the beginning.
HELP ME PLEASE.
Itzhak.
Message was edited by: Itzhak TanamiHi,
i've an idea .
pls define your help-fields :
1) as sel-option : s_f1 for bseg-dmbtr
and
2) as calculate-field : c_f1 for bseg-dmbtr
so for event e.g. GET BSEG .
you <b>1st</b> calculate your field .
e.g.
if bseg-shkzg = 'H'.
c_f1 = Bseg-wrbtr * -1.
else.
c_f1 = Bseg-wrbtr.
endif.
and 2nd your restriction from sel-screen:
<b>check c_f1 in s_f1.</b>
good luck
Andreas -
In a query, for the selection field 'KNB1-ZWELS' a match-code isn't availab
Hi All,
Creating a query, for the selection field 'KNB1-ZWELS' a match-code isn't available.
Could anyone tell me the reason?
Thanks
GandalfHi,
Match Code Object is not available for the field ZWELS. If required, You need to contact a Developer for creating one . -
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 -
Selection field in Infoset Query
Hi All,
I have an Infoset which is based on Logical database PNP & it has few additional fields. Now the requirement is to add one of the additional field to the selection screen of "Infoset Query". But in the Infoset query the 'Selection' checkbox for all the additional fields is graded out, & only the 'Output' Checkbox is enabled for all the Additional fields.
I added a new additional field in Infoset and even that is not available for selection in the Infoset query.
Kindly let me know if you have any info regarding this....
Please note that i have this problem in 'Infoset Query' only.
Thanks in advance.
Regards,
Karthick.Navin,
Try with this link,everything in detail is explained about Infoset queries..
http://shafiq.us/sap/index.php?view=article&id=54%3Aadhoc-query&option=com_content&Itemid=61
hope..this will help you!
Cheers,
KK -
How to display/create Local field in SAP query
HI All,
I'm new to abap query. I have to include a local field in the existing query. I know through SQ01->Edit->Local field we can display the Local fields, but the options under Local Fields menu option are disable even in change mode of Query.
So, later through SDN found that, I have to Switch On the short names menu option. Even the sub-options in Short Names are disabled.
Can any body please let me know how can we display the local fields to the change the formula and how can we create the new local fields in the existing qeury.
Hope I'm able to explain my issue clearly.
Thanks in advance.You can create the local fields in the "Select Field" screen. (Third screen after "Title, Format" and "Select Field Group") This option is disabled on the other screens.<br />
<br />
<i>Reference : <a class="jive-link-external" href="http://help.sap.com/saphelp_NW70EHP1/helpdata/en/d2/cb4186455611d189710000e8322d00/frameset.htm" target="_newWindow">Defining Local Fields</a> in <a class="jive-link-external" href="http://help.sap.com/saphelp_NW70EHP1/helpdata/en/d2/cb3efb455611d189710000e8322d00/frameset.htm" target="_newWindow">SAP Query</a>.</i><br />
<br />
Regards,<br />
Raymond -
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 -
How to Substr field in SAP Query.
Dear Developer,
How to substr any field in SAP Query ?
Regards,
Ujed.Hi Ujed,
if SUBSTR stands for substring, then possibly your question may be how to get the substr method as konown in languages like php in ABAP. If SAP Query points to a SAP query as created in transaction SQ01, then you should explain what you want to achieve.
Note: Better ask a specific question and get am answer you can or which is already generalized.
If I need a substr function, I'd create a functional method for that:
method substr
importing
anyfield type any
offset type i
length type i
returning substring type string.
try.
substring = anyfield+offset(length).
catch cx_root.
* handle error
endtry.
endmethod.
Regards,
Clemens -
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 -
Hiding the Selected field in the Crystal reports 2011
Hi Experts,
I am new to the Crystal reports. How to hide the Selected Field in the Crystal report 2011.
Thanks,
Kavya.CHi Kavya,
You can right click on the field, go to Format Field -> Common Tab. Select/Check the option "Suppress". Or if you want to hide/ Suppress the entire section in a Crystal Report, for e.g. Detail section, right click on Details Section and select Section expert. You can select Hide/Supress accordinly.
That should hide the filed/Section when you run the report.
- Kuldeep -
Foreign key cannot be created for the selected field A907-MWSKZ
Dear Guru's,
I am having the requirement for creation of access sequence having country/Plant/vendor/tax code but during creation of condition table i am getting the error as
Foreign key cannot be created for the selected field A907-MWSKZ.
Anything i am missing please let me know.
Regards,
UmeshHi Umesh,
Actually i am also facing exactly the same problem as mentioned by you that is "Foreign key cannot be created for the selected field A769-MWSKZ ".
I think you found some solution regarding this..can you please help me to solve it.
Looking forward for your prompt reply..
Thanks & Regards,
Sandeep Sharma
Maybe you are looking for
-
Uninstalled an earlier version (8.x.x.) because it would not start up. Tried to install version 9.0.1 and got the above error message. It appeared in a window entitled 7-Zip.
-
Hi All, I need add 1 field for the change pointer of idoc CREMAS. This field is stored in the table AUSP. In the transaction bd52 for CREMAS to enter this field, i dont find the object for this table. what is the object for the table AUSP and how can
-
All SAP Gurus, How to view the list of all open POs (POs with either partial or complete delivery is pending) Regards, rajan
-
How to "protect" a square from being erased in a Java Paint application?
Hi. I have created a paint program in Java (something like MS Paint) and I have a problem. In order to show the current colour the user is using I have drawn a square on the screen. But when I select the eraser tool and try to erase the square, it ca
-
Is there any performance difference in the order of columns referencing index?
I wish to find out if there is any performance difference or efficiency in specifying those columns referencing index(es) first in the WHERE clause of SQL statements. That is, whether the order of columns referencing the index is important???. E.g. i