How gray out the fields in selection screen with parameters
Hi,
Can any one help me how to gray out the selection screen fields
Start-of-selection----
Parameters : p_status TYPE edids-status MODIF ID xyz DEFAULT co_51.
End-of-selection----
i want to grayed out the field p_status.
except At selection-screeen output, can any one suggest the other method of gray out the above field.
Thank u
B Ravi Kumar
Similar Messages
-
How to make a field in selection screen as READ_ONLY !!
Hi,
How to make a field in selection screen as READ_ONLY !!.
Thanks,
SenthilThis is the code you need to have in your program.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-NAME = 'MYSELFLD'.
SCREEN-INPUT = 0.
MODIFY-SCREEN.
ENDIF.
ENDLOOP. -
How to hide input fields on selection screen using variant attribute
Hello all,
I want to know how to hide input fields on selection screen using variant attribute conpletely.
As you know, when setting the attribute of variant "Hide field" checked, the field is temporarily hidden, but when clicking "All Selections(F7)" button on the selection screen, the fileds become appeared.
I want to hide the field completely. Di you know how to do ?
Thank you for your support.
Regards,
Hideki KozaiUse this attribute hide field and save the variant. Then create transaction for this program setting default variant for parameter Start with variant . The user who runs it will have it by defualt set.
Otherwise
in PBO simply use LOOP at screen and output = 0 for this field. This will ensure that field is invisible in any case.
Regards
Marcin -
Adding the field in selection screen
Hi Guru's,
how can i add the field in selection screen of t code qa33.
can any one help me pls.
Thanks & Best Regards,
Rakhi.You can enhance the standard program RQEEAL10 using implicit enhancement points.
Click the spiral (Enhance) button (Shift + F4)
Go to Edit -> Enhancement operations -> Show Implicit Enhancement Poitns
Create an Enhancement Implementation and include your code there.
See the following link -> Source Code Enhancements - Part 5 of the Series on the New Enhancement Framework
Hope it helps
Neeraj -
HOW TO PASS THE DATA FROM SELECTION SCREEN TO STANDARD TRANSACTION?
HI,
HOW TO PASS THE DATA FROM SELECTION SCREEN TO STANDARD TRANSACTION?
thanks,
samba.By selection screen, what do you mean? There is no selection screen in WDA as there was in classic dynpro. Do you mean you are using the Select-Options reusable component? Are you wanting to call a standard transaction via ITS - SAPGUI for HTML? Please provide more details to your question.
-
How to make required field on selection screen in Query
i'm now working with query(SQ01).
but don't know how to make required field on selection screen in Query.
thanks in advancei'm now working with query(SQ01).
but don't know how to make required field on selection screen in Query.
thanks in advance -
How to keep the field open for input with error message in report program
Hi,
Need a help in solving the below issue.
"How to keep the field open for input with error message in report program"
Regards,
C.Shasiraj.Hi...
you have to use the event:
<b>AT SELECTION-SCREEN ON <FIELD> EVENT.</b>
u have to give an error message in this event.
Consider the following <b>Example:</b>
<b>PARAMETERS : NUMBER TYPE I.
AT SELECTION-SCREEN ON NUMBER.
IF NUMBER = 10.
MESSAGE 'Number vakue is 10' TYPE 'E'.
ENDIF.
START-OF-SELECTION.
WRITE NUMBER.
</b>
in this if u give the value of number = 10, it will not proceed further, if u give some other value other than 10 you will proceed further...
Execute this program once u will understand....
also Consider the following links :
<b>Regarding events:</b>
http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a237d9b511d1950e0000e8353423/frameset.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a23ad9b511d1950e0000e8353423/frameset.htm
<b>Regarding messages:</b>
http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/aa575426ad11d2954d0000e8353423/frameset.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/aa575426ad11d2954d0000e8353423/frameset.htm
This is very useful.......
Reward points if useful....
Suresh.... -
How to default the values in BP screen with BDT?
Hi all,
I am working in BDT enhancement for BP for Grants mangement. Therefore there are some screen fields in BP transaction should directly get saved in GMSPONSOR table. I mean to say user would give some values in BP screen(One can get it at the runtime by calling the FM BUP_BUPA_BUT000_GET) and the relevant values will autometically goes to GMSPONSOR table if the BP is saved.
As per my knowlwdge there are many events under BUPT transaction and there also I found the entry of GMSPONSOR table. Can anyone tell me in which event I have to default these screen values and redirect these to GMSPONSOR table?
Thnaks & Regards
Dibyendu.Dear Smita,
Thanks for your reply. The fact is that if I could default it in the screen text box then it would autometically goes to the corresponding table at save event.
So could you help me to identify the event by which one can keep default values in screen.
May be ISDAT or ISSTA event to default the valuesfor BP.
I have done to some extent for the fields belonging to BUT000 with the help of FM BUP_BUPA_FIELDVALUES_SET. I have placed a Z FM in ISDAT event. But the problem lies with the fields belonging to other tables.
Waiting for your update. -
How to find out the Batch job selection screen values
Dear Users,
One of our users has set up a Batch job by manually entering values into the Selection screen of a report instead of picking up a Variant. We would like to know the values entered on selection screen since the job has failed and the user doesn't remember the selection screen values entered.
Can anyone please advise if there is a way we can figure out the selection screen values entered?
Thanks,
VijayHi,
You can debug your failed job by going to 'SM37', type in 'JDBG' in the command line ( no '/' ), put the cursor on the job and press enter - will take you to the job in debug mode.
You can do this only after the job has finished execution. This will simulate the exact background scenario with the same selection screen values as used in the job.
So type in the transaction code 'JDBG' and place your cursor on the job after It has finished. It will take you to a SAP program in debug mode. Step through this program which is about 10 lines, after this your program will be executed in the debug mode.
Check the selection screen values. -
To access the value of the fields in selection screen
Hi,
I have used PNP Logical database in the report and also I have created a Report category with organizational unit,begin date and end date.so in my selection screen,I have these three fields.
Now i need to get the value of those fields in the program..so I need to how to get the value of these fields.
Regards,
KiruthiHi Kiruthi,
Goto SM31 -> V_T599F.
Write down your report category.
There u'll see the technical names of the selection screen fields.
You can use PNPXXXX name in your report.
Best regards,
Dilek -
How to validate ch field in selection screen
hi experts.......
how to validate ch field selection screen......... and which function module is used to validate parameter field i.e characterHello,
Is your requirement to Validate the Character Field? This is what I understand. If it is right, then do you want to Validate whether a Character Value is entered?
Check the below Sample Code.
At Selection-Screen on P_CHARFIELD.
IF P_CHARFIELD CA '1234567890'.
Message 'Enter an Alpha Character only' Type 'E'.
Endif.
Thanks and Regards,
Venkat Phani Prasad Konduri -
At selection-screen. - message - go back to the field on selection-screen
At selection-screen.
If the user enter the wrong profitcenter .
just I need to issue a message saying the user to "enter the correct profit center "
and cursor should go back to the profit center field on the selection screen.
How to code this ?Hello Sam
Here a more detail code sample:
*& Report ZUS_SDN_RETURN_TO_SELSCREEN
REPORT zus_sdn_return_to_selscreen.
PARAMETERS:
p_bukrs TYPE bukrs DEFAULT '1000'.
SELECTION-SCREEN BEGIN OF BLOCK profit WITH FRAME TITLE text-bl1.
* text-bl1 = 'Profit Center Selection'
PARAMETERS:
p_prctr TYPE prctr OBLIGATORY.
SELECTION-SCREEN END OF BLOCK profit.
AT SELECTION-SCREEN ON BLOCK profit.
IF ( p_prctr BETWEEN '0000001000' AND '0000002000' ).
ELSE.
* IF condition only used to trigger either error message
IF ( p_prctr BETWEEN '0000002001' AND '0000003000' ).
MESSAGE 'Invalid profit center' TYPE 'E'.
ELSE.
* or
MESSAGE e398(00) WITH 'Profit Center' p_prctr 'invalid' .
ENDIF.
ENDIF.
START-OF-SELECTION.
* do something...
END-OF-SELECTION.
Regards
Uwe -
How to set the fields invisible/visible dynamically with screen-exits
<b>Goal:</b> I am changing the subscreen from standard screen for mobile device interface, i.e. function group LMOB. With a scanner I am to read a material number and have it confirmed by the SAP system. For this I need an input field which is already supplied by the standard program. The users require the screen to be dynamic, i.e. I can not do the settings in the screen-painter.
<b>Problem occurred:</b> After I have changed to use the customized subscreen 1202 in function group XLRF, not all the fields are displayed. It seems that the values for setting the screen elements are lost when calling the subscreen (3202, copy of screen 2202). For instance, it does not show my input field. Somewhere there need to be a list that contains all these parameter switches? I know how Loop at screen works but cant find the values that are supposed to be passed over to the subscreen.
Would be grateful for some help.Hi Niklas!
Unfortunately I don't know the transaction you're working on, but I had a similar problem once.
You have to use the commands <b>LOOP AT SCREEN</b> and <b>MODIFY SCREEN</b>. I found some online help here: <a href="http://help.sap.com/saphelp_470/helpdata/en/9f/dba70535c111d1829f0000e829fbfe/frameset.htm">SAP Online Help</a>. The fields of the pseudo-table <b>SCREEN</b> can be found here: <a href="http://help.sap.com/saphelp_470/helpdata/en/9f/dbab6f35c111d1829f0000e829fbfe/frameset.htm">SAP Online Help</a>. I think you have to set <b>INVISIBLE</b> to 'X' - but you may have to experiment.
Another thing to look out for is that you have to call this method in the <b>PBO</b> section of the dynpro. Take care no SAP logic is executed after your modification that changes your settings...
Hope this helps (please reward me if it does),
Joerg -
Error message disble the Fields in Selection Screen
Hi,
In my Report i am validating some fields as mandatory.
If the field is initial then one Error message should be display in the screen and user has to modify the selection screen.
But after displaying the errro message my selection screen is input disable except the mandatory field.
I want all the fields should be input enable.
Sample code for Error message,
MESSAGE E018 WITH 'Enter Plant'.
Please provide the code for this.Performing checks on SELECTION-SCREEN
- if the check uses only one independent field (e.g.: value exist in a table) use a[ AT SELECTION-SCREEN ON <field>|http://help.sap.com/abapdocu/en/ABAPAT_SELECTION-SCREEN_EVENTS.htm#!ABAP_ALTERNATIVE_2@2@], the field will be editable when error is raised
- if the check uses some fields, group them using [SELECTION-SCREEN BEGIN OF BLOCK <block>/END OF BLOCK <block>|http://help.sap.com/abapdocu/en/ABAPSELECTION-SCREEN_BLOCK.htm] and then [AT SELECTION-SCREEN ON BLOCK <block>|http://help.sap.com/abapdocu/en/ABAPAT_SELECTION-SCREEN_EVENTS.htm#!ABAP_ALTERNATIVE_4@4@], each field of the block will be editable when error is raised
So, if you really want that each and every field be editable when an error is raised, declare every parameter and select-options in a big block, and perform the check in a unique AT SELECTION-SCREEN ON BLOCK xxx.
Use Error message, Warning and Information don't break the flow of the report.
Regards,
Raymond -
How to disable a field in selection screen based on condition.
Hi,
I have 2 radio buttons- p_normd, p_recov and 2 other controls - like text boxes, say tb1 and tb2. and some mandatory fields below.
If i choose p_normd, i want one control(tb2) to be disabled and if i choose p_recov, i want the other control(tb1) to be disabled(tb2 should be enabled then.)
Currently i am using the following code. The 1'st radiobutton is intially checked. But the problem is when i click on the 2'nd radio button, the other control(tb1) is not getting disabled. When i double click, i get an error telling mandatory field to be filled. Only after the other mandatory fields below are filled, and after i double click on the unchecked radiobutton, the other control gets disabled.
Please suggest what to do..
The current code below:
AT SELECTION-SCREEN OUTPUT. "ON RADIOBUTTON GROUP rg01.
LOOP AT SCREEN.
IF p_normd EQ c_x AND screen-group1 = 'SC2'.
MOVE 0 TO screen-input.
MODIFY SCREEN.
ENDIF.
IF p_recov EQ c_x AND screen-group1 = 'SC1'. "IF screen-name = 'ERDAT-LOW' OR screen-name = 'ERDAT-HIGH'.
MOVE 0 TO screen-input.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Thanks,
AmmuHi
declare your parameter as below:
parameters: p_x type c radio button group g1 user-command r.
in at selection screen output event .
check for the radio button.
loop at screen.
if screen group is <desired value>
then screen-active = 0 or 1. <do whatever you want to do.>
modify screen.
endloop.
see below the sample code.
<<<<<AT SELECTION SCREEN EVENT>>>>>
AT SELECTION-SCREEN ON BLOCK B1.
IF P_LCOST = C_X.
PERFORM CLEAR_FIELDS. " Clearing fields before loading the screen
CALL SELECTION-SCREEN 100 STARTING AT 20 5.
ELSEIF P_MCOST = C_X.
PERFORM CLEAR_FIELDS1. " Clearing fields before loading the screen
CALL SELECTION-SCREEN 101 STARTING AT 20 5.
ENDIF.
IF SY-SUBRC = 0.
PERFORM VALIDATION. " Validating selection screen input
ELSE.
LEAVE TO TRANSACTION C_TRAN.
ENDIF.
<<<<<<DECLARATION PART>>>>>>
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS: P_LCOST RADIOBUTTON GROUP GI DEFAULT 'X',
P_MCOST RADIOBUTTON GROUP GI.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN BEGIN OF SCREEN 100 AS WINDOW TITLE TEXT-002.
SELECTION-SCREEN BEGIN OF BLOCK B2.
PARAMETERS: P_COAREA TYPE CSKS-KOKRS OBLIGATORY, " controlling area
P_FYR TYPE COEP-GJAHR OBLIGATORY, " fiscal year
P_PERIOD TYPE COEP-PERIO OBLIGATORY. " fiscal period
SELECT-OPTIONS: S_CCNTR FOR V_KOSTL OBLIGATORY, " Cost Center
S_COELM FOR V_KSTAR MODIF ID M1, " Cost element
S_PDATE FOR V_BUDAT OBLIGATORY. " posting date.
SELECTION-SCREEN END OF BLOCK B2.
SELECTION-SCREEN END OF SCREEN 100.
SELECTION-SCREEN BEGIN OF SCREEN 101 AS WINDOW TITLE TEXT-003.
SELECTION-SCREEN BEGIN OF BLOCK B3.
PARAMETERS: P_CCODE TYPE T001-BUKRS OBLIGATORY, " Company Code
P_FYEAR TYPE COEP-GJAHR OBLIGATORY. " fiscal year
SELECT-OPTIONS: S_GLACC FOR V_HKONT OBLIGATORY, " G/L Account
S_PCNTR FOR V_PRCTR MODIF ID M2, " Profit Center
S_PODATE FOR V_BUDAT OBLIGATORY. " posting date.
SELECTION-SCREEN END OF BLOCK B3.
SELECTION-SCREEN END OF SCREEN 101.
thanks
LG
Edited by: LalitG on Apr 13, 2011 1:38 PM
Maybe you are looking for
-
How to restore backed up files after I used Rescue and Recovery
Hi there lenovo community, so I'm struggling to find a solution on how to open these files right here: Link to image First of all, the program I used to back up my hard drive was the Rescue and Recovery that my lenovo desktop came with. I used an ext
-
Report for released orders from credit block
Dear Friends, Can you tell me any report which can give us the list of released sales orders from credit block with user ID (who released) and date (when released). If no standard report is availble then please give me the table where this data gets
-
How do I get logmein App to see my computer from my iPhone?
I've been using the App logmein to access my iMac from my iPhone 3Gs. I had to reformat my iMac, and lost the App. I downloaded it again, onto my iMac, but when I try to access the iMac, the iPhone shows the iMac as 'offline'. Is there something I ha
-
Hi, Assume the records in a legacy oracle data base have an attributes called date which has the format as 'Dy DD-Mon-YYYY HH24:MI:SS' (e.g. 21-Apr-1998 21:18:27). In my Java application, assume that I provide a GUI for users to input date as "DD-MM-
-
Setting a followup for Sent email without a reply
Hi There, I am using OSX 10.5.8 and Mail 3.6. The problem I have is that I send that much email I often dont realize that some messages I send are never replied to. I want a way to mark messages that I am sending, that do not receive a reply in a use