Populate a value into a field on a screen using userexit
Hi all,
I am using a standard program 'RIPLKO10' and a user exit include 'ZXAD2U04' to update a field to the screen. When i run the program the userexit gets triggerred, but i do not know how can i update the field value. Can anyone please tell me how can i achieve this.
Thanks,
Rajesh,
Hi,
Check if there is an export parameter, through which u can pass/update the field value and most of the exits will have a flag --> is_exit_active , pass 'X' to this field if available, so that the values do not get overwritten in the standard program.
Rgds,
Hema
Similar Messages
-
To populate values into single field in an internal table
Hi Friends,
How we need to populate values into single field in an internal table.
E.g itab consits of single field ( name)
i need to assign values to this field name .like
peter,
john,
abrahm,
daneyal
Pls tell me i how i need to code for this
Thanks ,
ParnithHi,
Please look at the below code :
DATA : BEGIN OF itab OCCURS 0 ,
name(20) TYPE c,
END OF itab.
START-OF-SELECTION.
itab-name = 'Peter'.
APPEND itab.
CLEAR itab.
itab-name = 'John'.
APPEND itab.
CLEAR itab.
itab-name = 'Abrahm'.
APPEND itab.
CLEAR itab.
itab-name = 'Daneyal'.
APPEND itab.
CLEAR itab.
LOOP AT itab.
WRITE : / itab.
ENDLOOP.
Thanks,
Sriram Ponna. -
Populate AWS_CHOICES values into LC workbench process route names
Hi All,
Sometimes we want to give your users a choice, which will affect the routes that are taken within the LiveCycle process. If we put a bit of text into the AWS_CHOICE text field, such as “Approve,Deny”, .you can see the screenshot .now my problem is i need to populate AWS_CHOICES values into LiveCycle workbench process route names .
I am following the suggestions given in the url http://www.avoka.com/blog/?cat=11 .
in the section Giving the user a choice
i was unable to find the checkbox that says “Populate Form with Routes when Assign task activity.
Any response will great appriciation.Hi ,
Thanks for the quick response.
i am using version Adobe LiveCycle Workbench ES2 Version: 9.0.0.0.20091021.2.223388 ,but i was not found for "Populate Form with Route Name" option for Assign task activity.
Please could you confirm which activity has the option "Populate Form with Route Name" .
Thanks
Anjaneyulu. -
Populate f4 values of a field based on value of other field
Hi,
I have created select options using WDR_SELECT_OPTIONS.For one of the fields ,f4 values should be based on value of another field in the screen.
How will i achceive this requirement.
I got a link about the same but that is not using WDR_SELECT_OPTIONS
http://www.sdn.sap.com/irj/scn/logon?redirect=/irj/scn/wiki?path=/display/WDABAP/Using%20Search%20help%20attachments%20for%20WebDynpro%20ABAP
I got another link
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/606288d6-04c6-2c10-b5ae-a240304c88ea?quicklink=index&overridelayout=true
which I am going to try
Thanks
Bala Duvvuri
Edited by: Bala Duvvuri on Jun 22, 2011 6:49 AMHi,
Using OVS you can achieve this., In OVS Event Handler read the value based on which you want to display F4 for other field and populate the values based on the first field.
this link is fine., go through this: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/606288d6-04c6-2c10-b5ae-a240304c88ea?quicklink=index&overridelayout=true
hope this helps u.,
Thanks & Regards,
Kiran -
How to put the SQL-statement returned value into the field (as a default)
Hi,
I am using Developer/2000 (Forms Designer) under windows 98.
Please tell me how to put the SQL-statement value (as a default value) into the field before enter-query mode. Noted that I have tried the following ways but still some problems:-
1) Place the SQL-statement into PRE_QUERY trigger in the form/block level.
There is a message box which ask 'Do you want to save the changes?'.
2) Place the SQL-statement before execute enter_query. There is still a
message box which ask 'Do you want to save the changes?'.
Any hints? Thanks. Urgent.solved it!
1) Suppress DEFAULT save message
if form_failure then
raise form_trigger_failure;
end if;
2) Place the default value before enter-query.
Ref: Title='Default value in query field in ENTER_QUERY mode' in designer forum by CVZ
form level trigger
============
WHEN-NEW-ITEM-INSTANCE
=======================
if :system.mode = 'ENTER-QUERY' then
:block.item := 'default waarde';
end if;
3) Suppress the changes whenever leaving the default field.
if :block.item is null then
-- assign statement
end if; -
Multiple Checkbox Values Into One Field
Hopefully someone can help me with this issue I'm having.
I'm trying to save the values of multiple selected checkboxes into one field separated by commas through ADDT's Insert Transaction code. I can do this easily with DW's standard insert record wizard by using the PHP implode() function but I haven't been able to figure it out with ADDT's code.
<form>
<input type="checkbox" value="1" name="program[]" /> Program One
<input type="checkbox" value="2" name="program[]" /> Program Two
<input type="checkbox" value="3" name="program[]" /> Program Three
<input type="checkbox" value="4" name="program[]" /> Program Four
</form>
THIS IS ADDT'S CODING
$ins_quoteManager->addColumn("programs", "STRING_TYPE", "POST", "programs");
THIS WORKS VIA DREAMWEAVER'S INSERT RECORD WIZARD
Original: GetSQLValueString($_POST['programs'], "text"),
Modified: GetSQLValueString(implode(',',$_POST['programs']), "text"),
Anyone know how to modify the ADDT code with the implode function to get this to work?Have you tried ADDT´s "comma-separated checkboxes" form control, which will also store the values into a field of your choice (and of course retrieve them from there on update record - pages) ? The only possible drawback might be, that the checkboxes can´t be defined statically, means that the array of value/label - pairs will be retrieved from another table by establishing an additional recordset.
Cheers,
Günter -
Change the value of the field on the screen
Hello All,
I want to change the value of another field on the screen when the user selects the value for a particular field.
For eg: If i select ship-to-party value on the screen by F4 based on that the sales office and sales group values should change on the screen.
I am modifying the internal table that has these values, but its not showing the new values on the screen.
Please let me know how to resolve this issue.
Points gauranteed.....
Thank You,
Sureshhi
use at selection-screen on help request for field1
OR on value request for field1.
Use selection screen events.
AT SELECTION-SCREEN OUTPUT
AT SELECTION-SCREEN ON sel_opt1.
AT SELECTION-SCREEN ON test1.
AT SELECTION-SCREEN ON END OF sel_opt1.
AT SELECTION-SCREEN ON HELP-REQUEST FOR sel_opt1-low.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR test2.
AT SELECTION-SCREEN ON BLOCK block1
AT SELECTION-SCREEN ON RADIOBUTTON GROUP rad1.
Regards,
Prasanth
*Reward points if helpful -
1st. Gen iPad question: the touch keyboard does not appear when attempting to input data into data fields - this happens while using all apps, ex. Notes, Google, Pages, etc.. The cursor prompt is present. Tapping screen just brings up the option to: "Select Select All Paste." I have rebbooted with no change.
Message was edited by: Jimfromutah
The problem was my connected bluetooth keyboard.1st. Gen iPad question: the touch keyboard does not appear when attempting to input data into data fields - this happens while using all apps, ex. Notes, Google, Pages, etc.. The cursor prompt is present. Tapping screen just brings up the option to: "Select Select All Paste." I have rebbooted with no change.
Message was edited by: Jimfromutah
The problem was my connected bluetooth keyboard. -
How to hide input fields on selection screen using variant attribute
Hello all,
I want to know how to hide input fields on selection screen using variant attribute conpletely.
As you know, when setting the attribute of variant "Hide field" checked, the field is temporarily hidden, but when clicking "All Selections(F7)" button on the selection screen, the fileds become appeared.
I want to hide the field completely. Di you know how to do ?
Thank you for your support.
Regards,
Hideki KozaiUse this attribute hide field and save the variant. Then create transaction for this program setting default variant for parameter Start with variant . The user who runs it will have it by defualt set.
Otherwise
in PBO simply use LOOP at screen and output = 0 for this field. This will ensure that field is invisible in any case.
Regards
Marcin -
How to populate values into a Listbox on selection screen
Hi All,
Please any one let me know how to populate values (for ex.01,02 and 03) in a list box of selection screen..
Thanks,
VijayTry this code ...
REPORT ZLISTBOX.
TYPE-POOLS: VRM.
TABLES SPFLI.
TABLES SSCRFIELDS.
DATA flag.
DATA: NAME TYPE VRM_ID,
LIST TYPE VRM_VALUES,
VALUE LIKE LINE OF LIST.
PARAMETERS PS_PARM LIKE SPFLI-CARRID AS LISTBOX VISIBLE LENGTH 5
USER-COMMAND fcodex.
data: i_spfli type spfli occurs 0 with header line.
PARAMETERS PQ_PARAM LIKE SPFLI-connid AS LISTBOX VISIBLE LENGTH 15
USER-COMMAND
fcodey.
*DS AS CHECKBOX USER-COMMAND FLAG.
INITIALIZATION.
NAME = 'PS_PARM'.
DATA T TYPE I VALUE 0.
SELECT DISTINCT carrid into corresponding fields of table i_spfli FROM
SPFLI.
loop at i_spfli.
VALUE-KEY = i_spfli-CARRID.
VALUE-TEXT = i_spfli-CARRID.
APPEND VALUE TO LIST.
endloop.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = NAME
VALUES = LIST.
AT SELECTION-SCREEN.
if sy-ucomm eq 'FCODEX'.
REFRESH LIST.
CLEAR LIST.
PQ_PARAM = ' '.
NAME = 'PQ_PARAM'.
SELECT * FROM SPFLI WHERE CARRID = PS_PARM.
VALUE-KEY = SPFLI-connid.
VALUE-TEXT = SPFLI-connid.
APPEND VALUE TO LIST.
ENDSELECT.
endif.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SY-UCOMM NE 'FCODEX' OR SY-UCOMM NE 'FCODEY'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = NAME
VALUES = LIST.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
START-OF-SELECTION.
clear i_spfli.
refresh i_spfli.
select * into table i_spfli from spfli where carrid = ps_parm and connid
= pq_param.
loop at i_spfli.
WRITE: / 'CITY FROM:', I_SPFLI-CITYFROM, 'CITY TO :',I_SPFLI-CITYTO,
'DEPARTURE TIME :', I_SPFLI-DEPTIME.
ENDLOOP. -
Populate current date into date field?
I've been working on trying to get a date field to populate the current date if the user enters ' / ' into the field. So far I have been able to replace ' / ' with a value but I am not able to populate the current date. I have tried several suggests that on who to populate current date but have not been able to get my code functioning.
I have place the below code on the exit even of the date field which runs correctly but when I try to add in the date it breaks. Any one have a suggestion?
if (this.rawValue == "/")
this.rawValue = 1
ThanksI have to agree with Radzmar that the workflow is quite odd. That character is a bit unique; however there are 2 ways you can get this to work. One is just to use the code snippet (below) on the Exit event of the text field where the "/" is located or you could use the Action Builder. The Action Builder is a bit easier to understand if your coding knowledge is a bit lacking like myself. Just go to the toolbar at the top, select tools then Action Builder. Each action has a condition and a result. In the condition section select the field which is going to contain the "/", make sure it is set to "is" and then in the box put /. From the result box, select "set the value of a field", select the date field that you wish to have today's date and then it make sure it says "to today's date". Then whenever someone puts "/" into the text field, the date field will populate today's date automatically.
if (this.resolveNode("$").rawValue == "/") {
this.resolveNode("DateTimeField1").rawValue = util.printd("yyyy-mm-dd", new Date()); -
How do I insert multiple values into different fields in a stored procedure
I am writing a Stored Procedure where I select data from various queries, insert the results into a variable and then I insert the variables into final target table. This works fine when the queries return only one row. However I have some queries that return multiple rows and I am trying to insert them into different fields in the target table. My query is like
SELECT DESCRIPTION, SUM(AMOUNT)
INTO v_description, v_amount
FROM SOURCE_TABLE
GROUP BY DESCRIPTION;
This returns values like
Value A , 100
Value B, 200
Value C, 300
The Target Table has fields for each of the above types e.g.
VALUE_A, VALUE_B, VALUE_C
I am inserting the data from a query like
INSERT INTO TARGET_TABLE (VALUE_A, VALUE_B, VALUE_C)
VALUES (...)
How do I split out the values returned by the first query to insert into the Insert Statement? Or do I need to split the data in the statement that inserts into the variables?
Thanks
GB"Some of the amounts returned are negative so the MAX in the select statement returns 0 instead of the negative value. If I use MIN instead of MAX it returns the correct negative value. However I might not know when the amount is going to be positive or negative. Do you have any suggestions on how I can resolve this?"
Perhaps something like this could be done in combination with the pivot queries above, although it seems cumbersome.
SQL> with data as (
2 select 0 a, 0 b, 0 c from dual -- So column a has values {0, 1, 4},
3 union select 1 a, 2 b, -3 c from dual -- column b has values {0, 2, 5},
4 union select 4 a, 5 b, -6 c from dual ) -- column c has values {0, -3, -6}.
5 --
6 select ( case when max.a > 0 then max.a else min.a end) abs_max_a
7 , ( case when max.b > 0 then max.b else min.b end) abs_max_b
8 , ( case when max.c > 0 then max.c else min.c end) abs_max_c
9 from ( select ( select max(a) from data ) a
10 , ( select max(b) from data ) b
11 , ( select max(c) from data ) c
12 from dual ) max
13 , ( select ( select min(a) from data ) a
14 , ( select min(b) from data ) b
15 , ( select min(c) from data ) c
16 from dual ) min
17 /
ABS_MAX_A ABS_MAX_B ABS_MAX_C
4 5 -6
SQL> -
Need to populate sequence value in a field after insert in oaf page
Hi All,
I have a custom OAF insert page in that i need to populate a sequence value to a field once the data inserted successfully to the table.
so for that i followed the below approach.
1>Created a sequence in database.
2>In the EOImpl java file in the setter method for the respective field have written below code.
public void setContainid(Number value) {
if (value == null) {
OADBTransaction t = getOADBTransaction();
value = t.getSequenceValue("XXXXX_CONTAIN_SEQ");
setAttributeInternal(CONTAINID,value);
But still i am not able to populate the sequence value for the field in my oaf page,please help me out on thsi.
ThanksHi,
Write this logic in create method of EOImpl:
public void create(AttributeList attributeList)
super.create(attributeList);
OADBTransaction transaction = getOADBTransaction();
Number contID = transaction.getSequenceValue("XXXXX_CONTAIN_SEQ");
setContainId(contID);
--Sushant -
Authorisation - Pasting of values into AUTH fields
Hi Friends,
I am working on 4.6c version - Authorisation under PFCG (Role maintenance). Is it possible to paste >8 values into the AUTH fields of an authorisation object in a single shot?
If so, kindly share the solution.
Regards,
Vijay>
vj vijay wrote:
> Hi Friends,
>
> I am working on 4.6c version - Authorisation under PFCG (Role maintenance). Is it possible to paste >8 values into the AUTH fields of an authorisation object in a single shot?
>
> If so, kindly share the solution.
>
>
> Regards,
> Vijay
Hey Vijay,
you sound like a man on the mission - want everytihng done in a SINGLE SHOT
I am not sure if i understand your requirement correctly, but my infernce is that you want to copy data from clipboard to the object values with little / no effort........(prime criteria )
Well, have the values listed one below the other in a notepad, copy them ctrl+C and in SAP have the quick cut and paste option active.
Now go to the object values and right click - you will have 7 rows of data copied, if you want more - repeat the exercise
If you want to reach the moon, you have to pass-by some stars as well (Dumb and in-appropriate quote - I KNOW)
If my understanding of the discussion is wrong - Blame it on the Monday morning Blues...............and have fun -
How do I auto populate the date into text fields when form is first opened?
Hello,
I read all about the changing the scripts but its not really working for me. I was hoping someone could help me with directions on how to auto populate the date into designated text fields when my adobe document is first opened?
I am working in Adobe Acrobat 9.
Thank you,
SheriWhen you add a new document JavaScript (Advanced > Document Processing > Document JavaScripts > Script Name (enter something) > Add), you will be given a function skeleton by default. Just delete it and enter the line of code I showed above. Now, whenever the document is opened, the code will get triggered and the field will be updated with the current date. There is no "Document Open" action (at least that's accessible via Acrobat's UI), but this is effectively the same thing since any document-level JavaScripts are executed when the document is opened.
Maybe you are looking for
-
Office 2013 templates Group Policies
There is a GPO related to Enterprise template locations in Office 2013 that is not clear at all and poorly documented. The path to the GPO is: MS Office 2013 > Shared Paths > Enterprise templates path What is the purpose and how this path can be use
-
Updated link no longer connects to PC through wifi
Just update BB Link and now, though my Z10 shows my computer, it can't "see" any files. Worked perfectly before. Any wisdom? Thanks Solved! Go to Solution.
-
System.out.println and Network Adapter problem
Hello, I am encountering a 2 strange problems. I have 2 oracle application server instances, one dev and one production. The first problem is when I type System.out.println in the JSP's i am able to see the output in both \opmn\logs\oc4jinstance. But
-
Make an update statement from a proc
That is, how is possible to call an update statement from within a procedure? I have tried execute update TT_Livraison set ... without success. Any idea?
-
Downgrading BI7.0 Queries to BW3.5
Hi Experts, I have created some queries in BI7.0 query designer and now my client wants me recreate those in Bw3.5 version due to some technical compatibility issue. So, can anybody let me know is there any program/FM/method to d