How can i create varaible name dynamically?
amx$var$ = value.
this statement is in loop and i want to change variable name in each pass like,
amx11 = value
amx12 = value
Please help me out of this.its urgent.
good answers will be awarded points
Hi Amresh,
Please check the following sample code.
Hope this will surely help you out.
Sample Code:
types: BEGIN OF ty_field,
field TYPE fieldname,
END OF ty_field,
BEGIN OF ty_values,
value TYPE fieldname,
END OF ty_values.
CONSTANTS: c_amx type char3 VALUE 'amx'.
FIELD-SYMBOLS: <fs_val> TYPE ANY.
DATA: l_variable TYPE char2,
l_value TYPE char2,
l_fname TYPE fieldname,
lt_field TYPE STANDARD TABLE OF ty_field,
ls_field TYPE ty_field,
lt_values TYPE STANDARD TABLE OF ty_values,
ls_values TYPE ty_values.
l_value = 1.
DO 20 TIMES.
ls_values-value = l_value.
APPEND ls_values to lt_values.
l_value = l_value + 1.
ENDDO.
l_variable = 01.
LOOP AT lt_values INTO ls_values .
CLEAR: l_fname.
UNASSIGN <fs_val>.
CONCATENATE c_amx l_variable INTO l_fname.
ASSIGN COMPONENT l_fname OF STRUCTURE ls_values-value TO <fs_val>.
l_variable = l_variable + 1.
IF sy-subrc EQ 0.
ls_field-field = <fs_val>.
ENDIF.
WRITE: / l_fname , ls_values-value.
ENDLOOP.
Pls do reward if useful.
Regards,
Farheen.
Edited by: Farheen Fatima on Jan 22, 2008 1:19 PM
Similar Messages
-
How can i create the variant name against table KNa1.
Hi,
please check out the link below it will explain you have to create a variant.
http://help.sap.com/saphelp_webas620/helpdata/en/c0/980389e58611d194cc00a0c94260a5/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c0/980374e58611d194cc00a0c94260a5/content.htm
***********please reward points if the information is helpful to you*********** -
I would like to create child components of the component
based on a XML which is retrieved by WebService/HttpService call.
createChildren() is the one to be used to create components
dynamically. But if I use createChildren() and call a
WS/HttpService request in createChildren method, I can not get the
result of WS/HttpService request in createChildren().
It seems that the result event is processed later after
createChildren() is completed.
How can I implement my requirement?
I would appreciate any pointer or suggestion.
Best regards
Masa1) Use a List, with a custom itemRenderer
2) Use a Repeater (Probably easiest)
3) use Actionscript to addChild() components.
Tracy -
How can i create menu & submenu dynamically in JSF?
Please tell me how can i generate menu & submenu in JSF using database or dynamically.
Stephen,
Check this page out for some elementaries on dynamic pages in UIX. The LOV is essentially just like any other UIX page, with the two differences: it's launched and submitted differently. But these differences don't affect what content is displayed on the page.
Dynamic Structure in ADF UIX Pages:
http://helponline.oracle.com/jdeveloper/help/state/content/navSetId.jdeveloper/navId.4/vtAnchor.ChildData/vtTopicFile.jdeveloper%7Cuixhelp%7Cuixdevguide%7Cdynamic%7Ehtml/ -
How can I create a LOV dynamically in UIX?
Jdev10g, ADF BC UIX...
I need to create LOVs for 0 to many columns in my UIX datapage but I don't know the column names nor the tables until I read the LOV_SQL column from the child as they come in. Can you show me the way, please.
Thanks, Stephen.Stephen,
Check this page out for some elementaries on dynamic pages in UIX. The LOV is essentially just like any other UIX page, with the two differences: it's launched and submitted differently. But these differences don't affect what content is displayed on the page.
Dynamic Structure in ADF UIX Pages:
http://helponline.oracle.com/jdeveloper/help/state/content/navSetId.jdeveloper/navId.4/vtAnchor.ChildData/vtTopicFile.jdeveloper%7Cuixhelp%7Cuixdevguide%7Cdynamic%7Ehtml/ -
How can I create a new dynamic stamp in Pro version ?
I would like to add a new dynamic stamp but cannot find out how to.
A simple way is to create a new custom stamp using the UI, and then make it dynamic by opening the resulting stamp file, adding one or more form fields, and the custom calculation script(s) that control the behavior. If you get stuck with any of these things, post again.
For everything you need to know about stamps, get this book: http://www.amazon.com/About-Stamps-Acrobat%C2%AE-Paperless-Workflows/dp/0985614706 -
How can i create stored procedures dynamically?
I have tried to create a stored procedure building a string with the PL/SQL code needed to create the procedure. If i run the code using SQL+ works fine, but using the following code:
Public Sub CreateStoredProcedure()
Dim strSql As String
strSql = "CREATE OR REPLACE PACKAGE OPSPRUEBAS AS " & vbCrLf
strSql = strSql & vbTab & "PROCEDURE consulta (resultado OUT VARCHAR2); " & vbCrLf
strSql = strSql & "END OPSPRUEBAS; " & vbCrLf
strSql = strSql & "/ " & vbCrLf
strSql = strSql & ". " & vbCrLf
strSql = strSql & "CREATE OR REPLACE PACKAGE BODY OPSPRUEBAS AS " & vbCrLf
strSql = strSql & "PROCEDURE consulta (resultado OUT VARCHAR2) IS " & vbCrLf
strSql = strSql & "oc_ref" & vbTab & vbTab & "REF Content_Ontology; " & vbCrLf
strSql = strSql & "oc" & vbTab & vbTab & "Content_Ontology; " & vbCrLf
strSql = strSql & "ori" & vbTab & vbTab & "role_def; " & vbCrLf
strSql = strSql & "ori_ref" & vbTab & vbTab & "ref role_def; " & vbCrLf
strSql = strSql & "conce" & vbTab & vbTab & "concept; " & vbCrLf
strSql = strSql & "conce_ref" & vbTab & "REF concept; " & vbCrLf
strSql = strSql & "b" & vbTab & vbTab & "boolean; " & vbCrLf
strSql = strSql & "BEGIN " & vbCrLf
strSql = strSql & "b:=false; " & vbCrLf
strSql = strSql & "select REF(oi) into ori_ref from rol_table oi where oi.name='Playing'; " & vbCrLf
strSql = strSql & "select deref(ori_ref) into ori from dual; " & vbCrLf
strSql = strSql & "select REF(oi) into oc_ref from c_ontologies oi where oi.web_source_prop=websource('FilmContentOntology'); " & vbCrLf
strSql = strSql & "select deref(oc_ref) into oc from dual; " & vbCrLf
strSql = strSql & "if oc.if_has_co_class('Film')='TRUE' AND " & vbCrLf
strSql = strSql & "oc.if_has_co_class('theater')='TRUE' AND " & vbCrLf
strSql = strSql & "oc.if_has_co_relationship('is_scheduled')='TRUE' AND " & vbCrLf
strSql = strSql & "oc.if_has_co_attributes('Film', lista('is_scheduled', 'title', 'actor'))='TRUE' AND " & vbCrLf
strSql = strSql & "oc.if_has_co_attributes('theater', lista('theatername', 'address', 'email'))='TRUE' " & vbCrLf
strSql = strSql & "then resultado:='FilmContentOntology'; " & vbCrLf
strSql = strSql & "else resultado:='No Existe'; " & vbCrLf
strSql = strSql & "end if; " & vbCrLf
strSql = strSql & "END consulta; " & vbCrLf
strSql = strSql & "END OPSPRUEBAS; " & vbCrLf
strSql = strSql & "/ " & vbCrLf
strSql = strSql & ". " & vbCrLf
strSql = strSql & "COMMIT;" & vbCrLf
TextBox2.Text = strSql
'Dim myConnectionString As String = "User Id=system;Password=daniel;Data Source=websogo;"
'Dim oraConn As Oracle.DataAccess.Client.OracleConnection = New Oracle.DataAccess.Client.OracleConnection(myConnectionString)
Dim myCmd As New System.Data.OleDb.OleDbCommand()
Dim MyConnection As New System.Data.OleDb.OleDbConnection()
MyConnection.ConnectionString = "Provider=MSDAORA;Data Source=websogo;password=daniel;User ID=system"
MyConnection.Open()
'oraConn.Open()
myCmd.Connection = MyConnection
myCmd.CommandType = CommandType.Text
myCmd.CommandText = strSql
myCmd.ExecuteNonQuery()
'Dim e As Oracle.DataAccess.Client.OracleException
'Try
' myCmd.ExecuteNonQuery()
'Catch e
' Dim error1 As Oracle.DataAccess.Client.OracleError
' error1 = e.Errors.Item(0)
' Textbox3.Text = error1.Source & " " & error1.Message
'End Try
MyConnection.Close()
End Sub
I've tried using Microsoft ODP, OLEDB and Oracle's ODP.NET
Also tried to catch any error but there are no errors!
Has anybody achived a successful dynamically stored procedure creation using .net?
thanks in advance
DanI'm trying to create Stored Procedures via .NET and able to do so but when I look in Oracle Enterprise Manager Console, the Stored Procedures are marked as INVALID... If I edit the Stored Procedure (i.e. delete a space or something minor) and SAVE then it compiles fine.....
Any ideas ????
will be using this against 9i & 10g db -
How can i create a button with a dynamic picture?
How can i create a button with a dynamic picture using
mcLoader.loadClip
I did create one with it doesnt seem to be working. It loses
all its
functions (eg onPress onRelease)
ThanksI solved thep roblem anyway creating a mc.. then creating
another MC withing
the first MC and i change the picture on the second MC. And i
apply the
propierities to the first MC , and works
If i have troubles with mu sistem on the future I will use
yours!
Thanks!
"the fleece" <[email protected]>
escribi� en el mensaje
news:e67i88$jlf$[email protected]..
> the image loading will remove any properties or
functions the mc had.
>
> you need to apply them in the onLoadInit function
>
> mclListener.onLoadInit = function(target_mc:MovieClip) {
> target_mc.onRollOver=blah blah
> };
> var image_mcl:MovieClipLoader = new MovieClipLoader();
> image_mcl.addListener(mclListener);
> image_mcl.loadClip(blah, blahblah);
>
> -
How can we create dynamic pie chart in jsp
hi im a new jsp programmer and i just want to know how can i create dynamic pie chart in jsp
http://sourceforge.net/projects/jfreechart
- Saish -
Can we create internal table dynamically ? how?
hi to all experts,
can we create internal table dynamically ? how?plz explain me with an example.Anybody with good example will be rewarded.it was asked in an interview what the answer for itHI
Yes you can create
see this
/people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap
JUST USE THIS CODE AND DO THE ESSENTIAL CHANGES ACCORDING TO YOU
STEP: 1 - get backend field catalog (currently displayed alv)
CLEAR: tl_fieldcatalog. REFRESH: tl_fieldcatalog.
CALL METHOD w_grid->get_backend_fieldcatalog
IMPORTING
et_fieldcatalog = tl_fieldcatalog.
STEP: 2 - create a new fieldcatalog for dynamic internal table
CLEAR: sl_fieldcatalog.
CLEAR: t_outtab_fieldname. REFRESH: t_outtab_fieldname.
CLEAR: tl_fieldcatalog_new. REFRESH: tl_fieldcatalog_new.
CLEAR: t_download_fieldname. REFRESH: t_download_fieldname.
CLEAR: t_download_fieldheading. REFRESH: t_download_fieldheading.
LOOP AT tl_fieldcatalog INTO sl_fieldcatalog.
STEP: 2.1 - populate data in T_OUTTAB_FIELDNAME
APPEND sl_fieldcatalog-fieldname TO t_outtab_fieldname.
STEP: 2.2 - populate TL_FIELDCATALOG_NEW & T_DOWNLOAD_FIELDNAME
IF sl_fieldcatalog-no_out EQ ''.
IF sl_fieldcatalog-fieldname NE 'STATUS'
OR sl_fieldcatalog-fieldname NE 'MESG_STATUS'
OR sl_fieldcatalog-fieldname NE 'ZLOCK'
OR sl_fieldcatalog-fieldname NE 'T_PLANT'
OR sl_fieldcatalog-fieldname NE 'T_CSR'.
If field is COMM_PLANT, change its length
IF sl_fieldcatalog-fieldname EQ 'COMM_PLANT'.
sl_fieldcatalog-outputlen = 1800.
sl_fieldcatalog-intlen = 1800.
sl_fieldcatalog-dd_outlen = 1800.
ENDIF. "comm_plant
sl_fieldcatalog_new = sl_fieldcatalog.
APPEND sl_fieldcatalog_new TO tl_fieldcatalog_new.
APPEND sl_fieldcatalog-fieldname TO t_download_fieldname.
APPEND sl_fieldcatalog-scrtext_l TO t_download_fieldheading.
CLEAR: sl_fieldcatalog, sl_fieldcatalog_new.
ENDIF.
ENDIF.
ENDLOOP.
STEP: 3 - create dynamic internal table
FREE: ref_download.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
I_STYLE_TABLE =
it_fieldcatalog = tl_fieldcatalog_new
IMPORTING
ep_table = ref_download
E_STYLE_FNAME =
EXCEPTIONS
generate_subpool_dir_full = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ASSIGN ref_download->* TO <ft_download>.
CREATE DATA ref_wa LIKE LINE OF <ft_download>.
ASSIGN ref_wa->* TO <fs_download>.
STEP: 4 - populate data in dynamic internal table
LOOP AT t_outtab INTO wa_outtab.
LOOP AT t_download_fieldname.
ASSIGN COMPONENT t_download_fieldname OF STRUCTURE
<fs_download> TO <fs_download_field>.
IF t_download_fieldname-field EQ 'COMM_PLANT'.
STEP: 4.1 - get long text from database table
CLEAR: wal_table.
SELECT SINGLE * FROM zshaven_plnt_txt
INTO wal_table
WHERE vbeln = wa_outtab-vbeln
AND posnr = wa_outtab-posnr
AND del_no = wa_outtab-del_no
AND del_itm = wa_outtab-del_itm.
IF sy-subrc EQ 0.
STEP: 4.2 - break long-text into separate lines
CLEAR: tl_text. REFRESH: tl_text.
SPLIT wal_table-plant_comm
AT '~'
INTO TABLE tl_text.
STEP: 4.3 - Combine these separate lines with space in
between two lines
CLEAR: wal_text, final_text.
LOOP AT tl_text INTO wal_text.
IF final_text IS INITIAL.
final_text = wal_text.
ELSE.
CONCATENATE final_text '-' wal_text
INTO final_text.
REPLACE '-' WITH ' ' INTO final_text.
ENDIF.
ENDLOOP.
STEP: 4.4 - move long text to work-area
<fs_download_field> = final_text.
ENDIF. "subrc
ELSE. "t_download_fieldname
READ TABLE t_outtab_fieldname
WITH KEY field = t_download_fieldname-field.
ASSIGN COMPONENT t_outtab_fieldname-field OF STRUCTURE
wa_outtab TO <fs_outtab_field>.
<fs_download_field> = <fs_outtab_field>.
ENDIF.
ENDLOOP.
STEP: 4.5 - Move data from work-area to dynamic internal table
APPEND <fs_download> TO <ft_download>.
CLEAR: <fs_download>.
ENDLOOP.
STEP: 5 - download
CALL FUNCTION 'DOWNLOAD'
EXPORTING
filename = 'C:\zshaven.xls'
filetype = 'DAT'
filetype_no_show = 'X'
filetype_no_change = 'X'
TABLES
data_tab = <ft_download>
fieldnames = t_download_fieldheading
EXCEPTIONS
invalid_filesize = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
customer_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF. -
How can i create a custom Audio Language name for video?
I have create a dvd with menu and vidoe (Audio 1 is sing a song , and Audio 2 is only music)
but i cant define" a audio name for andio that is mute,
my question is How can i create a custom Audio Language name for video?"
Anyone can help , thank you so much for reading !!Thanks Stan Jones,
Anyone can tell me a soluation and some better show up method to present that the user is changing a audio track in correct name ...
Or Encore can do a pop-up message to show the user's selection or not ?_? (i don't know) -
How can i create a adminstator's name and password
how can i create an adminstrator's password
You must have an administrator's account on the computer. You provide a password when the account is created. So, perhaps you could explain more what you want.
-
How can I load flash ads dynamically? ASP, but probably the same in PHP
I have a flash advert that will run on a website for one month. At the end of the month the advert will change to another flash advert. I am trying to achieve this by way of entering the name of the flash file into a database so my client doesn't have to hand code the change, but I am struggling to get the way I thought would work to actually work and would like some advice on how to do it.
The way I am doing it is to take the code created by DW's insert flash action, and I am then changing the path (in all four instances) from:
_dataimages/_rightbanner/test2/Untitled1.swf
to have it served dynamically like this:
_dataimages/_rightbanner/<%=(rs_bannerright.Fields.Item("fld_image") .Value)%>.swf
This isn't working though!
Are there any other ways I can achieve this? Is there any tutorials out there I can learn from?
I have tried server side includes too, but still no joy.
Any advice on what is going wrong for me, or any suggestions or examples on how to dynamically change from one flash file to totally different one would be really appreciated.
Thanks
Mat
[Moved to Dreamweaver Application Development forum by moderator]How can I create multiple versions of a video within the same project?
You can't. You make separate projects using the same or different clips, segments, transitions, titles, etc. You can even duplicate the first project and then modify/make the desired changes in the duplicated project. Each project can then be burned as a different DVD or as different titles on the same DVD if there is enough room. -
How can we create a Collective search help
Hi all sap experts,
How can we create a Collective search help on field OBJECT which allows to search tables
o ARCH_OBJ
o TOJTB (Search help: H_TOJTB)
on 2 tabs.
Thanks,
BasuHi
1) Elementary search helps describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help).
2) Collective search helps combine several elementary search helps. A collective search help thus can offer several alternative search paths.
3)An elementary search help defines the standard flow of an input help.
4) A collective search help combines several elementary search helps. The user can thus choose one of several alternative search paths with a collective search help.
5)A collective search help comprises several elementary search helps. It combines all the search paths that are meaningful for a field.
6)Both elementary search helps and other search helps can be included in a collective search help. If other collective search helps are contained in a collective search help, they are expanded to the level of the elementary search helps when the input help is called.
CREATION:
Go to SE11 Tcode
select search help
give the 'z' search help name and create
select the selection method ur table name eg : 'mara'
dialog module 'display value immediately'.
add the field whatever u want and lpos = 1 and spos = 1 and check import and export parameter.
where left position when displaying and spos = search position
and then save and activate ..
See the links:
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm
pls go through this for search help creation
http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
Search Help Exits:
Re: dynamic values for search help
Re: Dynamic search help
Reward points for useful Answers
Regards
Anji -
How can we create a Collective search help plz tell me with steps
How can we create a Collective search help plz tell me with steps
thanks,
basuHi
1) Elementary search helps describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help).
2) Collective search helps combine several elementary search helps. A collective search help thus can offer several alternative search paths.
3)An elementary search help defines the standard flow of an input help.
4) A collective search help combines several elementary search helps. The user can thus choose one of several alternative search paths with a collective search help.
5)A collective search help comprises several elementary search helps. It combines all the search paths that are meaningful for a field.
6)Both elementary search helps and other search helps can be included in a collective search help. If other collective search helps are contained in a collective search help, they are expanded to the level of the elementary search helps when the input help is called.
CREATION:
Go to SE11 Tcode
select search help
give the 'z' search help name and create
select the selection method ur table name eg : 'mara'
dialog module 'display value immediately'.
add the field whatever u want and lpos = 1 and spos = 1 and check import and export parameter.
where left position when displaying and spos = search position
and then save and activate ..
See the links:
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm
pls go through this for search help creation
http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
Search Help Exits:
Re: dynamic values for search help
Re: Dynamic search help
Reward points for useful Answers
Regards
Anji
Maybe you are looking for
-
How can I get my products to install with a slow internet download connection?
I keep trying to download but crash. I spoke with a support person that informed me my download times were slow (have a ti line) and install one product at a time, but I have crashed twice with photoshop and twice with illustrator, have only been suc
-
Someone please help!! Can't install logic pro 9 on my new macbook pro 2012
Hi guys, ive been scrolling the internet for days and actually can't find the solution to my next problem: I bought the new macbook pro 15" running mac osx 10.7.4. now i want to install logic 9 on this computer. Before this i've already been using lo
-
"AuSpeechSynthesis" audio unit plug-in update for GarageBand for Snow Leopard?
I cannot open GarageBand and use it without this plug-in updated or an alternative solution. I get this error message: "An error has occurred with an installed audio limit plug-in. GarageBand unexpectedly quit while trying to use the audio unit "AuSp
-
Is the hike is available for Nokia Asha 230? Plz tell me if you know......
-
Is it possible to recreate System.out after it's closed?
Hi, Can anyone tell me why the close() call on System.out prevents me from opening the standard out stream? import java.io.BufferedOutputStream; import java.io.FileDescriptor; import java.io.FileOutputStream; import java.io.PrintStream; public class