How to set two parameter value using one f4 help of 'F4IF_INT_TABLE_VALUE_REQUEST'
I have two parameters on selection screen .
P_QTR and P_YEAR
I have concatenated the Quarter and Year Value to give same f4 on both paramatersto give f4 using 'F4IF_INT_TABLE_VALUE_REQUEST'
for example Q1 2014
now when user selects one value i want to set Q1 to P_QTR and 2014 to P_YEAR.
but it is setting only one value for P_QTR correctly and the value for P_year is not coming on screen although the value is thier inside code in P_year
i am using same f4 for both events
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_qtr.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_year.
here is the code i am using
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'CHAR20'
window_title = text-026
value_org = 'S'
TABLES
value_tab = mt_input_f4
return_tab = mt_return
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
CLEAR mt_input_f4[].
ENDIF.
READ TABLE mt_return INTO ms_return INDEX 1.
IF sy-subrc EQ 0.
p_qtr = ms_return-fieldval+0(2).
p_year = ms_return-fieldval+3(4) .
ENDIF.
plz chk attached pics
i am sorry for delayed update but i fixed it using following approach.
READ TABLE mt_return INTO ms_return INDEX 1.
IF sy-subrc EQ 0.
ls_dynpread-fieldname = 'P_QTR'.
ls_dynpread-fieldvalue = ms_return-fieldval+0(2).
APPEND ls_dynpread TO lt_dynpread.
ls_dynpread-fieldname = 'P_YEAR'.
ls_dynpread-fieldvalue = ms_return-fieldval+3(4).
APPEND ls_dynpread TO lt_dynpread.
**setting the selection screen values
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = sy-repid
dynumb = '1000'
TABLES
dynpfields = lt_dynpread
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
undefind_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
CLEAR lt_dynpread[].
ENDIF.
Similar Messages
-
Set a parameter value using Search help exit
Hi All,
I want a search help such as If I enter a warehouse number on my screen then search help for storage bins should have that warehouse number populated in selection dialog.
I guess i have to write some code in search help exit if CALLCONTROL-STEP = 'PRESEL'.
But I am not able to set the warehouse value to parameter.
Does any one have done something like this?
Thanks in Advance,
ShaillyHi Shailly,
I don#t know if that will be the best option for you, but you can make use of the abap program event at value request for your parameter_id.
What you need is to insert a similar code like the one below:
at selection-screen on value-request for p_param
select fielda fieldb from storage bin table into gi_warehouse_bin
where warehouse = warehouse parameter.
delete adjacent duplicates from gi_zzdez comparing all fields.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = space
dynpprog = 'REPORT_NAME'
dynpnr = '1000'
dynprofield = 'P_BIN'
window_title = 'Text'
value_org = 'S'
tables
value_tab = gi_warehouse_bin
exceptions
parameter_error = 1
no_values_found = 2
others = 3
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
Cheers,
Florin -
How to set two different UIE in one cell in ALV table
Hi all,
I have a hierachy ALV table. For some reason I want to have two UI elements in one column. For example, the text and a menu next to the text. Is it possiable to do that?
best regards,
WenwenHi,
thank you for your answer. Yes, now I also find the class CL_SALV_WD_MULTI_CELL_EDITOR which could be used to set different UIE in one cell. But it is quite limited, just the following UIE could be used
- LinkToAction
- LinkToURL
- FileDownload
- Button
- ToggleButton
best regards,
Wenwen -
How to Export two web items using one export button in WAD (3.X) ?
Hello Friends,
I am trying to export two reports using one export button which are in two columns of the table in a web template created in WAD 3.X. but not able to do it. i also tried to doing the same thing in BI 7 copied that code and pasted in 3.X but that doesn't work.
can anyone help me on that?
Thanks,
Nayan Joshihi,
SPS 14 for NW 7.0 is installed. I found out, that the filter pane has should have the property "Affected Data Providers (LINKED_DATA_PROVIDER_REF_LIST)" and the navigation pane not. Look at:
- http://help.sap.com/saphelp_nw70/helpdata/en/16/3ee2416149c717e10000000a155106/content.htm
- http://help.sap.com/saphelp_nw70/helpdata/en/85/08e241aa8e9d39e10000000a155106/content.htm
But in my WDA both items don't have this property. The latest SPS for Front-End-Tools is installed.
Any further ideas? -
How to merge two storage drives into one partition-help
THis is on an iPad-Please excuse for any typos
I Am working on a project of restoring a macbook pro from old parts that I found. It works!!! But the HDD that i salvadged is ancient and gets about .15 MBPS. Not good. Its an apple certified and apple branded toshiba HDD-500G at 5400RPM. Yeah. *****
I am considering buying a new hard drive as a 480GB SSD, and using OWC's Data doubler, adding a second HDD, for all the photos and vids i will be collecting through my work in video and photo. I am considering getting an SSHD (SSD+HDD in an SSD form factor) and using this as the second drive. its not much more expensive (like 10$ more) and itgetsme semi-SSD like performance on a mass scale of storage.
HOw can I combine these two drives into ONE partition? 480GB will take awhile to fill up, but this is a future proof wall to use.
I Will eventually invest in an external storage option (2-3 HDDS in one caddy for backups and storing 1080p video all under one roof. depends if the board im using actually has thunderbolt or usb that is fast enough-because of the crappy hdd i cant get it to boot into an OS or go through usb recovery without it freezing. I ahve tried re-applying thermal paste, still doesnt help)
HOw can i easily partition these two drives into one?
also, my friend needs a new HDD because bootup times in his macbook pro are at like 2 mins+ and hes running Core 2 Duo, with 8 G ram and 10.9 (Mav) should i recommend an SSHD or an ssd. (He doesnt want an HDD, hes had bad 'voodoo' with em'. Thanks!nithya_ram wrote:
Give me d source code for merging two img files into one img file\\
If you want someone to do your work for you, simply pay someone. However, if you have a question about code you're currently working on, feel free to ask a specific question here on the forum. -
How to set two DNS domain in one Remote VPN group policy
Hello experts
I am using ASA 8.2 to provide IPsec remote VPN for our staff. And in the group policy I set default domain name which is needed for our DNS server to resolve internal URLs. But the problem is now we have two domain names on our DNS server, and host names in two domains are differents. So if I setup one domain name in the group policy, URLs in the other domain cannot be resolved when using VPN. But ADSM seems doesn't allow me to setup two domain names for the attribute 'Default Domain'. What can I do?
Thanks a lot.Come on Experts, please help. Any way to achieve that, or it's a mission impossible.
-
How to merge two parameter value in WebI
Hi Experts,
I am using Business Object Edge 3.1 sever & MySQL data base.
Question 1:
I have six date field in my universe and one catergory field.
All dates are used for different purpose.
Ex. I have current account opening & Closing date, Money Market Account Opening & Closing Date and say loan account opening & closing date.
I want to count my no. of Opening account & Closing account according to Category.
So in prompt suppose i am giving date like 5/25/2010 to 5/26/2010, so my report should fetch all the account lying in this range.
In short i want only one prompt and i want restrict my all date field with this prompt value.
Question 2:
Can I add my MySQL query in WebI or Universe like "Add Command" in Crystal Report?
Your answer will be appreciated.
Thanks in advance,
RishitIf you give the same "prompt" text for all your prompts/parameters then it will prompt only once. So that's how you can merge the parameters.
The add command is not available. But following workaround may work for you:
Create a query from one of the universe with let's say 3 objects. Now click on the SQL button to view the sql statement. and choose the option for custom sql there. Paste your new SQL ther and save. Just ensure that the number of columns in the SELECT statment mathches with the number of of objects. (3 in this example) and ensure that the data type of the columns and slected objects are matching. I have seen this working, but not gone into very detail.
Anil -
How to set two colored text in one textarea
hello friends,
i am busy preparing chat frame which shows messages in textarea, it shows two things, one the name of chatter , the other is the message, i want the two things of different color, you can change the text color of textarea by setForeground(), but what if i want different colored text in same textarea, can anybody help me???I don't know if this will help u...try make sense of it :
DefaultStyledDocument doc = new DefaultStyledDocument();
JTextPane tp = new JTextPane(doc);
tp.setFont (new java.awt.Font ("Arial", 1, 12));
JScrollPane lscroller = new JScrollPane(tp);
lscroller.setForeground (new java.awt.Color (102, 102, 153));
lscroller.setPreferredSize (new java.awt.Dimension(496, 273));
lscroller.setVerticalScrollBarPolicy(
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
jPanel2.add ( lscroller );
prepareAllStyles();
void prepareAllStyles()
aset = new SimpleAttributeSet();
//set bold and red
StyleConstants.setForeground(aset,Color.black);
StyleConstants.setBold(aset,true);
ht.put(BOLDRED,aset);
aset = new SimpleAttributeSet();
//set italic and green
StyleConstants.setForeground(aset,Color.red);
StyleConstants.setBold(aset,true);
ht.put(ITALICGREEN,aset);
AttributeSet current = (AttributeSet)ht.get(BOLDRED);
doc.insertString(doc.getLength(),displaymessage + "\n",current);
tp.setCaretPosition( doc.getLength() ); -
How to set a Object value by JDI
How to set a Object value using JDI?
For example:
class User{
private String name;
private String id;
set and get method;
public static void main(String[] args) throws Exception {
VirtualMachineManager vmm = Bootstrap.virtualMachineManager();
List<AttachingConnector> connectors = vmm.attachingConnectors();
SocketAttachingConnector sac = null;
for (AttachingConnector ac : connectors) {
if (ac instanceof SocketAttachingConnector) {
sac = (SocketAttachingConnector) ac;
break;
if (sac == null) {
System.out.println("JDI error");
return;
Map<String, Connector.Argument> arguments = sac.defaultArguments();
Connector.Argument hostArg = arguments.get("hostname");
Connector.Argument portArg = arguments.get("port");
hostArg.setValue(HOST);
portArg.setValue(String.valueOf(PORT));
vmMachine = sac.attach(arguments);
List<ReferenceType> classesByName = vmMachine.classesByName(CLSNAME);
if (classesByName == null || classesByName.size() == 0) {
System.out.println("No class found");
return;
ReferenceType rt = classesByName.get(0);
List<Method> methodsByName = rt.methodsByName(METHODNAME);
if (methodsByName == null || methodsByName.size() == 0) {
System.out.println("No method found");
return;
Method method = methodsByName.get(0);
I will connect to server and monitor the remote server JVM , There is a object of User, I want to change its value by the Java Debugger Interface by client.
so how to set its value by the client, and I can not got the User bean at client.
I know the basic type filed value changed as follows:
Value newValue = vmMachine.mirrorOf("change var value");// this field is a string.
stackFrame.thisObject().setValue(field, newValue);
But a Object , how can I change its value.
Thanks Advanced.ObjectReference.setValue() is the method for chaining the value of an Object's field. First you need to find the specific Object you want to change, though.
/Staffan -
How to set a default value in Select one choice.
Hi
I'm using ADF BC, in that how to set a default value in select one choice.
pls. help on this.
regardsset the default value on the underlying EO or VO attribute
john -
How to set two radius servers one is window NPS another is cisco radius server
how to set two radius servers one is window NPS another is cisco radius server
when i try the following command, once window priority is first , i type cisco radius user name, it authenticated fail
i can not use both at the same time
radius-server host 192.168.1.3 is window NPS
radius-server host 192.168.1.1 is cisco radius
http://blog.skufel.net/2012/06/how-to-integrating-cisco-devices-access-with-microsoft-npsradius/
conf t
no aaa authentication login default line
no aaa authentication login local group radius
no aaa authorization exec default group radius if-authenticated
no aaa authorization network default group radius
no aaa accounting connection default start-stop group radius
aaa new-model
aaa group server radius IAS
server 192.168.1.1 auth-port 1812 acct-port 1813
server 192.168.1.3 auth-port 1812 acct-port 1813
aaa authentication login userAuthentication local group IAS
aaa authorization exec userAuthorization local group IAS if-authenticated
aaa authorization network userAuthorization local group IAS
aaa accounting exec default start-stop group IAS
aaa accounting system default start-stop group IAS
aaa session-id common
radius-server host 192.168.1.1 auth-port 1812 acct-port 1813
radius-server host 192.168.1.2 auth-port 1812 acct-port 1813
radius-server host 192.168.1.3 auth-port 1645 acct-port 1646
radius-server host 192.168.1.3 auth-port 1812 acct-port 1813
privilege exec level 1 show config
ip radius source-interface Gi0/1
line vty 0 4
authorization exec userAuthorization
login authentication userAuthentication
transport input telnet
line vty 5 15
authorization exec userAuthorization
login authentication userAuthentication
transport input telnet
end
conf t
aaa group server radius IAS
server 192.168.1.3 auth-port 1812 acct-port 1813
server 192.168.1.1 auth-port 1812 acct-port 1813
endThe first AAA server listed in your config will always be used unless/until it becomes unavailable. At that point the NAD would move down to the next AAA server defined on the list and use that one until it becomes unavailable and then move to third one, and so on.
If you want to use two AAA servers at the same time then you will need to put a load balancer in front of them. Then the virtual IP (vip) will be listed in the NADs vs the individual AAA servers' IPs.
I hope this helps!
Thank you for rating helpful posts! -
Allow only one set of parameter values for all worksheets
I would like to " Allow only one set of parameter values for all worksheets ", but prompt before executing the worksheet. This function is a great time saver, but the users on occasion would like to change at the least one of the parameters. Is this possible? What setting do I use? I've tried various combinations of the " After opening a workbook: " on the options page. " Run query automatically", " Don't run query (leave sheet empty) ", and " Ask for comformation ". I would have thought that "Ask for comformation " was the trick, but no. I'm considering putting a do nothing parameter that has the setting of " Allow different parameter values for each worksheet. " so that it will keep all the others, default this one, but prompt for a possible change.
Any thoughts...
Thanks,
JamieHi Jamie
Even though you have the same parameter for all worksheets a user can still choose what to use on a worksheet. Its just that if they click to another worksheet then that parameter will be applied.
Which version of Discoverer are you using?
Best wishes
Michael -
How to set a default value in my DropDown using the key ?
Hello All,
Can someone advose how I can achieve the above ? I will like to know how to select a default value for the dropdown by key using the key value instead of description.
The reason why I need to do so instead o fusing description is because my application will populate the dropdown using web services based on the language selection. Hence, if I were to set the default value using description, den other languages will not work anymore.
Any help will be greatly appreciated. Thank you !!
from
KWok WeiKwok,
Assuming that:
1. You have a node NodeX, where attribute TargetAttr defined
2. You have a DropDownByKey UI control, its property selectedKey bound to NodeX.TargetAttr attribute
Then:
Place in your code:
wdContext.currentNodeXElement().setTargetAttr("yourKey");
VS
P.S. This topic was raised several times, and forum search works good enough to find an answer -
How to capture a parameter value in SQL QUERY of scale marker using GO URL
Hi,
Can any one please tell me how to capture the parameter value from go url inside Where clause of Scale Marker.
I am trying to sift the position of scale marker based on SQL Query.
Thanks-Bhaskar Gouda.
Edited by: 961171 on Sep 25, 2012 12:33 AMSince this is a synchronous interface, where source is a soap(proxy) call and target is JDBC in the first mapping both of them are request scenarios.
Source Structure:
RootNode
Request 1...unbounded
No_of_Days 1.1 String
Target Structure:
RootNode
Statement
TableName
Action mapped to SQL_QUERY
Access - SELECT DISTINCT AL.EC_NO,DP.DATE_TO_FORMAL FROM T_APPLICATION_LIST AL,(SELECT DE.EC_NO AS "EC_NO", DE.PACKAGE_NO AS "PACKAGE_NO",PC.DATE_TO_FORMAL AS "DATE_TO_FORMAL" FROM DAICYO_ECNO DE,PACKAGECTL PC WHERE DE.PACKAGE_NO = PC.PACKAGE_NO AND PC.DATE_TO_FORMAL > (TRUNC(SYSDATE) - to_number('$No_Of_DAYS$'))) DP WHERE AL.EC_NO IN (SELECT EC_NO FROM DAICYO_ECNO WHERE PACKAGE_NO IN (SELECT PACKAGE_NO FROM PACKAGECTL WHERE DATE_TO_FORMAL > (TRUNC(SYSDATE) - to_number('$No_Of_DAYS$')))) AND (AL.FAMILY = '' or '' is null and AL.FAMILY is not null ) and DP.EC_NO = AL.EC_NO ORDER BY DATE_TO_FORMAL
Key
No_Of_Days 1..1 String
In Return I am expecting a JDBC response from the Oracle Database as:
Source Structure:
RootNode
STATEMENT_response 1...unbounded
row 0...undbounded
EC_NO 1..1 String
Target Structure:
RootNode
RESPONSE
row
EC_NO 1..1 String -
SRM 4.0- How to set the default values for product type (01) only for SC
The radio button Service should not be visible.
Also for search help (e.g. search for internal products) where a search should only be possible for product type 01 (goods). The system should not display the product type and internally always search for goods only.
How to set the default values for product type (01) only for SC
We needs to use Search help BBPH_PRODUCT which having parameter PRODUCT_TYPE
Here we can set defalut value 01 but it is not correct one since same search help is using several places.
We need to limit the search help results only for SC.
Kindly help out me ASAP.The easiest way to set defautl values is to edit the batch class.
Goto the characteiristic and go to update values.
In here you probably have something like 0 - 100 as a spec range.
On the next line enter the default value within this range. At the end of the line, click in the box in the column labelled "D". This indicates the defautl value for the characteristic.
If you need to you can do this in the material classification view as well.
Just to be clear, these values will only show up in the batch record. You can not have defautl values in resutls recording screens.
FF
Maybe you are looking for
-
Hi Gurus, I have a problem. I have the following set of transactions done. Now I have the question - why the last invoice posted to this PO, has not been fully posted to the GR/IR Account. Thus there is a diff on this account. What can be done now? A
-
Adding New SAP System in System Configuration
Hi i want to add a new system in Portal i follow the path system administration -- system configuration -- portal content -- <my folder> -- < add system template > i can successfully do this in the objects i have maintained Connector where i have giv
-
Using a baseclass, please help me.
I have this structure DocumentInfoBean extends CoreEntityBean public field1; public field2; on the other side: CoreEntityBean public keyField2; public keyField3; Deployment tool only shows me field1 and field2; and of course I need keyField2 and 3 I
-
Custom workflow integrated into SAP Standard
I have a requirement were the business would like a workflow to create material master, but prior to actually creating the material they have a form that needs passed around and approved my many business units. Once all approvals are obtained a mater
-
The first step would be to replace the Oracle SES Logo in the upper left by another image. How can this be accomplished ? Thanks