Update BOM with RCSBI020
I have an issue when updating STPO-postp with the standard program RCSBI020.
If STPO-POSTP is modified from 'L' to 'N' (for example), the program delete the item and re-create it.
Because of this the historical of the items is deleted.
Can any one help me to solve this problem.
thank's very much
..The requirement is that when we create a new version for documents the same needs to be automatically updated in BOM.Is there any configuration available for achieving this or any other solution?..
Whenever you create a new version of a DIR,the system prompts you to confirm if the associated DIR objects(BOM in your case) also need to be copied.Positive confirmation will ensure that the new DIR version is automatically updated in BOM as well.To view all the DIR versions from BOM side,select 'All Versions' option in the document data section in BOM.
Hope this helps.
Regards,
Pradeepkumar Haragoldavar
Similar Messages
-
How to update BOM with diff. ECN
Hi Team
During change in BOM using ECM, I am allowed to change it with same ECN. If we change it with diff. ECN, it keeps the history of previous ECN.
Foe example a BOM has 3 diff. items, which is created with ECN: 001.
Now if we delete 2 items & add 1 item, then system displays all the items with respective change no.
i.e. Total 6 line items are displayed.
Pls suggest solution.
ThanksHi Bhushan,
For your case you need to :
Create a different Change Number through T Code: CC01 and create a new BOM (for the same material as it exists without ECN agaist any components) with this new change number. If you now delete / add some components (after you enter the BOM with this new ECN) ;it will be exclusively be recorded with this ECN.
If you use the same ECN; and do further changes at the components; all chages till date will be recorded as you have mentioned.
Thanks,
Ravi. -
Update BOM with latest Document Version
Hi All,
We have BOM's with Documents attached as items in them.
The requirement is that when we create a new version for documents the same needs to be automatically updated in BOM.
Is there any configuration available for achieving this or any other solution?
Thanks in advance..
Regards,
Sonal....The requirement is that when we create a new version for documents the same needs to be automatically updated in BOM.Is there any configuration available for achieving this or any other solution?..
Whenever you create a new version of a DIR,the system prompts you to confirm if the associated DIR objects(BOM in your case) also need to be copied.Positive confirmation will ensure that the new DIR version is automatically updated in BOM as well.To view all the DIR versions from BOM side,select 'All Versions' option in the document data section in BOM.
Hope this helps.
Regards,
Pradeepkumar Haragoldavar -
While trying to change a BOM with transaction CS02, a runtime error appears
While trying to change a BOM with transaction CS02, a runtime error appears.
In intial screen he entered material ,plant BOM usage and date valid from after executed then id displayed item list in that he wantu2019s delete one item, he has been deleted selected item after that when he was saving he is getting runtime error
Developer trace
ABAP Program SAPLKED1_WRITE_CE4_BPS1 .
Source LKED1_WRITE_CE4_BPS1U01 Line 30.
Error Code SAPSQL_ARRAY_INSERT_DUPREC.
Module $Id: //bas/640_REL/src/krn/runt/absapsql.c#17 $ SAP.
Function HandleRsqlErrors Line 775.
RABAX: level LEV_RX_STDERR completed.
RABAX: level LEV_RX_RFC_ERROR entered.
RABAX: level LEV_RX_RFC_ERROR completed.
RABAX: level LEV_RX_RFC_CLOSE entered.
RABAX: level LEV_RX_RFC_CLOSE completed.
RABAX: level LEV_RX_IMC_ERROR entered.
RABAX: level LEV_RX_IMC_ERROR completed.
RABAX: level LEV_RX_DATASET_CLOSE entered.
RABAX: level LEV_RX_DATASET_CLOSE completed.
RABAX: level LEV_RX_RESET_SHMLOCKS entered.
RABAX: level LEV_RX_RESET_SHMLOCKS completed.
RABAX: level LEV_RX_ERROR_SAVE entered.
RABAX: level LEV_RX_ERROR_SAVE completed.
RABAX: level LEV_RX_ERROR_TPDA entered.
RABAX: level LEV_RX_ERROR_TPDA completed.
RABAX: level LEV_RX_PXA_RELEASE_RUDI entered.
RABAX: level LEV_RX_PXA_RELEASE_RUDI completed.
RABAX: level LEV_RX_LIVE_CACHE_CLEANUP entered.
RABAX: level LEV_RX_LIVE_CACHE_CLEANUP completed.
RABAX: level LEV_RX_END entered.
RABAX: level LEV_RX_END completed.
RABAX: end RX_RFC
In sm21
Perform rollback
Run-time error "SAPSQL_ARRAY_INSERT_DUPREC" occurred
Short dump "090618 110101 donalda 11557 " generated
Runtime Error SAPSQL_ARRAY_INSERT_DUPREC
Exception CX_SY_OPEN_SQL_DB
Occurred on 18.06.2009 at 11:01:01
The ABAP/4 Open SQL array insert results in duplicate database records.
What happened?
Error in ABAP application program.
The current ABAP program "SAPLKED1_WRITE_CE4_BPS1" had to be terminated because
one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
What can you do?
Print out the error message (using the "Print" function)
and make a note of the actions and input that caused the
error.
To resolve the problem, contact your SAP system administrator.
You can use transaction ST22 (ABAP Dump Analysis) to view and administer
termination messages, especially those beyond their normal deletion
date.
Error analysis
An exception occurred. This exception is dealt with in more detail below
. The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was
neither
caught nor passed along using a RAISING clause, in the procedure
"RKE_WRITE_CE4__BPS1" "(FUNCTION)"
Since the caller of the procedure could not have expected this exception
to occur, the running program was terminated.
The reason for the exception is:
If you use an ABAP/4 Open SQL array insert to insert a record in
the database and that record already exists with the same key,
this results in a termination.
(With an ABAP/4 Open SQL single record insert in the same error
situation, processing does not terminate, but SY-SUBRC is set to 4.)
How to correct the error
The exception must either be prevented, caught within the procedure
"RKE_WRITE_CE4__BPS1"
"(FUNCTION)", or declared in the procedure's RAISING clause.
To prevent the exception, note the following:
Use an ABAP/4 Open SQL array insert only if you are sure that none of
the records passed already exists in the database.
You may able to find an interim solution to the problem
in the SAP note system. If you have access to the note system yourself,
use the following search criteria:
"SAPSQL_ARRAY_INSERT_DUPREC" CX_SY_OPEN_SQL_DBC
"SAPLKED1_WRITE_CE4_BPS1" or "LKED1_WRITE_CE4_BPS1U01"
"RKE_WRITE_CE4__BPS1"
If you cannot solve the problem yourself, please send the
following documents to SAP:
1. A hard copy print describing the problem.
To obtain this, select the "Print" function on the current screen.
2. A suitable hardcopy prinout of the system log.
To obtain this, call the system log with Transaction SM21
and select the "Print" function to print out the relevant
part.
3. If the programs are your own programs or modified SAP programs,
supply the source code.
To do this, you can either use the "PRINT" command in the editor or
print the programs using the report RSINCL00.
4. Details regarding the conditions under which the error occurred
or which actions and input led to the error.Hi ,
you are getting beacuse u are trying to do mass update to database.
Please check that below note are applicable to your system.
Note 453313 - DBIF_RSQL_ERROR_INTERNAL for mass insert
Note 869534 - AFS MRP doesn't work properly with all BOM item categories
Thanks Rishi Abrol -
Hi to all,
Can any one provide me sample program to update BOM via Function Module CSAP_MAT_BOM_CREATE.
As i already have created the program , but run time error is coming KEY_INCOMPLETE for CSAP_MAT_BOM_CREATE.
as i have already search the SDN , but cant get any specific answer for that.
Note: itab_bom_header and itab_bom_item_details are of same line type as
i_stko and t_stpo with data.
DATA: wa_bom_header TYPE zia_str_bom_header,
wa_itab_bom_item_details TYPE zia_str_bom_item_details.
IF itab_bom_header[] IS NOT INITIAL .
READ TABLE itab_bom_header INTO wa_bom_header INDEX 1 .
ENDIF.
*---- BOM header data structure
DATA: BEGIN OF tstko OCCURS 0.
INCLUDE STRUCTURE stko_api01.
DATA: END OF tstko.
DATA: wa_tstko LIKE LINE OF tstko.
*---- BOM items table
DATA: BEGIN OF tstpo OCCURS 0.
INCLUDE STRUCTURE stpo_api01.
DATA: END OF tstpo.
DATA: wa_tstpo LIKE LINE OF tstpo.
**---- Object dependencies table
Basis data
*data: begin of tdep_data occurs 0.
*include structure csdep_dat.
*data: end of tdep_data.
Description
*data: begin of tdep_descr occurs 0.
*include structure csdep_desc.
*data: end of tdep_descr.
Source
*data: begin of tdep_source occurs 0.
*include structure csdep_sorc.
*data: end of tdep_source.
Sequence
*data: begin of tdep_order occurs 0.
*include structure csdep_ord.
*data: end of tdep_order.
Documentation
*data: begin of tdep_doc occurs 0.
*include structure csdep_doc.
*data: end of tdep_doc.
CALL FUNCTION 'CALO_INIT_API'
EXPORTING
FLAG_DB_LOG_ON = 'X'
FLAG_MSG_ON = 'X'
FLAG_API_API_CALL_ON = ' '
FLAG_COLLECT_MSG_ON = ' '
EXTERNAL_LOG_NO = 'API'
DEL_LOG_AFTER_DAYS = '10'
DATA_RESET_SIGN = '!'
EXCEPTIONS
LOG_OBJECT_NOT_FOUND = 1
LOG_SUB_OBJECT_NOT_FOUND = 2
OTHERS = 3
LOOP AT itab_bom_header INTO wa_bom_header.
wa_tstko-BASE_QUAN = wa_bom_header-base_qty.
wa_tstko-BASE_UNIT = wa_bom_header-BASE_UOM.
wa_tstko-BOM_STATUS = wa_bom_header-BOM_STATUS.
ENDLOOP.
LOOP AT itab_bom_item_details INTO wa_itab_bom_item_details.
wa_tstpo-item_categ = wa_itab_bom_item_details-item_category.
wa_tstpo-item_no = wa_itab_bom_item_details-bom_itm_number.
wa_tstpo-component = wa_itab_bom_item_details-component.
wa_tstpo-comp_unit = wa_itab_bom_item_details-uom.
wa_tstpo-comp_qty = '10'.
wa_tstpo-valid_from = wa_itab_bom_item_details-valid_from.
wa_tstpo-itm_ident = wa_itab_bom_item_details-item_id .
APPEND wa_tstpo TO tstpo .
ENDLOOP.
FM to create BOM
CALL FUNCTION 'CSAP_MAT_BOM_CREATE'
EXPORTING
material = wa_bom_header-material
plant = wa_bom_header-plant
bom_usage = wa_bom_header-bom_usage
VALID_FROM = wa_bom_header-VALID_FROM
CHANGE_NO =
REVISION_LEVEL =
i_stko = tstko " bom header
FL_NO_CHANGE_DOC = ' '
FL_COMMIT_AND_WAIT = ' '
FL_CAD = ' '
fl_default_values = 'X'
IMPORTING
fl_warning = fl_warning
bom_no = bom_no
TABLES
t_stpo = tstpo " bom item
T_DEP_DATA = tdep_data
T_DEP_DESCR = tdep_descr
T_DEP_ORDER = tdep_source
T_DEP_SOURCE = tdep_order
T_DEP_DOC = tdep_doc
T_LTX_LINE =
T_STPU =
EXCEPTIONS
error = 1
OTHERS = 2
IF sy-subrc <> 1.
WRITE 'error'.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF fl_warning EQ 'X'.
WRITE 'done'.
ENDIF.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
please can any one provide me the solution for that.
i shall be thankfull to you for this.
Regards
Pavneet Rana
Edited by: pavneet rana on Aug 18, 2011 3:01 PMThanks for reply,
i have debug my program and found that run time error is coming at GET_MAST function module.
but i have already checked that MATNR and STLNR is already filled before reaching to that FM.
GET_MAST
IF NOT SET IS INITIAL.
IF WA-MATNR IS INITIAL
AND WA-STLNR IS INITIAL.
RAISE KEY_INCOMPLETE.
ENDIF.
IF WA-MATNR <> SPACE
AND WA-STLNR <> SPACE.
RAISE KEY_INVALID.
ENDIF.
please can any one provide me the solution for that.
Regards
Pavneet Rana -
Hi
I have requirement to update BOM and Routing . Please suggest me BAPI or functional module to Update BOM and Routing .
Thanks
UdayDear Shankar,
For BOM use the T Codes CS20 or else CEWB for making mass changes or else check with this Functional Module,
CS_CL_P_BOM_MASS_CHANGE
For routing use the T Code CEWB or else check with these Functional Modules,
CP_CL_S_OPR_MASS_CHANGE
CP_CL_S_TSK_MASS_CHANGE
EWB_MASS_CALL_OPR
EWB_MASS_SAVE_OPR
EWB_MASS_SELECT_OPR
Regards
Mangalraj.S -
Exit for production order creation that update BOM explosion date
Hi Guros
does any one know a user exit for production order creation that update BOM explosion date = AUFLD.
or a UE that run before the BOM explosion.
thanks.Dear,
I dont think user exist will work for you,
You need to find BAdi for it, cl_exithandler=>get_class_name_by_interface .
Or try with SE84,
Enter the package name and check the " Enhancements"
Regards,
R.Brahmankar -
Issue in Invoking an Updatable View with Instead of Trigger
Hi,
I am trying to insert a record using Updatable View with Instead of Trigger. When i try to save the data, i get the below error:
java.sql.SQLException: ORA-01403: no data found
ORA-06512: at line 1
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:213)
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1075)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1466)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3887)
at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:9323)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1508)
at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:172)
at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:432)
at oracle.jbo.server.EntityImpl.doDMLWithLOBs(EntityImpl.java:8566)
Can someone help me resolve this issue?
Also it would be great if you can share Sample codes for Invoking an updatable view with instead of trigger on Save/commit.
Regards,
JeevanAs a trigger is executed in the db and not in your app it's really hard to help as you did not give any useful information.
Have you read this blog http://stegemanoracle.blogspot.com/2006/03/using-updatable-views-with-adf.html ?
Timo
Edited by: Timo Hahn on 22.09.2011 09:15
And my friend google also found http://technology.amis.nl/blog/1447/adf-business-components-resfresh-after-insertupdate-and-instead-of-triggers -
I updated my computer to the new software and now the iPhoto has a circle with a line through it. When I first try to open it the pop us says: "You can't use this version of the application "iPhoto" with this version of OS X. Version: 9.2.1" When I try to update, it pops up to say "These apps cannot be accepted by your apple id - These apps were already assigned to another Apple ID and they will be available in that Apple ID's purchases list. If you don't have access to that Apple ID and want to receive future updates, you will need to purchase the application". I checked and there is nothing under the "purchases" in my App store. Then will say "update unavailable with this apple id - This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or canceled." Then the third pop up says "We could not complete your request. There was an error in the App Store. Please try again". Just want to know how do to fix.
After I upgraded to Mavericks I was also having this message when I tried to update. There was a previous post about this problem which offered this simple solution which worked for me:
b0n0b0
Re: Recently upgraded to Maverick from SnowLeopard. Unable to get updates from App store.
Mar 15, 2014 9:05 AM (in response to Terence Devlin)
Got it! Thanx. What I did was go to my account, check that they had my new ID and Password which they did, then hit reset button. All fixed. -
After the most recent FF update, FF 3.6.6 will not load, citing the error message: "XULRunner / Error: Platform version '1.9.2.3' is not compatible with minVersion>=1.9.2.6 / maxVersion". Tried updating XULRunner with no luck. Downloaded fresh copy and installed. Still no luck.
== This happened ==
Every time Firefox opened
== FF updated to 3.6.6 ==
== User Agent ==
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.4; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)Do a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
You can skip the step to create a new profile, that is not necessary for this issue.
See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall -
This morning I tried to update my apps through the app store. Many of them updated, but some (Soundcloud, Evernote, Viber, and IMDB) gave me the error message "Update unavailable with this Apple ID"
I removed those apps and tried to re-install them, only to receive the same message. I then logged out of the App Store and logged back in but this did not make a difference.
These apps are not showing up on my "purchased" list.
I have only ever had one Apple ID, and have been using and updating these free apps for some time now.
Any idea how I can resolve this? Searching the forums has not helped at all.Same problem here. IMDB, TWC (weather app) Goodreader… Started this morning, out of the blue.
After deleting IMDB (hoping to reinstall), that app cannot be installed again! Trying to, gets you the same “Update unavailable” error.
Also, the problematic apps are not listed in my “Purchased” list (which is the real problem I think).
I also tried through iTunes. Same problem.
Can someone confirm that the problem apps are not showing in your purchased list?
I don’t know if it’s on Apple’s side (in which case it will get fixed) or on my side (meaning I will have to do something).
(I contacted Apple, waiting for reply.) -
Hi, ive recentley got a new iphone 5C. I am trying to download apps on the appstore but it wont let me. It says this: Update Unavailable with this Apple ID.
This update is not available for this apple ID because it was bought by a different user or the item was refunded or cancelled.
How do u fix this??Apps are forever tied to the AppleID used to download them.
Either use the original AppleID or delete the app and then download again
using your current AppleID. You cannot transfer an app from one AppleID to
another, nor can you merge AppleIDs. -
Comparing prices for a BOM with selling and distribution price
Good day
I have been working on a query to bring information for a crystal report required by a client they want to compare the finished BOM with the selling price or distribution price of that BOM. I am not understanding a scenario where this BOM is sold to a particular BP price will definitely vary with BP depending on the terms and special prices. Can anyone help me enhance my query to have valuable results.
SELECT
Distinct T0.Father AS [BOM Product N0.],
T0.Code AS [BOM Item Component],
T2.ItemName AS [BOM Description],
T0.Quantity AS [Component Qty],
T0.Price AS [Comp Cost],
(Select (t3.Factor * t0.Price * t0.Quantity)
from OPLN t3
where t3.ListName = '1.selling price' ) [Selling Price],
(Select (t3.Factor * t0.Price * t0.Quantity)
from OPLN t3
where t3.ListName = '3.distPriceList' ) [Distribution Price],
T0.PriceList AS [Comp Price List],
T1.ListName AS [Price List Name],
T2.AvgPrice
FROM ITT1 T0
INNER JOIN OPLN T1
ON T0.PriceList = T1.ListNum
INNER JOIN OITM T2
ON T0.Code = T2.ItemCode
Where T2.ItmsGrpCod NOT IN (101,110,105)Hi,
Special price is in OSPP / SPP1 /SPP2 tables. Check the table to find the link.
Thanks,
Gordon -
MacBook Pro battery had accumulated more than a 1000 charges, and stopped functioning unexpectedly. Went and got the battery replaced. Just saw that SMC Firmware 1.6 update deals with this. Possible to get my money back?
The firmware update corrects an error that may occur, however the techs would have checked the condition of the battery prior to installing a new one. If the battery was questionable, the firmware update was really not too important.
You can check the battery condition by going to the apple, left side of the menu bar, About This Mac, More Info, System Report, Hardware, Power and see what it says about Cycle Count, Condition, Capacity: Condition anything but Normal needs to be checked and may need to be replaced.
The cycle count of 1,000 charge cycles is the typical life of a Lithium-Ion battery, the point at which the capacity drops to 80% of the as built capacity. -
Unable to update iPhoto and iMovie. "Update Unavailable with This Apple ID"
I updated to Yosemite and all went well but for the message "Update Unavailable with This Apple ID" for the two apps iPhoto and iMovie. I have tried using the terminal window and used code that others have suggested and obtained a SmartSearch. I deleted everything in that folder and I still can't update these two apps. The other apps updated without problems. Thanks for any help.
For a couple of years now, the verson of the iLife apps that come preinstalled on new Macs are the Mac App Store (MAS) versions. MAS apps have the Apple ID that bought them encoded in the app as an anti-piracy scheme. Since these apps are preinstalled, before using any of the three apps, the new Mac owner must open the MAS, go to the Purchases pane and accept these apps into their MAS account. This allows the MAS to encode the owners Apple ID into the apps.
Failure to accept these apps into your account and have them encoded with your Apple ID before using one of them renders the apps "as is" and they cannot be updated or downloaded to another Mac. The only way that I know of to rectify the problem is to use OS X Recovery to erase the Mac and reinstall OS X and the iLife apps, so that the initial setup can be attempted again and the apps be accepted into the MAS account and encoded with the Apple ID.
Maybe you are looking for
-
Problem with CD writer interaction!!!!
Hi! I'm trying to write a program that will interact with any CD writer which means the program supposed to be capable of burning data on a CD. Is it possible to interact with CD writer in Java? If it is can anyone point me to a online resource where
-
Hey everyone, Are you trapped in a house haunted by once useful, but now useless, gadgets and gizmos? Is your outdated technology truly scary – maybe a VCR that eats tapes, a screeching dial-up modem, a dryer that devours socks, or a laptop that cou
-
No lightbox, no rollover. Click on the same botton I need to use it in mobile version. I need add text information on the image of my project in the mobile website version. I tried here in the second image but I used 2 button; I can't hide the X butt
-
Azure backup Windows 8.1 error
Since I learned that Azure Backup turned available for Windows 8.1 I have tried to get it to work but I have not succeeded yet. I have followed the instructions but when i try to make a backup I get the 0x1D4C2 error. When looking in the logs I don't
-
Crashing - Freeze when trying to export more then one project in compressor
when i set more then one final cut project to convert a DVCPRo HD project to DVD media or quicktime during the first batch project the system freezes. I used to be able to do multiple projects over night or the weekend and now i have to do one at a t