How to color the text element in selection screen
hi,
i am going to pass some text element in selection screen output and my requiremnt is text element should be given some colour.
plz guide me.
regards
muthuraman.d
Hi...
Dont Declare your field as OBLIGATORY.
Instead perform the validation in AT SELECTION-SCREEN event. But validation should be only when Particular Radiobutton is selected.
And Generate only Error Message (Type E).
Try this code:
AT SELECTION-SCREEN on <yOUR mandatory field>.
IF PA_UPD = 'X'.
IF <YOUR MANDATORY FIELD> IS INITIAL.
Message 'Entry is must in this field' type 'E'.
ENDIF.
ENDIF.
AT SELECTION-SCREEN OUTPUT.
IF pa_udp = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ABC'. "#CCE
screen-active = 1.
ELSEIF screen-group1 = 'DEF'.
screen-input = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ELSEIF pa_rep = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ABC'. "#CCE
screen-input = 0.
ELSEIF screen-group1 = 'DEF'.
screen-active = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
<b>Reward if Helpful</b>
Similar Messages
-
How to color the text elements in script?
how to color the text elements in script?
byeeeee
plz send the answersHi,
Please go through my blog to know how to do color printing in SAP scripts.
White Paper on 'Color Printing in SAP Scripts'
Regards,
Sireesha Ch -
How to change the text in default selection screen
Hi,
I have created the default selection screen(using PNP Logical database) ,In that I wants to display 'Data Selection Period' instead of 'Period'.
Please send me the related code.
Thanks in advace
mohanHR Logical Database is PNP
Main Functions of the logical database PNP:
Standard Selection screen
Data Retrieval
Authorization check
To use logical database PNP in your program, specify in your program attributes.
Standard Selection Screen
Date selection
Date selection delimits the time period for which data is evaluated. GET PERNR retrieves all records of the relevant infotypes from the database. When you enter a date selection period, the PROVIDE loop retrieves the infotype records whose validity period overlaps with at least one day of this period.
Person selection
Person selection is the 'true' selection of choosing a group of employees for whom the report is to run.
Sorting Data·
The standard sort sequence lists personnel numbers in ascending order.
· SORT function allows you to sort the report data otherwise. All the sorting fields are from infotype 0001.
Report Class
· You can suppress input fields which are not used on the selection screen by assigning a report class to your program.
· If SAP standard delivered report classes do not satisfy your requirements, you can create your own report class through the IMG.
regards
vinod -
How to transport the text elements
hi guru's,
i need answer to this question.
how to transport the text elements in the sap script?Hi,
U mean Standard Text?
Standard Text can create using SO10.
Use RSTXTRAN Standard Program..
Do Like this..
Goto se38 and enter program name as RSTXTRAN
and press F8..
and give Text-key Name as Standard Text Name
then Press F8..
And select Select check box.. and enter
and press on trsfr to corr button..
it asks transfee textxs to a correction..
press on yes button..
it will show request number or create your own request...
and after goto SE10 tcode and Transport it...
Regards,
KK -
How to transport the text elements in Reports?
need answer to this question.
how to transport the text elements in the reports?
Edited by: venkata kumar on Feb 18, 2008 1:33 PMHi Venkata,
Text Elements are a component/part of the SAP script and are not individual ABAP objects within the SAP environment hence they cannot be transported independently.
You would need to make changes in your text elements in the SAP script which would result in the SAP script being saved under a transport and moving the transport across the landscape would result in the text elements also getting transported.
In short: Move SAP script - to move text elements.
Cheers,
Aditya -
How to Improve the performance in Variable Selection Screen.
Hi,
In Query Level we have Variable " User entry Defalt Valu". User want select particular value when he press "F4" it's take hours time how to improve the performance in Varaible Selection Screen.
Thanks in Advance.
Regards,
Venkat.Dear Venkat.
You please try the following steps:
1. Say the InfoObject is 0EMPLOYEE against which you have created the variable, which user is trying to select value against, when they execute the report.
2. Goto RSA1-> InfoObject tab-> Select InfoObject 0EMPLOYEE.
3. Selcet the following options:
Query Execution Filter Val. Selectn - 'Only Posted Value for Navigation'
Filter Value Repr. At Query Exec. - 'Selector Box Without Values'
Please let me know if there is any more issue. Feel free to raise further concern
Thnx,
Sukdev K -
How to get the text elements for a particular program
Hi All,
I want to get the all text elements , selection texts for a particular program...How to get.
I have used one FM READ_TEXTELEMENT_FROM_REPORT , but not much useful..
please help me..
Regards,
rajHi..
You may use this statement to read the text elements:
DATA: i_reptx TYPE STANDARD TABLE OF textpool WITH HEADER LINE.
READ TEXTPOOL (reports) INTO i_reptx. " reports is the report name.
Best Regards,
Pradeep. -
How to get the text boxes and select lists dynamically?
Hi,
I have a requirement such that I need to create the text boxes and select lists depending on the user input at the run time. It means that if the user requires four text boxes/select lists then I need to have 4 such thing. If the user need 6 then I need to have 6.
The design may be such that initially only one text box/select list will be available when the page launches. Then as ad when the user asks for more those will be available to the user accordingly.
regards,
Dipankar.You can use Ajax to call textboxes and select list based on what user enters.
Otherwise make those items conditional and based on what user enters you can display textbox or select list.
You can call Single Textbox and Select List using Ajax for any number of conditions.
Regards
Chandra -
How to make the obligate field in selection screen
Hi ,
In my report two radio buttons and two bloc selection screens are there.When we select the first radio button first screen will be editable second screen will be non-editable vice-versa.
but the problem is in each selection screen one mandatory field is required suppose if i give the one field obligatory in first block screen it is not allowing the second readout please help me regarding this how i will make the mandatory field in both screens.
Thanks,
HarinathHi...
Dont Declare your field as OBLIGATORY.
Instead perform the validation in AT SELECTION-SCREEN event. But validation should be only when Particular Radiobutton is selected.
And Generate only Error Message (Type E).
Try this code:
AT SELECTION-SCREEN on <yOUR mandatory field>.
IF PA_UPD = 'X'.
IF <YOUR MANDATORY FIELD> IS INITIAL.
Message 'Entry is must in this field' type 'E'.
ENDIF.
ENDIF.
AT SELECTION-SCREEN OUTPUT.
IF pa_udp = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ABC'. "#CCE
screen-active = 1.
ELSEIF screen-group1 = 'DEF'.
screen-input = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ELSEIF pa_rep = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ABC'. "#CCE
screen-input = 0.
ELSEIF screen-group1 = 'DEF'.
screen-active = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
<b>Reward if Helpful</b> -
How to active the text element (F9) in manu bar
Hi Expart,
I am working with sap Script when i select the window in page window ,then try to insert text by edit->text element , but this option is deactivated.
Can any one help me to inset text to those window ..
Thanks in advance ,
Tarakhi,
after creating a new page you have to goto page windows. Otherwise you caonnot create textelements.
There also must also made aready some windows. In no windows exist you have to go to windows.
hope this helps.
Gr., Frank.
PS. Try to work with the graphical form painter. Then you will not have those problems. -
Text elements and selection screen
I changed the selection screen using enhancement frame concept. But I can not change the selection text that displays on the selection screen.
Does anybody know how to do it?Hi
I was able to change the selection screen, my issue before was that I was implementing changes to an Explicit enhancment that was not switched on so the code was not being processed.
I used the explicit enhancement MGV_GENERATED_RIAUFK20 # 14 on my system. It has the initialization piece in it. To add the frame header to the selection screen I used a read and insert on the text-pool and for the individual fields I used the FM selection_texts_modifiy.
Hope this helps
John -
How to Display key/text in default selection screen?
HI Gururs,
I want to display key/text in variable default selection screen in BI Analyzer in Quality.
please give me any suggestions to resolve this.
Thanks
vadlamudihi,
What i have done is in the cube level, in the dimensions i have made specific properties and set to key/text in development, so its working fine in development of the analyzer, but still its showing text only in quality analyzer.
please give me the solutions if you know any.
regards
vadlamudi -
How to change the description of a selection screen
Hi , I created a selection screen with the description as 'Test' , now the program has grown real big . I want to change the desccription to something else as it shows at the top of the selection screen. Can this be done with out copying the program to a new progarm with a new description. I mean , is there a way to change the current description .
Thank you .Hi
in SE38 Enter the program name.
Select the Radio button<b> Attributes.</b>
Change the <b>Title </b>of the Program.
This title will appear in the selection screen as well as the list by default.
We can also set this TITLE dynamically using the command.
SET TITLE-BAR 'T1'. "double click on T1 and create (Activate) it.
<b>reward if Helpful.</b> -
How to replace the values in variable selection Screen urgent plz
Hi all,
I am having a requirement. where the user need pass the value in the variable, Here v r having option like '1' and '2' which represent 'month' and 'ytd'.
While selecting user view as 1,2 .Now my requirement is to replace the value 1=monthly and 2=ytd while the user passing the value to avoid the confusion.
Is it possible if so plz let me know
RegardsDear Venkat.
You please try the following steps:
1. Say the InfoObject is 0EMPLOYEE against which you have created the variable, which user is trying to select value against, when they execute the report.
2. Goto RSA1-> InfoObject tab-> Select InfoObject 0EMPLOYEE.
3. Selcet the following options:
Query Execution Filter Val. Selectn - 'Only Posted Value for Navigation'
Filter Value Repr. At Query Exec. - 'Selector Box Without Values'
Please let me know if there is any more issue. Feel free to raise further concern
Thnx,
Sukdev K -
Changing the text element in RM08RL82
Hi All,
I have added the field(BEDNR) in RM08RL82.Now i need to change the text element in selection screen but it is showing BEDNR i need change that into Tracking Number.Could any one can help me out from this issue.
Thank You,
Usha.Guse below f.m
data: lt_btext type textpool occurs 1 with header line.
CALL FUNCTION 'RS_TEXTPOOL_READ'
EXPORTING
OBJECTNAME = v_program
ACTION = ' '
LANGUAGE = SY-LANGU
TABLES
TPOOL = lt_btext
EXCEPTIONS
OBJECT_NOT_FOUND = 1
PERMISSION_FAILURE = 2
INVALID_PROGRAM_TYPE = 3
ERROR_OCCURED = 4
ACTION_CANCELLED = 5
OTHERS = 6.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
read table lt_btext with key id = 'S' key = lt_selopt-selname.
lt_btext-entry = 'TRACKING NO'.
modify table.
Edited by: Niki on Jan 24, 2009 12:02 PM
Maybe you are looking for
-
Pass parameter from dynamic page to form
I have a report that uses a link to pass a parameter (projno) to a dynamic page. This dynamic page calls a procedure which, using the projno, pulls information from four tables. Depending on who the user is and what phase the project is in, each head
-
High Availability Server in Unix Environment - Checking
Hi experts - I would like to know, how to check in any SAP - CI server is configured for High availablity option ? I have Unix-Solaris installed in my work. Is there any Unix command would show this has HA options? Would appreciate your help. Thanks,
-
Hi All, We are planning to integrate WebDynpro runtime environment in ABAP workbench. We are currently on WAS 6.20. I wanted to know how can we upgrade to WAS 6.0. Will just applying patch would be enough...?? .. What else we will need to set up deve
-
ALC-WKS-007-040 error when using "Approval Container" in Workspace ES2
Hello fellow LiveCyclers! I'm running into a pesky problem when I try to view a simple, non-interactive form within Workspace's "Approval Container" (the default container works fine). As soon as I click on the notification card in Workspace to view
-
How to install Berkeley DB to use with Python 3?
I have heard that Berkeley DB is a good database. It seems it used to included in Python 2.x standard libraries but got excluded from 3.x version. I want to use only Python 3.x, so I need to install Berkeley DB somehow to use it with Python 3.x. Coul