Reg update
hi all
UPDATE TABLE zinv_header .
SET invoice_core = p_perinv
invoice_created = inv_cnt
username = sy-uname
systemdate = sy-datum
systemtime = sy-uzeit.
this statement is not working, so i add a field mandt in the z table. i have to give the where condition, how can i give?
support please
regards
karthik
loop at table into workarea.
update dbtable from workarea set field = workarea-field
where
workarea-field = ''.
thnkx
bhanu
Similar Messages
-
HI..Gurus,
How RG1 reg Update? Wt is the T.Code for that. ?What are the pre-requisites that are needed.?
regards,
jyothi.Hi Jyothi
The sequence is like this:
1. In SE16, enter Table name: J_2IRG1BAL, and click on Create. Enter the material Number and 'P' in Material form (Loose/Pack indicator) and click 'Save'. This step is to be done only for the first time.
2. Do your Initial Stock entry in MB1C, movement type 561
2. Go to J1I5, select Posting Date, Document Year and 'ROP in Classification (Receipt from outside under any other provision). Click on Create icon (Register entry)
4. Go to J2I5 and extract the RG1 Register. You must get a green checkmark.
5. After doing the PFI, go to J1I5, select Posting Date, Document Year and Classification 'IDH' (For domestic sales) or 'IDE' if the first removal is for Export Sale. Based on the accounting document generated during PGI (MB03) the RG1 Register gets updated with the removal for Outbound Delivery.
6. Reextract the RG1 register in J2I5. You must get a green checkmark.For the RG1 Register printout, go to J2I6, select the option, 'Script Form' and hit 'Execute.
All this was in OSS Note: 373001.
Ramana ND
PS: You must have maintained the Number range Object J_1IRG1 (RG1 Register) -
Exc reg updation for trading material
Hi experts,
I have a trading material, at the time of purchase RG23A reg is updating both quantity and value.
But while sales, RG1 reg is not updating.
As Excise is concerned, at the time of sales the quantity in RG23A should be deducted and RG1 also should be deducted.
Is there any specific configuration required for this kind of scenerio.
for eg. if i am purchasing 100 quantity.
RG23A part 1 RG23A part 11 RG1
+100 Value +100
if i am selling 100 quantity
RG23A part 1 RG1
-100 -100
can anybody help.hi..
to achieve this...
when u receive material from vendor RG23A reg both quantity and value will be updated..
for eg- rg23 a part i shows a quantity of 100
then u have to create some mov type copying existing and issue material to finished store, and assign in specify mov type for excise invoice in tax on goods movement, which should update both rg23a part 1 and rg1
for eg- rg23 a part 1 should show 000 quantity and rg1 should show 100
then u sell the material which will update rg1 reg...
anybody who can suggest which mov type should be copied.... -
Reg update of a 10 million record table from 1 million record table
I have 2 tables
Tabke 1 : 10 millio records
21 indexes --> 1). acct_id , acct_seq_no -- index_1
2). c1 , c2 , c3 -- index_2
Table 2 : 1 .5 million records
1 index on ( acct_id, acct_seq_no) - idx_1
common keys are acct_id and acct_seq_no
I'm updating table1 from table 2
I need to use index ( index_1 from table_1 ) and (idx_1 from table_2)
How can I make my query to use only this particular index.
MY query ia as follows
UPDATE csban_&1 csb
SET (
duns_no,
hdqtrs_duns_no,
us_ultmt_duns_no,
sci_id,
blg_cl_id,
cl_id
) =
( SELECT acct_id,
acct_seq_no,
duns_no,
hdqtrs_duns_no,
us_ultmt_duns_no,
sci_id,
blg_cl_id,
cl_id
FROM csban_abi_temp
WHERE csb.acct_id = temp.acct_id
AND csb.acct_seq_no = temp.acct_seq_no
AND rownum < 2
WHERE
EXISTS
SELECT 1
FROM csban_abi_temp temp1
WHERE csb.acct_id = temp1.acct_id
AND csb.acct_seq_no = temp1.acct_seq_no
DO I need to put and index hint after this
UPDATE csban_&1 csb --???????? /*+ indedx (csb.index_1) */
Thanks in advanceThanks a lot david and rob for sharing the info.
Please find the details
SQL> EXPLAIN PLAN FOR
UPDATE csban_2 csb
SET (
duns_no,
hdqtrs_duns_no,
us_ultmt_duns_no,
sci_id,
blg_cl_id,
cl_id
) =
( SELECT duns_no,
hdqtrs_duns_no,
us_ultmt_duns_no,
sci_id,
blg_cl_id,
cl_id
FROM csban_abi_temp temp
WHERE csb.acct_id = temp.acct_id
AND csb.acct_seq_no = temp.acct_seq_no
AND rownum < 2
WHERE
EXISTS
SELECT 1
FROM csban_abi_temp temp1
WHERE 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
21 22 23 24 25 26 27 28 29
Explained.
SQL>
SQL>
SQL> SELECT * FROM TABLE(dbms_xplan.display);
PLAN_TABLE_OUTPUT
Plan hash value: 584770029
| Id | Operation | Name | Rows | Bytes | Cost
| TQ |IN-OUT| PQ Distrib |
PLAN_TABLE_OUTPUT
| 0 | UPDATE STATEMENT | | 530K| 19M| 8213
| | | |
| 1 | UPDATE | CSBAN_2 | | |
| | | |
|* 2 | FILTER | | | |
| | | |
| 3 | PX COORDINATOR | | | |
| | | |
PLAN_TABLE_OUTPUT
| 4 | PX SEND QC (RANDOM) | :TQ10000 | 530K| 19M| 8213
| Q1,00 | P->S | QC (RAND) |
| 5 | PX BLOCK ITERATOR | | 530K| 19M| 8213
| Q1,00 | PCWC | |
| 6 | TABLE ACCESS FULL | CSBAN_2 | 530K| 19M| 8213
| Q1,00 | PCWP | |
|* 7 | INDEX RANGE SCAN | IDX_CSB_ABI_TMP | 1 | 10 | 3
PLAN_TABLE_OUTPUT
| | | |
|* 8 | COUNT STOPKEY | | | |
| | | |
| 9 | TABLE ACCESS BY INDEX ROWID| CSBAN_ABI_TEMP | 1 | 38 | 4
| | | |
|* 10 | INDEX RANGE SCAN | IDX_CSB_ABI_TMP | 1 | | 3
| | | |
PLAN_TABLE_OUTPUT
Predicate Information (identified by operation id):
2 - filter( EXISTS (SELECT 0 FROM "CSBAN_ABI_TEMP" "TEMP1" WHERE "TEMP1"."ACC
T_SEQ_NO"=:B1 AND
"TEMP1"."ACCT_ID"=:B2))
PLAN_TABLE_OUTPUT
7 - access("TEMP1"."ACCT_ID"=:B1 AND "TEMP1"."ACCT_SEQ_NO"=:B2)
8 - filter(ROWNUM<2)
10 - access("TEMP"."ACCT_ID"=:B1 AND "TEMP"."ACCT_SEQ_NO"=:B2)
Note
- cpu costing is off (consider enabling it)
30 rows selected.
The query had completed and it took 1 hr 47 mts.
SQL> SQL> SQL> Updating CSBAN from TEMP table
old 1: UPDATE /*+ INDEX(acct_id,acct_seq_no) */ csban_&1 csb
new 1: UPDATE /*+ INDEX(acct_id,acct_seq_no) */ csban_1 csb
1611807 rows updated.
Elapsed: 01:47:16.40 -
Hi All,
I am trying to update the Financial Statement Versions in lower systems with that of Production.
Am using Xml to bring on the data from Production system to DEV box.
I have the data as follows:
Node_tab:
Record Type - Record Type A, P, G etc
Record Name - Name of the Record
Level - Node Level
Parent - Parent of the current node
Child - Child of the current node
Next - Next node for the current node
Desc - Description of the node
Can someone tell me the criteria on which following tables are populated.
FAGL_011PC
FAGL_011ZC
FAGL_011SC
FAGL_011VC
FAGL_011FC
We have a Function Module FAGL_FSV_POS_UPDATE, that is based on these tables for updation of a FSV.
Regards
RajClient is looking upon TDMS (Test Data Migration Server) to replicate the PRD data into lower systems.
-
Hi Gurus,
In my requirement i want to set the data base field VSTAT as 1 in NAST table when the order is processed. I'm using UPDATE statement to update the database field but it does not work. i write the code like this
update nast set vstat = 1
where kappl = 'EF' and
objky = '5500000002' and
kschl = 'LEFT'.
but it doesn't work fine sy-subrc set to 4. Is there any way to set the value of vstat as 1. Please help me.same here, you need to write your issue clearly. Why are you trying to update NAST. it contains the output from the transaction, why not letting it processed instead of doing something stupid bu updating in in the code. if you dont weant output to be processed remove the condition record.
You would help yourself if you write the problem yiu are facing more clearly. eg you are writing the code but where? which program ? user exit? how can one imagin what your issue is -
Reg:updation of likp-btgew field in vl02n transaction
hi friends,
in my requirement i have to populate the field likp-btgew in vl02n when the outbound delivery was created
i have updated the field by using user exits in program sapmv50a,
now the field is getting updated but my problem is when i change the line items weight dynamically the total
weight is not getting updated according to my change
i have read the sap oss note-415716(for delivery processing) the user exit (USEREXIT_SAVE_DOCUMENT_PREPARE)
is triggered only when i pressed save.
but my requirement is when user change any of the line item quantity and press enter the total weigt field has to get
updated bcz for multiple line items every time saving is not possible right? its bit lenghthier.........
can anybody pls suggest is there any other way or any usrexit or badi available for this req to update the screen
field likp-btgew dynamically.....
pls help......
regards
babuhi khan,
thank u for ur reply,
the userexits i have choosen r working properly except in one case,when i remove or add any of the line items in my delivery total weigt is not getting updated,except in this case, it is working fine when i created the new order r if change the line items quantity it is working fine moreover i will check the userexits specified by u .
if there is any other way pls let me know guys...
regards
babu
Edited by: babu888 on Feb 10, 2012 3:59 AM -
Reg Update Order System Status
Hi,
My requirement is, while doing TECO (technical complete) of maintenance order I want to check for open reservation/requisition in maintenance order. and if we found any any open reservation/requisition then order status TECO will not update. maintenance order will remain in present status. any other update done in this order before TECO will save.
Please suggest how I can acheive this.
I tried to use uesr exit IWO0009 and BADI WORKORDER_UPDATE but not abe to update order system status in this point.
Please suggest me any EXIT or BADI or Solution for this requirement.
Regards,
AtulHi Atul,
Following codes can be help u for Open PR before TECO.
*& Include ZXWO1U03
EXIT_SAPLCOIH_004
DATA: BEGIN OF IT_EBAN OCCURS 0,
BANFN LIKE EBAN-BANFN,
BNFPO LIKE EBAN-BNFPO,
EBELN LIKE EBAN-EBELN,
LOEKZ LIKE EBAN-LOEKZ,
END OF IT_EBAN.
DATA: IT_AFKO LIKE AFKO.
DATA: BEGIN OF IT_AFVC OCCURS 0,
BANFN LIKE AFVC-BANFN,
END OF IT_AFVC.
DATA: X_AUFPL LIKE AFKO-AUFPL,
X_BANFN LIKE AFVC-BANFN,
STR TYPE STRING.
SELECT SINGLE AUFPL
FROM AFKO
INTO X_AUFPL
WHERE AUFNR = CAUFVD_IMP-AUFNR.
IF SY-SUBRC = 0.
SELECT SINGLE BANFN
FROM AFVC
INTO X_BANFN
WHERE AUFPL = X_AUFPL
AND STEUS = 'PM03'." Extenal Service Control Key"
SELECT BANFN BNFPO EBELN LOEKZ
FROM EBAN
INTO TABLE IT_EBAN
WHERE BANFN = X_BANFN.
ENDIF.
LOOP AT IT_EBAN.
IF IT_EBAN-EBELN = '' AND IT_EBAN-LOEKZ = ''.
CONCATENATE 'PR' IT_EBAN-BANFN 'is not converted to PO.TECO is disallowed' INTO STR SEPARATED BY SPACE.
MESSAGE STR TYPE 'E'.
ENDIF.
ENDLOOP. -
hi friends,
i facing issues in update query can i update multiple row.
query
update m_ent_pageurl
set url=(select replace(url,'PolicyManagerV2','employees') from m_ent_pageurl)
where pk_pageurl_id in (1,2,3,4,5)
i want update 5 records at a time.but its giving me error like "Single row subquery return".
is there any way to do date in update query only.
--rajnishtry this
update m_ent_pageurl a
set url=(select replace(url,'PolicyManagerV2','employees') from m_ent_pageurl b where b.pk_pageurl_id=a.pk_pageurl_id)
where pk_pageurl_id in (1,2,3,4,5) -
Hi,
There was some update Request Errors in sM13 in the month of Decemeber
But now when i see that , i could not see any Update Request Errors in the month of December
Me or any one in my team has not deleted this Update Request Errors
Please let me know whether Update reqeusts gets automatically deleted or not
If it does not get automatically deleted, please let me know if there is a way to find out of who deleted the Update Request Errors
Please helpDear Balaji,
this is handled by the value of the profile parameter
rdisp/vbdelete
Parameter description :
The parameter specifies the duration in days, after which an
update request is deleted. At the end of this period, the update
requests are deleted irrespective of their status. If the parameter
has the value 0, the update requests are not deleted.
I guess, that this has the default 50 is used. That means that your errorneous update
requests have been deleted. The parameter is only used when the system is restarted.
At that point in time, all requests older than rdisp/vbdelete will be deleted (unless it is
set to 0, which might be what you want).
Best Regards,
Tim
Edited by: Tim Buchholz on Mar 13, 2009 1:17 PM -
How RG1 reg update for export sales?
Hi,
Iam doing the Export sales. Iam doing it export under bond. Is it necessary for update RG1 for Export sales? Wt is the process for updating RG1 for export sales?
regards,
jyothi.RG1 for exports will be updated, similar to regular domestic sale. The process to update register is provided in link & menupath below:
Link: http://help.sap.com/
Path: SAP Best Practices --> Baseline Packages --> Based on SAP ECC 5.00 --> Select Country: for eg, Localized for India --> Technical Information --> Building Blocks --> Select Country for eg, India --> Excise Periodic Processing
Hope the above is helpful.
Regards,
Rajesh Banka
Reward points if helpful -
Hi Experts,
I'm not sure why this update is taking long time.
Table EXPORT_DATA has - 192 columns, No Primary Key, No Indexes
No. of rows = 6135
v_first_name.COUNT = 144 (from cursor)
-- in declaration
TYPE R_FIRST_NAME IS TABLE OF VARCHAR2 (4000 Byte);
TYPE R_LAST_NAME IS TABLE OF VARCHAR2 (4000 Byte);
TYPE R_EMAIL_ADDRESS IS TABLE OF VARCHAR2 (4000 Byte);
V_FIRST_NAME R_FIRST_NAME ;
V_LAST_NAME R_LAST_NAME ;
V_EMAIL_ADDRESS R_EMAIL_ADDRESS;
-- in proc body
<...query...> bulk collect into V_FIRST_NAME,V_LAST_NAME, V_EMAIL_ADDRESS;
/* Formatted on 11-1-2012 11:30:27 AM (QP5 v5.163.1008.3004) */
FOR i IN 1 .. v_first_name.COUNT
LOOP
UPDATE export_data exportdata
SET primary_editor_first_name = v_first_name (i),
primary_editor_last_name = v_last_name (i),
primary_editor_email = v_email_address (i)
WHERE exportdata.company_id = v_company_id (i) AND exportdata.user_session_id = v_user_session_id;
END LOOP;Please let me know if you need any other information.
Any pointers to this like what & why could be the pain-points?
Ranit B.
Database version - 11.2.0.2.0
Edited by: ranit B on Nov 1, 2012 11:59 AM
-- added bulk collect codejeneesh wrote:
This looks lik a part of a PL/SQL block..Yes, it is.
Are you sure that this UPDATE is cnsuming the time?Yes, i checked each line of procedure getting executed in Session Browser of Toad v10.6
Did you check what is the value of v_first_name.COUNT?Yes. i already posted that :: v_first_name.COUNT = 144
Did you try doing one update outside the PL/SQL block rplaceing the variable values? Is it taking time?Please post the explain plan for the same...No. i dint try this.
Explain plan (with some sample data)-
Plan hash value: 1947256787
| Id | Operation | Name | Cost (%CPU)|
| 0 | UPDATE STATEMENT | | 56740 (1)|
| 1 | UPDATE | EXPORT_DATA | |
|* 2 | TABLE ACCESS FULL| EXPORT_DATA | 56740 (1)|
Predicate Information (identified by operation id):
2 - filter("EXPORTDATA"."COMPANY_ID"=123456 AND
"EXPORTDATA"."USER_SESSION_ID"='123123') -
Hi All,
I am working on ECC6.0, I can see around 80 updates failed due to the following reason. <b>ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC</b>.
what should i do now? how can i come out from this?
kind regards,
praveenHi Praveen,
As the error message suggests, the failure was due to unique constraint violation on the object, which is fine as the object is consistant.
Get hold of the username / transaction and check with the users if they are having any issues with their records / data. If they find it to be consistant, just make note of the update failures and analyze which job / process caused duplicate records to be inserted.
Regards,
Nisch -
Reg: Update of Business address in contact of customer using CMD_EI_API class
Hello All,
I am able to insert contact details for the existing customer using the class CMD_EI_API.
While trying to update existing contact I am not able to update the business address of the contact(T1_
* structures are used to insert/update the business address), but able to update for person details(T3_* structures are used to update the normal address).
While creating the contact I am able to add the Business address properly, but while updating the contact business address details are not changed.
I am also not getting any errors form the API and also the the function module 'ADDR_MAINTAIN_COMPLETE' which is used to update the address details.
With regards,
Sandeep AkellaHello All,
For an existing customer we need to pass the contact that needs to be updated only.
T1_ADDRESS corresponds to Business address
T2_ADDRESS corresponds to Home address
T3_ADDRESS corresponds to contact in company address.
If there are 3 contacts C1, C2 and C3, and you are updating contact C2 then only pass the details of C2 along with the details of customer.
Similarly, If you are adding a new contact C4 then pass details of C4 only.
With regards,
Sandeep Akella -
Hi All,
We have a requirement to read the import file from the selection screen through function module.
Select the payroll results created in cluster for the last period (i.e. the latest period where in-period equal to for-period) populate the content of the text file in cluster GRT.
The business requiremnet goes like this:
The Gross payroll is to be processed in SAP system for UK base employees and deputies. The gross payroll output is to be provided to Vendor and the net payroll is processed in vendor system. The vendor provides the file with the net results which needs to be imported in SAP system. To update the payroll cluster with the net results, this program needs to be developed.
Could anyone provide some sample code or pointers on how this can be achieved?
Thanks,
Sujanamost of the plant level MRP data for a Material is found in MARC
Regards, Murugesh AS
Maybe you are looking for
-
Samsung hard drive problems with mid 2009 Macbook Pro
Arghh, this is driving me mad. I'd like to know if anyone has installed a Samsung HM641JI SATA II hard drive into a mid 2009 Macbook Pro (mine is a 2.8Ghz) and, if so, how they managed it. The drive is 640GB. These are the steps I've taken: 1. Swap
-
A few months back I tried to upgrade 1 of our systems to XP it installed fine but would not recognize the key board, as soon as you typed a character the system would hang. I am ready to try again. The system is a MW-6340 Ver. 1 board. The WMinfo pro
-
Hi All!! Which package can help me to run OS command from SQL script? Thanks.
-
TS2755 unable to recieve texts from iphones
I switched from apple to android and now I cant recieve texts from iphones. I have unregistered number from apple and have turned off imessage. How do I fix this problem?
-
SAP NetWeaver 7.3 SP12 PAT0003
Dear Gurus, Please provide me configuration document for SAP NetWeaver 7.3 SP12 PAT0003. Thanks & Regards Shilpi Mahajan