How to define a variable name in ABAP?
Field name numer
1.000
5.000
3.000
How to declare this variable x_numer?
"select single numer into <b>x_numer</b> from TableName"
Thanks!
While declaring, you assign type. You can also assign default value or make it constanrt also.
Like this:
DATA: USER LIKE SY-UNAME.
DATA: text_buffer TYPE string VALUE `Text`,
count TYPE i VALUE 1,
price TYPE p DECIMALS 2 VALUE '1.99'.
Go to Se37 or Se38.
Type RS* and drop down and you will see bunch of programs and FMs. choose any of them.
this will display the program.
In that press f1 and you will get the abap help and you can search by key words.
Ravi Thothadri
Similar Messages
-
How to rename a program name in ABAP.
Hi all,
How to rename a program name in ABAP. Please help me out in this.
Thanks & Best Regards,
Vishnuhi vishnu,
goto se38--> press Ctrl+F6
it will give one small screen source program and target program.
in target program type ur pgm name
reward if its useful. -
How to define a cell name in numbers?
How do I define a cell name to use in a formula. I want to calculates costs for a dinner function where the number of guests, costs etc are variable. I want to use the number of guests in different formulas in the spreadsheet.
So I need to have a cell where I enter number of guests once and this will then reflect in all formulas where I use the cell name: 'number_of_guests'
Thus cell A1 will have the name 'number_of_guests' and I could type any number in there.
A formula in a later cell will then be =$100.00*'number_of_guests' to get a total cost, etc.Yvan KOENIG (VALLAURIS, France) lundi 26 décembre 2011 12:03:51
iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My iDisk is : http://public.me.com/koenigyvan
Please : Search for questions similar to your own before submitting them to the community
For iWork's applications dedicated to iOS, go to :
https://discussions.apple.com/community/app_store/iwork_for_ios -
F110-How to define DME file name in OBPM4 composed of Paym Run Date+Name
Hello,
In OBPM4 there are 2 options to define the name of DME file by standard settings:
1. If the file name is not defaulted by the parameters, it is generated by the program.
2. If the user defines the file name, a four character sequential number is also assigned.
Is it possible to define (by some customization, function, UE.....)
the file name which will be dynamically composed of Payment Run and Payment Date?
For example, 09082009CH001 while 09082009 is Payment Run Date and CH001 is Payment Run Date.
Thank You in AdvanceHI,
OBPM4 is for maintaining the variants for the DME file output. IN OBPM3 you can write an ABAP program (function module) in the event module selection of the customer setting. At our clients place we have used this to define the file name as well as the path in which the file needs to be saved.
Hope this helps.
Thnaks and Regards,
Anit -
Added dynamic text; How do I stop variable name from showing?
I am creating a simple game for kids. On the first page, I added an "input text" field for their first name. I called the variable firstname.
When they move to the next page, I used a "dyanamic text" field so I can call them by name on this page. It works. However, When I test the game, on the first page, where the firstname is input, it shows _level0.firstname instead of just a blank space for them to input their name.
I know I fixed this in the past and it was something simple, but I can't remember how to do it. I'd appreciate anyone's help!
Thanks.Beginning with Flash MX (version 6), you assign the text field an instance name using the Property inspector. Although you can use the variable name method with dynamic text fields for backwards compatibility to Flash 5 and earlier versions, Macromedia doesn't recommend this, because you can't control other text field properties, or apply style sheet settings
-
How to show argument variable names to webservice client
Hi java expert(S)!
This is sri, i am creating a webservice using sun java studio enterprise 8.1 IDE, my problem is consumer(from .net) say ,parameter names are not clear or visible. say, for example, my webservice method look like
public java.lang.String login(final String clientid, final String password) throws java.rmi.RemoteException {...}
to me but for webservice client String login(String_1, String_2). so how to show argument variables to client
webservice client needs to know argument names for proper usage.
Any body knows how to do this, Any help will be appreciated!!!!!
Thanks & Regards,
SRI.hI
i have posted my wsdl below
If you go through , you can find that in order to call a method , we have to supply string or int arguments but those names are not shown
for example to call login , you need to supply 2 string arguments but how do you know first one is username and second one is for password.
it shows simply string_1 and string_2 as arguments, instead if it shows login(String username,String password) for caller(webservice client), it will be easy to handle you know.
How to do this????
<definitions name="mysws" targetNamespace="urn:mysws/wsdl">
−
<types>
−
<schema targetNamespace="urn:mysws/types">
−
<complexType name="getData">
−
<sequence>
<element name="String_1" type="string" nillable="true"/>
<element name="String_2" type="string" nillable="true"/>
<element name="int_3" type="int"/>
</sequence>
</complexType>
−
<complexType name="getDataResponse">
−
<sequence>
<element name="result" type="string" nillable="true"/>
</sequence>
</complexType>
−
<complexType name="getMoreRows">
−
<sequence>
<element name="int_1" type="int"/>
<element name="int_2" type="int"/>
<element name="int_3" type="int"/>
</sequence>
</complexType>
−
<complexType name="getMoreRowsResponse">
−
<sequence>
<element name="result" type="string" nillable="true"/>
</sequence>
</complexType>
−
<complexType name="insertData">
−
<sequence>
<element name="String_1" type="string" nillable="true"/>
</sequence>
</complexType>
−
<complexType name="insertDataResponse">
−
<sequence>
<element name="result" type="string" nillable="true"/>
</sequence>
</complexType>
−
<complexType name="login">
−
<sequence>
<element name="String_1" type="string" nillable="true"/>
<element name="String_2" type="string" nillable="true"/>
<element name="String_3" type="string" nillable="true"/>
</sequence>
</complexType>
−
<complexType name="loginResponse">
−
<sequence>
<element name="result" type="string" nillable="true"/>
</sequence>
</complexType>
−
<complexType name="logout">
−
<sequence>
<element name="String_1" type="string" nillable="true"/>
<element name="String_2" type="string" nillable="true"/>
</sequence>
</complexType>
−
<complexType name="logoutResponse">
−
<sequence>
<element name="result" type="string" nillable="true"/>
</sequence>
</complexType>
<element name="getData" type="tns:getData"/>
<element name="getDataResponse" type="tns:getDataResponse"/>
<element name="getMoreRows" type="tns:getMoreRows"/>
<element name="getMoreRowsResponse" type="tns:getMoreRowsResponse"/>
<element name="insertData" type="tns:insertData"/>
<element name="insertDataResponse" type="tns:insertDataResponse"/>
<element name="login" type="tns:login"/>
<element name="loginResponse" type="tns:loginResponse"/>
<element name="logout" type="tns:logout"/>
<element name="logoutResponse" type="tns:logoutResponse"/>
</schema>
</types>
−
<message name="myswsSEI_getData">
<part name="parameters" element="ns2:getData"/>
</message>
−
<message name="myswsSEI_getDataResponse">
<part name="result" element="ns2:getDataResponse"/>
</message>
−
<message name="myswsSEI_getMoreRows">
<part name="parameters" element="ns2:getMoreRows"/>
</message>
−
<message name="myswsSEI_getMoreRowsResponse">
<part name="result" element="ns2:getMoreRowsResponse"/>
</message>
Regards,
Sri -
How to Search for Variable Name in an Apex Page
Hi,
Whenever I am writing code and I need to remove a reference to a variable name, I just to a search and replace on the source.
With Apex, is there a way to do that on the Apex page definition? I have click on every validation, process, report to comb each region for the variable reference. Thanks.Hi Samuel,
Have a look at the APEX views ( Utilities > APEX Views ).
You can select most (all?) of the information associated with a page and then search the result set(s) for the variables you are looking for.
I hope this helps.
Cheers,
Patrick Cimolini -
How to change dinamically variable name?
Is it possible to change variable name dinamically into loop?
loop at itab.
move itab-item to field_x.
endloop.
I would copy my itab-item into field_1, field_2......field_x at each loop.
Thanks
Alfonso.You have to use the field symbol for the field giornoX not for the structure
DATA: BEGIN OF wa_alv OCCURS 0,
pernr LIKE pa0001-pernr,
persk LIKE pa0001-persk,
des_grado_abbrev LIKE zhr_descr_grado-des_grado_abbrev,
vorna LIKE pa0002-vorna,
nachn LIKE pa0002-nachn,
giorno1 TYPE char12,
giorno2 TYPE char12,
giorno3 TYPE char12,
giorno4 TYPE char12,
giorno5 TYPE char12,
giorno6 TYPE char12,
giorno7 TYPE char12,
END OF wa_alv.
data tb_alv like table of wa_alv.
field-symbols: <giorno> type any.
data: name_giorno(13).
LOOP AT tb_alv ASSIGNING wa_alv
LOOP AT tb_orario.
do 7 times.
concatenate 'wa_alv-giorno' sy-index into name_giorno.
assign (name_giorno) to <giorno>.
giorno = tb_orario-orario.
enddo.
ENDLOOP.
ENDLOOP.
bye
enzo -
How to use javascript variable in BSP/ABAP and vice versa
Hello Experts,
In IC WEBCLIENT, there is a view.In the view.htm i want to fetch the screen resolution and as per the resolution i want set the width of that view.
1, I wrote the below javascript to fetch the screen resolution.
Can i use a notmal ABAP variable inside the javascript? and If i use can i access that variable after the javascript.?
Can i assign a javascript variable to a nrmal abap variable??
The code sample is like :
Start of javascript
if (screen,width == 1024 )
lv_width = 500 "lv_width is an ABAP variable.
else
lv_width = 700
**END OF JAVASCRIPT
**Now i want to use lv_width to assign to a table view attribute(Width)
<crmc: tableview..
width = <%= lv_width >
the code is not giving any error. But the problem is that lv_width is not giving the correct value, its getting initialized to initial value...
Requesting the experts to please provide some suggestions/solution for the above issue.
Thanks and Regards
SudhansuHello Sudhansu,
First of all there was a little mistake at my previous answer:
you got lw_width = 700
because at Server Side you have following code:
lw_width = 500.
lw_width = 700.
but if you were writing your code like this:
<%=lw_width %> = 700.
then you will get the result that I was talking about : 0 = 700
Sorry for the mistake
Now for your question:
if you want to get a value from the server and assign it to JScript variable you should write like this :
var aaa;
aaa = <%=lw_width %>;
this code assign the server variable lw_width value into aaa JScript varible.
I'm not sure what exactly you want to do but look at this link:
http://www.pageresource.com/jscript/jscreen.htm
to get the idea how to get and use Screen Resolution variables at your JScript code.
Good luck
Eli Steklov
Please Reward Points if it Helped -
HOW TO DEFINE VIRTUAL HOST NAME IN HPIA64 + SAP R/3 ENTERPRISES 4.7
Hi all,
I am trying to install sap r/3 enterprises 4.7 with OS as HP-UX and Database as Oracle in a cluster environment.
In cluster environment sap installation should be done on virtual hostname ( package id ). I'm using the env variable SAPINST_USE_HOSTNAME=<VIRTUAL HOSTNAME>.
My cluster is running and I'm able to ping it from network, but at the time of SAP Installation my sapinst starts with the physical host name not with the virtual host name.
What can be the solution ..?
Thanks,
Chandresh Pranami.Hi Chandresh,
Try executing sapinst with virtual hostname.
eg. ./sapinst SAPINST_USE_HOSTNAME=<VIRTUAL HOSTNAME>.
This should work.
-Pinkle -
How to display the variable name in right side of the graph
Hi All,
i have defined a scatter chart. my requirement is to show the values of the Z-axis or level axis beside the scatter chart. this is already present for the OBIEE pie chart. can we configure the same for the scatter chart.
thanks in advance.Hi Paul,
Following customized code displays Full Names on my portal:
private String GetWelcomeMsg(IPortalComponentRequest request, String welcomeClause)
IUserContext userContext = request.getUser();
if (userContext != null)
String firstName = userContext.getFirstName();
String lastName = userContext.getLastName();
String displayName = userContext.getDisplayName();
String salutation = userContext.getSalutation();
if (displayName != null)
if(salutation != null)
return java.text.MessageFormat.format(welcomeClause, new Object[] {displayName, salutation, " "}).toString();
else
return java.text.MessageFormat.format(welcomeClause, new Object[] {displayName, " ", " "}).toString();
else if ((firstName != null) && (lastName != null))
if(salutation != null)
return java.text.MessageFormat.format(welcomeClause, new Object[] {firstName, lastName, salutation}).toString();
else
return java.text.MessageFormat.format(welcomeClause, new Object[] {firstName, lastName, " "}).toString();
else
return java.text.MessageFormat.format(welcomeClause, new Object[] {userContext.getUniqueName()," ", " "}).toString();
return "";
Regards,
Sergei -
How can I use variable name as a prameter value in HOST Command ???
Hi All,
How can it possible to use variable value in parameter in HOST command ??
Following in my code:
host('rwclient server=reptest report=c:\cust_print.rdf p_1= s_sam_cust_id userid=wh1/wh1@dwh desformat=pdf desty=file desname=c:/temp/'||v_sam_cust_id||'.pdf');
RegardsHello,
The Syntax of the builtin HOST is :
SyntaxPROCEDURE HOST
(system_command_string VARCHAR2);
PROCEDURE HOST
(system_command_string VARCHAR2,
screen_action NUMBER);
So , you can build the system_command_string as any VARCHAR2
Example are provided in online help :
http://www.oracle.com/webapps/online-help/forms/10g/topics/f1_help/builth_m/host.html?tp=true
Regards -
How to generate a variable-name from a string
I want to name some variables automaticly. The names are read from an ArrayList and converted to string.
I tried it this way, but I failed.
for(int m=0; m<tags.size(); m++){
System.out.println("javax.swing.JRadioButton "+tags.get(m).toString().toLowerCase()+"RadioButton;");
String temp = tags.get(m).toString().toLowerCase().concat("RadioButton");
javax.swing.JRadioButton temp.toString() = new JRadioButton();
buttonList.add(m, temp.toString());
Can anyone help me, please?!Because of the Exception I printed the content of temp and of hsh.get(temp) and both are not null:
temp: authorRadioButton
hsh.get(temp)): javax.swing.JRadioButton[,0,0,0x0,invalid,layout=javax.swing.OverlayLayout,alignmentX=0.0,alignmentY=0.5,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@7dd60e50,flags=1184,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=2,bottom=2,right=2],paintBorder=false,paintFocus=true,pressedIcon=,rolloverEnabled=false,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=]
So I really don't know why this Exception occurs when trying to use the hsh.get(temp)-method. -
How to define new variable types in BPEL?
Is there a way to define a new variable type directly in BPEL, without modifying any of the WSDL files used by Partnerlinks?
Or to import an XSD with variable definitions?It depends on what you want to use the variable for. You may not need to do it yourself. Let's assume you have a main wsdl for your service that you can't change but it has the inputs and outputs already defined.
In the middle you want to grab the input and shove it into a database table. You can create a new partner link. Rright click in the swim lanes on the BPEL page and pick the little database icon. Go through the steps to link to the db via an insert or package. You will need a db connection to do this.
jdeveloper will create the partner link wsdl and schema for you to match the table or the ins/outs of the package/procedure automatically.
Then drag an invoke onto the page and pull the arrow to your new partner link. Use the magic wand on the invoke screen to create the input/output variables.
Then you can use a transformation or assign/copy to pull the data from the input message variable of the main wsdl into the input variable of your database wsdl.
Or your situation may not be that complicated...if you click the little (X) on the edge of the box on the BPEL screen you can go through a picking process. -
How to define parameter variables to be passed by value by default
When defining a new parameter for a sequence, it is set by reference by
default. Obviously sometimes when passing a parameter we dont want the
sequence receiving those values to be able to modify it by mistake and
corrupting the value from the calling sequence. Is it possible to have
the parameter variables created with passed by value by default?
Thanks!
LouisLouis -
The default setting is by ref and we do not expose a way to customize this. One of the reasons we chose by ref instead of by value for the default, is that when you specify by value for a container, the entire container must be cloned and this adds overhead to a sequence call that users may not want.
Scott Richardson
National Instruments
Maybe you are looking for
-
Why can't I paste a Link in an email I'm replying to in Mail?
Does anyone know why "Add Link" is grayed out in Link when replying to an email in Mail? If I start a new email, I can choose Link, then Add Link and paste my site in there easily. It seems like when I'm responding to an email and want to add a Lin
-
We have diffrent mapping types in XI like message mapping, java mapping, ABAP mapping and XSLT mapping. Can anybody explain me why these many types of mappings are required?
-
Display Problem: black stuff suddenly looks red
Everything black (objects/graphics/print/cursor) suddenly has a "red tinge" to it. Black parts of graphics almost "glow red.." I don't remember changing any settings, but how can I get rid of the red and back to pure black with no red aura around it.
-
Third Party Tool for Scheduling Web Analysis reports
Hello, I am using Hyperion Web Analysis for report development and Workspace for viewing reports. Now, I am facing an issue for scheduling WA reports through Workspace. Few experts told to me, we can't schedule a web Analysis document in workspace. B
-
hello everyone I ran the adconfig on Release 12.After that, I access the web site and recieve the message below: java.lang.NoClassDefFoundError at oracle.apps.fnd.sso.AppsLoginRedirect.AppsSetting(AppsLoginRedirect.java:120) at oracle.apps.fn