Module pool - for updating Z table
Moderator message: please using a more meaningful subject. I've edited it for you this time.
Hi i have a reuire ment like this.
i want to update Z table, by using report program.report is having selection screen ti select data from Z table and to disply in a screen like SM30, i am displying in table control using screen.and i am updating Z table.
i want to display the selection screen data which ever i have given just above the table control which ever i am displaying now.
can any body help me out pls.
Regards
naidu
Hi palani thanks for reply.
i tried in this way already but the problem is we dont know how many values user will enter to define, suppose if user may enter 1000 entries in one selection field or beyond that also.
in this case again the problem.
and one more thing suppose i ahve selection screen like this
company code parameter mandatory
sales org. ranges
division ranges
KUNNR ranges
if suppose user entered only mandatory value, and KUNNR we need to display only those two in output, but here in module pool by using screen table if we disable the screen two blank lines will come.
ex
cmpany code 0001
KUNNR from 1000 TO 2000.
expected result for this is
cmpany code 0001
KUNNR from 1000 TO 2000.
i used scren-input for this but ididnt get,
could you please help me in this.
thanks and regards
naidu
Similar Messages
-
I wanted to create a module pool which accepts a table n flag
i wanted to create a module pool which accepts a table n flag.
and based on flasg value it allows the table to get into edit or display mode.
the table has to use table control to display for user
and it should be able to edit the table as well as append if the flag value is edit.
the table which has been change should be passed back.HI Shailesh ,
On your screen which contains the table control , you can definately put the flag . Now use 2 conditions , one for change n other for display mode .Initialize the value of the flag to be "X" and based on the flag valu design your table .
lets say u have a screen 0100 ,
at the begining put FLAG = 'X'.
lets say , this is for your change screen .
then loop at the table control and allow the fields for fields input . all you should do in the PBO only .
next in PAI , fill the table control with the changed values .
and in PAI , in AT-user command module , code for the flag ( / push button ) . and pass the values when the user clicks on the button .or else here you can check whether the value of the flag is "X" ( for change mode ) or " " .
if it is " " then loop at the screen and make all the fields inactive for input ( Display mode )
Inactivation of the fields should be done in the PBO based on the conditions .
Revert back if you need further clarification .
This logic should definately work .
Reward if helpful .
Thanks
Ranjita -
API for updating pay_people_groups table..
Hi,
Is there any API for updating pay_people_groups table. I know we can do it using hr_assignment_api.update_emp_asg_criteria but this API updates the assignement with the new pay_group_id. I want to know is there is any API which can only update the pay_people_groups and not the assignment.
Regards,
Shabana.Hi,
Technically you want update values for people group. If you remember At the time of definition of people group you created value set and attached people group flex field.
People group are created on the basis of combination of segments. So you have to update only values not people group.
I doubt oracle provides API to update key flex field.
You may get API to update values try out that option.
Hope this helps.
Sathish -
XD02 transaction to change the customer data for updating KNA1 table?
Hi all,
How can we use XD02 transaction to change the customer data for updating KNA1 table?
Give the steps.
Thanks in advance
rkHi KR,
Why don't u use BDC to run XD02.
With Regards,
Zafar Ali -
I'M modifing std module pool for sales order plz can any one help me
hi
i'M modifing std module pool for sales order plz can any one help me
i'm introucing some fileds in sales order header level additional data2 screen
i want it for only to doc conditio i shld i proceedcan anyone help me
-
Any function module available for updation of Configuration data
Hi experts,
i want to know the function module which updates the configuration data.Please help me regarding this,its very urgent..I have some configuration data which needs to be updated .This data is present in the item level configuration data..
Please help me ...
Regards,
NagarajHi Nagaraj
I assume that one of the Sales document(SO/DO/Billing/Shipping,etc) has this custom field YF_ZZZ_STATUS.
If so, this custom field would be available in any one of sales tables (VBAK/VBAP/VBRk/VBRP/LIKP/LIPS, etc)
You have to find out where exactly this field is existing.
If this field is avilable in sales document screen, simply you can write one BDC code to update this field at any one sales userexit.
For example if you want to update this field at the time of saving sales order, then use MV45AFZZ include..there you will find userexit_save_document (FM). There you can write simple BDC code OR direct update query to update particular table.
NOTE: YOU CAN NOT FIND OUT ANY FM TO UPDATE CUSTOM FIELDS (IN CONFIGURATION AND DEVELOPMENT)
Thanks
Bala -
Bapi for updation of table VBRP
Hi,
I have to Update the Field 'KONDM' in the table VBRP. Is there some BAPI available for updating VBRP or we can have to go with the direct Update to the table. I have to Update this field by a stand alone report program.
Thanks and regards,
Pankaj Bist.Might be use this Function module
CALL FUNCTION 'RV_INVOICE_ITEM_MAINTAIN'
EXPORTING
VBRP_I = VBRP
IMPORTING
VBRP_E = VBRP
TABLES
XKOMFK = XKOMFK
XTHEAD = XTHEAD
XVBFS = XVBFS
XVBSS = XVBSS
XVBRK = XVBRK
XVBRP = XVBRP
XVBPA = XVBPA
XKOMV = XKOMV.
Matintain the value in the VBRP table & pass rest as is... u get the value using the FM RV_INVOICE_DOCUMENT_READ -
User exit/BADI for updating custom table in MB1B transaction-
Dear All,
When performing a material to material conversion in MB1B transaction for batch managed materials,system is creating a new batch by copying the characteristics of issuing material/batch.The details of the new batch created are updated in standard batch tables(MCH1,MCHA,MCHA).
The requirement is when the new batch is created,the batch details and characteristics has to be stamped in a custom table.
Kindly suggest a user exit/BAIi available for updating the same in the custom table.
Regards,
DeepakDeepak, Exits for MB1B are
MBCF0002 Customer function exit: Segment text in material doc. item
MBCF0005 Material document item for goods receipt/issue slip
MBCF0006 Customer function for WBS element
MBCF0007 Customer function exit: Updating a reservation
MBCF0009 Filling the storage location field
MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1
MBCF0011 Read from RESB and RKPF for print list in MB26
MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc. -
Performance manager sql action rule for updating metric table
Hi, I need to update metric stop_date using a sql action rule (Performance Manager execute sql action rule). My problem is I can't update stop_date into the PM Repository Database. Sql action database connection is properly set, but when I set sql for executing update in table ci_probe and I schedule the rule the system doesn't seem to connect to Database (the rule run successfully, but the table ci_probe is not updated). I don't understand if the problem is database connection or wrong sql code.
Can Anyone help me with suggestions or sql action rule samples?
Thanks
Luigi
Edited by: Luigi Oliva on Jun 13, 2008 1:32 PMHi It's working, Problem was in repeat_interval it's working now,
Thanks,
I changed
repeat_interval => 'FREQ=DAILY;BYSECOND=10',to
repeat_interval => 'FREQ=SECONDLY;BYSECOND=10',Thanks,
Edited by: NSK2KSN on Jul 26, 2010 11:14 AM -
BC4J Application Module Pooling for JClient App
Helo,
i wonder why all documentation about bc4j application module pooling available is for Web app ? (jsp) . I'm creating swing JClient app and i need some doc about how the application module pooling works in this kind of application.
anybody know where can i get those docs ?
Need help and Thank you,
Ricky H.P.Connection pooling can be achieved when a JVM instance manages the pool, in 3tiers the Java App. Server has that task.
If you are 2tiers that means that you are communicating with the database through JDBC.
When a user launches your JClient app in fact he lauches his own JVM instance so I don't how he could share a pool with other users.
In your case you have at most 2 open transactions per user.
You can achieve that by sharing a same binding context with n forms composed of m panels.
Let's say:
1 main form
connection 1: forms a,b,c
connection 2: forms x,y,z
In your main form your open your 2 connections and share them.
You can achieve that by:
1) in our main form, initialize 2 binding containers
Example of one:
DCBindingContainer bc1 = this.createBindingContainer("package name","model name");
private DCBindingContainer createBindingContainer(String packageName, String panelModelName)
StringBuffer sb = new StringBuffer(packageName);
sb.append(ViewConstants.STRING_DOT);
sb.append(panelModelName);
DCBindingContainerDef bcdef = DCBindingContainerDef.findDefObject(sb.toString()); //NOTE THE NAME.
if (bcdef == null)
throw new JboException("System error, "+getClass().getName()+".createBindingContainer, DCBindingContainerDef: "+sb.toString()+" not found");
DCBindingContainer bc = bcdef.createBindingContainer(panelBinding.getBindingContext());
bc.setName(panelModelName);
panelBinding.getBindingContext().put(panelModelName, bc);
return bc;
2) Before that the jbInit method gets called in the called form, set the binding context:
form1 = new Form1(...);
form1.setBindingContainer(bc1) ;
Example of methods in form 1 and form 2:
public void setBindingContainer(DCBindingContainer ctr)
this.panelBinding = (JUPanelBinding)ctr;
setBindingContext(ctr.getBindingContext());
public void setBindingContext(BindingContext bindCtx)
if (panelBinding.getPanel() == null)
panelBinding = panelBinding.setup(bindCtx, this);
registerProjectGlobalVariables(bindCtx);
panelBinding.refreshControl();
try
System.out.println("Form setBindingContext calling jbInit");
jbInit();
panelBinding.refreshControl();
// FL added
isBindingContextSet = true;
System.out.println("Form isBindingContextSet true");
catch(Exception ex)
System.out.println("Form setBindingContext exception caught");
panelBinding.reportException(ex);
Regards
Fred -
Function Module/BAPI for updating Document Status.
Hi Experts,
Is there any Function Module/BAPI available for updating the document status ?
Thank You,
Radhika.unresolved!
-
How to write a procedure for update the table
Hi all
can any body please tell me how to write a procedure to update the table......
I have a table with about 10,000 records...........Now I have add a new column and I want to add values for that like
registration Code Creidits
13213 BBA
1232 MCS
I had add the creidit now i want to update the table.........the new value want to get by SQL like
Creidit = select creidit from othere_table...........
Hope u can understand my problem
Thanks in advance
Regards
Shayan
[email protected]Please try the following --
update Program_reg a
set TotalCreidit = ( select tot_cr <Accroding to your logic>
from Program_reg b
where a.Registration = b.Registration
and a.Enrollment = b.Enrollment
and a.code = b.code
where a.Registration in ( select distinct Registration
from Program_reg );
N.B.: Not Tested....
Regards.
Satyaki De. -
FOR UPDATE OF table.field
Why does the following not work
create table division (code varchar2(2) primary key, div_desc varchar2(20));
insert into division values ('01', 'Ninja assassins');
insert into division values ('02', 'Working for the man');
create table employees (tk number, first_name varchar2(10), last_name varchar2(10), code varchar2(2) references division(code));
insert into employees values (1, 'Chuck', 'Smith', '01');
insert into employees values (2, 'John', 'Smith', '02');
DECLARE
CURSOR my_csr IS
Select e.tk, e.first_name, e.last_name
From employees e, division d
Where e.code = d.code
and e.code = '01'
and e.last_name = 'Smith'
For update;
cnt_updated NUMBER;
BEGIN
cnt_updated := 0;
FOR my_row IN my_csr
LOOP
Update employees
Set last_name = 'Forbes'
Where current of my_csr;
cnt_updated := cnt_updated + SQL%ROWCOUNT;
dbms_output.put_line('You updated '||cnt_updated||' records');
END LOOP;
END;but just adding to the "for update" clause allows for an update?
DECLARE
CURSOR my_csr IS
Select e.tk, e.first_name, e.last_name
From employees e, division d
Where e.code = d.code
and e.code = '01'
and e.last_name = 'Smith'
For update *of e.tk*;We found this out recently, and fellow Developers are asking "Why?". Is there a documented reason, or is that just how it is?
Thanks,
--=ChuckIt is not about locking it is how oracle translate the "where current". it is a simple rowid.
did a little trace, and look what I got from 10046 trace file:
For the update without the "update of", look at the 0 at the cr in the plan,
Oracle already knows that this update will not do anything:
PARSING IN CURSOR #6 len=62 dep=1 uid=82 oct=6 lid=82 tim=88904356722 hv=1877266405 ad='1a9b0404' sqlid='5a5zpz5ry9mz5'
UPDATE EMPLOYEES_T SET LAST_NAME = 'Forbes' WHERE ROWID = :B1
END OF STMT
PARSE #6:c=0,e=258,p=0,cr=0,cu=0,mis=1,r=0,dep=1,og=1,tim=88904356717
BINDS #6:
Bind#0
oacdty=208 mxl=3950(3950) mxlc=00 mal=00 scl=00 pre=00
oacflg=00 fl2=206001 frm=00 csi=00 siz=3952 off=0
kxsbbbfp=0c2ef090 bln=3950 avl=00 flg=05
EXEC #6:c=0,e=1108,p=0,cr=0,cu=0,mis=1,r=0,dep=1,og=1,tim=88904357955
STAT #6 id=1 cnt=0 pid=0 pos=1 obj=0 op='UPDATE EMPLOYEES_T (cr=0 pr=0 pw=0 time=0 us)'
STAT #6 id=2 cnt=0 pid=1 pos=1 obj=74422 op='TABLE ACCESS BY USER ROWID EMPLOYEES_T (cr=0 pr=0 pw=0 time=0 us cost=1 size=29 card=1)'for the update with the "update of", look at the 1 at the cr in the plan:
PARSING IN CURSOR #6 len=62 dep=1 uid=82 oct=6 lid=82 tim=88913977309 hv=1877266405 ad='1a9b0404' sqlid='5a5zpz5ry9mz5'
UPDATE EMPLOYEES_T SET LAST_NAME = 'Forbes' WHERE ROWID = :B1
END OF STMT
PARSE #6:c=0,e=87,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=1,tim=88913977304
BINDS #6:
Bind#0
oacdty=208 mxl=3950(3950) mxlc=00 mal=00 scl=00 pre=00
oacflg=00 fl2=206001 frm=00 csi=00 siz=3952 off=0
kxsbbbfp=09f3abfc bln=3950 avl=13 flg=05
value=
Dump of memory from 0x09F3ABFC to 0x09F3AC09
9F3ABF0 22010001 [..."]
9F3AC00 000400B6 00780401 00000000 [......x.....]
EXEC #6:c=0,e=379,p=0,cr=1,cu=1,mis=0,r=1,dep=1,og=1,tim=88913977802
STAT #6 id=1 cnt=1 pid=0 pos=1 obj=0 op='UPDATE EMPLOYEES_T (cr=1 pr=0 pw=0 time=0 us)'
STAT #6 id=2 cnt=1 pid=1 pos=1 obj=74422 op='TABLE ACCESS BY USER ROWID EMPLOYEES_T (cr=1 pr=0 pw=0 time=0 us cost=1 size=29 card=1)'Also notice that in the update version with the "update of" we can see dump of memory.
There are some binds type that oracle won't show directly in the dump (e.g. timestamp, rowid, etc)
For future, more hex oriented readers here is the rowid from table:
SQL> select rowid from employees_t;
ROWID
AAASK2AAEAAAQR4AAAIf, somebody out there, can show me a way to read the memory dump back into the real rowid,
I will be very happy.
Amiel -
Add a Select List to a Report, for Updating a table.
I am working on Apex 3.0. I had to allow the Report could update a table. I added two checkbox to the report, and now I should add a Select List. I've tried a lot of ways but I don't know how can I pass the value selected, related to the ID of the row. I've tried with a JavaScript but I couldn't. A process should update the row on the DB when the user change the value on the select list. There is a save button that perform the process. How I could pass the ID of the row and the value to a PL/SQL process?
Many Thanks for your suggestions.
SELECT PFA.FOCUS_AREA_ID
,FOCUS_AREA_NAME,
apex_item.checkbox(1, FA.FOCUS_AREA_ID, DECODE(PFA.FOCUS_AREA_ID, null, ' ','checked="checked" ') ||
'id="chk'||rownum||'"'|| ' onclick="checking(this)" ') as Focus_AREA_CHK,
APEX_ITEM.SELECT_LIST(
*5,*
PFA.FOCUS_TYPE,
*'DIS;DIS,ENG;ENG,EXP;EXP,TGT;TGT',*
*'id="sl_'||FA.FOCUS_AREA_ID||' " ',*
*'YES',*
NULL,
*'-Select-',*
*DECODE(PFA.FOCUS_AREA_ID, null, 'disabled="disabled" ','' ) || ' --onchange="selectedElement(this)" ',*
*'NO'*
*)* "Type"
FROM PROGRAM_FOCUS_AREAS PFA,
FOCUS_AREAS FA
WHERE
FA.FOCUS_AREA_ID = PFA.FOCUS_AREA_ID(+)
AND :P151_PROGRAM_ID = PFA.VS_PROGRAM_ID(+)**Deleted**
Edited by: user4498053 on Dec 27, 2011 11:24 AM -
Function modules etc for Updating condition records
Hi Guys ,
Anybody have any idea on how to update condition records in CRM . I have used CRMXIF_COND_REC_SLIM_SAVE but this only updates product conditions ( condition table SAP004 ) . I want to update condition table SAP012 which is maintained in transaction /SAPCND/GCM .
Any ideas ?
Regards,
RadhaHi Radha,
Even I am using the FM CRMXIF_COND_REC_SLIM_SAVE to update conditions in the conditions table SAP004 and SAPSC012 , but for me the conditions are getting updated in table SAPSC012 but not SAP004.
I want to update using the conditoin record guid and want to
update the condition rate value.
Can you please help .
Thanks,
Poonam.
Maybe you are looking for
-
Short dump with Where-used list
Hi All, I'm making some research on specific InfoObjects, and in some cases I want to know where are they being used, but when I try to use the icon for "Where-used list using Data Warehouse" I end up with an error, a short dump. Message class is: RS
-
Hi I have had some problems with my server, so the feed was not availible for some time. Unfortunatly the podcast was removed from the iTunes store. Now that the feed is online again I can't find it in iTunes Store. If i try to Re-submit the podcast
-
Compile MatrixX Autocode under Linux
Hi, I try to compile my autocoded code under Linux and I got problem at the compilation and at the link. Everything is working fine under windows.... First Problem. When I switch to linux I got a error at the compilation : error: 'Matrix_Inverse
-
Challenge question and password migration from oimm 10g to 11g r2
hi all, can you please tell me how do i do the migration of oim 10g user's password and challenge questions to oim 11g r2. Do we have any api to do it. these values are in encrypted format in oim db. thanks
-
Hiding email addresses with javascript
Hi all - Just wanting to get some opinions on this. I have a client who wants mailto email addresses all over her website www.santaparade.co.nz as you can see - contact page - information page and all page footers. Its not practical to have a form in