Adding Label to Selection Screen..
Hi all,
How to add a label in the selection screen.. I want to change this label value dynamically.. so here I can nt use comment text.. so please suggest me a way.
Thank you..
Hi haritha,
try this code and desing ur selction screen formate depands on ur requirment
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETER : id TYPE i.
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN ON id.
IF id = ' '.
MESSAGE 'Enter the valid number' TYPE 'W'.
ELSEIF id = 100.
CALL SCREEN 100. " desing the required screen formate
ELSE.
CALL SCREEN 200.
ENDIF.
i hope so it may give u some more idea..
if its helpull rewards me..
cheers,
chandru.s
Similar Messages
-
How to make Label in selection screen?
Hi friends.. can anybody explain how to make labels in selection screens and how to split the selection screen vertically? plz.. Thanks in advance
Arun kumar,
Check this program. you can put labels like this.
REPORT ZVENKAT_TEST1.
SELECTION-SCREEN BEGIN OF BLOCK block.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(15) text1.
SELECTION-SCREEN POSITION 17.
PARAMETERS :p_pernr type pa0001-pernr.
SELECTION-SCREEN POSITION 26.
SELECTION-SCREEN COMMENT 27(30) text2.
SELECTION-SCREEN end OF LINE.
SELECTION-SCREEN end OF BLOCK block .
at SELECTION-SCREEN OUTPUT.
text1 = 'Personal number'.
SELECT SINGLE ename FROM pa0001 INTO text2 WHERE pernr = p_pernr.
Regards,
Venkat.O -
Problem in adding parameter in selection screen
Hi,
I am trying to add a parameter on the selection screen of a standard transaction(EG90 in ISU system).I added it through enhancement point but i am not getting how to maintain text for that parameter.As it is a standard transaction when i am going to goto->selection text and trying to maintain it,it is asking for the access code.Do i have any option for it or i should go for zcreation of the transaction.
Mukesh KumarHi,
unfortanly you need to enter an access code if you want to change somethink in standard without user-exit.
So....you need to create a z-transaction, if you want to add it.
Regards
Nicole -
About the label in selection screen
Hello friends,
I am using the following code to get the range from the table KNA1.
Tables: KNA1.
select-OPTIONS: s_kunnr for kna1-kunnr.
But the at output screen it is showing the S_KUNNR as label. I need the label "Customer Number" .
Please help me to solve this problem
Kuldeep VermaHI ,
label for a select option u can define in se38 editor only ..
Goto>Text elements>Selection Texts
Here u will see all the select options that u have defined ... in front of interested select option give its label name which will appear on selection screen
Hope this will solve the purpose... reward points if found useful... -
Adding gsber in selection screen of report painter
To gurus,
I have a small requirement, I have to get business area (GSBER) in selection screen of report.
I have developed the report using report painter FGI1 --FAGLFLEXT which is having gsber field.
In selection screen it self i want this GSBER FIELD .How to achieve it.
kindly guide me.
regards,
padmaja.Hi
What I understand from your question is you want bussiness area value on selection screen you can achive this by just using the by export/import parameter or by get/set parameter id.
Please elaborate what exactly you want.
Regards
Sagar. -
Adding Field on Selection Screen in Standard program
Hiiii,
We have a requirement to add a field Business Place (BUPLA) on the Selection Screen.
TCode - S_ALR_87012082, Program Name - RFKSLD00
Please give me some idea, so that i can modify this program !!
Nitin GargHii Klaus,
Okay, If as per your aspects there is no need of modify logical database, so Plz let me know how can i enhance RFKSLD00 to add Business Place.
I try to find Badi for it, but i think there is no suitable Badi findings . Plz give solution soon .
Nitin Garg
Edited by: Suhas Saha on Oct 19, 2011 2:22 PM -
Adding Comments in Selection-screen of report
Hi,
I want to add comments/Instructions on a selection -screen of a report.
How do we do that?
Regards
VaraHi Vara,
REPORT demo_sel_screen_select_comment.
SELECTION-SCREEN COMMENT /2(50) text-001 MODIF ID sc1.
SELECTION-SCREEN SKIP 2.
SELECTION-SCREEN COMMENT /10(30) comm1.
SELECTION-SCREEN ULINE.
PARAMETERS: r1 RADIOBUTTON GROUP rad1,
r2 RADIOBUTTON GROUP rad1,
r3 RADIOBUTTON GROUP rad1.
SELECTION-SCREEN ULINE /1(50).
SELECTION-SCREEN COMMENT /10(30) comm2.
SELECTION-SCREEN ULINE.
PARAMETERS: s1 RADIOBUTTON GROUP rad2,
s2 RADIOBUTTON GROUP rad2,
s3 RADIOBUTTON GROUP rad2.
SELECTION-SCREEN ULINE /1(50).
INITIALIZATION.
COMM1 ='Radio Button Group 1'.
COMM2 ='Radio Button Group 2'.
LOOP AT SCREEN.
IF screen-group1 = 'SC1'.
screen-intensified = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
reward if helpful
regards,
keerthi. -
Adding Logo In selection screen
Hi,
I would like to add company logo in the selection screen of a web report. Please let me know how to do this.
Regards,Hi Bill,
Customizing for the variable acreen in the web reports has not been provided for by SAP. It will be possible by modification. You can refer to these 2 posts by an SAP Developer (Heike Guder):
Web Template: Customizing Variable Screen
BeX Web App - Variable Screen
Hope this helps... -
Adding fields on selection screen dynamically
Hi all,
Can we add some fields to selection screen dynamically on pushbutton click?
Regards,
Dnyaneshjust have look below code
REPORT zrsdvsr1
LINE-SIZE 220
LINE-COUNT 65(5).
TYPE-POOLS : slis.
TABLES
TABLES: vbak.
DATA DECLARATIONS
Ranges
RANGES: r_posnr FOR vbap-posnr.
DATA: BEGIN OF t_veramt OCCURS 0,
vbeln TYPE vbap-vbeln,
posnr TYPE vbap-posnr,
matnr TYPE vbap-matnr,
netwr TYPE vbap-netwr,
mwsbp TYPE vbap-mwsbp,
END OF t_veramt.
DATA: BEGIN OF t_disamt OCCURS 0,
vbeln TYPE vbap-vbeln,
posnr TYPE vbap-posnr,
matnr TYPE vbap-matnr,
netwr TYPE vbap-netwr,
mwsbp TYPE vbap-mwsbp,
netwr_v TYPE vbap-netwr,
mwsbp_v TYPE vbap-mwsbp,
disc_val TYPE vbap-mwsbp,
END OF t_disamt.
*& ALV FIELDS
DATA : alv_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
alv_layout TYPE slis_layout_alv.
SELECTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_ver RADIOBUTTON GROUP g1 USER-COMMAND rad DEFAULT 'X',
p_sab RADIOBUTTON GROUP g1 .
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
SELECT-OPTIONS: s_vbeln FOR vbak-vbeln NO INTERVALS MODIF ID gr1.
PARAMETERS: p_dwfile TYPE rlgrap-filename
DEFAULT 'C:\test1.txt' MODIF ID gr2, "#EC NOTEXT
p_upfile TYPE rlgrap-filename
DEFAULT 'C:\test.txt' MODIF ID gr3. "#EC NOTEXT
SELECTION-SCREEN END OF BLOCK b2.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_upfile.
**************F4 Help For Input File Name****************************
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
field_name = 'C:\'
IMPORTING
file_name = p_upfile.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_dwfile.
**************F4 Help For Input File Name****************************
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
field_name = 'C:\'
IMPORTING
file_name = p_dwfile.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF p_sab = 'X'.
IF screen-group1 = 'GR1' OR screen-group1 = 'GR2'.
screen-active = '0'.
screen-invisible = '1'.
ELSE.
screen-active = '1'.
screen-invisible = '0'.
ENDIF.
MODIFY SCREEN.
ELSE.
IF screen-group1 = 'GR3'.
screen-active = '0'.
screen-invisible = '1'.
ELSE.
screen-active = '1'.
screen-invisible = '0'.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
START-OF-SELECTION
START-OF-SELECTION.
Check Radio Button
IF p_ver = 'X'.
PERFORM get_details_open_so_vertex.
ELSE.
PERFORM get_details_open_so.
ENDIF.
Display the output.
PERFORM diplay_report .
regards
vinod -
Adding a message to the variable selection screen
Hi there
I have been asked to find a way to add a message to the variable selection screen.
It appears that DIVISION needs to be added to the selection screen, as this makes the query run faster. However, they don't actually want the user to enter a division, as this causes other problems.
So, ideally, I would be able to add a message to the variable selection screen that advises users against entering a value for division.
I don't know how to do this.
I create the web template, and I can therefore add messages or anything you like to the template, but I don't believe I have any control over the variable selection screen.
Does anyone know if this is possible?
We are running a 2004s system if that helps.
Cheers,
AndrewHello,
Well i think if you make the variable used for division not ready for input it would not be available for the users to input anything.
you can find the checkbox for this in the properties of the variable in query designer.
Hope this matches your requirement.
Regds,
Shashank -
COOIS - new field tobe added in selection screen
My requirement is ' batch field shud be added in COOIS Selection screen & output shud come for given batch '.
can anyone give the details .Hi,
You have to customize the Program according to business requirement.
You can copy as ZCOOIS and assign a Tcode for that and do the necessary modifications as per need.
Regards
Arbind -
How to deal with dynamic selection screen elements when macros are used?
Hello experts,
This is regarding the dynamic selection screen elements. Actually the requirement is to modify the existing standard report program RFUMSV00 by copying it into a Z report, adding a few selection screen elements and new fields in the output. I actually did everything required except for the one thing that is going out of my reach.
There are a certain fields which are coming when they are not supposed to get displayed. I don't understand the code because of its obsoleteness. Neither can I debug it because it is just data declaration.
This is the code where there is a fault. If I copy the entire code into a new Z report, I'm getting new fields like Entry Date, Document Type, Reference Transaction, Reference key, Logical system.
DEFINE selection_screen_line.
selection-screen: begin of line.
parameters &3 like &4 default 'X' modif id mc4.
selection-screen: comment (30) &1 for field &3 modif id mc4.
selection-screen: comment pos_low(10) text-019
for field &2 modif id mc4. "neu
parameters &2 like rfums_alv-variante modif id mc4.
selection-screen:
position pos_high.
selection-screen: pushbutton (15) text-028
user-command &5 modif id mc4.
selection-screen end of line.
END-OF-DEFINITION.
Kindly, suggest me the right solution.In the program attributes ( SE38 > RFUMSV00 > GOTO > Properties ), you will find a logical database BRF declared. The include DBBRFSEL is part of the selection screen of this logical database.
The selection screen is actually the selection screen of this logical database.
Under the Logical Database field, there is a Selection screen field where you can input which selection screen of the logical database to be used.
But, this is just to change the selection screen that is displayed. To completely suppress it you need to remove logical database declaration from the properties of the program and call it inside your program through function module.
You cannot just remove it from the declaration because many of its variables are used in the program.
So call it using function module as the first step in INITIALIZATION section of the program.
The syntax and function module to call it in your program can be found in the following thread :
How to hide the selection screen of a Logical datebase?
Regards,
Ashish -
Graphic on selection screen forces execution as a transaction
Is it possible for a graphic to be added to the selection screen of an ABAP report and have the report continue to be executable via SA38? My developer is telling me that it must be executed via an assigned transaction code now and this is not what the enduser wants.
Hi Linda,
Your developer is right.
you can create a screen and use custom_container to add a graphics and also include your selection screen in that screen.
You can provide the enduser with the z transaction code, so that, he can run it and get the desired output... [End users generally are given custom transactions, if the standard reports/transactions dont serve their purpose]
Regards,
Raj
For upload graphic into system use tcode : SMW0
Code for display Graphics.
DATA query_table LIKE w3query OCCURS 1 WITH HEADER LINE.
DATA html_table LIKE w3html OCCURS 1.
DATA return_code LIKE w3param-ret_code.
DATA content_type LIKE w3param-cont_type.
DATA content_length LIKE w3param-cont_len.
DATA pic_data LIKE w3mime OCCURS 0.
DATA pic_size TYPE i.
IF container is initial.
CREATE OBJECT container
EXPORTING container_name = 'CUSTOM_CONTAINER'.
CREATE OBJECT picture
EXPORTING parent = container
EXCEPTIONS error = 1.
IF sy-subrc ne 0.
ENDIF.
ENDIF.
REFRESH query_table.
query_table-name = '_OBJECT_ID'.
query_table-value = 'ZDAT_TRANSFER'.
APPEND query_table.
CALL FUNCTION 'WWW_GET_MIME_OBJECT'
TABLES
query_string = query_table
html = html_table
mime = pic_data
CHANGING
return_code = return_code
content_type = content_type
content_length = content_length
EXCEPTIONS
OBJECT_NOT_FOUND = 1
parameter_not_found = 2
OTHERS = 3.
IF sy-subrc = 0.
pic_size = content_length.
ENDIF.
CALL FUNCTION 'DP_CREATE_URL'
EXPORTING
type = 'image'
subtype = cndp_sap_tab_unknown
size = pic_size
lifetime = cndp_lifetime_transaction
TABLES
data = pic_data
CHANGING
url = url
EXCEPTIONS
OTHERS = 1.
CALL METHOD picture->load_picture_from_url
EXPORTING url = url.
IF sy-subrc ne 0.
Fehlerbehandlung
ENDIF -
Custom Message on Variable Selection Screen
Hi there
I have been asked to find a way to add a message to the variable selection screen.
It appears that DIVISION needs to be added to the selection screen, as this makes the query run faster. However, they don't actually want the user to enter a division, as this causes other problems.
So, ideally, I would be able to add a message to the variable selection screen that advises users against entering a value for division.
I don't know how to do this.
I create the web template, and I can therefore add messages or anything you like to the template, but I don't believe I have any control over the variable selection screen.
Does anyone know if this is possible?
We are running a 2004s system if that helps.
Cheers,
AndrewAndrew,
You cannot customize the variable entry screen - atleast not in BI3.x since SAP advices storngly against it. I guess the same applies to BI7 also.
What you could do it
1. Have an exit that fills in the values and is not shown by default
2. Have the variable on division but make it optional and remove the ready for input option for the same
3. Have a HTML variable selection window and then pass the values to your report - but then you will not get the F4 help for the same here.
Arun -
Adding a new field to selection screen -Effect on variant
Hello,
If we add a new (non obligatory) field to a slection screen, is there any impact on existing variants? Does SAP regenerate each variant when the screen change transport get applied? We had a DB lock jam situation in our PRD system for VARI table and the previous day some program changes with a added selection screen parameter ( a check box) had moved).
Regards,
Hari.Adding a field to the selection screen shouldn't affect existing variants (but the field will be blank for all variants). However, if there is a problem, you should be able to retrieve variants with program RSVARDOC_610.
Rob
Maybe you are looking for
-
I am trying to use the socket gateway to watch a port 1010 for all incoming data. When data comes in I want to log it. Well to get started I just used a simple example from the docs to see if I could get it to work. But when I try to start the gatewa
-
I purchased iPad 3. While trying install application,it says it is not available in Kuwaiti store. I entered my credit card details to complete the configuration . What is the issue.
-
MMS not working on 3G after IOS4
I updated to IOS4 on my iphone 3G & my mms ist working..when I send pictures the recipient tells me they get a blank message.I still have MMS messaging in my message 'folder' & I can turn it on or off..its on.what could I do to make it work again?? I
-
i cannot facetime due to a server error
-
Strategy to reference a file system in the application?
Hello, I am working on a web application which has a file system[d:/appname/images] on the application server where images upload by the application are saved. The file system is referenced in the application code at two different places. One on file