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 advance
i'm now working with query(SQ01).
but don't know how to make required field on selection screen in Query.
thanks in advance
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 -
How to make a field under Selection column in DataSource from dimmed to ...
We try to make an InfoObject shows up in Data Selection of an InfoPackage to restrict the data load based on the range of this InfoObject. In order to do this, we will have to go to the source system to run RSA6 to edit the datasource to make this field checked under the Selection column. However when we get to the screen, find this field's Selection column is dimmed. Is there anyway to make it from dimmed to editable that it can be checked?
Thankshi Kevin,
try to check table ROOSFIELD, fill OLTPSOURCE with your datasource name and OBJVERS 'A', what's the value for SELECTION ? you may change the value with 'X'.
use abap code :
UPDATE ROOSFIELD SET SELECTION = 'X'
WHERE OLTPSOURCE = 'datasource name' AND OBJVERS = 'A'.
can i know your datasource name (if it's business content) ?
Properties of a DataSource Field
If a request for a DataSource is scheduled in the Business Information Warehouse, selection conditions are specified across certain fields. The property that determines whether a selection in BW using a field
is possible or required is established in the DataSource in the Source System.
In addition, the visibility of the field in BW can be set.
A field that is not visible (or that is hidden) cannot be transferred into the transfer structure.
Definition of the individual values:
'A': Field is hidden in OLTP and BW, property cannot be changed the customer.
'M': The DataSource requires a selection across this field before it is able to extract data (Required field for the generation of a request); property cannot be changed by the customer
'X': The Data Source can select across this field. The customer can change selections and visibility (the field is currently visible and selectable, compare with 'P', '3')
'1': Pure selection field for the DataSource. The customer can change the selection, but not the visibility (the field is currently selectable , compare with '2').
'2': Pure selection field for the DataSource. The customer can change the selection, but not the visibility (field is currently no selectable, compare with '1').
'3': The DataSource can select across this field. The customer can change selection and visibility (the field is currently not visible not selectable, compare with 'P', 'X')
'4': The DataSource cannot select across this field. The customer can change visibility (the field is currently not visible, compare with ' ') -
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 -
How to make a field on the screen of any transaction 'display only' in BADI
Hello All,
I am working on BADI. The requirement is that for a specific condition, the user should not be able to change the 'plant' field on the screen of the standard MM transactions ME22N or ME23N.
The field 'plant' should be grayed out and the user should not be able to even enter anything in that field. Is that possible? If yes, how?
Please help, it is urgent.hi radhika
yes u can do that
probably u will have to do the customization using exits
the possible exits fotr these trxns are
<b>Exit Name Description</b>
ME590001 Grouping of requsitions for PO split in ME59
MEETA001 Define schedule line type (backlog, immed. req., preview)
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
MEVME001 WE default quantity calc. and over/ underdelivery tolerance
MM06E001 User exits for EDI inbound and outbound purchasing documents
MM06E003 Number range and document number
MM06E004 Control import data screens in purchase order
MM06E005 Customer fields in purchasing document
MM06E007 Change document for requisitions upon conversion into PO
MM06E008 Monitoring of contr. target value in case of release orders
MM06E009 Relevant texts for "Texts exist" indicator
MM06E010 Field selection for vendor address
MM06E011 Activate PReq Block
MMAL0001 ALE source list distribution: Outbound processing
MMAL0002 ALE source list distribution: Inbound processing
MMAL0003 ALE purcasing info record distribution: Outbound processing
MMAL0004 ALE purchasing info record distribution: Inbound processing
AMPL0001 User subscreen for additional data on AMPL
LMEDR001 Enhancements to print program
LMELA002 Adopt batch no. from shipping notification when posting a GR
LMELA010 Inbound shipping notification: Transfer item data from IDOC
LMEQR001 User exit for source determination
LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
LWSUS001 Customer-Specific Source Determination in Retail
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition release
M06B0003 Number range and document number
M06B0004 Number range and document number
M06B0005 Changes to comm. structure for overall release of requisn.
M06E0004 Changes to communication structure for release purch. doc.
M06E0005 Role determination for release of purchasing documents
MMDA0001 Default delivery addresses
MMFAB001 User exit for generation of release order
MRFLB001 Control Items for Contract Release Order
regards
ravish
<b>plz dont forget to reward points if useful</b> -
How to make a field in custom screen as display field in screen exit
Hi ,
I have created a screen exit for CO02 with a field for item text in header level as input field , when value is given and save button is cliked it gets updated in database but the problem is same field shows as input field in CO03 ( display mode ) .
Code which i have used .
in PBO
if sy-tcode = 'CO03'.
loop at screen .
if screen-name cs 'SUBSCREEN' or screen-name cs 'RESB-POTX1'.
( subscreen - screen name given in screen editor and resb-potx1 field name given in screen editor )
SCREEN-INPUT = '0'.
modify screen.
endif.
endloop.
endif.
and even i tried in PAI too .....
if sy-tcode = 'CO01' or sy-tcode = 'CO02'.
update resb set POTX1 = RESB-POTX1
where aufnr = i_aufnr.
elseif sy-tcode = 'CO03'.
*oop at screen .
*f screen-name cs 'SUBSCREEN' or screen-name cs 'RESBD-SORTF'.
SCREEN-INPUT = '0'.
modify screen.
endif.
endloop.
endif.
but itshows as input field only ........how to make that custom field as display field in CO03HI Andy,
Try this out.
FIrst check the sy-dynnr, if it is same as your custom screen number
in PBO of your custom screen
if sy-dynnr = 'YOUR_NUMBER' and sy-tcode = 'CS03'.
loop at screen
if screen-name = 'YOUR_SCREEN_NAME'
screen-input = 0.
modify screen
endif
endloop.
endif.
if it wont work they try using Tcode SHD0
Hope this will serve your purpose.
Regards
Ramchander Rao.K -
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 -
How to make Required Fields in WDA Dynamic Table
Hello all,
I have a WDA Dynamic Table and want to make some fields as mandatory fields.
can you please show me how to do this?
thank you very muchHi,
Write the below code:
DATA: lr_table type ref to cl_wd_table,
lr_table_column type ref to cl_wd_table_column,
lr_input type ref to cl_wd_input_field.
lr_table ?= view->get_element( id = 'TABLE' ). " TABLE id ID of Table UI
* Get column
lr_table_column ?= lr_table->get_grouped_column( id = 'TABLE_COL' ). TABLE_COL is the ID of table Column
*Get Cell Editor
lr_input ?= lr_table_column->get_table_cell_editor( ).
*Set Required
lr_input->set_state( cl_wd_input_field=>e_state-required ).
hope this helps u,
Regards,
Kiran -
How to make changes on the selection screen of a logic database?
I want to make one of the select-options of logic database PNP no-interval no-extension, what should I do? Is there any links for manipulating LDB? thx~
Hi,
This blog on SDN will help you on this.
[Re: Change selection screen in LDB (KDF logical database - NOT HR);
Regards
Abhii.... -
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 -
Transaction DP97: Need to add 2 fields on selection screen...
Hi,
I am using ECC6.0. I need to add 2 extra fields on selection screen of transaction DP97. Program name is RVPKMASS97. i did not find any screen-exit for this. Please can anybody suggest any other way to add fields on selection screen... I think i can use enhancement points. please help if anybody has previously worked on this. I need to know following things:
1) how to add 2 fields on selection screen ( 2 fields are : MATNR-Service product and FFPRF-DIP profile)
2) where to add programming logic for this
Thanks in advance,
MinalHi,
Go to program RVPKMASS97.
Go inside INCLUDE rvpkmasspar.
(When you double click on the include a pop up screen will come up and in that select the RVPKMASS97)
Click on spiral icon there on the tool bar.
right click on the '
ENHANCEMENT-POINT RVPKMASSPAR_01 SPOTS ES_RVPKMASSPAR STATIC INCLUDE BOUND .' line and select enhancement-> create. and give some implementation name and text.
now you can declare ur fields in this implementation.
After declaring save it and activate it.
Now go back to ur txn and run. you are able to see the custom fields on the screen.
Reward me points if it is helpful.
I think it will help you out.
Thanks,
Prasanna -
How to make some fields mandatory based on radio button selected
Hi,
As per requirement i have two radio buttons in my screen.
1.update
2.Display.
When the user clicks update then certain fields of selection screen should be made mandatory.
And if the user cliks the Display Radio Button then certain fields should be made mandatory.
How to code for it.
Thanks and Regards,
SmritiHi ,
use this code ,
now according to your requirement you make changes to your parameters.
parameters: r1 as radiobutton group g1, " this id you update button
r2 as radiobutton group g1. " this is for display
PARAMETERS: TEST1(10) MODIF ID SC1, " assume these are the fields as parameters.
TEST2(10) MODIF ID SC2,
TEST3(10) MODIF ID SC1,
TEST4(10) MODIF ID SC2.
AT SELECTION-SCREEN OUTPUT.
if g1 = 'X'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'SC1'.
SCREEN-INTENSIFIED = '1'.
MODIFY SCREEN.
CONTINUE.
ENDIF.
IF SCREEN-GROUP1 = 'SC2'.
SCREEN-INTENSIFIED = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
elseif g2 = 'X'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'SC1'.
SCREEN-INTENSIFIED = '1'.
MODIFY SCREEN.
CONTINUE.
ENDIF.
IF SCREEN-GROUP1 = 'SC2'.
SCREEN-INTENSIFIED = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Please let me know if you still need any help.
Thanks and regards,
Rajeshwar -
How can i declare a single radio button field in selection-screen ?
How can i declare a single radio button field in selection-screen ?
>
Rob Burbank wrote:
> And how will you turn it off once it is turned on??
>
> Rob
Thats correct ;)...See ravi if users will ask so many things its our Job to convay the correct solution ....
Just post your org requirement..SOo some body guide you better//
Sas -
How to make a field required in OAFramework
How to make a field required in OAFramework at runtime?? Please explain in detail if possible.
Thanks
KumarGet the handle of the bean using the following Code
<BeanType> bean = <BeanType>webBean.findIndexedChildRecursive("<Id of bean>");
if(bean!=null && <condition>)
bean.setRequired(true);
}
Maybe you are looking for
-
Volume control with USB Audio device
Hello all. I have just purchased a cheap USB audio device to connect my HiFi to my laptop with only one, neat USB lead and a USB hub - meaning I no longer need several USB wires and an audio cable across my desk. This works fine, but I have just noti
-
I published my website (www.nigelreblochon.com) to a folder, then uploaded (using cyberduck) to my webhost. For it to work properly there, I had to remove all items from the folder iWeb created for my site (lets call the folder nigel). The site works
-
Cross-tab with a lot of data causes fault in crpe32.dll when exporting to Excel
Hello. I believe I found a bug in the Service Pack 9. After upgrading my production to runtime 9, I found that cross-tab reports with large datasets crashed the website. Per the Windows Application Log, a fault happened in the crpe32.dll. So I un
-
Generate Report without Database
Hello developers, I wanna generate report from JSP. I need to create .rpt file. But I dont have database. I've data in hashmap. how to add data to .rpt file from Hashmap? <edited by moderator>
-
Hi; How to set "Keep in Dock" settings selected when installing Adobe AIR application on Mac OS? Thanks...