Substitution Variable for Field Name - Use in LOV Defintion
Hi,
I need to build an application with a lrage number of fields based on an LOV (Select List). All the LOVs will be sourced from a single table:
LOOKUP_TYPE VARCHAR2(30)
LOOKUP_CODE VARCHAR2(30)
MEANING VARCHAR2(100)
Each field will therefore need a simple LOV of:
select lookup_code, meaning
from
app_lookups
where
lookup_type = 'LOOKUP_TYPE_NAME'
order by 2Not complicated but it will take a long time due to the number of fields (across many pages).
I would like to be able to have the same code for all fields. Something like:
select lookup_code, meaning
from
app_lookups
where
lookup_type = V('THIS_FIELDS_NAME')
order by 2With this code I could simply copy fields around and rename them - the LOVs would automatiically select the right values by using the Field Name to find the correct codes.
A long shot - but worth asking.
Any thoughts?
Thanks,
Martin
Hi Andy,
Yes I know about Shared Component LOVs but this does not address my issue. I am also not restricting based on a page item value. I just want to restrict dynamically based on the field name.
On a page I will have at least 30 items, each with their own LOV. I can define an LOV for each item (either directly or though shared components) but each needs to be individually coded (where lookup_type = 'XXXX' with XXXX being different for every field).
If possible I would like to dynamically use the field name to select the group of lookup codes that I want - all fields could then have the same code (or potentially the same Shared Component LOV).
Not a major issue, but it would make my life a lot easier!!
Martin
Similar Messages
-
Variables for Field Names.
This may be a silly one for ya but I am having a brain fart
now.
I am doing a dynamic form where the form questions are
created fro a database.
The different field names are dynamic variables generated via
itererations (++) from the database table.
The problem is that when I submit the form I need the field
names as the insert or update value to populate the values
statement in the query. I am having a problem locking down the
actual values to use for the insert or update statement.
I will need to use a loop to iterate through the variables.
Look at the code form the form.
Thanks in advance.
GeneToo much code for me to analyze.
But see if any of these development tricks lead the way for
you.
On your action page:
<cfdump var="#form#>
<cfoutput>
<cfloop collection="#form#" item="field">
#field# = #form[field]#<br>
</cfloop>
<cfoutput>
<cfoutput>
#form.fieldNames#<br>
<cfloop list="#form.fieldNames#" index="field">
#field# = #form[field]#<br>
</cfloop>
<cfoutput> -
How to setup substitution variable for CurrYr?
I am trying to setup substitution variable for Curryr. Can anyone provide steps to setup substitution variable?
ThanksAlso look Re: Update variables at this recent thread. JohnGoodwin highlights a good way to get this automated using a batch file
-
LSMW error: Field name '' used more than once in file"
Hi,
I am doing a sample vendor master load with LSMW but while reading data I am getting an error
"Field name '' used more than once in file
'C:\Users\sdurgia\Desktop\LSMW\MM\vendor_master_te
s'."
Not getting proper reason.Can you please guide?
Urgent please help.
BR
SumeetHi,
FYI.
LIFNR
BUKRS
EKORG
KTOKK
NAME1
NAME2
SORT1
SORT2
STREET
HOUSE_NUM1
STR_SUPPL1
STR_SUPPL2
CITY2
CITY1
REGION
POST_CODE1
LAND1
TAXJURCODE
PFACH
PSTL2
REMARK
TEL_NUMBER
TEL_EXTENS
MOB_NUMBER
FAX_NUMBER
FAX_EXTENS
SMTP_ADDR
DEFLT_COMM
KUNNR
VBUND
KONZS
BEGRU
STCD1
STCD2
STCD3
STCD4
SCACD
SFRGR
DLGRP
BANKS
BANKL
BANKN
KOINH
BKONT
LNRZA
XZEMP
AKONT
ZUAWA
FDGRV
BEGRU1
QSSKZ
QSZNR
QSZDT
ALKTN
ZTERM
TOGRU
REPRF
KULTG
ZWELS
ZAHLS
LNRZB
HBKID
TOGRR
EIKTO
WAERS
ZTERM1
INCO1
INCO2
EIKTO1
WEBRE
XERSY
XERSR
VSBED
NAMEK
J_1IPANO
QLAND
LFBW-QSREC
XVERR
FYTYP
STCDT
BKREF
4000048674
2550
M004
DHL EXPRESS (USA) INC
PAY
4000069273
PO BOX 4723
HOUSTON
TX
US
77210-4723
CONTAC: IRMA MURILLO
800-225-5345
281-874-0678
[email protected]
94-3380425
US
11000536
999999
ACCOUNT HOLDER
221300
1
AP VEND
Z011
X
T
B
USD
Z011 -
Hi all ,
While i am trying to run initdelta i am getting error message "init select for field name Currently running in request REQ_jijhoieoililh" how to resolve.
i am unable to fill setup tables for plant maintinence datasource 2li_17_I3HDR i am not finding option in SBIW.
Also i am getting Error "No Successful initialisation of the delta update took place " how to do that i did in
infopackage but but still getting this error.
thanks in advance--Hello Srinivas,
in the transaction LBWE, in the plant maintainance applcation, in the update column for MC17I30HDR, make it active.
then proceed with filling the setup tables.
also
take a look Roberto's weblog
/people/sap.user72/blog/2004/12/16/logistic-cockpit-delta-mechanism--episode-one-v3-update-the-145serializer146
/people/sap.user72/blog/2004/12/23/logistic-cockpit-delta-mechanism--episode-two-v3-update-when-some-problems-can-occur
/people/sap.user72/blog/2005/01/19/logistic-cockpit-delta-mechanism--episode-three-the-new-update-methods
/people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it
/people/sap.user72/blog/2005/04/19/logistic-cockpit-a-new-deal-overshadowed-by-the-old-fashioned-lis
Hope this helps..
thanks, -
hi guru's
is there any way to check the table if i am having the data elements.
i am having some data elements or field name, i just wanted to know, what are all the table which are using this fields.
se16 is for checking the table, but i want to check the data element or field names.
ex: i wanted to know what are all the tables is using the BUDAT fields.Hi,
Table <b>DD03L</b> can be used to find out all the tables which are using a particular field.
Regards,
Amit
*Always reward points for helpful answers -
&& Substitution Variable in Package Body using SQL Developer
Hi Folks,
I've moved over to working to in SQL Developer (its a very early version - 1.0.0) from a combination of SQL*Plus command line and a text editor. I'm trying to get this upgrgraded, but I think the question will be the same with a newer version anyway.
I am creating a package, and in the package body I have some &&my_var substitutions that I was previoulsy prompted for when calling the .sql from the command line SQL*Plus. I need this as the variable needs to be different for the development and live environment.
When working in SQL Developer, I can load the package body from Connection->Packages->My Package->My Package Body, and click the edit button to edit the code, however, when I click the Compile button in the top of the window my code error's because of the substituion variablle. An example is:
CREATE OR REPLACE
PACKAGE BODY MY_PACKAGE AS
PROCEDURE MY_PROCEDURE
BEGIN
my_variable := &&my_function_from_live_or_dev_database
END MY_PROCEDURE
Can anyone tell me if there is a way of defining a compiler variable within the IDE widow while editing a package body stored in the database, without manually copying the code into the Worksheet and running it as a script?
Thanks,
AM953104 wrote:
Thanks for the reply, the code was just quickly typed to show the sort of thing I am doing, it wasn't actual code form my project.
I've come from a C background so what I would have done would be create a #define and changed to when on live or development - or passed the variable to the build environment from the IDE or makefiles and the change would have reflected through my whole project.
What I want to be able to do is alter a definition of some sort that will reflect throughout my whole project, so I can change it in one location to minimize code changes before going live. I don't really want to be prompted at all. On one system it needs to be DEV_10 and on the other it needs to be LIVE_10.Is there a possibility to elimiante this difference at all?
For example if DEV_10 is the oracle schemauser on the development database and LIVE_10 would be the one on the production system. THen you could just remove all references to the schema from your code.
IF you are already connected to this schema, then you don't need to specify the schema name anymore.
example
instead of
create or replace package dev_10.myPackage
...you can simply use
create or replace package myPackage
...If needed you can alter the cuurently connected user just before you run the script.
alter session set current_schema = LIVE10;
create or replace package myPackage
...This would be a different working window in the developer (script worksheet, instead of direct pl/sql editor).
Substitution variables are allowed there. -
Add PROPERTY to Fields for "Field Name"
I want to have each field with a unique name when it arrives in the Responses report. Then, when I export to csv or Excel, I can manage the data knowing each column has a well-formatted and unique name. This is unique from the field's "text".
I read a response from Randy that one can double-click on the title cell in the responses page, and type in a new name there, which becomes essentially the field name. This does not replace the field's text.
However with more than 200 fields in my form, this would be a tedious process. Also, naming fields should be part of the form design process, not in the responses side.
I recommend that the field definition pop-up, when designing a form, should include in the field's properties a FIELD_NAME. The help should make clear the character set allowed in field names (or perhaps this could be part of the user's options, such as prohibiting backslash, etc.)
Thank you for a growing tool!Hi,
Thanks for the feedback. You should post this feature idea to the Ideas section:
http://forums.adobe.com/community/formscentral?view=idea
We use the Ideas section to help prioritize our work.
Regards,
Brian -
Creating a range with Substitution Variables for Report Script
Is it possible to create a range with substituion varables for use in a report script. For example instead of listing "Jan" "Feb" "Mar" "Apr" in the report script can I use a sub varaible like Jan:Apr that will list them all out?
while I have not had luck with ranges in report scripts, others have. You could have a substitution variable the is "Jun" "Jul " "Aug" or whatever you want the members to be. and it will replace jusr fine
-
How to use substitution variables in Microsoft Word using Hyperion Smart view
Can we use Substitution Variables in copy data points and refresh in Microsoft Word? I tried it and it does not work dynamically (copy data points only copies what was in excel cell at that point). It only copies the static value of that variable from that cell. I want to use it dynamically in Word so that if I change the value of that variable in Essbase, it is updated in Word upon refresh. Any idea??
We need this feature for reporting in microsoft word and keep using the data points every year (instead of copying the cells from excel over again)
Any help/suggestion is appreciated.
Thanksyou can't use substitution variables with copy data points. I had tried a while ago (post 111.1.2.1.102) and it wouldn't work. I checked with Oracle development and they said it I not available
-
Substitution variable for multiple months
Ideally, i would like to have a calc script with a substitution variable FIX(&Month) which points to specified months. I have tried setting the value for my substitution variable in different ways
1.
Variable = Month
Value = "January""February"
2.
Variable = Month
Value = "January","February"
However, the script seems to be failing to pick up the second month as it returns no values for February. If i specify the months in the calc script, it works just fine. This suggests to me i'm getting the syntax wrong for the substitution variable.
Any ideas?There is nothing strange it can behave. It will work.
I am using this in production for years to genarate comma seperated scenario list with out any issues.
What a substitution variable will do?
It will store a string as a value for the variable and resolve at the time of calc. if the value is a valid member set it will work.
I believe issue is not because of that.
However, the script seems to be failing to pick up the second month as it returns no values for FebruaryIs it throwing any error in syntax check or in executing. Answer is No from the above statement. But you are not seeing the expected results in the calc.
first check the application log whether the calc is happening for both jan and feb.
Then why the calc is not as of expected for feb. -
System variable for Warehouse name in Pick list PLD
Hi Experts,
My customer would like to show the Warehouse name on the Pick List print layout.
What is the System Variable to display the Warehouse name on the Pick List?. Iu2019m working with Sap Business One 2007A.. Where can I find the system variables for Chile localization. Thanks Very Much
ClaudiaHi Claudio,
Try this,
->> Open the Pick List(System) PLD and Save as the New PLD.
->> Open the NEw PLD and Create 1 Database Field(for WareHouse Name) in Repetetive Area.
Table -> OWHS - WareHouse
Column -> WhsName - WareHouse Name
Save as and Run the Print Preview.
IF will not print the WareHouse Name in Print.
Do this in PLD.
->> Open your PLD.
--> Ralate to WareHouse Code Field ID in WareHouse Name Field at Content Tab on Properties Window.
Regards,
Madhan. -
Hi,
I am trying to make a flexible script to get the Service Account Name from several servers.
I am using "servername.master.dbo.xp_instance_regread.......", but I want to use a variable for the servername.
So I started doing this:
Declare @servername varchar(100)
Declare @SQL varchar(1000)
Declare @agtServAccName varchar(250)
set @servername = 'Server1'
set @sql = @servername + '.master.dbo.xp_instance_regread
N''HKEY_LOCAL_MACHINE'',
N""SYSTEM\CurrentControlSet\Services\SQLSERVERAGENT'',
N''ObjectName'',
@AgtServAccName Output,
N''no_output'''
Execute (@SQL)
How am I able to get a flexible script (@sql), which gives me the Service Account Name of the server called @servername after I execute this script (@sql)
If there is another way without this regread, I like to hear that too ofcourse...
EDIT: the reason I use a variable for the servicename is, that I am running it on a central management server and not on the server with this servername itself.This did the trick. Now I can loop through all my centrally managed servers and obtain the Service Account Names.
Thanks for the help. There's probably a better way to do it (sp_executesql?) , but at least I got something.
Declare @ServerName varchar(50)
Declare @SQL as varchar(500)
If object_id('tempdb..#ServAccName') is not null
drop table #ServAccName;
create table #ServAccName (ServAccName varchar(50))
set @ServerName = 'Server1'
set @SQL = '
declare @ServAccName varchar(50)
execute ' + @ServerName + '.master.dbo.xp_instance_regread
HKEY_LOCAL_MACHINE,
''SYSTEM\CurrentControlSet\Services\MSSQLServer'',
ObjectName,
@ServAccName OUTPUT
Insert #ServAccName Select @ServAccName
Exec (@SQL)
Select ServAccName from #ServAccName -
Which table stored description for field name
hi,
for example,
field name is LIFNR , description (vendor number),
which table stored this description (vendor number) for that field name(LIFNR) ?1. From table DD03L, give your tablename and get all of its field names and corresponding data element names.
2. From table DD03T, get the description of each data element you have got in step 1.
3. Then Use Function Module DDIF_FIELDINFO_GET
DD02L : ALL SAP TABLE NAMES
DD02T : DESCRIPTION OF TABLE NAMES
DD03L : FIELDS IN A TABLE.
Check the below link for more information.
http://www.sap-img.com/abap/how-to-get-the-field-descriptions-of-a-table.htm
Thanks,
Balaji -
Steps to create substitution rule for field BSEG-RECID
MIRO generates FI document. FI document has BSEG-RECID field. I need to apply substitution for BSEG-RECID depending on the value of the RSEG-GEBER field in MIRO. The substitution must be activated only if account to be booked is PL account in FI and derived MM document based on ZNPP PO type.
Field values are as follows:
RSEG-GEBER BSEG-RECID
No value No value
N N
D D
A A
Could anyone please let me know the steps to create the above substitution rule for the FI document
Thank YouHi,
You can do it as below:
Prerequisite : Select the document type for which you want check, here you have to select the BKPF-BLART = " " (Give the document type for the MIRO)
Substitution: Use the User exit with the logic as you said.
If you want you can use the user exit in both PREREQ & SUBSTITUTION. It will be applicable in your case
VVR
Maybe you are looking for
-
I installed safari 8.0.1 and now my mac is really really slow and will not open some pages. Can I uninstall?
-
Error while loading service JCo RFC Provider
When I click on the "JCo RFC Provider" node under services in Visual administrator, I get an error: "Error while loading service JCo RFC Provider" Does anyone know what has gone wrong here, and how I go about fixing it? Thanks in advance Regards Rich
-
Mavericks: Killer of Networked Printing
I'm a veteran user of PC/Windows after 2y owning a MBP I'm still amazed at how much stuff just is bizarre in the OSX world that worked flawlessly in the Windows world, at least since Win 7 especially. Very difficult to do the most common tasks used
-
Help with new Mac Mini dock not responding!
Good day to you all. I took delivery of a shiny new Mac Mini on Friday and not having too many problems.....ish The main problem is the dock not magnifying, it is set too, and having to click icons in the dock twice. All was working fine when I switc
-
Reproducible Long Standing Glitch (Actions or Color Engine?)
I have a way to reproduce a serious Photoshop problem: Quite a long time ago I created a simple little action that allows me to create a new document and paste in the contents of the clipboard in one easy motion. I assigned a function key to it so i