ABAP Query display variant problem
Hi,
We have three different SAP clients development DV1, Staging ST1 and production PC1. I have created an abap query for which I m trying to create a global display variant (not user specific). I m able to do so easily in DV1 and PC1 systems. But when I try to create a display variant on ST1 by first running the report and then going to menu Settings->Layout->Save . I find that by default the User-Specific checkbox is selected and disabled. Because of this I can create only user specific display variants for my queries.
Where can I change the settings so that when I go to the above menu the User-specific checkbox is enabled and I m able to create global display variants ?
Thank you for reading.
Krishna
I am confuse after reading your question , any way we can adding "default" variant in SQ01. You can also assign the same variant in SE93 , when you create T-code for the specific query !!.
Well if it doesnt solve your problem ..please explain your question with the help of tr. codes and what youre trying to do !!
Im sorry , its really making me knutt by reading your question again and again .
Thanks
Saquib
Message was edited by: Saquib Khan
Similar Messages
-
Regarding ABAP query layout changes
In 46C system, we have addon transaction ZXX created thru ABAP query displaying in ALV report
layout fields in order A,B,C,D. But after upgrade to ECC5.0 we found the layout is changed to fields D,B,C,A.
why its changed? Is it Patch problem or its SAP problem.
However after upgrade we could manualy drag and drop the fields as per the 46C existing report layout
it works fine.
But we would like to know the reason why its happenning.?
Could somebody give me suggestion.
Regards
AmbichanHi Ambikumar,
The ALV output layout is dependent on user settings.
THe order of layout fields is changed bcz user has saved the new layout.
In the output, check the ALV toolbar for CHANGE LAYOUT button. Click on it & check if anyone has saved any new layout. Delete the layout & you would alwyz get the fields in the same order as specified in the query.
No need to modify the query using SQ01/SQ02.
Simply execute the query & click button CHANGE LAYOUT.
Best regards,
Prashant -
Summation button missing in abap query ..
Hi,
How to activate summation button in Abap query..
Problem is ,we had instaled some service packs in our production system..
After this we found that ,when we run one of our Abap query (with transaction code) in output summation button is not there.
Can you please let me know how can we activate this summation button..
Thanks,
Parnith..Hi Amit,
Thanks For Reply..
Even though there are summables in list ,summation button is deactive..( It is not being dispalyed on output list)
Can you please suggest the process to activate this summation button..
Thanks
Parnith -
Hi,
I am trying to Execute a query through Program
I had copied standard querys (ME80FN) Program RM06EAAW to my custom program
In that program , it is caaling a query and assigning one variant
Any idea from when that variant was assigned or How to create variants for ABAP Queries??
Thanks
Chandrasekhar J
Edited by: Chandrasekhar Jagarlamudi on Feb 20, 2008 1:08 AMHi,
Check these links...
http://help.sap.com/saphelp_nw04/helpdata/en/62/bc934814ba11d6999900508b6b8b11/frameset.htm
Re: ABAP Query variant - Error during SE93
Hope it helps u...
Regards,
KK -
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.... -
Short Dump While selecting Variant for ABAP query
Hi,
ABAP query is going to short dump (CONNE_IMPORT_WRONG_COMP_LENG) while selecting a Variant. If i create and use variant then i am able to see Output of Variant.But not able to use Earlier created variants .
I think some mismatch between variant values and selection screen fields.Can anyone tell me how to rectify this ?
I am not able to debug the code as dump is coming in a System program(RSDBSPVD).Can anyone tell me which database table i can use to get values of the Variant.
Thanks in Advance.
Nirmala KHi nirmala,
chk the links:
http://help.sap.com/saphelp_webas620/helpdata/en/c0/980398e58611d194cc00a0c94260a5/content.htm
http://help.sap.com/saphelp_webas620/helpdata/en/c0/9803a7e58611d194cc00a0c94260a5/content.htm
regards,
keerthi. -
Problem with logical database DDF in ABAP query
Hi All,
I have created an ABAP query via the transaction SQ01 using the logical database DDF to retrieve customer master data from tables KNA1 & KNB1. The selection screen used is the screen 903 of the logical database DDF. But now the problem is that when I execute the query, I am getting a blank value in the tax code4(KNA1-STCD4) field though there is value in the KNA1 table for this particular field. This field was added to the table by means of a customizing include. Can anyone suggest a way to get around this problem so that I can view the content of the field STCD4 in the query.
Thanks and regards,
Sarath.I think it's not used by DDF.
so you must check it with:
check kna1-bran1 in s_bran1.
A. -
Tricky dynamic date variant in ABAP query
Hello All,
In an abap query there is a date field in the selection screen with from & to values.
I am trying to create a dynamic variant that will fill the following data into those fields:
From date: will be left blank
To date: will show today's date - 90 days
For example, if today's date is 01/12/2006 the variant should fill the following data into the fields:
From date: <blank>
To date: 01/09/2006
I have tried all the methods I know with dynamic dates calculation in the variant definition but did not manage to create such variant.
Any help will be very appreciated and points would be rewarded generously !
Thank you very much,
RonenIf the "from" date is meant to be left blank (beginning of time) and the "to" date is some date plus or minus number of days from today, you use the "current +/- days" dynamic date calculation format as was mentioned earlier. Likewise if the "from" date is some date plus or minus today's date, and the "to" date is infinity -- you only need the one Dynamic Date calculation.
To do this, first don't think about this as a date range, think of your Dynamic Date calculation as if this were a single parameter and not a select-option. You are really saying "my date is anything LT/LE this date" or "my date is anything GT/GE this date" -- not a range
In the Save Variant screen, find the desired date select-option and:
1. Choose in column "Selection Variable", a "D" (Dynamic date calculation)
2. Use F4 in the "Name of Variable" column
3. Find "Current date +/- ??? days" or "Current date +/- ??? work days" in the popup, as appropriate
4. For "I/E" (include/exclude) column select as appropriate
5. For "Option" column, choose "LE", "LT", "GE", "GT", "NE" as appropriate
6. After clicking green check mark, enter your plus or minus days (and factory calendar if using work days).
7. Finish saving your variant.
8. You may not see your changes in your variant until you back all the way out of the variant and then redisplay it. You'll see a greyed out date along with the symbol matching your choice (LT, LE, etc.)
Unfortunately if you don't have infinity on either end of the date you are limited to 999 days differences as far as I am aware. If that is the case you can populate TVARVC table with parameter or selection variables, maintain them with STVARV transaction by hand, or use an ABAP program in batch to regularly calculate the values. Then you can reference the TVARVC values in your variant instead of the Dynamic Date calculation.
If someone knows a way to bypass the use of TVARVC for date ranges that are more than 999 days apart please let me know. TVARVC works well but it is extra effort whereas Dynamic Date calculation would be much easier to maintain if the date range could be made larger than 999 days. -
ABAP QUERY PROGRAM OUTPUT SHOULD DISPLAY FROM SAP SCRIPT.
THIS IS MY URGENT REQUIREMENT ...
I DONT KNOW ABAP QUERY PROGRAM ..
PLEASE SUGGEST ME A WAY ON THIS ....
Functional requirements
Introduction
The wish of the customer is a printable customer overview. All desired fields will be shown in a new query called ZZADDRSS_CO. Double entries are taken for granted because of the data taken from the sales area and because of multiple contact persons. The customer accepts this. It should be made possible that the user creates and saves its own variant.
A second overview is needed, another ABAP will be developed for this requirement. This ABAP will show all the customer data and this list will have the possibility to be printed.
Solution
New Query ZZADDRESS_CO
The desired fields of attachment 1 need to be shown in the query.
The selection criteria are shown in attachment 2.
The column names of the additional data have to changed in the query.
Customer Overview.
Functional specification.
On behalf of this customer overview a standard SAP transaction will be used (transaction VC/2).This transaction will be extended.
The fields are shown on screen with the described headers. Printing of the overview will be done via SAP script. The script makes use of a fixed layout of the data.
The selection criteria are specified in attachment 2.
The layout of the customer overview and the SAP Script are specified in attachment 3.
Specification.
The next steps need to be performed.
1. A routine per infoblock need to be created in Include RV77UNNN. In this routine the data is retrieved and written down to the screen and script,
Example LST1_901 . In include RV77SNNN you can find the standard infoblocks.
2. Adapt via transaction SE16 table TFRM.
3. Create a new view in the customizing (sales and distribution- Sales support-sales summary-Assign Reporting Views).Assign the new view to the infoblocks.(Example view 001 is assigned to block 901).
4. In customizing it is not possible to assign the correct window and element to the infoblock .so this is done via SE16 in table T182A.
5. Adapt script. Copy script SD-SALES-SUMMARY to a Z-SALES_SUMM.
Assign this new version to the new view in customizing. Create in the main window the element who writes the data on behalf of the print.
Attachment 1 Desired fields
Header: Address
~ Customer number KNA1-KUNNR
~ Title KAN1-ANRED
~ Name1 ADRC-NAME1
~ Name2 ADRC-NAME2
~ Name3 ADRC-NAME3
~ Name4 ADRC-NAME4
~ PO Box ADRC-PO_BOX
~ PO Box POSTAL CODE ADRC-POST_CODE2
~ PO Box city ADRC-PO_BOX_LOC
~ Telephone no1 ADR2-TEL_NUMBER 1ST RECORD
~ Telephone no2 ADR2-TEL_NUMBER 2ND RECORD
~ Fax number1 ADR3-FAX_NUMBER 1ST RECORD
~ Fax number2 ADR3-FAX_NUMBER 2ND RECORD
~ E-mail ADR6-SMTP_ADDR
~ Search item ADRC-SORT1
~ Notes ADRT-REMARK
Header: control data
~ VAT registration number KAN1-STCEG
Header: Payment transactions
~Bank country key KNBK-BANKS
~Bank key KNBK-BANKL
~Bank Account number KNBK-BANKN
Header: Marketing
~ Industry key KNA1-BRSCH
~ Industry code 1 KNA1-BRAN1
~ Industry code 2 KNA1-BRAN2
~ Industry code 3 KNA1-BRAN3
~ Industry code 4 KNA1-BRAN4
~ Industry code 5 KNA1-BRAN5
~Annual sales, currency, year KNA1-UMSA1, KNA1-UWAER, KNA1-UMAH
~ Yearly no of employees, year KAN1-JMZAH, KNA1-JMJAH
~ Fiscal year variant KNA1-PERIV
~Legal status KNA1-GFORM
Header: Correspondence
~ Our account number at customer KNB1-EIKTO
Header: sales
~ Sales office KNVV-VKBUR
~ Customer group KNVV-KDGRP
~ ABC-classification KNVV-KLABC
Header: Invoice
~Tax classification KNVI-TAXKD
~Terms of payment key KNVV-ZTERM
~
Header: Contact Persons
~Title KNVK-ANRED
~Name KNVK-NAME1
~Advertising material KNVK-NMAIL
~Martial Status KNVK-FAMST
~Notes KNVK-PARAU
~Function KNVK-PAFKT
~Department KNVK-ABTNR
Header: Partnerroles
~Personnel Number KNVP-PERNR
~Name of employee PA0001-ENAME
Header: Additional Data
~Attribute 1 KNA1-KATR1
~Creation date KNA1-ERDAT
~Attribute 2 KNA1-KATR2
~Change date of field KNA1-KATR2 CDHDR-UDATE
~Attribute 3 KNA1-KATR3
~Attribute 4 KNA1-KATR4
~Attribute 5 KNA1-KATR5
~Attribute 6 KNA1-KATR6
Attachment 2 Selection fields
~Customer number
~Sales office
~Personnel Number
~Sales Organization (default NL01)
~Industry key
~Industry codes (1 till 5)
~ABC- classification
~Creation date
~Attribute 1
~Attribute 2
~Attribute 3
~Attribute 4
~Attribute 5
Attachment 3 Customer overview + SAP Script
Customer master data sheet: 11490 Page1
Requested by karen Dunnewold Date: 25.08.2004
Address
(Default SAP script ADDRESS statement)
Title
Name1
Street + number
PO Box city
Country
Search term: ADRC-SORT1
Telephone 1: ADR2-TEL_NUMBER 2: ADR2-TEL_NUMBER
Fax 1: ADR3-FAX_NUMBER 2: ADR3-FAX_NUMBER
E-mail: ADR6-SMTP_ADDR
Notes: ADRT-REMARK
PO BOX
ADRC-PO_BOX
ADRC-POST_CODE2 ADRC-PO_BOX_LOC
T005T-LANDX (T005T-LAND1 = ADRC-COUNTRY)
Control data
VAT registration number: KNA1-STCEG
Payment transactions
Country: KNBK-BANKS Bank-key: KNBK u2013 BANKL Bank account: KNBK-BANKN
Marketing
Industry KNA1-BRSCH Industry Description
Industry code1 KNA1-BRAN1 Industry Description
Industry code2 KNA1-BRAN2 Industry Description
Industry code3 KNA1-BRAN3 Industry Description
Industry code4 KNA1-BRAN4 Industry Description
Industry code5 KNA1-BRAN5 Industry Description
Figures
Annual Sales KNA1-UMSA1, KNA1-UWAER in KNA1-UMAH
Employees KNA1-JMZAH in KNA1-JMJAH
Legal status KNA1-GFORM description
Customer master data sheet 11490 Page 2
Requested by karen Dunnewold Date: 25.08.2004
Contact Persons
KNVK-ANRED
Mailings: KNVK-NMAIL Notes: KNVK-PARAU
KNVK-ANRED
Mailings: KNVK-NMAIL Notes: KNVK-PARAU
Correspondence
Our account number at customer KNB1-EIKTO
Sales
Sales office KNVV-VKBUR Description
Customer group KNVV-KDGRP Description
ABC-classify KNVV-KLABC
Currency KNVV-WAERS
Invoice
Terms of payment key KNVV-ZTERM Tax classification KNV1-TAXKD
Description
Partner (Leave SAP default)
Partnerrole Number Name
KNVP-PARVW KNVP-KUNNR NAME1
KNVP-PARVW KNVP-KUNNR NAME1
Additional data
Attribute1 kna1-katr1 Description
Attribute2 kna1-katr2 Description
Attribute3 kna1-katr3 Description
Attribute4 kna1-katr4 Description
Attribute5 kna1-katr5 Description
Attribute6 kna1-katr6 Descriptionhi narayana
i think u need to write a driving program and a provided with a smatform u sit along with the SD consultant.
ur further views can be shared.
Rgs,
Venkat. -
Display long text in an ABAP Query.
Hi all,
Could any one please help me in guiding me, to tell how can I display the long text which is got from the function module 'READ_TEXT' in an ABAP query.
The issue here is that Iam able to loop at the <itab> table and get the long text for each of the records any, but Iam not able to display it on an infoset..
Send me the examples if any..
Thanks & Regards,
Sanjay Mankar.Dear dont try with ABAP Qualry
use alv or like that
sample code is attach here
if you have any claryfication reply me
*& Form F001-BasicData_LText
text
-->IN_PAR text
-->OUT_PAR text
FORM F001-BasicData_LText TABLES in_par STRUCTURE itcsy out_par STRUCTURE itcsy.
DATA :
IT_LTEXT TYPE STANDARD TABLE OF TLINE,
WA_LTEXT TYPE TLINE,
W_FTEXT(100) TYPE C,
W_FTEXT1(100) TYPE C,LW_LEN TYPE I.
DATA :
W_ID LIKE thead-tdid, "Text ID
W_LANGU LIKE THEAD-TDSPRAS, "Language
W_NAME LIKE thead-tdname, "Name
W_OBJECT LIKE thead-tdobject. "Texts:
READ TABLE in_par WITH KEY 'EKPO-MATNR'.
w_NAME = in_par-value.
W_ID = 'GRUN'.
W_OBJECT = 'MATERIAL'.
W_LANGU = SY-LANGU.
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = W_ID
LANGUAGE = W_LANGU
NAME = W_NAME
OBJECT = W_OBJECT
TABLES
lines = IT_LTEXT
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
Loop at IT_LTEXT into WA_LTEXT.
W_FTEXT1 = WA_LTEXT-TDLINE.
CONCATENATE W_FTEXT W_FTEXT1 INTO W_FTEXT SEPARATED BY SPACE.
Endloop.
LOOP AT out_par WHERE name EQ 'W_FTEXT'.
out_par-value = W_FTEXT.
MODIFY out_par.
ENDLOOP.
ENDFORM. "F001-BasicData_LText
*& Form F001-LTEXT_DEVIDING
text
-->P_IT_DVTXT text
FORM F001-LTEXT_DEVIDING TABLES in_par STRUCTURE itcsy out_par STRUCTURE itcsy.
DATA : W_TEXTLINE(100) TYPE C,
W_DELIMITER TYPE C,
W_OUTPUTLEN TYPE I,
W_FTEXT(100) TYPE C,
OUT_LINE1 TYPE C,
OUT_LINE2 TYPE C,
OUT_LINE3 TYPE C,
W_LINE1(35) TYPE C,
W_LINE2(35) TYPE C,
W_LINE3(35) TYPE C.
READ TABLE in_par WITH KEY 'W_FTEXT'.
W_FTEXT = IN_PAR-VALUE.
W_TEXTLINE = W_FTEXT.
W_DELIMITER = ' '.
W_OUTPUTLEN = 30.
CALL FUNCTION 'RKD_WORD_WRAP'
EXPORTING
TEXTLINE = W_TEXTLINE
DELIMITER = W_DELIMITER
OUTPUTLEN = W_OUTPUTLEN
IMPORTING
OUT_LINE1 = W_LINE1
OUT_LINE2 = W_LINE2
OUT_LINE3 = W_LINE3.
LOOP AT out_par.
if out_par-name eq 'W_LINE1'.
out_par-value = W_LINE1.
elseif out_par-name eq 'W_LINE2'.
out_par-value = W_LINE2.
elseif out_par-name eq 'W_LINE3'.
out_par-value = W_LINE3.
endif.
MODIFY out_par.
ENDLOOP.
ENDFORM. " F001-LTEXT_DEVIDING
rewads if helpful -
Hi All,
I have one ABAP query which has been created for vendor details. Its using standard sap LDB KDF. Now there are some fields in vendor classification which are not there in LDB. so i need to add these fields in ABAP query.
those fields are in other tables, ehich are not been used in standard LDB.
Can anybody suggest me. Its really urgent issue.
Regards
Azad.
If any further clarification required about the problem please get back to me.Azad,
You will need to change the Infoset using tcode SQ02 (Probably copy current infoset and change in the new one), in new info set you can add tables and even custom fields with ABAP code behind them.
Thanks. -
ABAP Query variant - Error during SE93
Team,
I am creating ztransaction codes for abap queries via SE93. Sometimes in SE93 error comes stating that Variant is required. I want to know the table name where this info/indicator/flag is maintained.
I need this info to automate my BDC.
Thanks
Error Msg:
Report AQ10CR==========35============ can only be started with a variant
Message no. DB623Hi,
Check in SQ01, there are options to set the ABAP query to be executed with varaint. If this check box is enabled then you can execute the query only with a varaint. So i believe its the setting in the query definition and not in Se93.
Btw you can define or create a transaction code in SE93 to run a query with the varaint as well.
Let me know if you need more info.
cheers
VJ -
Dear All,
I need to copy queries from Standard Area to Global area. When I use the transport facility (SQ03 --> Environment --> transport), it does pop-up the transport workbench request screen at the first time. I created one transport request number for it. After that, I accidently deleted the transport request without released it first. Now I have problem to add back the queries into the new transport request since the prompt for transport workbench request is not pop-up even I successfully copied the query from standard area to global area.
Is there any suggested solution?. Thank you in advance for any suggestion.
Edited by: shahrir razlan on Apr 16, 2008 6:36 PM
Edited by: shahrir razlan on Apr 16, 2008 6:37 PMchances are very very slim.. (i think zero) to delete a request, when it has objects .
so your statement - "I accidently deleted the transport request without released it first " doesnt sounds logical...
either you have removed your objects from the list before deleting the request..
but if that was teh case, then it shud pop up for new request..
as it is not asking for new request.... it is almost sure, that it is still in some request..
look hard in se01 - your request shud be there... description shud be something like 'transport for abap query'. -
ABAP Query to display top 5 employees who are having highest salary
How will you write a query in abap to display top 5 emplyeee records who are having Highest Salary Among all the employees.
Please Reply...Hi Kush,
Before writing any Database Query, always keep 2 important thumb rules in your mind :
1. Keep the number of data base access small
2. Keep the amount of data transfer small.
As you mentioned the Database Table has only 100 records, you can locally buffer the Table. So, make a local buffering and then you can sort the table based on the salary.
Select *
from Table_name
into table gt_itab.
Sort gt_itab by salary descending.
Now you can read the entries one after the another based on the index.
Have a look at the following code for an efficient performance feature. Goto SE38 and have a look at the ABAP Examples.
demo_select_some_columns. Package : SABAPDEMOS
Hope this will help.
Thanks,
Samantak. -
ABAP Query : code to change the display
Hi all,
I have created an Abap Query and generated it. I see the output now as follows:
<u>Bill.doc</u> <u>Item</u> <u>Net value</u> <u>Total amt</u>
900000 10 100 600
900000 20 200 600
900000 30 300 600
900001 10 250 250
900002 10 300 500
900002 20 200 500
Now I want the total amt to be displayed only once for each billing document only for the first item and for the other line items it should be blank as shown below.
<u>Bill.doc</u> <u>Item</u> <u>Net value</u> <u>Total amt</u>
900000 10 100 600
900000 20 200
900000 30 300
900001 10 250 250
900002 10 300 500
900002 20 200
Can someone please explain me where and how I should write the code to get this working?
Thanks,
N
Helpful answers will be awarded for sure.Hi Manohar,
I am getting the total amount from a field which exists in one of the tables which i used in the abap query.
the total amount is appearing correctly...i dont need to modify that. i just need to display it only once for each billing doc for the first item.
i want to know where i should do the coding...i mean in the Infoset or the Abap Program that gets created when i generate the infoset.
Thanks!
N
Message was edited by:
Narmada Mallavaram
null
Maybe you are looking for
-
Hi, I have a problem using switch statement. I have a class named Resources in which I declare all the final variables. I have created an instance of Resources named res in the main class. But I cannot use the final variables in the main class in the
-
HOW TO MAKE CANON MP480 WIRELESS
is there a way to make my canon mp480 printer wireless through my wirless router, also using an apple macbook?
-
I am trying to find the best solution for a client of mine to approve / reject / release PR's and PO's - I have identified 4 options, but would like advice as to which is the best way to go, if any... 1. www.go3i.com 2. www.10secondssoftware.com 3. S
-
hi abap gurus, i need your help, this is a Purchase order conversion program, from4.7 to ECC 6.0, the iput is an excel file which contains the extracted data from 4.7 the structure of the iput file would be Purchase Req Number from ECC 6.0 ( EBAN-B
-
Viewing problem on 3. party cameras
Hi All, One of our project we added axis P1355 & axis q6035 cameras with both onvif & Vapix profiles but in two methods there are a lot of latency and hesitation. We connected cameras with web browser and all acitons are perfect, all videos are runni