ECN field obliged when changing a BOM
Hi all,
I found after flaged the historical demand and ECM in OS27,it is still just a warning message that tells the user a ECN should be maintained when doing CS02,changing the message type and category is not available in the standard system.
How many other ways that I can make the filed ECN is a must when changing the BOM,besides SHD0.
Is there a standard and easy solution?
Txk!
Dear,
For user you can do it through the Authorization object C_STUE_NOH
Please refer this link for details,
Re: Change number mandetory for CS20 -reg
Regards,
R.Brahmankar
Similar Messages
-
Inbound Processing : Error when changing a BOM
Hi Experts,
I have the following error when I send a BOMMAT IDoc in "Change" Mode (Editing the BOM, to recreate the History inthe Target system) :
Start processing in API: CSAP_MAT_BOM_MAINTAIN
Group BOM
Changes to the BOM exist after 03.11.2008
Date 03.11.2008 copied from change number
Item (1) 0040 L 000000001084237016 000000000000000000000000 cannot be uniquely identified
Item (3) 0100 L 000000001084237021 000000000000000000000000 cannot be uniquely identified
Item (6) 0200 L 000000000768041196 000000000000000000000000 cannot be uniquely identified
End of processing in API: CSAP_MAT_BOM_MAINTAIN
Any idea ?
Regards,
DavidHi Gordon,
I think I found something.
When I create a BOM with ALE in the Target, no problem. Then when I want to update it, I've got this error ...
In the Source, we're working with Text Object for Text Item (INCLUDE Text ID). But in the Target, Text Object doesn't exist, and when we update or modify the BOM via ALE, the Inbound Process try to find the old Text Object before updating it with the new one ...
I think the solution is to create all Text Object/ID (Ta SO10) in the Target ... I don't understand why the ALE Inbound Process doesn't create Text Objects if they don't exist...
Regards,
David -
Specify field mapping when changing table location
I want to change the tables in a report to refer to database tables with a different schema, and specify the mapping of fields in code.
I already have code that changes table locations successfully when the schema does not differ, using the RAS API. As far as I can tell, the RAS API doesn't have a way of handling schema differences. Is that true?
OTOH, the higher-level CR API does appear to have a mechanism to do field mapping, using the FieldMapping event in the ReportDocument class. I've been trying to use this API for the job, but I don't seem to be able to change the location of a table in the report.
Here's an example scenario:
The report was created using an ODBC data source Source1 that contains a table Table1
I have an ODBC data source Source2 that contains Table1 as well as a table Table2 that is identical to Table1 except that the field names are all slightly different
I want to change the report so that it uses Table2 in Source2
I've managed to get the report switched to Source2 with code like this:
report.DataSourceConnections[0].SetConnection("Source2", "", id, pwd);
Here's the code I'm using to try to change the report table to refer to Table2:
Table table = report.Database.Tables[0]; // only one table in the report
TableLogOnInfo logOnInfo = table.LogOnInfo;
logOnInfo.TableName = "Table2";
table.ApplyLogOnInfo(logOnInfo);
report.VerifyDatabase();
I've also tried the simpler
table.Location = "Table2";
Neither approach changes the table location. I know this because when I preview the report I see data. Since the field names are all different, changing the location should have removed all the fields from the report. (Also, the event handler I have hooked up to the FieldMapping event is not called. Yes, I did enable the event in the ReportDocument.)
So:
How do you change the location of a table using the high-level API?
If you change the location using the RAS API, is the FieldMapping event fired? (Haven't tried this, but somehow I doubt it.)
Is there a way to do field mapping with the RAS API?
Thanks!
- rick cameronHi Rick
This is not considered a bug. It is a limitation that has been discusses extensively in many of our internal meetings. The implementation job proved to be much too massive and with highly limited ROI. E.g.; the number of requests for the feature is just not there...
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
Mass change in BOM - field "Relevant to sales"
Hi All,
How to do Mass change in BOM for the field "Relevant to sales" ?
Thanks.
MariannaHi,
Need to use CS02 recording in such a way that you can change every item in a particular BOM.
e.g. First get into HEader Material BOM (CS02), once you've General Item Overview screen, do NOT directly go to item details of any item.... first click on tab-'Position', enter either Item Number or Component or both and then go to item details to change the relevancy indicator. Once changed for a particular item, save the BOM & come out of it. Then try for next item & so on....
Again this is my initial thought, you need to try out few recording options like this and then chose the most suitable one. Take help from ABAP expert if any available.
Off-course, initiallly it would take time to set-up LSMW but later on just need to create a data-file & do the mass changes.
Hope it will help.
Regards,
Anup -
How to set change number is prerequisite when change BOM?
Dear SAP Experts,
I have actived EC management in BOM control data in IMG. But when i changed
BOM ( the code CS02 ) with change number blank, system had not given an error message. SO,how to set change number is prerequisite when change BOMs?
Thanks...
Regards,
Joey.Just a guess: Transaction os27 and change the number range to external.
Matthias -
Error when I change the BOM without a change number
Hi,
I would like to receive an Error when I change the BOM without a change number.
I define the modification parameter (EC management active and History reqmnt), I configure history reqmnt for BOM (I choice the status 1 and 3 for my BOM usage 5)
In change the message type I dont have the really message number in the liste.
How can I create a new message (045) so that I get an error by changing the BOM without a change number.
ThanksDear Dede,
check for the Authorization Object C_STUE_NOH for the
particular User Id's for which you want to Create or Change a
BOM without a Change number.
So assign this Authorization Object under all user id's for which
you want to have this control.
Adding the mentioned Authorization Object in particular User
Id's will resolve the problem.
This can be done using PFCG T code by adding in particular
Roles.
Revert back incase of any clarifications.
Regards
Mangalraj.S -
To Restrict fields when change posted SC
Hello,
Is there any way to restrict fields when change posted SC ? currently if SC already approved by 3 manager and waiting for the last manager for approval then the requestor change any fields in the SC, the approval flow will be reset from the beginning.
Is there any way to restrict some fields so whatever changes on these field will not reset existing approval ?
Fyi, we're using SRM 4.0
Thank's & Regards,
SastraHi,
To disable changing the SC by the requester durng any level of approval,you can set the value for the parameter "BBP_WFL_SECURITY" in SU01(under personalization tab) for the requester user.
Also based on the value of this paramtere you can also define whether the workflow for approval should be restarted in case of any chnage in the SC.
See the foll link for more details:
http://help.sap.com/saphelp_srm50/helpdata/en/f7/a6a3415e34b05fe10000000a1550b0/frameset.htm
BR,
Disha.
Do reward points for useful answers. -
I am using a 5s under IOS 7.1.1. How can I change the year field directly when editing an existing calendar entry?
Glad that helped.
Enjoy your iPhone! -
Making FieldA required when user changes value of FieldB
Is this possible.
When the user is filling out the form, the required state of fields needs to change based on input gathered from the user.
FieldA - TextField
FieldB - DDList - Values Yes and No
FieldA should be required if the user sets FieldB to Yes, but it should be required if they set the value to No.I figured out how to change this, however I have one obstacle yet. The highlighting does not automatically refresh? I have to manually uncheck the required fields checkbox and reselectit for the highlighting to update.
-
Avoiding angering customers when changing BOM containing deposit item
Hello,
Visible in transaction CS03 is an item for which we charge a deposit of 6.90. We need to change to another item for which deposit will only be 6.10.
The problem is that some clients have been charged the 6.90 deposit and, if I change the BOM now, via CS02 and put in the 6.10 item, our system is going to refund them only 6.10 when they return the empty.
So we were thinking of doing a credit memo to the customer for the number of empties they have on hand. But what if they never return them?
So perhaps that is some other idea of how to solve the problem.
I don't suppose I can attach 80 cents extra refund to a specific client account.
If we do go the credit memo route, I suppose there is no way to enter an item number and do a search of all that are out on loan to customers ? Or to do some kind of comparison of number of those items charged to customers and not refunded ?
Perhaps this is part of a bigger problem that we should be handling in a different way. We are in the beverage industry, so we handle a lot of deposits for different size kegs, bottles, cases, etc. And these problems crop up whenever a vendor changes his deposit amout on the item and then we try to pass the change on to our clients without cheating them or us.
Thanks!Dear,
I think you will not get angry for delayed reply..
Just want to know any solution from your side...
After you change to 6.10 mark the new issues with special batch no. or any kind of mark so that old returns and new returns will not mix up. For the 6.90 charged customers... correspond them by mail about the change and appropriately the refund will be done once they return 6.90 applicable empties..
Regards,
Syed Hussain. -
How to change data of a field automatically when sys date reaches a particu
Hi,
I have 2 fields in my database BOOKING_DATE and BOOKING_FLAG. What i want is that the moment SYSTEM date becomes more than BOOKING_DATE(for an already existing record) , the field BOOKING_FLAG should change its value to 'F' for that particular record.
This actually should be happening in the background I guess. I dont know if its possible or not.
THANKSUse this logic and create a progra. and then run this program in the background according to your need.
data: BEGIN OF itab1 OCCURS 0,
booking_date type sy-datum,
booking_flag type c,
END OF itab1.
itab1-booking_date = '20110810'.
itab1-booking_flag = ''.
APPEND itab1.
clear: itab1.
itab1-booking_date = '20110811'.
itab1-booking_flag = ''.
APPEND itab1.
clear: itab1.
itab1-booking_date = '20110812'.
itab1-booking_flag = ''.
APPEND itab1.
clear: itab1.
LOOP AT itab1.
if sy-datum > itab1-booking_date.
itab1-booking_flag = 'F'.
ENDIF.
MODIFY ITAB1.
CLEAR ITAB1.
ENDLOOP. -
Change number that are not created earlier accepted for change of BOM
Hi,
When i am going to change BOM it gives warning message "Enter change number, BOM has history requirement"
But my problem is when i put any number in field of change number it is allowing me to change the BOM.
It should not be accept any number that are not created earlier in the system. It must have to accept change number that is created for the history requirement for perticular material. kindly give your input on this issue.
AtulHi Atul,
Please refer the thread ECM-Problem with Change number in CS01 and CS02 Transactions
Thanks,
Rakesh J -
BAPI to change a BOM copmonent
Hi gurus,
I am using a BAPI named by BAPI_BOM_UPLOAD_SAVE.
With this BAPI i could create a new BOM. But i am not able to change a specific component in the BOM. Is there any indicators to imply the change or is there any BAPI to change the existing BOM component without having the whole structure to be used.
Regards,
Nehru.FU CSAP_MAT_BOM_MAINTAIN
Functionality
You can use function module CSAP_MAT_BOM_MAINTAIN to process simple material BOMs.
This function module is intended mainly as a tool for changing BOMs. However, it can also be used to create BOMs.
If you only want to create BOMs, use function module CSAP_MAT_BOM_CREATE.
To change BOMs, you can also use the following function modules:
CSAP_MAT_BOM_OPEN
CSAP_BOM_ITEM_MAINTAIN
CSAP_MAT_BOM_CLOSE
For more information and examples, see the documentation of the individual function modules.
Restrictions:
To date, you can only process one alternative or variant with this function module. This means that, if you do not enter an alternative for function module CSAP_MAT_BOM_MAINTAIN, the system assumes that you want to process alternative 01.
To date, changes to the BOM header are not yet supported.
Please note:
The item to be changed can be identified in two ways:
via the fields item category, item number, sort string, and object (depending on the item category, this can be material, document data, or class data).
The names of these identifying fields begin with 'ID_' and are contained in structure CSIDENT_02. Structure CSIDENT_02 is part of structure STPO_API03.
You can use any combination of these fields to identify the item, provided the fields identify the item uniquely. Otherwise you see the error message 'Item cannot be identified uniquely'.
via the BOM node and BOM item counter
These fields are only known to the system if you have read the BOM before. If you identify the item in this way, you should therefore use function modules CSAP_MAT_BOM_OPEN, CSAP_BOM_ITEM_MAINTAIN, or CSAP_MAT_BOM_CLOSE to change the BOM.
If the error message 'Item cannot be changed' appears in the log, this can be for the following reasons:
- The item is not valid on the valid-from date - it becomes valid at a
later date.
- The item has already been changed on the same valid-from date
with a different change number.
You cannot change the item category of an item that exists already in the system.
To delete an item, you must identify it as described above for the change function and set the deletion indicator.
FL_BOM_CREATE (default ' ')
If you set this indicator to 'X', the system creates a new BOM if it cannot find the BOM you want to change and there is no other error.
Items can only be created if sufficient data exists to do this.
The system ignores items with a deletion indicator when creating a BOM.
FL_NEW_ITEM (default ' ')
If you set this indicator to 'X', the system creates a new item if it cannot find the item with the identification entered.
The system ignores items with a deletion indicator.
Example
*---- BOM header data structure
data: begin of tstk2.
include structure stko_api02.
data: end of tstk2.
*---- BOM items table
data: begin of tstp3 occurs 0.
include structure stpo_api03.
data: end of tstp3.
*---- Object dependencies table
* Basis data
data: begin of tdep2_data occurs 0.
include structure dep_data.
data: end of tdep2_data.
* Description
data: begin of tdep2_descr occurs 0.
include structure dep_descr.
data: end of tdep2_descr.
* Source
data: begin of tdep2_source occurs 0.
include structure dep_source.
data: end of tdep2_source.
* Sequence
data: begin of tdep2_order occurs 0.
include structure dep_order.
data: end of tdep2_order.
* Documentation
data: begin of tdep2_doc occurs 0.
include structure dep_doc.
data: end of tdep2_doc.
data: flg_warning like capiflag-warning.
*- Initialize database log
call function 'CALO_INIT_API'
exceptions
log_object_not_found = 1
log_sub_object_not_found = 2
other_error = 3
others = 4.
*- Fill item data
* Exception: items that can be identified uniquely via their item
* number
* 1. Item 0010: change quantity
clear tstp3.
tstp3-id_item_no = '0010'. "Item identification
tstp3-comp_qty = '5.000'.
append tstp3.
* 2. Item 0020: delete
clear tstp3.
tstp3-id_item_no = '0020'. "Item identification.
tstp3-fldelete = 'X'.
append tstp3.
*- 3. New item 0030 (stock material)
* For new items, the ID_ fields, BOM nodes, and BOM item counters are
* initial unless they use
* FLG_NEW_ITEM
clear tstp3.
tstp3-item_no = '0030'.
tstp3-component = 'MAT200'.
tstp3-item_categ = 'L'.
tstp3-comp_qty = '1'.
tstp3-rel_prod = 'X'.
tstp3-sortstring = 'A1'.
append tstp3.
* 3. Item 0040: change component
clear tstp3.
tstp3-id_item_no = '0040'. "Item identification
tstp3-component = 'MAT500'.
append tstp3.
*- Change BOM
call function 'CSAP_MAT_BOM_MAINTAIN'
exporting
material = 'MAT100'
plant = '0001'
bom_usage = '1'
valid_from = '14.10.1996'
fl_bom_create = ' '
fl_new_item = ' '
i_stko = tstko
importing
fl_warning = flg_warning
o_stko = tstk2
tables
t_stpo = tstp3
exceptions
others = 1.
if sy-subrc eq 1.
*---- Error
* Please see log
endif.
if flg_warning eq 'X'.
*---- Please see log for information, warning messages, and success
* messages.
Endif.
Parameters
MATERIAL
PLANT
BOM_USAGE
ALTERNATIVE
VALID_FROM
CHANGE_NO
REVISION_LEVEL
I_STKO
FL_NO_CHANGE_DOC
FL_COMMIT_AND_WAIT
FL_CAD
FL_BOM_CREATE
FL_NEW_ITEM
FL_COMPLETE
FL_DEFAULT_VALUES
FL_IDENTIFY_BY_GUID
FL_WARNING
O_STKO
T_STPO
T_DEP_DATA
T_DEP_DESCR
T_DEP_ORDER
T_DEP_SOURCE
T_DEP_DOC
T_DOC_LINK
T_DMU_TMX
T_LTX_LINE
T_STPU
Exceptions
ERROR
Function Group
CSAP -
New business requirement for ECM changes to BOM item detail
Hello SAP ECM gurus,
I need your guidance on below requirement from the customer in ECM.
We have 'Date effectivity' in our system i.e. object changes become effective on 'valid from' date.
We also have a custom enhancement where BOM header status is controlled by the 'post approval' process via workflow.
i.e. BOM status is changed to 11 when 'Complete Change' status is set on OMR and changed back to '01' automatically when 'Release Change' is set on OMR.
We have a new requirement from business as described below:
For ex:
2 components (COMP1 & COMP2) are added to BOM through ECR1 effective from 01-AUG-2011 till Infinity
2 more components (COMP3 & COMP4) will be added to the same alternate through ECR2 effective from 01-SEP-2011 till Infinity.
ECR1 changes are made and OMR status set to 'Complete Changes' changes i.e. BOM status is 11 effective from 01AUG2011 till Infinity.
At this point of time, ECR2 is created. When changes are being made to the same BOM using ECR2, COMP1 & COMP2 (added through ECR1) appear in the BOM.
This is not desirable for the customer. They do not want to see COMP1 & COMP2 to appear when changes are being made to ECR2 as ECR1 is still not post approved. They expect COMP1 & COMP2 to appear in the BOM only when ECR1 is post approved.
How can we control effectivity of COMP1 & COMP2 such that, they become available in the system ONLY WHEN 'Release Change' is set on OMR?
Can 'Parameter Effectivity' be used in this scenario?
Thank you very much for your advice and guidance,
BKHi JH thanks for your quick reply,
Let me describe it more specific, I have two material FG and SFG. Material FG is maintained with valuation type so when we do goods receipt for SFG it's asked to input valuation type in batch field. In stock SFG material qty is separated for each valuation type like batch.
Now i want to maintain in BOM for FG, where component SFG has fix the valuation type / batch so that in production order we don't have to choose manually. Do you have any idea ?
Regards,
Arman -
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
Maybe you are looking for
-
Preview, export, and upload web photo galleries
This question was posted in response to the following article: http://help.adobe.com/en_US/lightroom/using/WSA20E5E2B-1F61-4c59-A3F4-13C1AEF9EF56.html
-
Moving from Gmail to MobileMe/.Mac, in relation to an iTunes Store Account
I'm moving from Gmail to MobileMe since I got my iPhone, and as with every email change, a whole mess of online accounts follow. The process is simple enough for third parties like social networks, but Apple wants my life to super convenient and easy
-
Font is different when published
I published my site. I didn't like the bold look of some of the fonts so I changed the font and made a couple of other changes. The site then looked the way I wanted before re-publishing publishing. I then re-published but the fonts are still look bo
-
Finished DVD won't play in DVD player.....
Hi All, I am new to DVD Studio Pro; I made the jump from idvd......! I just finished my first DVD, and it won't play in my dvd player; it plays fine on my computer with the DVD player. could it be because the dvd player is about 6 years old? TIA!!
-
Creating Sales Order in SAP from a web application database
Hello All, I am trying to create a sales order from a web based package .Means a web based package is running in the system and the user will enter the sales order data in the web application and it gets saved in that database. Now i want to retrieve