Wrong sequence in selection screen generated by ABAP Query
Hi,
I am developing a query to display the data in the view.
My query has 8 selection fields totally.
As part of my requirement I have added selection parameter in the
selections tab of the infoset and maintained the sequence as 9.
Inspite of maintaining the sequence number as 9 in the infoset, It is
appearing first in the selection screen of the query.
I tried putting different numbers in the sequence number, but even it
is appearing first in the selection screen.
Can you please let me know how to display the selections declared in
the infoset as per the sequence required.
Thanks,
Madhuri.
Actually what happen when you declare your own fields in ABAP query . you have to care about the sequence . As an example if youre selecting lets say state name , you have two variables
<b>1-state
2- land</b>
for state you have to select land first , if your state is first and land is 2nd it gave you the error of sequence .
Because you have to get data in land first in order to get state specific to the land .
it should be
1-Land
2-State
Just see the your fields , Im sure youre missing that .
<b>You can also see the NO ( field ) in Query ( Sq03 ) . where you can define the seqence on selection.</b>
hope thisll help you .
Pl...Award the points .
Thanks
Saquib<b></b>
Message was edited by: Saquib Khan
Similar Messages
-
Additional field in selection screen of a abap query
Hi,
I am adding a new additional field in the selection screen through abap query(using transaction SQ02) which is of type VBRK-FKSTO.
The value entered can be 'X' or empty space.But the value which is entered in the selection screen is not getting reflected in the code.Kindly advice me on what needs to be done to capture the selection screen value in the code.
Regards,
S.SubasreeHi
You can add new field in VFX3 selection screen as follow. In the report code we can see various explicit enahcement points provided by SAP.One of them is ENHANCEMENT-POINT sdblbddl_01 SPOTS es_sdblbddl STATIC. Here you can declare your selection screen parameters. Then in the processing i can see a call customer fucntion happening in VBSK_DISPALY which you can implement to add your logic.
Thanks
Nabheet -
Changing sequence in selection screen of ABAP query
Hi,
I have added a field(ZEXTLTCA - Exclude LTCA lots) as SELECTION in a Infoset selections.We can add additional fields and selection fields to infoset.I am using the option selection field.This will appear in the selection screen when we execute query.
Few more fields i have declared as part of table in infoset.
These table fields will be visible in the query to change the sequence and its characteristics.
Now the problem is as selection fields of infoset are taking priority over infoset table fields ( which will be visible in query) selection fields are coming top when i execute query.
Ex:
Exclude Cancelled Lots
Material number
Plant
Material type
Inspection Lot Origin
I need to change the order of appearance in the selection screen.
As
Material number
Plant
Material type
Inspection Lot Origin
Exclude Cancelled Lots
Can anyone help me in solving this.
Thanks
Nirmala
Message was edited by: Nirmala ReddyHello Nirmala,
Go to Sq01, select the query and goto to change mode.go to the next screens till u reach Selection fields. Here u enter the NO field in the sequence which u want ot appear in the selection screen and it is done. Save and execute.
Ex:
Selection fields No
Exclude Cancelled Lots 5
Material number 1
Plant 2
Material type 3
Inspection Lot Origin 4 -
How to put Mandatory option for selection screen fields in ABAP Queries
Hi Experts
Can anyone tell me how to put mandatory option for the selection screen fields in ABAP Queries.
Manually I had written code in the At Selection Screen option in infoset to display error message if that field is blank.
But I need to display the selection fields with the tick mark (obligatory mark).
How to do this?
Appropriate answers will be awardedHi
For parameter option
parameters : p_kunnr type kna1-kunnr obligatory.
For select option
select-options: s_date for vbak-erdat obligatory.
Plz rewards points ,
Regards ,
Ganesh. -
Saving Selection Screens in Webdynpro Abap
Hi ,
Could you please throw some light on how to save the selection screens in Webdynpro Abap ?? Just like variants in normal Abap?
Thanks and Regards
Alok SharmaHI,
I dont think there is automatic saving of varients in web dynpros just like normal selection-screen.
Just check this link you might get some idea.
Link[Save Varient|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f028c2b9-1730-2d10-71ae-ce300ea00573?quicklink=index&overridelayout=true]
Regards and Best wishes. -
Programs generated using ABAP query vanishes after upgrade
Hi all,
The programs generated using abap query in sq01 vanishes after upgrading from 4.6C to ECC 6.0 system.
Is this a know issue, do we have a solution for this?
Can anyone help
Thanks
SenthilHi,
Try to generate the Queries again in the new system...using the FM : RSAQ_GENERATE_PROGRAM
The input needed is the Query name and the usergroup...The details can be obtained from the table AQLQCAT(local queries areas) and AQGQCAT(global areas queries).
Once you generate the query , a program gets created...
if you have lots of queries to be genretated, write a custom report by fetching the data from the above tables and use the FM to generate the same...
Hope this helps you..
Reward if useful
Regards
Shiva -
Report generated by ABAP query
Hello all,
I have a report name which was generated from ABAP query ( something like AQ10MT=============RO-BONDECONSUM),
Is there a way to find the ABAP query from which the report was generated?
Thank you and a nice day,
BogdanHi,
This is a part of the code of FM 'RSAQ_REPORT_NAME'.
REP = 'AQ'. " fester Anfang
REP+4(12) = USERGROUP. " Benutzergruppe
REP+16(14) = QUERY. " Query
TRANSLATE REP USING ' ='.
I hope this could be a little helpful for you.
Svetlin -
Want to have own selection screen in HR-ABAP report using LDB
Hi experts,
I am working on HR-ABAP report using LDB pnp and infotypes..But, here we get the built in selection criterion..but I want my own selection screen to be displayed..whats the solution for this??? Is it possible to create my own selection screen instead of default one..and how???
Please help me..its very urgent..Hi,
chk this out:
Create Report Categories
In this step, you define the report categories and determine the layout
of the standard selection screen for these report categories. You can
create report categories for programs or queries that are based on the
PNP or PNPCE logical databases.
The definition of report categories is divided into two sections:
o In the Change Report Category view, you define general attributes
such as sort order, input fields for date, and so on.
o In the Change Selection Criteria view, you define which selection
fields of the logical database should be avaliable on the selection
screen.
Example
You want to set up your system so that your employees can only start
evaluation reports for Payroll if they use a payroll area. Within a
payroll area, you should be able to select according to personnel
number. Additional selection criteria should not be possible and you
should not be allowed to enter a sort sequence.
Standard settings
The standard system already contains report categories. You can find the
attributes of the report categories in the table.
Note the following five report categories in particular:
o Report category ' ' is the SAP default report category for
programs that are based on the PNP logical database.
o Report category PNPCE is the SAP default category for programs that
are based on the PNPCE logical database.
o Report category '00000000' is the customer-specific default category
for programs that are based on the PNP logical database.
o Report category '0PNPCE' is the customer-specific default category
for programs that are based on the PNPCE logical database.
o Report category __X2001 is the default category for Queries that
are based on an InfoSet of the PNP LDB.
o Report category QUEPNPCE is the default category for queries that
are based on an InfoSet of the PNPCE LDB.
The default report categories are used when a report is called if
the report has not been assigned a report category.
Parameters and Options for Report Categories of the LDB PNP and PNPCE
Parameters and Options in Screen Area General Data
If you activate this parameter, you can only enter data on the data
selection period if you use reports that have been assigned. The
same date entries are then used for the person selection as for the
date selection.
o Matchcode allowed
If you activate this parameter, you have use of a Matchcode
pushbutton (search help) if you use reports that have been assigned.
This pushbutton enables you to perform the person selection.
o Sort allowed
If you activate this parameter, you have use of a Sort pushbutton if
you use report that have been assigned. This pushbutton enables you
to define a sort order before you execute the report.
o Organizational structure allowed
If you activate this parameter, you have use of an Org.Structure
pushbutton if you use reports that have been assigned. This
pushbutton enables you to perform the person selection.
Note:
For more information about these options, see the online
documentation under this path:
SAP Library -> Human Resources -> Reporting in Human Resources
Management -> Standard HR Reports -> Report Selection Screen in
Human Resources Management.
Parameters and Options in Screen Areas Data Selection Period/Person
Selection Period/Payroll Area/Period/Year
o Options for data selection period and person selection period (key
date and so on)
Here you define which options for date and person selection are
available for reports that have been assigned.
o Options for payroll area/period/year
Here you define which options for selection using payroll
area/period/year are available for reports that have been assigned.
Parameters and Options in Screen Area Selection View
o Type/Name
This parameter enables you to use selection views to define report
categories. You use the selection view selected here to determine
which fields are available in the Dynamic Selectionsy.
Note:
You create selection views for the PNP and PNPCE logical databases
in the Object Navigator (SE80):
1. Start the Object Navigator (SE80)
2. Choose Workbench -> Edit Object.
3. Choose the More... tab page and the Selection view on this tab
page.
4. Choose Create.
5. In the Create Selection View dialog box, choose the For any
tables option.
6. In the Name of view field, enter a name for your selection view.
7. In the Tables dialog box, enter the name of the table from which
you want to use fields.
Note:
When you enter the table name, observe the naming convention in
Personnel Administration:
Infotype number: nnnn -> table name: PAnnnn
8. Choose Continue.
9. In the Functional groups area, define functional groups by
assigning a name and a number.
10. Assign fields from the selected tables to the functional groups
by entering the number of the desired functional group in front of
each field.
11. Save your entries.
For more information about adjusting the dynamic selections using
your own selection views, see the online documentation under the
following menu path:
SAP Library -> Human Resources -> Reporting in Human Resources
Management -> HR Standard Reports -> Report Selection Screen in
Human Resources Management -> Enhancing the Selection Screen -
Dynamic Selections.
If you do not want to offer dynamic selections, make the following
settings:
- LDB PNP: In the Selection view field, enter PNP_NO_FREE_SEL.
- LDB PNPCE: Leave the Selection view field empty.
Parameters and Options in Screen Area Data Selection Period/Person
Selection Period/Payroll Area/Period/Year
o Available input parameters, date or period entry (today, key date,
all, and so on), and standard value.
Using the Standard value option, you define which of the selected
options is shown.
Parameters and Options in Screen Area CE Selection Fields
o CE selection fields (external person ID, grouping reason, grouping
value)
Using the options in this area, you define whether the external
person Id, grouping reason, or grouping value are available on the
selection screen.
Note:
These parameters are only relevant for you if you implement
Concurrent Employment (see also note 517071).
Parameters and Options in Screen Area Selection view
o Dynamic selections as dialog box
If this switch is set, you can call the dynamic selections as a
dialog box.
o Dynamic selections active
If this switch is set, the dynamic selections of the logical
database are active at the start of the report.
Note that the following combinations are possible for the last two
options mentioned:
Dyn.Sel. as dialog box/Dyn.Sel. active: inactive/inactive
Dyn.Sel. as dialog box/Dyn.Sel. active: inactive/active
Dyn.Sel. as dialog box/Dyn.Sel. active: active/inactive
Activities
1. Choose Edit -> New entries.
2. Enter an abbreviation and a long text for the report category.
The customer name range for report categories is 0-9.
3. Select the For the PNPCE logical database checkbox, if you want to
create a report category for a program or for queries of the PNPCE
logical database.
4. In the General Data screen area, choose the desired options.
If you want to use selection IDs, you must have first created and
grouped selection Ids. The IMG path to do this is given in the
parameter description section.
5. In the Data selection period/person selection period or Selection
period screen area, choose the desired options.
6. In the Selection view screen area, choose the desired options.
7. In the CE selection fields screen area, choose the desired (only
possible for report categories of the LDB PNPCE).
8. Save your entries.
9. Choose the subactivity Permitted selection criteria.
10. Choose Edit -> New entries.
11. In the Select option field, use the input help to select each field
that should be available on the selection screen.
12. Select the checkbox in the 1.page column, if you want this selection
field to be available directly when you call the selection screen.
Further notes
13. If you want to copy entries, you still have to enter the selection
parameters again in the subsequent screen.
o If you create the report category '000000000', a selection screen is
generated according to report category '00000000'for all reports for
which a report category has not explicitly been assigned.
Assign Report Categories
In this step, you assign a report category to your reports.
Example
You have created your own report, for example ZPCTEST1, and would like
it to have the selection screen that corresponds to that of the
evaluation report for Payroll, which is assigned to report category
'__M00001'.
Assign report category '__M00001' to the report.
Requirements
You must have defined the Report Categories.
Standard settings
SAP Standard Reports:
In the standard system, reports are assigned a report category. If you
want to override these assignments, perform the activities described
here. If you want to assign report categories to standard reports using
SE38, this represents a modification.
Customer-Specific Reports:
For reports you have developed yourself, you can either assign report
categories by performing the activities described here or directly in SE38.
Recommendation
Only assign a report category if you have created your own reports or if
the selection screens in the standard system do not meet your
requirements.
Activities
1. Choose Edit -> New entries.
2. Perform the required assignment using the Program name and Report
category fields.
3. Save your entries.
reward if helpful
regards,
madhumitha -
Problem in displaying selection screen of a abap-hr report
Hi,
I have developed a abap-hr report in ver..6.2.I have used logical data base PNP for it.It was working fine.
But when i migrate it into ver.4.6, I can see no selection screen for the report.
How to get the selection-screen?
Please help me through.
Thanks in advance,
Raj.
Edited by: raj b on Feb 20, 2008 8:00 AMHi Raj,
Please check whether you have assigned any report category for the PNP selection screen in the version 6.2.
The report category might not exist in the 4.6 version and that might be the reason the selection screen is not appearing.
Cheers,
Aditya -
Varient for selection screen in Webdynpro ABAP
Dear Experts,
We all know that in abap editor selection screen we can save the selection criteria in form of 'Variants'.
I need to something similar in webdynpro. And I was requested not to use the database tables for saving the data.
Is it possible? If Yes then please let me know.
Thanks SupriyoPOWL - Power Work List
Isn't POWL - "Personal Object Work List" ? Although often interchangeable referred to as "Power Lists".
However, if Thomas says "Power Work List" I think we're going to have new variant out there to search on!
NB the POWL is very "Powerful" (sic) in this respect as you can even add your own OVS to the selection criteria. Unfortunately I have found that the POWL selections and selection process are perceived as less than obvious by end users. So much so that where we are looking at pure reporting functionality we are instead looking to BW to provide a web reporting interface.
For some reason (perhaps they've been using SAP backend reports too long) users seem to want to do their selection and then see the results - unless it's in the form of a dashboard - in which case they are happy to drill down into the results. It is like they don't trust the system to have used the correct selection criteria. -
Hiding some fields in default selection screen in hr abap
Hi Experts,
I am new to hr abap.I have created default selection screen by using LDB .in that i wants to display only the personnel number field.
could any help me how to hide further selections,sort order and search helps at top of screen.
thanks in advace,
mohanuse
at slection-screen output.
loop at screen.
if screen-name = 'PNPBUKRS'. (example)
screen-active = '0'.
endif.
modify screen.
endloop.
==========================
u can do it as group wise also.
loop at screen.
if screen-group1 = 'group name'. (could be group1,2,3,4)
screen-active = '0'.
endif.
modify screen.
endloop.
====================
Hi,
Can u tell me which LDB and report category u are using so that i will send u the code as per the req.
If the above code suits to ur req. pls reward the points.
Regards
eswar -
Selection Screen Validation In ABAP Queries
Hello all,
I have created a selection screen field in the Infoset by EXTRAS --> Create Field.
Now i want the values entered in this field at the selection screen to be available
at the event Record Processing.
The values entered at the selection screen are getting stored in some system generated varaible
SP** .i am not able to read from this field.
Please let me know ur inputs.
Regards,
NajamHi,
Try declaring some global variable in the data delclaration event, and pass the values these variable at selection screen, and use them wherever required.
Regards,
Santhosh. -
Dynamic selection screen for custom ABAP report
Hi,
His it possible to create a custom ABAP report with a dynamic selection screen. The report doesnot use a logical database. If possible sample code will be appreciated.
Regards,
Chandra Kumarhi
use this link
Dynamic selection screen
Cheers
Snehi -
How to hide some fields in default selection screen in hr abap
Hi experts,
I have created default selection screen,in that in the Period option I wants display only 'Today'.
And in the selection criteria i wants to display personnel number,companycode,personnelsubarea,employee status and instead of payroll area i wants to display 'Org unit'.please tell me step by step procedure,that could be greate helpfull.
Thanks in advance,
mohanuse this logic to display only today in the period option
**Local constants
CONSTANTS:
c_0 VALUE '0' ,
c_089 TYPE char3 VALUE '089',
c_091 TYPE char3 VALUE '091',
c_095 TYPE char3 VALUE '095',
c_097 TYPE char3 VALUE '097'.
At Selection Screen
at selection-screen output.
LOOP AT screen.
IF
screen-group4 = c_089 OR
screen-group4 = c_091 OR
screen-group4 = c_095 OR
screen-group4 = c_097 .
screen-active = c_0.
MODIFY SCREEN.
ENDIF.
ENDLOOP. -
Def a value in sear help of select screen generated by HR report category
Hi all,
Ive developed a HR report in which Ive used LDB PNP.. Now they are going to use this report for a particular company.
so in the report selection screen when they choose f4 help of personnel area i.e. field PNPWERKS, I need to default a value X for company code input field(BUKRS). so that the user can select personnel area pertaining to this company (code - X).
How can I achieve this? (defaulting a selection value in standard search help)
Thanks,
Rajan UHi Rajan
You can still do this in the initialization.
The memory id for the company code is 'BUK' and for plant it is 'PBR'. So in the Initialization event you can do like below. Here I am defaulting both the company code and plant.
insert personnel area code from user own data
GET PARAMETER ID 'PBR' FIELD werksid.
IF NOT werksid IS INITIAL.
pnpwerks-sign = 'I'. pnpwerks-option = 'EQ'.
pnpwerks-low = werksid. APPEND pnpwerks
ENDIF.
insert company code from user own data
GET PARAMETER ID 'BUK' FIELD bukrsid.
IF NOT bukrsid IS INITIAL.
pnpbukrs-sign = 'I'. pnpbukrs-option = 'EQ'.
pnpbukrs-low = bukrsid. APPEND pnpbukrs.
ENDIF.
Let me know if this helps.
Regards,
Vijay V
Maybe you are looking for
-
Getting printing error while issuing the excise invoice with cust. O/P type
Hi, I have created a custom output type and form and tried to issue it with the transaction J1IS. But it is always giving me error saying "Printing Error". I checked and didn't find any error in the SAP Script. Thanks, srinivas.
-
How can i get the external Sql result return data to abap?
Dear All I have a problem to how to get the select result data return abap. I used abap to run external SQL server. below is my code: ***in above ,abap has already connected external SQL. Sql = u2018select * from user01u2019 CALL METH
-
Text validation widget bug?
I have used text validation in a table body like this: <table style="width:20%"> <tbody id="login_val"> <tr><td>E-Mail</td><td><input name="login" id="login" type="text"></td></tr> <tr class="textfieldRequiredMsg"><td colspan="2">Enter your login E-M
-
Can I store an managed library on an external drive?
And is it recommended or not?
-
Hi all, I'm not exactly Mr. Database...but I've been trying to make a query where I can get all distinct values from one column/field in my table like so and stick them in variables.. : <cfquery name="initialValues" datasource="fikestudioDB"> select