Abap selection-screen
Hi friends,
Is it possible in abap reporting, from the first selection-screen input can we design the next screen where we can provide the details for first screen inputs.
note: this should be done in abap report not module pool.
Advance Thanks,
Purna Chandra.
Go through this small example -
parameters : p_so type vbak-vbeln.
types: begin of w_itab_ty,
vbeln type vbeln,
vkorg type vkorg,
end of w_itab_ty.
data : itab type standard table of w_itab_ty,
wa_itab type w_itab_ty.
DATA it_dynfield TYPE STANDARD TABLE OF dynpread WITH HEADER LINE.
AT SELECTION-SCREEN.
if p_so is not initial.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
request = 'A'
translate_to_upper = 'X'
TABLES
dynpfields = it_dynfield
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
invalid_parameter = 7
undefind_error = 8
double_conversion = 9
stepl_not_found = 10
OTHERS = 11.
READ TABLE it_dynfield WITH KEY fieldname = 'P_SO'.
IF it_dynfield-fieldvalue IS NOT INITIAL.
p_so = it_dynfield-fieldvalue.
ENDIF.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = p_so
IMPORTING
OUTPUT = p_so.
select vbeln
vkorg
from vbak
into table itab
where vbeln = p_so.
endif.
start-of-selection.
if itab is not initial.
loop at itab into wa_itab.
write :/ wa_itab-vbeln,
wa_itab-vkorg.
endloop.
endif.
Similar Messages
-
RE:HR-ABAP selection screen problem.
hi,
hi friends iam facing one problem regarding hr ABAP selection screen ,in my program iam using PNP LDB for bonus details report
i have using selection screen declaration present for single selection.
SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-006.
SELECT-OPTIONS: S_ABKRS FOR P0001-ABKRS NO INTERVALS NO-EXTENSION,
S_WERKS FOR P0001-WERKS NO INTERVALS NO-EXTENSION,
S_BTRTL FOR P0001-BTRTL NO INTERVALS NO-EXTENSION,
S_PERSG FOR P0001-PERSG NO INTERVALS NO-EXTENSION,
S_PERSK FOR P0001-PERSK NO INTERVALS NO-EXTENSION.
SELECTION-SCREEN END OF BLOCK B3.
based on this selection iam fetching the information from infotypes using macros.
now my requirement is iam fetch the information for multiple selections means like payroll areas z1,z2 and z3 payroll informations
should be fetching once. pls any body knows solution please give me reply.
thanks & regards,
mgrao.You should be using a selection view (HR Report Category in the programs attributes) to filter results from the LDB.
Why is this in the objects forum? -
Upload from clipboard option in webdynpro abap selection screen
Hello Gurus,
We have a requirement in select-options in webdynpro.i have implimented select-options successfully using
WDR_SELECT_OPTIONS used component.now i need to impliment 'upload from clipboard' option when ever i click on advance options arrow mark. this option we can get in normal abp from selection screen.in selection screen against select-option field we have multiple options arrow mark.when ever we click this arrow mark we can able to see the upload from clipboard button at lowe level.exact same option how can we impliment in webdynpro abap selection screen.
Could anyone please suggest solutions?
if possible could you send me the sample code or relevent links for the same.
Thanks in Advance for your replies.
Regards,
babuHi,
Which server version are you working on...Is it ECC6 or nwetweaver 7..
I guess that option is avaialbel in Netweaver 7.0..Need to check there is an option for Clipboard in select-options..
Regards,
Lekha. -
How to add factory calender in ABAP Selection Screen?
Hi,
Anyone can guide me, how to add the factory or Holiday calender in ABAP Selection screen?
Thanks in advance.
VJ.Use the below code and it should work.
AT SELECTION-SCREEN on VALUE-REQUEST FOR p_date. "p_date is your selection screen field.
CALL FUNCTION 'F4_DATE'
EXPORTING
DATE_FOR_FIRST_MONTH = SY-DATUM
DISPLAY = ' '
FACTORY_CALENDAR_ID = 'US'
HOLIDAY_CALENDAR_ID = 'US'
IMPORTING
SELECT_DATE = p_date
The thing to note above is DISPLAY should NOT be 'X'. -
Uploading selection data to an ABAP selection screen
Not sure this is the best place for this question but here goes.
When a user is presented with a selection screen from an ABAP they have the option to upload data from a text file. This works fine for single value lists but I cannot get this to work for ranges.
I have tried tab & comma delimited files, xls and plain fixed width text and am always presented with the message 'lower limit is greater than upper limit'.
Regards
Paul.Hi Paul,
You are thanking a poster for his answer.
Please next time also give him points.
See: /people/mark.finnern/blog/2004/08/10/spread-the-love
This time I did it for you.
Remember: When you ask a question you also assume the responsibility to assign points.
Please check your other questions and if the answers were good.
Spread the love and give some points.
Thanks in advance, Mark. -
Customizable ABAP Selection Screen with Tabstrips
Hello everybody,
we have a ABAP and a MASTER-Selection Screen. In this Selection Screen it should be able for Customers to enhance the MASTER-Selection via a Subscreens (realized in Tabstrips).
The amount of Tabs has to be dynamic. Ist there a ABAP Sample?
Does anybody has some ideas to keep this dynamic?
Thanks
Regards
MarioHi,
examples are in the transaction BIBS.
regards
Fred -
ABAP selection screen modification
Hello,
I have the following selection screen:
PARAMETERS:
p_kalaid LIKE kala-kalaid,
p_kalabe LIKE kala-kalabez,
p_kalada LIKE kala-kaladat,
p_klvaf LIKE kalv-klvar,
p_tvers LIKE kala-tvers,
p_kokrs LIKE kala-kokrs,
p_bukrs LIKE kala-bukrs,
p_group LIKE kala-rfc_group.
When I choose F4 on <b>p_kalaid</b> and then select one value proposed, it fills <b>p_kalaid</b> (as expected), but it fills <b>p_kalada</b> automatically as well!
My goal is to have all parameters fill in automatically with data from tables <b>KALA</b> and <b>KALV</b> based on my key selection (<b>p_kalaid</b>)... how can i do this?
Thanks,
TimHy!
I don´t know if there is an easier way,
but I would try it to program the F4 Matchcode selection in the event AT SELECTION-SCREEN. by my own!
After that you could read the other information with the result from the selcection and fill the other parameters.
There is a function where you can program your own selection but I forgot the name! (Something with MATCHCODE and F4 in it!) Sorry...
Jesus loves you!
Manuel -
Trigger process chains using ABAP program selection screen.
Hi All
I am loading flat files through process chains. My requirment is such that i need to create a ABAP selection screen so that user can load the flat file from his PC. when the user is loading the flat file i have to copy the file onto the application server folder and then display him the monitor errors/warnings (if any). when my data load is complete i need to archive the file with time stamp onto the application server folder.
Please help me in this regard....
thanks and regards
sairam phaniHi,
1. Using TA: AL11 create a folder in application server.
2. There is a program to send the flat file to application server on r/3 side.
Program Name:RC1TCG3Z.
3. Regarding archiving...I have no idea.
Regards,
Vijay. -
Trigger Process chains through ABAP program using selection screens
Hi All
I am loading flat files through process chains. My requirment is such that i need to create a ABAP selection screen so that user can load the flat file from his PC. when the user is loading the flat file i have to copy the file onto the application server folder and then display him the monitor errors/warnings (if any). when my data load is complete i need to archive the file with time stamp onto the application server folder.
Please help me in this regard....
thanks and regards
sairam phaniHi sairam
can you check this link hope this might help you out
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7
Going thru your query hope i get the right solution
Thanks=points in SDN
Sanjeev kumar hamsala -
RE:pnp LDB selection screen problem
hi,
hi friends iam facing one problem regarding hr ABAP selection screen ,in my program iam using PNP LDB for bonus details report
i have using selection screen declaration present for single selection.
SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-006.
SELECT-OPTIONS: S_ABKRS FOR P0001-ABKRS NO INTERVALS NO-EXTENSION,
S_WERKS FOR P0001-WERKS NO INTERVALS NO-EXTENSION,
S_BTRTL FOR P0001-BTRTL NO INTERVALS NO-EXTENSION,
S_PERSG FOR P0001-PERSG NO INTERVALS NO-EXTENSION,
S_PERSK FOR P0001-PERSK NO INTERVALS NO-EXTENSION.
SELECTION-SCREEN END OF BLOCK B3.
based on this selection iam fetching the information from infotypes using macros.
now my requirement is iam fetch the information for multiple selections means like payroll areas z1,z2 and z3 payroll informations
should be fetching once. pls any body knows solution please give me reply.
thanks & regards,
mgrao.hi jain thanks for your reply, iam already created report category and assigned my report. here iam giving my report selection
declerations fully below.
S E L E C T I O N S C R E E N *
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001. " DECLEARED REPORT CODE LEVEL
SELECT-OPTIONS: S_DATE FOR SY-DATUM NO-EXTENSION. "Bonus for Financial Year
PARAMETERS: P_BDATE TYPE SY-DATUM OBLIGATORY, "Bous payed as on
P_WKDAYS TYPE CHAR6. "No.of Working Days
SELECTION-SCREEN END OF BLOCK B1.
*SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-006. " COMMENTED report level TAKING FROM LDB PNP
*SELECT-OPTIONS: S_ABKRS FOR P0001-ABKRS NO INTERVALS NO-EXTENSION, " Payroll area
S_WERKS FOR P0001-WERKS NO INTERVALS NO-EXTENSION, Personnel area
S_BTRTL FOR P0001-BTRTL NO INTERVALS NO-EXTENSION, Personnel sub area
S_PERSG FOR P0001-PERSG NO INTERVALS NO-EXTENSION,
S_PERSK FOR P0001-PERSK NO INTERVALS NO-EXTENSION.
*SELECTION-SCREEN END OF BLOCK B3.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002. "REPORT CODE LEVEL SELECTION
PARAMETERS: P_FORMCP TYPE PIN_RATE, " char6, "Form C %
P_FORMEP TYPE PIN_RATE, " char6, "Exgratia %
P_FORMBP TYPE PIN_RATE. " char6 . "Bonus %
SELECTION-SCREEN END OF BLOCK B2.
SELECTION-SCREEN BEGIN OF BLOCK B4 WITH FRAME TITLE TEXT-004.
PARAMETERS: L_REPORT TYPE ZHRD_FORMC AS LISTBOX VISIBLE LENGTH 40 OBLIGATORY . Report for list box 1 form c
SELECTION-SCREEN END OF BLOCK B4. 2 exgratia
the above selection is iam used first, now iam commented BLOCK B3 SELECTION PARAMETERS and taking the parameters from REPORT CATEGORY ASSINGN MENT.
MY PROBLEM is if i select one payroll area example z1 it showing all pay roll employees bonus details it is not filter the remaining payroll areas my requirement is what are the payrolls iam selecting those pay roll area details only displaying.
data fetching from INFOTYPES 0001,0002,0021 AND 9150 FOR BONUS DETAILS and out put is classical report format.
please kindly give the reply if you knows the solution.
thanks & regards ,
mgr. -
Selection Screen - can it be better ?
Hello Experts,
My selection screen contains about 15 selection (variables). They are shown as an flat list of input fields. Some blocks of this variables are in an relationship. In an normal ABAP selection-screen I would group it into blocks. Some variables are Yes/No variables. In an ABAP selection screen I would made check-boxes for it.
Are there some possibilities to change the standard look of selection screen in BEX/WEB: add grouping variables, use check-boxes, radio buttons ?
Thanks
WojciechYes. See options in link below.
Basic troubleshooting steps
17" 2.2GHz i7 Quad-Core MacBook Pro 8G RAM 750G HD + OCZ Vertex 3 SSD Boot HD
Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
In Memory of Steve Jobs -
Hi,
Is WDA lacking some those very familiar features we have in ABAP Selection-screen? (WDR_TEST_SELECT_OPTIONS application certainly does not show the full scope, is it?)
Is there a replacement for BEGIN OF LINE in WDA selection-screen?
What about adding comments?
Is this possible to add icon or images?
Besides, I was wondering how it is possible to lay the selection-screen in multiple columns. In tried different layout (Grid, Matrix, ...) without success.
Lastly, is this possible to put labels on top of input fields?
Do not hesitate to share your most beautiful selection-screens!
Thanks in advance.
Best regards,
GuillaumeSome of the designing things are missing in select options -
IF_WD_SELECT_OPTIONS~ADD_HORIZONTAL_DIVIDER - > to add a line
IF_WD_SELECT_OPTIONS`ADD_TEXT_LINE - Add a text based line...
Regarding alignment we need to work on it..there are layout options using ADD_BLOCK..
Adding Icon/Symbol - I don't see any option...in the interface -
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 -
ABAP Program using Selection Screen in Process Chain
Hi,
I have included an ABAP Program in the Process Chain.
The ABAP Program takes a selection screen value from user before execution.
I have created a variant for both the ABAP Process (YPV_ABC) and a variant for the Selection Screen (YPV_XYZ).
The ABAP Program executes perfectly well in SE 38.
I get the following message when I execute the Process Chain.
"Status Change of Process ABAP YPV_ABC.
Save Status and Trigger Events if Appropriate "
When I click Yes, the ABAP Process becomes red.
These are error messages in the log
516 - Job started
550 - Step 001 started (program RSPROCESS, variant &0000000012961, user ID ALEREMOTE)
25 - Could not ascertain code page
546 - Job cancelled after system exception ERROR_MESSAGE
My questions are:
1) Is it possible to use an ABAP Program which has a user input screen in Process Chain?
2) Could you please help with the above error?1) Is it possible to use an ABAP Program which has a user input screen in Process Chain?
ABAP programs, with variants established for selection screens, are possible. We use them quite extensively for setting triggers to allow Process Chain to continue after an Interrupt Process has been hit.
2) Could you please help with the above error?
I'm not quite sure what could be causing this. When you tested this program in SE38, did you test it with the same variant for the selection screen and did you execute it in background? -
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
Maybe you are looking for
-
HT1879 How can I transfer songs from one play list to another?
Any time I try and move a song to another play list I can't. It just will not let me...
-
After rebooting after the power failure when I go to new websites or even within some websites after clicking on a link the message box appears and I have to add a security exception to get past the message and see the link. I am using V4.0. I do not
-
Client running on JRE 1.4.1
Is it possible to run a weblogic-client program on a 1.4.1 JRE ? Thanks in advance, Hauke
-
hi - i'm trying to burn my project, but whenever i click the "burn" button, it just says "formatting finished" and won't do anything else. i don't even have a disc in the drive! this is the first project i've tried to burn on my new macbook pro - whi
-
Customization of Portal Logon problem
Hi I am Trying to change the Logon Screen for my Portal but cannot find the file specified by SAP . . . <J2EE_Engine_Instance>\j2ee\cluster\server<X>\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\deployment\pcd I get to WEB-INF and there is no deploy