Delimiting the record
Hi,
could you please help me with a code for delimiting the record in SAP, we are using a certain bapi for deleting or amending the back end record when user makes change in data at the UI
Hi,
I didn't get your requirement completely but if you want to delimit your string in webdynpro then you can use StringTokenizer class.
Regards,
Murtuza
Similar Messages
-
Delimiting the record in custom table
Hi,
I have a cretaed a custom table with the from and to date fields.
In my requirement the date should be delimited to the new date and it should not overlap.
Eg:if the user gives input as below
A B 01.01.2009 31.12.2010
A B 01.01.2010 31.12.2010
then the table entries should be delimited to
A B 01.01.2009 31.12.2009
A B 01.01.2010 31.12.2010.
Can any one pls help me in this requirement.
Thanks,
RajuHi Chetan,
This is the custom BAPI they used in the existing program.
Generate the sales order
CALL FUNCTION 'Z_V57_BAPI_SALESORDER_CREATE'
EXPORTING
order_header_in = itab_header
testrun = p_test
business_object = w_busobj
IMPORTING
salesdocument = w_vbeln
TABLES
return = itab_order_msg
order_items_in = itab_detail
order_partners = itab_partner
order_schedules_in = itab_schedule
order_conditions_in = itab_conditions.
Here itab_detail table has the two fields VRKME and WAERK, Custom table also have these 2 fields. here i have to populate these values to custom table.
here i am not able to find where there are populating to custom table .
Regards,
Satish. -
Inbound IDoc(HRMD_A07) problem in delimiting the infotype records
Hi All,
I am using Inbound IDoc (HRMD_A07) approach to update infotypes. I found that I am able to create a record in an infotype, but there is a problem in delimiting the infotype.
Please help me out in case I am missing something.
Thanks,
ABAP_DEVHi,
Did you get this resolved. Even i'm facing this issue. Is it a config or do we have to do something in the IDOC.
Thanks,
Jilly -
Syntax of mentioning the delimiter of the record in control file.
how to specify the delimiter of the record in the control file without mentioning the data file name in the control file?
if you are mentioning the name of the data file in the control file the syntax is as follows:
LOAD DATA
INFILE 'tblAgencies.csv' "str X'7c0a'"
INTO TABLE person_table APPEND
FIELDS TERMINATED BY ',' ENCLOSED BY '"'
(name CHAR(30),
"RESUME" CHAR(50000))
where 'tblAgencies.csv' is the name of the data file & str X'7c0a' specifies the delimiter.how u r downloading the data?
are you downloading it onto application server or local system?
Try to download the file in asc mode it will solve your problem. -
How to Mapping the records between OM-PA
How could you map the Records of OM->PA ,if the designation of person changes from manager to supervisor from certain date.and how can we see the changed records??
Solution :we can see the changes in the addition action infotype 302,personel hiring action(0000) delimit the record whenerver we changes the designation,and in the orgassingment infotype overview ,action infotype over view we can see the changes and PLOGI-ORGA IS the integration switch and position is the key for map the recoed from OM ->PA
Post your comments if the solution is correct???
Regards
Chandrahi,
kindly go through the below message i hope it will help you.
when the employee designation is changed the action of employee changed in infotype 0000 and previous record is delimited and that current recod automatically reflect on infotype 0001 and you find the position of employee here and esily identify.
in this way when the position changes in OM it will reflect on PA.(in infotype0001).
thanks and regards..
Bibek -
How to handle the records that contain different number of columns
hi all,
I have a file (as source data)includes order information like:
H,P001,Smith,Sunnyvale
D,P001,PR97623,150,10.99,Ice cream
D,P001,PR33267,45,32.66,Popcorn
T,P001
H,P003,Williams,San Jose
X,P003,PR23563,19,25.54,Peanuts
T,P003
I want to transfer the file record to three target tables,
the record marked "H" to "Summary" table and sum money of the detail
the record marked "D" to "Detail" table
the record marked "X" to "Error" table
the expect result as below:
Summary table
Order_No Customer Address Total_Money
P001 Smith Sunnyvale 3118.2
(※3118.2=150*10.99+45*32.66)
Detail table
Order_No Prodcut_Id Prodcut_Name Quantity Price
P001 PR97623 Ice cream 150 10.99
P001 PR33267 Popcorn 45 32.66
Error table
Head Order_No Record_No
X P003 6
(※6 is the line no in the file)
How can I do this in ODI , could anyone give some hints?Hi AGUI,
You can do this by the following way,
1) create the File datastore for the file with 6 columns
while creation select the following option file format as Delimited
record seperator as MS-DOS and field sep as other specify "," in the text box.
-- check the file datastore maps correctly by view the data.
2) create the interface int1 for transfer the data from this file to temp table( the temp table should have one more column for getting the line number( it should be the sequence number).
3) create the another interface int2, in this interafce you need to transfer the data from the[b] temp table to Detail table (use filter for gatting D record.
4) create the interace int3 transfer the data from the temp table to Summary table. please keep the total_money field as null for this interace
and use Odi procedure for updating this field with reference of details table.
5) create interface int4 for transfer the error date by transferinf from temp table to error table.
Thanks,
Madha -
Dynamic Action-Delimiting a record and creating new record
Hi ,
My requirement is in dynamic Action I need to delimit all records in a Subtype of an Infotype and create New record for these records with BEGDA as ENDDA + 1 of the delimited records.
Iam able to delimit all records in the Subtype but , Iam not able to create new records.
My code for delimiting is as given below, in T588Z,
9901 2 06 801 P P9901-SUBTY='2'
9901 2 06 802 P PSYST-IOPER='MOD'
9901 2 06 803 P P9901-STATS='X'
9901 2 06 804 P P9901-PREAS='91'
9901 2 06 805 F DELIMIT_DTE(ZHSRAS_T588Z_9901)
9901 2 06 806 W P9901-ENDDA=RP50D-ZZDATE3
9901 2 06 807 I MOD,9901,3
9901 3 06 808 P SY-UCOMM='UPD'
9901 3 06 809 F DELIMIT_DTE(ZHSRAS_T588Z_9901)
9901 3 06 810 W P9901-ENDDA=RP50D-ZZDATE3
The above code is working fine.
My code for creating new record is as given below, even though the control is oing to the subroutine, INS statement is not working, and hence new record is not getting created.
9901 3 06 811 P SY-UCOMM='UPD'
9901 3 06 812 P PSAVE-ENDDA<>P9901-ENDDA
9901 3 06 813 P P9901-STATS<>'X'
9901 3 06 814 I INS,9901,3
9901 3 06 815 F BEGIN_DATE(ZHSRAS_T588Z_9901)
9901 3 06 816 W P9901-BEGDA=RP50D-ZZDATE3
9901 3 06 817 W P9901-ENDDA='99991231'
Kindly help me on this.Hi shahana,
1. I have not worked on this dynamic action.
2. But instead of doing in 2 steps,
it is usually done in 1 step only, manually.
3. If we CREATE record from some date,
then the OLD will AUTOMATICALLY get Delimited.
(We don't have to do anything specially for delimiting
the old record)
regards,
amit m. -
SAP HR: How to prevent delimiting of records when setting a lock
Hi All,
I am part of a SAP HR implementation. In one of the Infotypes, I am copying a record and setting a lock in the new record by going to the menu Edit-->Lock/Unlock.
This should ideally lock the record without touching the previous record. But in my case, the previous record is being delimited. Can someone tell me what settings need to be done in order to prevent the delimiting of the previous record till the lock is unlocked.
Thanks & Regards,
ShobhitI think it depends on the Time Constraint of the Infotype in question. Do you have a valid record with a BEGDA after the record that you are trying to lock?
~Suresh -
Need to get the input dynamically and write the records
hi everyone,
iam having a doubt in scripts,
1.i need to get the input from user
(input is the table name)
2.if the input matches with the tables in the database and the n it has to write the records in a csv format.
3.the fields should be delimited by comma.
is it possible to write a script or procedure.
the script should be a generic one.
thanks and Regards,
R.Ratheeshhi
,,actually my column_names are.
select T24_ACCOUNT_NUMBER||','||
NULLIF(T24_CUSTOMER,NULL)||','||
NULLIF(T24_CATEGORY,NULL)||','||
NULLIF(T24_ACCOUNT_TITLE_1,'')||','||
NVL(T24_ACCOUNT_TITLE_2,'')||','||
NULLIF(T24_SHORT_TITLE,'')||','||
NULLIF(T24_SHORT_TITLE,'')||','||
NULLIF(T24_POSITION_TYPE,'')||','||
NULLIF(T24_CURRENCY,'')||','||
NULLIF(T24_LIMIT_REF,NULL)||','||
NULLIF(T24_ACCOUNT_OFFICER,NULL)||','||
NULLIF(T24_OTHER_OFFICER,NULL)||','||
NULLIF(T24_POSTING_RESTRICT,NULL)||','||
NULLIF(T24_RECONCILE_ACCT,'')||','||
NULLIF(T24_INTEREST_LIQU_ACCT,NULL)||','||
NULLIF(T24_INTEREST_COMP_ACCT,NULL)||','||
NULLIF(T24_INT_NO_BOOKING,'')||','||
NULLIF(T24_REFERAL_CODE,NULL)||','||
NULLIF(T24_WAIVE_LEDGER_FEE,'')||','||
NULLIF(T24_PASSBOOK,'')||','||
NVL(TO_CHAR(T24_OPENING_DATE,'YYYYMMDD'),'')||','||
NULLIF(T24_LIMK_TO_LIMIT,'')||','||
NULLIF(T24_CHARGE_ACCOUNT,NULL)||','||
NULLIF(T24_CHARGE_CCY,'')||','||
NULLIF(T24_INTEREST_CCY,'')||','||
NULLIF(T24_ALT_ACCT_IDa,NULL)||','||
NULLIF(T24_PREMIUM_TYPE,'')||','||
NULLIF(T24_PREMIUM_FREQ,'')||','||
NULLIF(T24_JOINT_HOLDER,NULL)||','||
NULLIF(T24_RELATION_CODE,NULL)||','||
NULLIF(T24_JOINT_NOTES,'')||','||
NULLIF(T24_ALLOW_NETTING,'')||','||
NULLIF(T24_LEDG_RECO_WITH,NULL)||','||
NULLIF(T24_STMT_RECO_WITH,NULL)||','||
NULLIF(T24_OUR_EXT_ACCT_NO,'')||','||
NULLIF(T24_RECO_TOLERANCE,NULL)||','||
NULLIF(T24_AUTO_PAY_ACCT,NULL)||','||
NULLIF(T24_ORIG_CCY_PAYMENT,'')||','||
NULLIF(T24_AUTO_REC_CCY,'')||','||
NULLIF(T24_DISPO_OFFICER,NULL)||','||
NULLIF(T24_DISPO_EXEMPT,'')||','||
NULLIF(T24_ICA_DISTRIB_RATIO,NULL)||','||
NULLIF(T24_LIQUIDATION_MODE,'')||','||
NULLIF(T24_INCOME_TAX_CALC,'')||','||
NULLIF(T24_SINGLE_LIMIT,'')||','||
NULLIF(T24_CONTINGENT_INT,'')||','||
NULLIF(T24_CREDIT_CHECK,'')||','||
NULLIF(T24_AVAILABLE_BAL_UPD,'')||','||
NULLIF(T24_CONSOLIDATE_ENT,'')||','||
NULLIF(T24_MAX_SUB_ACCOUNT,NULL)||','||
NULLIF(T24_MASTER_ACCOUNT,'')||','||
NULLIF(T24_FUND_ID,'') FROM T24_CACCOUNT;
this is the order
but while my output looks like
SQL> set serveroutput on
SQL> set verify off
SQL> set heading off
SQL> spool /emea/dbtest/tamdbin/bnk/bnk.run/DATA.BP/SAM_ACC.csv
SQL> exec input_table('T24_CACCOUNT');
declare cursor c2 is select
rownum||','||T24_WAIVE_LEDGER_FEE||','||T24_PASSBOOK||','||T24_OPENING_DATE||','
||T24_LIMK_TO_LIMIT||','||T24_CHARGE_ACCOUNT||','||T24_CHARGE_CCY||','||T24_INTE
REST_CCY||','||T24_ALT_ACCT_IDA||','||T24_PREMIUM_TYPE||','||T24_PREMIUM_FREQ||'
,'||T24_JOINT_HOLDER||','||T24_RELATION_CODE||','||T24_JOINT_NOTES||','||T24_ALL
OW_NETTING||','||T24_LEDG_RECO_WITH||','||T24_STMT_RECO_WITH||','||T24_OUR_EXT_A
CCT_NO||','||T24_RECO_TOLERANCE||','||T24_AUTO_PAY_ACCT||','||T24_ORIG_CCY_PAYME
NT||','||T24_AUTO_REC_CCY||','||T24_DISPO_OFFICER||','||T24_DISPO_EXEMPT||','||T
24_ICA_DISTRIB_RATIO||','||T24_LIQUIDATION_MODE||','||T24_INCOME_TAX_CALC||','||
T24_SINGLE_LIMIT||','||T24_CONTINGENT_INT||','||T24_CREDIT_CHECK||','||T24_AVAIL
ABLE_BAL_UPD||','||T24_CONSOLIDATE_ENT||','||T24_MAX_SUB_ACCOUNT||','||T24_MASTE
R_ACCOUNT||','||T24_FUND_ID||','||T24_ACCOUNT_NUMBER||','||T24_CUSTOMER||','||T2
4_CATEGORY||','||T24_ACCOUNT_TITLE_1||','||T24_ACCOUNT_TITLE_2||','||T24_SHORT_T
ITLE||','||T24_MNEMONIC||','||T24_POSITION_TYPE||','||T24_CURRENCY||','||T24_LIM
IT_REF||','||T24_ACCOUNT_OFFICER||','||T24_OTHER_OFFICER||','||T24_POSTING_RESTR
ICT||','||T24_RECONCILE_ACCT||','||T24_INTEREST_LIQU_ACCT||','||T24_INTEREST_COM
P_ACCT||','||T24_INT_NO_BOOKING||','||T24_REFERAL_CODE SRC from T24_CACCOUNT; r2
c2%rowtype; begin for r2 in c2 loop dbms_output.put_line(r2.SRC); end loop;
end;
1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222284001,2222222,6001,,,,,TR,USD,,,,,,,,
2,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222384001,2222223,6001,,,,,TR,USD,,,,,,,,
3,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222484001,2222224,6001,,,,,TR,USD,,,,,,,,
4,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222584001,2222225,6001,,,,,TR,USD,,,,,,,,
5,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222684001,2222226,6001,,,,,TR,USD,,,,,,,,
6,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222284001,2222222,6001,,,,,TR,USD,,,,,,,,
7,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222384001,2222223,6001,,,,,TR,USD,,,,,,,,
8,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222484001,2222224,6001,,,,,TR,USD,,,,,,,,
9,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222584001,2222225,6001,,,,,TR,USD,,,,,,,,
10,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222684001,2222226,6001,,,,,TR,USD,,,,,,,
11,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222284001,2222222,6001,,,,,TR,USD,,,,,,,
12,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222384001,2222223,6001,,,,,TR,USD,,,,,,,
13,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222484001,2222224,6001,,,,,TR,USD,,,,,,,
14,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222584001,2222225,6001,,,,,TR,USD,,,,,,,
15,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222684001,2222226,6001,,,,,TR,USD,,,,,,,
here if we look at the select statement the previous one ,its starts from middle and
picking up the records.i dont know y.and also its not writing the records in the path (spool)which i have given..can u pls check it out if possible.
thanks ,.
R.Ratheesh -
Hi Experts
I am big time confused wrt Delimiting so need ur help!!!
for a custom table i need to delimit a certain set of records.
the only thing mentioned in the requirement is begda 01.01.2009 endda 31.12.2009 and the values. when i look at the table the begda is 01.01.2009 there as well but the endda is 31.12.9999.
For me to delimit, what date shd i enter?? shd i copy the records and change their end date to 31.12.2009 frm 31.12.9999 and delimit from 01.01.2009??
plz help at the earliest.
rgds
kkHi,
Via which transaction are you accessing the table?
Does table has a view and can be accessed via SM30?
If you have a delimit button, just hit it and add the new date as 01.01.2010
However, if you don't have that button, just copy the existing entry with new begda 01012010 endda 31129999.
The older record should automatically have an end date 31.12.2009. If not change its end date manually.
Regards,
Dilek
Edited by: Dilek Ersoz Adak on Mar 2, 2010 7:33 AM -
How to delete the record in Table
Hi Guru's,
i have Table which contain no.of Records.
i want to deleted one record. if i go to Table maint.Generator....from table itself..
how to do that... when we deleting the record. can we create new TR for that?
can anybody tell me.
Thanks in Advance,
venkatHi,
it is answered, here for my table there is no Table Maint.Generator.
i just explained how i have done it.
i just simply gone into Debug mode. there
code = Dele.
i have given. then i came out from debug mode to Table. there i just got Delete button on application tool bar.
i selected the record then icliked on Delete button.
it is got deleted.
But it is not asking for any new Transport Request.
Regards,
Venkat -
How to delete the records in BI for deleted reocrds in R/3
Hi ,
We have a scenarion described below...
We have a table in R/3 and updates happen to the table every week with a ZPROGRAM which deletes some of the records and recreates with some logic.
Assuming :
Initially, We did the load to BI and we got 200 records for last week (Initial Load)
After R/3 prgram is ran, it deletes some of the reocrds in those table , say we only have 150.
Now, Can BW somehow know , what are those records and delete those 50 records from the request which has already been loaded ?
FYI, we just have an indicator marked with X on the R/3 table if the program in R/3 has run.
I know, one solution is "selective deletion".
As we have to selectively delete every week, we do not want to take that approach.
Second is "full load" but we do not want to do full load also as the data volume is huge.
We would like to delete those 50 reocrds in BI dynamically with some ABAP code/some logic. Does anyone have any suggestions ???
Regards,
KumarHi Kumar,
I will try to explain it, but at the moment I am unable to take a look at the code.
I have set up a generic function module which will do the trick for more than one specific datasource. This function module is placed in the startroutine and only executed for the first datapackage.
Within the startroutine of the transformation, you have the possibility to use the p_r_request class. This class contains all necessary information about the current DTP load.
I use the get_source and get_target methods to determine the correct database tables dynamically. The t_h_sel (or somthing) contains the current DTP selections. This will include the RequestID and all other selections like fiscal year for example.
Because the write optimized DSO only has a technical key, we can use the RequestID to do the selection on the source table. After that you can compare the source selection with the active table of the second DSO and add all records from the second DSO that are not available in the source selection.
Please note that the key of the second DSO should be the same as the semantic key of the first DSO in order to do the compare.
Best regards and good luck!
Steven Groot -
How to delete the record in the file present in the application server?
Hi,
I have two questions.
i) How can I delete a record based on some condition in the recordx in the file that is present in the application server?
ii) How can I lock the users whiel one user is accessing the file on the application server?
Thanks in advance.
SuvanHi,
If u want a frequent deletion this approach to delete a record from a file will havee unnecesary copy of records from one file to another and deletion of one file and renaming activities.
Instead what u can do is Add and field del_flag to ur record structure.
If u want to delete the record from a file just mark this del_flag as 'X'.
While processing u can have a loop like
loop at it_XXX where del_flag <> 'X'.
endloop.
This will logically delete the record.
When u r to finish the application at that time only perform this copying / deleting / and renaing activity
Hope this helps.
Cheers,
Nitin -
Error while saving the records in the database
Hi,
I am running into a wierd error.
I have built a new page which contains the information about the employees. Some of the fields are updatable fields. The page shows the details of the person who logs into the page.
I am not using EO in this page. The data is queried from the database from VO and displayed in the page and when the records are updated, they are saved in the databased using pl/sql procedure which is
being called from AM. So i am basically not using VO to save the records in the database.
The error which i am getting is,
If 2 users are trying to update the page at the same time, user A's details are updated in user B's page.
This is really causing the issue. Any help is greatly appreciated.
Thanks in advance.
PKI have posted the code used along with the dialog page. Please review.
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Pavan, Start1",OAFwkConstants.STATEMENT);
if (pageContext.getParameter("XYZBack")!=null)
pageContext.setForwardURL("OA.jsp?OAFunc=OAHOMEPAGE"// OAWebBeanConstants.RETURN_TO_MENU_URL also tryed this , same error
,null
,OAWebBeanConstants.KEEP_MENU_CONTEXT
,null //not needed as we are retaining menu context
,null // no parameters are needed,true //retain AM,OAWebBeanConstants.ADD_BREAD_CRUMB_YES
,true
,null
,OAWebBeanConstants.IGNORE_MESSAGES);
if(pageContext.getParameter("XYZUpdate") !=null)//The fields and their values are loaded as soon as the update button is clicked. We do this before calling the oadialog page so that the values are not lost
OAViewObject EmpDetailsVO3 = (OAViewObject)OAAppl.findViewObject("XYZPersInfoVO");
OARow EmpDetailsRow3 = (OARow)EmpDetailsVO3.first(); //Bringing the control over to the first row which is nothing but the displayed row.
if(EmpDetailsRow3 !=null)
s_workphone = EmpDetailsRow3.getAttribute("WorkPhone").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"workphone is: "+s_workphone,OAFwkConstants.STATEMENT);
s_fax = EmpDetailsRow3.getAttribute("WorkFax").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Fax is: "+s_fax,OAFwkConstants.STATEMENT);
s_building = EmpDetailsRow3.getAttribute("Building").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Building is: "+s_building,OAFwkConstants.STATEMENT);
s_room = EmpDetailsRow3.getAttribute("Room").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Room is: "+s_room,OAFwkConstants.STATEMENT);
s_box = EmpDetailsRow3.getAttribute("Box").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Box is: "+s_box,OAFwkConstants.STATEMENT);
s_preferedname = EmpDetailsRow3.getAttribute("KnownAs").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Preferred name is: "+s_preferedname,OAFwkConstants.STATEMENT);
OAException OAExcep1 = new OAException("PER","XYZ_UPDATE_DETAILS");
OAException OAExcep2 = new OAException("PER","XYZ_UPDATE_MESSAGE");
OADialogPage OADialogPG1 = new OADialogPage(OAException.WARNING,OAExcep1,OAExcep2,
OADialogPG1.setOkButtonToPost(true);
OADialogPG1.setNoButtonToPost(true);
OADialogPG1.setOkButtonLabel("Yes");
OADialogPG1.setNoButtonLabel("No");
OADialogPG1.setOkButtonItemName("DoOk");
OADialogPG1.setNoButtonItemName("DoNo");
OADialogPG1.setPostToCallingPage(true);
pageContext.releaseRootApplicationModule();
pageContext.redirectToDialogPage(OADialogPG1);
else if(pageContext.getParameter("DoOk") != null)
OAApplicationModule EmpDetailsAM = pageContext.getApplicationModule(webBean);
Class[] paramtypes = {String.class, String.class, String.class, String.class,String.class,String.class,String.class};
Serializable[] params = {s_personid,s_workphone,s_fax,s_building,s_room,s_box,s_preferedname};
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"personid is :"+s_personid,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"workphone is :"+s_workphone,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"workfax is :"+s_fax,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"building is :"+s_building,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"room is :"+s_room,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"preferredname is :"+s_preferedname,OAFwkConstants.STATEMENT);
pageContext.releaseRootApplicationModule();
OAAppl.invokeMethod("TransactionCommit",params,paramtypes);
OAAppl.invokeMethod("initDetails");
throw new OAException("The Building and Phone Information have been saved successfully"
,OAException.INFORMATION);
thank you -
Why I can not unlock the record when close a page?
I develop a jsp page as client,the jsp application use a business componment with statefull application module.i call a database rowset's lock function in jsp page to lock a record,now,after i close the jsp page without commit and rollback,the record is not unlocked,until i restart the oc4j application server.how can i unlock the record when close the page without commit and rollback?????
Li Ping:
If you lock a row in the course of a transaction, you cannot unlock the row until the end of transaction (either rollback or commit). DBMS doesn't allow this.
Alternatively, you can try to delay locking of the row. E.g., you can try using optimistic locking. Please see the Java Doc for oracle.jbo.Transaction if you're interested in optimistic locking.
Thanks.
Sung
Maybe you are looking for
-
How to include the ordinary program in the BOR object type program
Hi Guys, while i am trying to include a program in the BOR object type program. It is showing the following error: "Statement 'INCLUDE Z_ERC_SEARCH_VALOFACT_MACRO .' is not permitted in BOR". then, i tried to add "<" and ">" to enclose it, but it wa
-
XML files dont copy to standby unit
Hi, I have failover active/standby topology with two ASA (version 8.0.4), and Clientless SSL VPN configured. I have created differents profiles, bookmarks and portal in this solution. But when I try to see this files in the standby unit, I can't to s
-
Error message Ox800CCC90 ! Can anyone help please?
Almost every time I try to go online I find that I cannot because of this message! 0x800CCC90 - I get the BT recognition of a problem, and the box asking me if I want them to FIX IT. So I follow the instructions -almost every time this happens, and t
-
Hi friends: I need to get the local OS user connected using db package. I am building a web application with web toolkit. I define a function with this code: function f_get_os_user_connected return varchar2 is v_os_user_connected varchar2(50); begin
-
Error 77009 labview 2014 with solidworks 2015
hello please am a student i want to ask you some quastion that i have probs with it i want to creat an application with labview 2014 and solidworks 2015 with softmotion simulation so i got a probs that i cant deploy my project with error 77009 (0x0