Help needed in setting Default Value of Concurrent program parameter
Hi All,
I have 3 parameters in a concurrent program
Org ID From
Org ID To
Currency Code
In the Currency Code parameter I want to use the following query in the Default Value
SELECT currency_code
FROM gl_sets_of_books sob, org_organization_definitions ood
WHERE ood.organization_id = :p_org_id_from
AND sob.set_of_books_id = ood.set_of_books_id
Now, at runtime this gives me an error of p_org_id.
Can anyone please advice me how can I use this parameter(p_org_id_from) in the above query.
Any help will be really appreciated.
Regards,
Shruti
Hi Helios,
Thaks a lot for the help.
I modified the query as follows:
SELECT currency_code
FROM gl_sets_of_books sob, org_organization_definitions ood
WHERE ood.organization_id = :$FLEX$.ORG_INTRANSIT
AND sob.set_of_books_id = ood.set_of_books_id
Here ORG_INTRANSIT is the valueset I am using in From Org ID and To Org ID.
Now the problem which I face is that when I use ORG_INTRANSIT valueset in both From Org as well as TO Org then the Currency is not defaulted, but if I use it in either From Org or To Org then the Currency is defaulted.
How can I resolve this. Please help.
Regards,
Shruti
Similar Messages
-
Need to set default values for the fields plant and location in ME21N
Hi All,
i need to set default values for the fields plant and location in ME21N tcode.
In accout assignment if we give 'A' then we need to create asset by clicking the Asset tab,there you have the fields plant and location.
How to resolve this?
Thanks in Advancehi .
i needed to set default strorage location and plant in personal setting in me21n.
i solve it with this way.
go to program SAPLMEPERS in se38.
create new function in output with the sample name :MODULE ZTEST_001 OUTPUT.
in this module write:
if MEPOITEM_PROP-WERKS is INITIAL and MEPOITEM_PROP-LGORT is INITIAL.
MEPOITEM_PROP-WERKS = '1000'.
MEPOITEM_PROP-LGORT = '0032'.
endif.
this is the solution.
best regards.
maryam -
How to set default values in dialog programming
hi gurus
can anyone suggest me
how to set default values in dialog programming
thanks®ards
kals.it's a bit dirty but I usually just place it in the PBO with a flag for control. It's simple and not too costly i think.
MODULE preRender OUTPUT.
DATA first_time TYPE flag VALUE 'X'.
IF first_time EQ 'X'.
* put your initialization code here
CLEAR first_time.
ENDIF.
ENDMODULE.
-MiR -
Need to set default value on Account Search
HI All,
In BSP BP_HEADSEARCH view MainSearch I need to default the value of the attribute 'RESP_AREA' to '01'. I can see the attribute on the value node SEARCH but when get the current context of SEARCH the entity is of a type CL_CRM_BOL_DQUERY_SERVICE and I am not sure how to set the default value.
Any help will be appreciated,
Regards,
TomHi Tom,
When it comes to setting values in a search entity you can not use the normal getter/setter methods because the context node class will be inherited from CL_BSP_WD_CONTEXT_NODE_ASP. In the context node class there will be few attributes (FIELD,MAX_HITS,OPERATOR,VALUE1,VALUE2) that corresponds to the fields diosplayed in the search criteria. The fields VALUE1 and VALUE2 represents the LOW and HIGH values.
To set default value for RESP_AREA you must redefine SET_VALUE1 method and read the ATTR_NAME. If ATTR_NAME is RESP_AREA then you can set the value.
Method SET_VALUE1.
* Get current criterion
data: criterion type ref to if_bol_bo_property_access.
if iterator is bound.
criterion = iterator->get_current( ).
else.
criterion = me->parameter_collection->get_current( ).
endif.
* Set its low value from user input
try.
data: lv_value type string.
lv_value =
me->convert_value_from_string( iv_string = value
iv_criterion = criterion ).
criterion->set_property( iv_attr_name = 'LOW'
iv_value = lv_value ). "#EC NOTEXT
cleanup.
* Keep buggy user input for correction
criterion->set_property( iv_attr_name = 'LOW'
iv_value = value ). "#EC NOTEXT
endtry.
* Set the default value for RESP_AREA
lv_attr_name = criterion->get_property_as_string( 'ATTR_NAME' ).
if lv_attr_name eq 'RESP_AREA'.
criterion->set_property( iv_attr_name = 'LOW' iv_value = ---- ).
Endif.
Regards,
Arun -
Need to set default value in table EABL.
Hi Experts,
How to set default value of field ATIM form 00:00 to 23:59 ion field selection screen for table EABL in transaction SE16?hi jazz try this way.
forget about every thing and come from beginning.
by now i think your are familiar with shd0.
firstly create a variant using shd0 for your table eabl with default value and save it and activate it.
next check whether it is working or not by opening se11 or 14 and enter table name and click display, the you can you see your default vale in your required field.
after it is done the come to second part i.e your se16.
now create another variant for this and save it and activate it.
(by this i mean to say you are creating two variants )
hope this will solve your problem.
if your purpose is not solved yet then please write to my mbox.
regards,
kool. -
How can I set default value to a transient parameter in the VO
I have created a transient parameter in the VO, which is type of boolean.
When I try to input the "true" or "True" or "Y" in the 'default value',
and then running the programm, but all failure.
so I don't know how can i do.
Genuinely waiting for you help, thanks in advance.Hi Sumury,
First of all you could check if this transient attribute is read only. to check this, edit the VO and select the transient attribute under the Attributes tab. Then verify if it is marked as "Updateable Always" on the right-hand section.
If it is updateable, then try setting the default value on the VO Implementation class: open the xxxVOImpl class, go to the transient attribute's setter (setxxx()) and change it to:
<code> if (getXXX() == null) setAttributeInternal(XXX, "Y");
else setAttributeInternal(XXX, value);</code>
This might work. If it does not, then please post the exact message you are receiving when running the app.
Hope this helps!
Thiago -
Help needed in setting form values
I have following fields in the form
Radio boxes - Grant and Deny
Text Area - User comments
Buttons - Submit Cancel
I want the user comments field 'Required' only when we select 'Deny' option
For Grant- it should not be required.
If we select Deny option and click on Submit, it should say - Missing Value in the required field - User Comments.
Please guide.I added a validation on Subit button as -
If user commets are null and deny is selected - give error message..
It worked. -
How to Set default value to dropdown list in oracle ADF
hi,
I need to set default value in the drop down list in oracle ADF.
If you take in HTML :
<select>
<option value="">Select Value </option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
Like this i need to set default value in drop down llist in oracle ADF.
Thanks and Regards,
M. Ramu.Hi Ramu,
Please be more clear on ur post whts ur Jdev version and wht type of dropdown u r using model driven or static list..?????
Its hard to help u without proper info..
Just have a look into this before u post a thread...
https://forums.oracle.com/forums/ann.jspa?annID=56
Regards,
Suganth.G -
Setting default values for item in opportunity mgmt(crmd_bus2000111)
Hi All,
I need to set default values for the field Fiscal Quarter in item level using BADI CRM_CUSTOMER_I_BADI .This Field is created using EEW. The default value is like if the date is nov-2007 the value for this fiscal period is FQ4-2007 .
Any clue would be great help..Why don't you try setting the default value in the List next to the Matrix - item 107
Item 107 is a matrix (a transposed one), I have no idea what list you mean... I am using item 107, not 112. Item 112 is used only to detect a click on the "Add Record" button, which is the last row of the matrix 112.
I don't see the gender column in the grid and I'm also unsure of the id you have for it "12" - are you sure it's correct ( i usually use Item("columnName") )?
Sorry for the confusion. "12" is the name of the standard column "Password" which we have renamed to store the gender.
Anton -
How to set default value to input field
Hi Experts,
I need to set default value to one input field for the transaction crmd_order as a screen variant. Guide me in doing that.
Regards,
HarishUsing the transaction SHD0, you can define the screen variant. While defining the sceen variant, you are allowed to define the default values.
Using screen variant, for the main transactoin, you can also define the transaction variant and you can use this as an independent transaction. -
Set Default value for transaction code F-36
Hi
I need to set default value to feild special G/L indicator in transaction code F-36 How can I do that. Please advice.
Regards
KesharikaJust in case anyone would need to know. You can change the default values for transactions by using SE93.
Regards, -
How to validate concurrent program parameter and display a custom message?
Hi Friends,
I have a concurrent program which has two non-mandatory parameters.
The requirement is that user should provide value for any one of the parameters.
If user does not enter value for both the parameters, i need to display a custom error message.
Parameter1 has an independent value set.
Parameter2 has character value set with validation type as special.
Process i tried so far:
In the value set for the second parameter, under the Validate event, i have written the following code:
FND PLSQL "declare
l_paramb VARCHAR2(20) := :!VALUE;
l_parama VARCHAR2(20) := :$FLEX$.MOT_CUSTMSGTST_A;
BEGIN
IF 1 = 1 THEN
fnd_message.set_name('FND','FND_GENERIC_MESSAGE');
fnd_message.set_token('MESSAGE','Please enter any of the ip1 or ip2');
fnd_message.raise_error;
END IF;
END;" I am not using those variables that are defined for the time being.
Now since the condition 1=1 is always satisfied, i should always receive the error message.
I am not receving any error message and i can go ahead and submit the program..
Please advise on where am i going wrong.
Reports Version - 6i
Oracle Apps Version - 11.5.10.2
Regards,
Sreekanth MunagalaHi srrekanth,,
I've similar issue , I need to display custom message for concurrent program parameter.Need to validate the parameter & display custom message .
Can you pl provide solution. -
Plsss help me: how to set default values in html:file and html:radio
Hai,
To set default value to text box i use the following code. It works well.
<html:text property="modifyserverdesc" value="<%= serverDesc%>" styleClass="text" size="38"/>But for file i use the code
<html:file styleClass="file" property="modifyserverimgfile" value="<%= serverImage%>" size="40"/>It doesn't display value. What is problem here?
how to set default selection in <html:radio>.No it won't help.
You can't set a value into an <input type="file"> control at all. The user has to put values in themselves.
The reason behind this is security. If the programmer could put any value they liked in there, you could upload any file at all from a users computer without their intervention. eg C:\windows\system32\passwords.txt
Bottom line: you can't put a default value into the input type="file" control.
And a good thing too ;-) -
How to set default values in initialization event for select option
Abapers,
I have 3 GL account like 0024831231,0024831238,0024831245.
Please help me how to set default values in select-options ( s_hkont ) in INTIALIZATION event
ThanksSelect option is table <Structure> with fields, low, high, sign & option
you need to append the value into the select option, with appropriate value in low or
example:
S_HKONT-low = <value>
S_HKONT-SIGN = 'I'
S_hkont-OPTION = 'EQ'
append s_hkont.
Default value for select-option also can be added directly in select-option statement.
Regards,
Mahesh -
Set default value for product type
I want to set default value in product type drop down box
in component PRD01QR.
view SearchHelp.
I tried with setter and getter , but not working
they are using query string.Hi,
You can achieve this by redefining the method GET_VH_PRODUCT_TYPE() in IMPL class of searchHelp view. Just copy paste the implementation of this method from super class and now control the internal table as per your requirement like
comment out the line APPEND INITIAL LINE TO lt_ddlb. (line no: 47)
as it will add an empty line at the starting of internal of product type values which you dont want. In you case there should be some default value for product type field, so arrange the inetrnal table values according to you requirement and what ever value you want to default for product type that should be the first value in the drop down without empty line and add an empty line at the end of the internal table.
No need to call super->GET_VH_PRODUCT_TYPE() in your implementation as you have written all the required code in your implemenation itself.
Hope this would help you!
Regards,
Ajay
Maybe you are looking for
-
Unit of measure changed in BOM not reflected in Production order
We noticed the following problem in one of our production order. 1. We have a bom component having a unit of measure MT. 2. A planned order already exists for this header material. 3. We changed the unit of masure in the same BOM component to KG. 4.
-
HT5318 Windows vista R6034 error/Error7 1114
how do I rectify the 2 error codes above ? on Windows Vista
-
My ipod touch it frozen in a apps mode and will not respond how do I correct this
my ipod touch is frozen on an app and will not respond to anything what can I do to correct this?
-
Making some rows non-editable in ALV grid
hi I am using reuse_alv _grid _display to display the output. I want to make some of the rows non-editable based on some conditions. please help.
-
Downloading Mountain Lion ... taking too long.
Currently downloading Mountain Lion. However it is taking an abnormally long time. Not the internet provider ... suggestions?