Updating attributes of screen table
Hi Experts,
Is there any function module which can update the attributes of a screen like
SCREEN-INPUT = 0.
SCREEN-OUTPUT = 1
in a PAI event. I just want a FM that is similar to DYNP_VALUES_UPDATE or DYNP_UPDATE_FIELDS. Instead of values the attributes should get updated in PAI without PBO being triggered.
TIA.
you can use a validation kind of thing for the value entered by f4.
use the appropriate even to place this psuedo code..
if pa_field = 'Value1'.
loop at screen assigning <fs_screen>.
active == )&*()
inactive == (P()_
endloop.
elseif pa_field = 'Value2'.
loop at screen assigning <fs_screen>.
active == )&*()
inactive == (P()_
endloop.
endif.
Similar Messages
-
Is it possible to update attributes in all tables in a multi entity view
Hi I have a view based on 4 entities, all of which are a 3 of which are 1 to many relationship with the 4th. The 3 additional entities have 2 or 3 attributes, Id, name, and one entity has a foreign key relating to a different table which I do not care about. The IDs are all updatable in the entity, and none of them are generated from a sequence but are inserted manually, except for the 4th (Master?) which is generated from a sequence.
I create the view and all the entities are updatable, but in the view when I go to attributes from the other tables, it says updatable never and is grayed out so I cannot change it, even though in the entities tab, it is updatable always.
So I was wondering if this was possible to do???I do not understand really, if it is 2 different tables, it is 2 different primary keys. Why would this even happen? What does it matter if EmployeeID and DepartmentID is both 1??? It just seems that there has to be a simpler way to do this but ok.
So I go to the AppModule, Java tab and go generate Java class. The original code was
public ViewObjectImpl getObjektiCRUDView1()
return (ViewObjectImpl)findViewObject("ObjektiCRUDView1");
I then copy your code to the best of my limited knowledge and get this
public ViewObjectImpl getObjektiCRUDView1()
this.getObjektiCRUDView1().executeEmptyRowSet();
{Row yourRow = this.getObjektiCRUDView1().createRow();
this.getObjektiCRUDView1().insertRow(yourRow );
return (ViewObjectImpl)findViewObject("ObjektiCRUDView1");
On the first row the getObjektiCRUDView1() is underlined and it says missing method body or declare as abstract.
I know I did something wrong here but I have no idea what as I am not very good with Java
Also it is not a jsf page, I create a single jspx page and divided it using the panel splitter so on one side we have an adf table for updating the Objekti database table, and on the other side I have an adf form for updating the Positions table (and later on other tables, I hope to have many forms there)
Edited by: Dino2dy on Jun 10, 2010 12:02 AM -
How can I directly update a SAP screen table control with values?
I have a need to update a table control on a standard SAP screen with values. Here's the scenario: The user will come into a standard SAP transaction (IQS2-change notification) and click on an action button which calls a function module. That function module will determine what needs to be added to the SAP screen table control (add additional task rows). When the function module returns with the row data to be added to table control, I would like to set those values as if the user input directly. The table control is located on it's separate tab (TASKS) in the transaction. I cannot find any user exists or BADI's for this transaction to allow me to affect the TASKS tab table control for this GUI. I'm trying to prevent from having to make a custom modification. If anyone has any ideas, please let me know. Thanks.
Hi,
Check these enhancements:
IWOC0002 PM/SM notification: Check whether status change is allowed
QQMA0001 QM/PM/SM: User Subscreen for Notification Header
QQMA0008 QM/PM/SM: User Subscreen for Additional Data on Notif. Ite
QQMA0011 QM/PM/SM: User Subscreen for Additional Data on Task
QQMA0013 QM: Default Values when Creating a Task
QQMA0014 QM/PM/SM: Checks before saving a notification
QQMA0015 QM/PM/SM: User-Exit before Call-Up of F4 Help on Catalogs
QQMA0016 QM/PM/SM: "User data" Function "Goto" --> "Task" Menu
IWO10026 User check on setting status 'Do not perform'
IWO10027 User exit: Generate user-defined settlement rule
IWOC0001 Create PM/SM notification: Determine reference object
IWOC0002 PM/SM notification: Check whether status change is allowed
IWOC0003 PM/SM authorization check of ref. object and planner group
IWOC0004 Change single-level list editing PM/QM/SM ALV settings
Regards
Appana -
Complex SQL Cursor to update tables present as attribute in another table
I want to write a cursor that fetches the table names which are actually present in a column in another parent table then update a particular column/attribute in each table. The parent table (say ABC has a column (say x) which holds the list of all tables for an application. I want to extract all thetables (from ABC present in column x) based on a certain WHERE clause and then update each table.Can anyone help me with this?
As Zaafran Ahmed wrote, you need to use dynamic SQL.
Look at this example:
Let say we have table ABC with table names:
CREATE TABLE abc(
x VARCHAR2(50)
INSERT INTO ABC
SELECT 'TABLE_NAME' || LEVEL
FROM DUAL
CONNECT BY LEVEL <= 5;
SELECT * FROM ABC;
X
TABLE_NAME1
TABLE_NAME2
TABLE_NAME3
TABLE_NAME4
TABLE_NAME5Let say we have tables TABLE_NAME1 ... 5
BEGIN
FOR I IN ( SELECT X FROM ABC )
LOOP
EXECUTE IMMEDIATE ('CREATE TABLE ' || I.X
|| ' ( XXX VARCHAR2( 20 ) )');
EXECUTE IMMEDIATE 'INSERT INTO ' || I.X
|| ' VALUES ( ''' || I.X || ''')' ;
END LOOP;
COMMIT;
END;
SELECT * FROM TABLE_NAME2;
XXX
TABLE_NAME2
SELECT * FROM TABLE_NAME4;
XXX
TABLE_NAME4 We need to update only tables 2 and 4:
DECLARE
CURSOR CUR IS
SELECT X FROM ABC
WHERE X LIKE '%2'
OR X LIKE '%4';
BEGIN
FOR I IN CUR
LOOP
EXECUTE IMMEDIATE
'UPDATE ' || I.X ||
' SET XXX = ''' || I.X || ' UPDATED''';
END LOOP;
COMMIT;
END;
SELECT * FROM TABLE_NAME2;
XXX
TABLE_NAME2 UPDATED
SELECT * FROM TABLE_NAME4;
XXX
TABLE_NAME4 UPDATED -
UpdateRow of EO is not calling while updating VO Attribute fields of table
I have one seeded VO and EO which is attached with one seeded Region. When i change any display field in region updateRow of EO calls and update row in database.
I have added one messageTextInout through personalization and used one attribute field as a View Attribute and View Instance Same as above.
But when i apply it does not call updateRow and does not update my data in table.
updateRow is having one API call which update data. I have extended this EO to call my API to store this attribute in table through extended updateRow Method.
Please help.
Thanks in advancehave you created substitution for the EO?
also check whether you have configured -Djbo.project=<project name> in the project settings.
--Prasanna -
Updating an attribute of the table
Hi.,
I am using jdev11.1.5
My scenario is:
=>i had created a adf table [hd:table name
=> If the user selects the first row and after clicking the post button an attribute in [ln] table should get updated
can anyone pls tell me how to acheive this concepts
Edited by: Kristo on Sep 19, 2011 4:36 AMsry .., i think i am not clear with my concept
I had designed a af:Table using the table name HD
If the user clicks any of the row and after clicking my post button a particular field must be updated at back end -
How can i update rows in a table based on a match from a select query
Hello
How can i update rows in a table based on a match from a select query fron two other tables with a update using sqlplus ?
Thanks Glenn
table1
attribute1 varchar2 (10)
attribute2 varchar2 (10)
processed varchar2 (10)
table2
attribute1 varchar2 (10)
table3
attribute2 varchar2 (10)
An example:
set table1.processed = "Y"
where (table1.attribute1 = table2.attribute1)
and (table1.attribute2 = table3.attribute2)Hi,
Etbin wrote:
Hi, Frank
taking nulls into account, what if some attributes are null ;) then the query should look like
NOT TESTED !
update table1 t1
set processed = 'Y'
where exists(select null
from table2
where lnnvl(attribute1 != t1.attribute1)
and exists(select null
from table3
where lnnvl(attribute2 != t1.attribute2)
and processed != 'Y'Regards
EtbinYes, you could do that. OP specifically requested something else:
wgdoig wrote:
set table1.processed = "Y"
where (table1.attribute1 = table2.attribute1)
and (table1.attribute2 = table3.attribute2)This WHERE clause won't be TRUE if any of the 4 attribute columns are NULL. It's debatable about what should be done when those columns are NULL.
But there is no argument about what needs to be done when processed is NULL.
OP didn't specifically say that the UPDATEshould or shouldn't be done on rows where processed was already 'Y'. You (quite rightly) introduced a condition that would prevent redo from being generated and triggers from firing unnecessarily; I'm just saying that we have to be careful that the same condition doesn't keep the row from being UPDATEd when it is necessary. -
How to update and retrieve the table control entries and field entries.
Hello everyone,
i have a requirement,
i have company code , plant, fiscal year, posting period fields in the selection screen and then below that i have a table control which contains 4 fields invoice no., check number, check date and amount.
i have to enter the values and when i press SAVE button , these values have to update in a custom table which i had created.
please send me the coding how to do this object.
will be rewarded.
thanks in advance.Hi Suresh
this is actual requirement
in the CAT2.
1. Add a new column for WBS description and derive the value as per the FS
2. Retrieve project number and description and update in the column specified
3. When a service order is selected it should do the same for 2.
4. Finally repeat for the worklist view (which is the section above)
here i am able to display values at data entry area
for service order and network but not worklist area ?
updation is not coming, can u plz go throw it..
Thanks
Chinna -
BPM 11g: how to update a user screen
Hello all.
This is my problem:
I have some user screens that show some process objects in them. After their creation, i had to add (because the client now wants them) some more attributes to those process objects, how can i update the user screen to show me those new attributes in the objects it is showing?
I tried adding the code in the source view but i get the "cant find attribute" warning.
So far i have been doing the user screen again (from scratch) to add those new version of the objects, but it is getting really troublesome to do as the project gets biggers.
Thanks for any help.Do any1 know?
-
How to change the attributes of screen fields dynamically
<b></b>
well i have created a table by name empmaster_data with following fields.
*emp_id.
*emp_fname.
*emp_lname
*dob.
*doj.
*dept.
*desig.
now using a single screen i want to create,change and display the information.even i am using save and exit button.
now i want to change the attributes of screen fields dynamically like active,input,output,invisible.Hi,
Have Different Radio Buttons for the purposes what you have and use AT Selection Screen Output, Under the event Use loop at screen and with continue with your requirement.
Hope This Info Helps YOU.
<i>Reward Points If It Helps YOU.</i>
Regards,
Raghav -
Updating Q and P table of master data using ABAP program
Hi All
I have a requirement to update Q and P table(non key and non date fields) of master data using an ABAP program.
Is this something recommended?
Will there be any issues if I do that?
Thanks
DeepakThanks Vikram. Ok. My look up is on some other master data Q table and that is the reason why I asked about ABAP custom program.
Look like I will have to do the following approach.
Load the required supporting master data to BW.
Execute Attribute change run process for those master data objects.
Load the actual master data and look up on supporting master data.
Execute attribute change run process.
This process takes me long time and I am trying to reduce the overall execution time. let me know if you have some good suggestions.
Thanks
Deepak -
Hi,
we are on oracle applications 11i.
We have a requirement to create a descriptive flexfield in the items form and suppliers form to accept ids generated in another system. update would be from database end.
what is the impact of updating attribute columns in two tables: MTL_SYSTEM_ITEMS_B and po_vendors with a simple procedure, i.e without using existing Oracle APIs?
RegardsHi,
here is why i think i need to insert a row the value set table : fnd_flex_values .
after i update the record of the table and alter attribute field with value XXX for value set segment GLOBAL_ID, I go to the application and query the record. It gives me error:
Value XXX for the flexfield segment Global ID does not exist in the value set XX_GLOBAL_ID.
this error only goes away when i insert the value XXX to the descriptive flexfield segment values list.
I defined the value set as independent. If you have another mean where i can accomplish this, I will like to know about it.
From ittoolbox forum i had the name of the package, which is fnd_flex_values_pkg. I need more details on the tables that i need to update or insert rows into and about the package; if possible.
thanks -
Screen Table ! Doubt!
Hi!
In Screen Table whats the difference b'tween ACTIVE & INPUT
BOTH Seems to be input fields then what??
Thanks In Advance
Rahul.Hi
input is just applies for input-enabled field
active field attributes are Input/Output/Invisible
and used for active field
Except active, all components of structure screen directly correspond to one attribute of the current screen element. The component active has no match in the attributes. If you change its content with MODIFY SCREEN, this affects the attributes Input, Output and Invisible and thus the components input, output and invisible of structure screen.
Reward points for useful Answers
Regards
Anji -
Update the stastics of tables BKPF and GLFUNCA
Hello All,
update the stastics of tables BKPF and GLFUNCA not updataing
I have execute via Brtools
7 - Database statistics >> 1 = Update database statistics >> 9 ~ Tables for update (table) ......... [BKPF]
same for table GLFUNCA
7 - Database statistics >> 1 = Update database statistics >> 9 ~ Tables for update (table) ......... [GLFUNCA]
But in .sta file it is not collected
<DB20>
Table GLFUNCA
Statistics are current (|Changes| < 50 %)
New Method E
New Sample Size P1
Old Method E Date 17.08.2008
Old Sample Size P1 Time 19:52:15
It is one year old , so please help me how to update this table
Is this table causing performance problem for job RSUVM007
Regards
Mohsin MBefore all,
Why do you wnat to calculate statistics on those tables?
Do you have performance problems and you have identified that they are caused by "bad" statistics?
or simply you "must" collect them because they are "OLD"?
If it is the latter, remember that statistics MUST be representative not current. Please read the SAP Note 825653 "Oracle: Common misconceptions" point 7
Regarding the options of BRtools, it works as designed.
BRCONNECT will check if the table needs statistics:
- if it has changed more than 50% since last time (in your case 17.08.2008) and, if so it will do, otherwise it will not do it. See the output of DB20 that you pasted:
> Statistics are current (|Changes| < 50 %)
IF you need new statistics (and I mean, need, not like) then you have to force them. On BRTOOLS you go to the next screen and choose the option:
> 7 ~ Force options (force) ............... []
In your version/patch could be located in a different place
and here input collect
I strongly recommend you to read the BR*tools documentation as ALL this information is there.
In case you do not know where to find it, it is quite easy:
SAP on Oracle => Oracle DBA Overview => SAP Database Guide: Oracle -
hi all,
is there any badi can update from PS screen to MM table : aufk to eban..
i know that cmod CNEX0016 can do this enhancement as table COCI_AUFK is meant for table PS-MM..
but am keen on using badi, i tested WORKORDER_UPDATE and it can't be used to update eban table..kindly advice..
thanksHi Ester,
Try using this BADI.
ARC_MM_EBAN_PRECHECK
Regards,
Deepthi Reddy
Maybe you are looking for
-
Videos load slowly or not at all with Flash 10!
Well here we go. I'm working on IE 8 128-bit for Windows XP SP3 32-bit. Flash Player 10.1.102.64. Two days ago I noticed that video playback on sites like Youtube, Veoh, Magavideo etc the load time was real choppy. A video say two or three minuted lo
-
Weird Problem calling Stored Procedure using JDBC
Scenario is.. I have J2EE application and calling stored procedure using JDBC. My application connects to instance "A" of testDB. Schema "A" does NOT own any packages/procedure but granted execute on oracle packages/procedures that reside in schema "
-
I have the tones tab in iTunes, but cannot move the .m4r files to it. How can I resolve this issue?
-
Dynamic actions in toolbar actions of tables
Hello all, I have an issues when I create a dynamic action in the toolbar buttons of a table which looks like that: if(@ZCLOSED== 'X',"ERROR","DECISION") I tried the same syntax in a pushbutton in a normal form and here it worked w/o problems; D
-
I have downscaled and sharpen my pictures in Photoshop. They got the resolution 720x480 which is NTSC. Then I made a video in Premiere Pro CS5. I forget that the other videos to the DVD is PAL. Now I have 2 PAL 4:3 videos, 1 PAL 16:9 video and this 4