Passing values to hidden fields in screens
Hi ,
I have designed a screen which has i field which is output only, and two fields which are hidden.. the output only field gets populated when i select value from an alv tht pops up on the screen based on certain conditions.. the hidden fields should also be populated than.. but the hidden fields are not getting populated i think..
i have assigned a t-code to this screen,
and i need to call this transaction from another program passing values to all the fields.. i used parameter id for all teh fields, but values are not getting populated in the hidden and display fields. i gets in when i make it input enabled.. but i cannot let users enter values in 1 field, and i do not want users to see the other field.. What do i do???? please give your valuable suggestions. .a ny idea how to correct the issue?
Regards,
Suzie
Hi,
If you want one of the fields to be grey mode you can do that statically in the screen painter or dynamically in the progarm
in PBO
loop at screen
if screen-name = 'TO_BE_GREY_MODE'.
SCREEN-INPUT = 0
ENDIF
endloop
for hidden fields if the screen name and the variable name in the program are same the data transfer takes place but the users cannot see this.
Regards
Ramchander Rao.K
Similar Messages
-
Passing values to a dynamic selection screen via a report
Hi,
I have the following problem and need to seek your expertise urgently.
In my program, I need to call another report by passing in parameters to the selection screen of other report. However, I could not pass values into a dynamic selection screen. I tried to use submit (report) with free selection but do not know how it works.
Currently, I tried calling the function RS_REFRESH_FROM_DYNAMICAL_SEL and FREE_SELECTIONS_RANGE_2_EX. Using the object the first function has returned to me, I tried to append values such as fieldname etc to it. However, I realised the field names of a dynamic selection screen keeps changing. So I would not know how to pass a particular value to a selection field.
Appreciate any help given.
Thanks,
CKHello CK,
Are you using logical database in your selection screen program attributes? If it is, look at include file DBxxxSEL for parameter named xxxDYNSE where xxx = logical database. Debug the program that has that dynamic selection, and look at field xxxDYNSE. This should give you a hint on how to populate the parameter when you submit the program. -
Passing value to a field of SAP Program which do not have "Parameter ID"
Dear Experts,
My requirement is that i need to pass a value from my dialog program to a field of SAP Program which do not have "Parameter ID" attached to it.
For example: If you run SAP Transaction CS14, it has two sections viz., Primary BOM and Secondary BOM. I need to copy and create own screen using Dialog program. The screen appears in custom screen would be similar to that of the SAP Transaction CS14. If you check the fields, all the fields have "Parameter ID" attached to it, except for the following fields which do not have Parameter IDs are "Alternative", "Valid From" and "Required Qty".
Hence how do i pass value to those fields? Kindly help me
To those fields where "Parameter IDs" are attached, i can use below two statements:
Set parameter id <par> field <field>.
call transaction 'CS14' and skip first screen.
Regards,
Ramesh ManoharanHi Harald Boeing,
Thanks you very much. My problem is solved.
Rewarded Points.
Regards,
Ramesh Manoharan -
How to pass values in dynamic fields in LX03
HI ,
i want to pass values for dyanmic fields in lx03 program by calling this in my own program through call transction or submit report .LX03 is the report program so you have to use Submit report.
See the simple example :
REPORT ZTEST_98 .
DATA: t_param LIKE rsparams OCCURS 10 WITH HEADER LINE.
parameters p_LGNUM like lagp-lgnum obligatory.
start-of-selection.
t_param-selname = 'S1_LGNUM'.
t_param-kind = 'P'.
t_param-low = p_lgnum.
APPEND t_param.
*-- Period
SUBMIT RLS10030 VIA SELECTION-SCREEN
WITH SELECTION-TABLE t_param
AND RETURN.
Just press F1 on submit and you get good documentation.
Thanks
Seshu -
Pass value to a field dynamically..
Hi Experts,
Can any one solve this issue?.
I want to pass value to different fields dynamically..
Egu2026
I have work are having fields
lwa_table-var1,
lwa_table-var2,
lwa_table-var3,
lwa_table-var4,
u2026.. up to lwa_table-var100.
My logic is I have to pass l_tot value .. based on the last letter like below.
if l_tot value is 1 we have pass to lwa_table-var1
if l_tot value is 2 we have pass to lwa_table-var2
if l_tot value is 3 we have pass to lwa_table-var3
if l_tot value is 100 we have pass to lwa_table-var100.
<removed_by_moderator>
Thanks in advance.
Regards,
Kumar.
Edited by: Julius Bussche on Aug 12, 2009 8:41 AMHi Friend,
U can do Following.....
data: text(12) type c.
data : num type n.
data: int type i.
data: begin of wa_test,
var1,
var2,
var3,
var4,
end of wa_test.
FIELD-SYMBOLS <fs_wa> TYPE ANY.
do 4 times.
int = int + 1.
num = int.
CONCATENATE 'wa_test-' 'var' num into text.
ASSIGN (text) to <fs_wa>.
<fs_wa> = num.
UNASSIGN <fs_wa>.
enddo.
write : wa_test-var1 , wa_test-var2 , wa_test-var3 ,wa_test-var4 .
ouput will be : 1 2 3 4.
Lets take Your Scenario----
>>>>>>>>>>>>>>>>>
Data: begin of lwa_table,
Var1,
Var2,
Var3,
u2026..
u2026u2026
Var100,
End of lwa_table.
Data: l_tot type i.
u2022 For example l_tot = 36.
u2022 Then u want to pass the same to lwa_table36.
For this do followingu2026..
Now Define-->>>
data: text(13) type c.
data : num type n.
FIELD-SYMBOLS <fs_wa> TYPE ANY.
*Now till now we done all the data definitions now u have to do following to pass it dynamically,
l_tot = 36.
Num = l_tot.
CONCATENATE lwa_table-' 'var' num into text.
ASSIGN (text) to <fs_wa>.
<fs_wa> = num.
UNASSIGN <fs_wa>.
Write : lwa_table-var36.
Output will be 36.
Hope this resolves ur issue,
Regards,
Akash Rana
Edited by: AKASH RANA on Aug 12, 2009 8:53 AM -
How to set default date value to a field on screen
How to set default date value to a field on screen and allow users to modify it ....
Hello,
In the PAI module, you need to save the changes to the database using the command MODIFY.
Follow an example:
Create or change a message in database table T100. If there is no message with the number 100 in the MYMSGCLASS message class in English, it will be created. Otherwise only the text is changed.
DATA message_wa TYPE t100.
message_wa-sprsl = 'EN'.
message_wa-arbgb = 'MYMSGCLASS'.
message_wa-msgnr = '100'.
message_wa-text = 'Some new message ...'.
MODIFY t100 FROM message_wa.
Regards. -
Regarding how to pass values to the fields of a screen.
Hi all :
there is a field called approver on screen. I'd like to pass value to it ,
may I use the statement like approver-text = 'xxx'. ?
is this ok?
Thanks for any of your reply.Hi,
Parameters: p_name type char20 default 'XXX'.
you can give like this.
or
parameters: p_name type char20.
Initialization.
p_name = 'XXX'.
both these will work
regards
Sarves -
Passing values to another field in APEX form
Hi,
How do I pass a value in 1 field to another field in APEX form ?
I have a hidden field and I need to populate this field by another field.
thanksI found the solution to my problem.
[1] Create a "After Submit" under Computations.
[2] Select 'Item Value' under Type in Item Name
[3] Select "After Submit" under Computation Point
[3] Enterer Item Name, which value needs to be passed in 'Source'
thanks -
Popup2 in SQL report not passing values of table fields
Hello All,
Can some one help me with this popup 2 case statement.
Instead of the values behind the fields being passed the literal text of "A.Metric" & "A.Month" is beaing passed into the new page instead.
A.Metric has a value of 10 and A.Month has a value of '01/May/2008'
CASE WHEN ANALYSIS IS NOT NULL THEN
'<a href="javascript:popUp2('''
|| 'f?p=&APP_ID.:305:&SESSION.::&DEBUG.::'
|| 'P305_METRIC_TYPE,P305_METRIC_MONTH:A.METRIC_TYPE,A.MONTH'
|| ''', 890, 460);style="text-decoration:underline;color:black; font-size: 90%">'
|| '<img src="#APP_IMAGES#notes.jpg">'
|| '</a>' END "Analysis"
FrankSpecies 5618 wrote:
Hello All,
Can some one help me with this popup 2 case statement.
Instead of the values behind the fields being passed the literal text of "A.Metric" & "A.Month" is beaing passed into the new page instead.
A.Metric has a value of 10 and A.Month has a value of '01/May/2008'
----------------------------------------------------------------------------------------------------------------------<font face="Arial">CASE WHEN ANALYSIS IS NOT NULL THEN
'<a href="javascript:popUp2('''
|| 'f?p=&APP_ID.:305:&SESSION.::&DEBUG.::'
|| 'P305_METRIC_TYPE,P305_METRIC_MONTH:'
|| A.METRIC_TYPE,A.MONTH
|| ''', 890, 460);"style="text-decoration:underline;color:black; font-size: 90%">'
|| '<img src="#APP_IMAGES#notes.jpg">'
|| '</a>' END "Analysis"</font>
Franksorry did not realise that my text was being changed by this forum's application edit tool
Here is the SQL statement again
Frank
Edited by: Species 5618 on Apr 15, 2009 10:03 AM
I also Tried this with no success (&
<font face="Arial">CASE WHEN ANALYSIS IS NOT NULL THEN
'<a href="javascript:popUp2('''
|| 'f?p=&APP_ID.:305:&SESSION.::&DEBUG.::'
|| 'P305_METRIC_TYPE,P305_METRIC_MONTH:'
|| &A.METRIC_TYPE.,&A.MONTH.
|| ''', 890, 460);"style="text-decoration:underline;color:black; font-size: 90%">'
|| '<img src="#APP_IMAGES#notes.jpg">'
|| '</a>' END "Analysis"</font>
Edited by: Species 5618 on Apr 15, 2009 10:10 AM -
How to pass value from program to standard screen
I have a screen from which i need to pass values to the standard scren VA11. The set parameter is not available. Is there any method to pass the values to the standard screen apart from BDC.
Hi,
*Code used to populate 'select-options' & execute report
DATA: seltab type table of rsparams,
seltab_wa like line of seltab.
seltab_wa-selname = 'PNPPERNR'.
seltab_wa-sign = 'I'.
seltab_wa-option = 'EQ'.
* load each personnel number accessed from the structure into
* parameters to be used in the report
loop at pnppernr.
seltab_wa-low = pnppernr-low.
append seltab_wa to seltab.
endloop.
SUBMIT zreport with selection-table seltab
via selection-screen.
Regards
Sudheer -
MSS report not passing values from portal to selection screen fields
Hello Gurus,
We have a problem with Sickness Absences report in MSS which is a Z copy of the standard report RPTABS20.
The problem is when the manager defines the selection criteria and selects the other period dates and under Organizational View - selects All Organizational Units and highlights one org unit and report results, then the report displays the employees which are currently not part of same org unit as selected in selection criteria. But these employees were present in this org unit in past when they took leave, which comes under the same period as given on selection screen. So in a way it seems to be right. But the requirement is to only display the employees which are currently present in this org unit.
The report seems to be working fine in backend where we specified the same date range and org unit on selection screen.
On our investigation in portal we came to know that the org unit field on selection screen PNPORGEH is not getting filled with org unit number selected on portal.
On further investigation in debugging we came across the fm HRWPC_RPT_START_REPORT which calls fm HRWPC_RPT_FCODE_EXEC which in turn calls fm HR_HIS_EXECUTE and it executes the report with following code:
SUBMIT (repos-repid) AND RETURN
USING SELECTION-SET repos-varit
WITH pnpindex IN objid_ranges
WITH pnptimed eq ' '
WITH pnpbegps eq act_begda
WITH pnpendps eq act_endda
WITH pnpbegda eq act_begda
WITH pnpendda eq act_endda
WITH p_super eq space.
Looks like the standard code is not passing the org unit to the selection screen of the report.
Request you to kindly guide if this is a SAP standard problem or the report is not configured properly ?Please check steps as mentioned here
http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=199820849
and report variant, check your evaluation paths if it is being refreshed correctly, click twice to refresh.
check tje note 1431691
When the report is launched from
the portal, the program is reading the table:T77eo for the object
type-'O' , since there are no entries for the object 'O' in the table,
the switch INREL is not set, therefore the structure pchobjid is not
filled while calling the report as shown below. Now I know the
rootcause, but I don;t know the reason behind the table: T77EO not
having entries for object "O".
==============================================================
SUBMIT (fcode_rec-progname)
USING SELECTION-SET fcode_rec-variant
AND RETURN
WITH pchplvar EQ act_plvar
WITH pchotype EQ act_otype
WITH pchobjid IN pchobjid
WITH pchsobid IN pchsobid
WITH pchobeg EQ act_begda
WITH pchoend EQ act_endda
WITH pchbegda EQ act_begda
WITH pchendda EQ act_endda.
try to use PNP database for seleciton only these paramters are passed to backend! -
Passing value to paramater field in the crystal report
Hai,
I have done the following thing.
1. Created SBO screen using screen painter.
2. Added one text box, button in the screen painter.
3. Created one Windows screen and attached Crystal report viewer.
4. As soon as the button clicked in the SBO screen i am able to open the crystal report.
But now i need values which i have typed in the text box should be passed to the crystal report. how this can be done . I have attached the code please let me know where is the error. I have also created paramater filed in the crystal report name "From_dt".
As soon as the screen opened from SBO. It is asking for discreate value. But i have already passed the value from the SBO. I need to pass the value dyanamical from SBO screen.
Dim oRpt As New Myreport
Dim myTable As CrystalDecisions.CrystalReports.Engine.Table
Dim oLI As New CrystalDecisions.Shared.TableLogOnInfo
For Each myTable In oRpt.Database.Tables
oLI = myTable.LogOnInfo
oLI.ConnectionInfo.Password = "sapb1@sql"
oLI.ConnectionInfo.UserID = "sa"
myTable.ApplyLogOnInfo(oLI)
Next
Dim Crviewer As New Frm_rptwaste
Crviewer.CrystalReportViewer1.ReportSource = oRpt
Dim ParameterField1 As New CrystalDecisions.Shared.ParameterField
Dim ParamterFields As New CrystalDecisions.Shared.ParameterFields
Dim ParamterDescreteValue1 As New CrystalDecisions.Shared.ParameterDiscreteValue
ParameterField1.ParameterFieldName = "From_dt"
ParamterDescreteValue1.Value = txtcode.Value
ParameterField1.CurrentValues.Add(ParamterDescreteValue1)
ParamterFields.Add(ParameterField1)
Crviewer.CrystalReportViewer1.ParameterFieldInfo = ParamterFields
Crviewer.CrystalReportViewer1.RefreshReport()
Crviewer.ShowDialog()Hi Suresh,
Instead of Parameter, you try Formula field and assign desired value to formula.
HTH
B Ravi Shankar -
Passing values to FM froma selection screen
Hi Guys,
I have a selection screen in which i have 'From' and 'To' input fields.Also using multiple select button i can select discrete values.In the function module they have a table type in the import param.
Is it possible to send the values within the range plus the discrete values selected? If yes, then please help.
Thanks,
tubai.Hi,
You can below code:
DATA: rt_ranges TYPE REF TO data.
FIELD-SYMBOLS: <fs_select> TYPE table,
<fs_wa> TYPE ANY,
<fs_wa1> TYPE ANY.
DATA: lt_select TYPE TABLE OF rsdsselopt,
wa_sel_opt TYPE rsdsselopt.
Retrieve the data from the select option
rt_ranges = wd_this->w_handler->get_range_table_of_sel_field(
i_id = 'SELECT' ).
Assign it to a field symbol
ASSIGN rt_ranges->* TO <fs_select>.
IF NOT <fs_select> IS INITIAL.
LOOP AT <fs_select> ASSIGNING <fs_wa>.
ASSIGN COMPONENT 'SIGN' OF STRUCTURE <fs_wa> TO <fs_wa1>.
lwa_sel_opt-sign = <fs_wa1>.
ASSIGN COMPONENT 'OPTION' OF STRUCTURE <fs_wa> TO <fs_wa1>.
lwa_sel_opt-option = <fs_wa1>.
ASSIGN COMPONENT 'LOW' OF STRUCTURE <fs_wa> TO <fs_wa1>.
lwa_sel_opt-low = <fs_wa1>.
ASSIGN COMPONENT 'HIGH' OF STRUCTURE <fs_wa> TO <fs_wa1>.
lwa_sel_opt-high = <fs_wa1>.
APPEND lwa_sel_opt TO lt_select.
ENDLOOP.
ENDIF.
You then pass lt_select to your FM.
Regards,
Priya -
Passing value to formula field in CR XI from vb6
currently using vb6 and testing CR XI. Attempting to pass a value to a formula field in a CR XI report and getting the an "invalid use of property" How do you pass a value from code in vb6 to the formula in the report?
current code is as follows:
Set app = New craxdrt.Application
Set cr = app.OpenReport("test.rpt")
Dim crystalFormFieldDefns As craxdrt.FormulaFieldDefinitions
Dim crystalFormFieldDefn As craxdrt.FormulaFieldDefinition
Set crystalFormFieldDefns = cr.FormulaFields
Set crystalFormFieldDefns.Item(0).FormulaFieldName = ("{@InvList}")
crystalFormFieldDefn.Text = Chr$(34) & selFormula & Chr$(34)
crvInvoice.ReportSource = cr
crvInvoice.ViewReportHi, Gerry;
I think the logic is off a bit.
Instead of:
Set crystalFormFieldDefns.Item(0).FormulaFieldName = ("{@InvList}")
Try:
For Each crystalFormFieldDefn In crystalFormFieldDefns
If crystalFormFieldDefns.Name = "{@InvList}" Then
crystalFormFieldDefn.Text = Chr$(34) & selFormula & Chr$(34)
Regards,
Jonathan -
Mapping JDBC lookup: Passing values to multiple fields at target
Hi all
i my scenario i am using mapping JDBC lookup ,and it is working sucessfully.
but i need to select 4 fields from lookups select query and passing it to 3 different target field at target MT.
if i use Global container object methods,than only 1 field i can store inglobal container variable..
and return it 1 the target fields...
BUT how do i pass 4 fields ,result of the select query to 4 different fields at target MT..
query :"
Select BPNO,emp,BENR,bacepack from Ztable where BPNO='"+BPNO[0]+"'";
Regards
AjayPHi,
I have to fetch 3 values and populate it to the 3 fields in the target. The UDF am using is as attached. This UDF is for fetching one value. Kindly tell me about the changes I will have to make to fetch 3 values instead of 1 value.
String Query = " ";
Channel channel = null;
DataBaseAccessor accessor = null;
DataBaseResult resultSet = null;
// Query to retrieve the PROP value for the particular source value passed.
Query ="Select PROP from TANKS where ID='" + ID[0] + "' ";
try{
//Determine a channel, as created in the Configuration
channel = LookupService.getChannel("<Business Service>","<Communication Channel>");
//Get a system accessor for the channel. As the call is being made to an DB, an DatabaseAccessor is obtained.
accessor = LookupService.getDataBaseAccessor(channel);
//Execute Query and get the values in resultset
resultSet = accessor.execute(Query);
for(Iterator rows = resultSet.getRows();rows.hasNext();){
Map rowMap = (Map)rows.next();
result.addValue((String)rowMap.get("PROP"));
catch(Exception ex){
result.addValue(ex.getMessage());
finally{
try{
if (accessor!=null) accessor.close();
catch(Exception e){
result.addValue(e.getMessage());
Maybe you are looking for
-
Diagonal Pattern + MacBook Pro Won't Start Up
This morning my wife was on our MacBook Pro, and suddenly a diagonal checkerboard pattern appeared on the screen and the computer shut down. When we tried to start up, the same pattern appeared, and it wouldn't start up. The same thing has happened e
-
Hi Can anyone please suggest on how to link Documents to CRM CIC0 screen. Thanks in Advance
-
Export and Import are not supported on 10g databases for users logged
Hi I having the below written error, when i want to export or import my database. I having Standalone system using windows xp. Role Error - Export and Import are not supported on 10g databases for users logged in with the SYSDBA role. Logout and logi
-
How can I delete photos on my iphone after they aredownloaded to my ipad
I have too many photos on my iphone camera roll. I want to delete from my iphone but keep them on my ipad. When i try to delete, the message says they will be deleted from all my devices...help.
-
Assigning authorization through assigning authorization objects
hi all, can anybody tell me the whole procedure for assigning authorizations by assigning authorization objects from the scratch along with the example with guide for assigned authorizaon using this method.b'coz this is the requirement of our organiz