Create /change classification of a batch
HI,
I run in some trouble by using the 'BAPI_OBJCL_CREATE'.
What I try to do:
- I have a material M1 and one batch B1 (as batch of material M1) both are assigned to class "C_A".
- I read the classification data of Material and Batch from class C_A and store the values in an internal table.
- delete batch class C_A from the batch B1 (done with BAPI_OBJCL_DELETE) ; commit;
- delete batch class C_A from material M1 (done with BAPI_OBJCL_DELETE) ; commit;
- now I assign a new batch class C_B to the material M1 'BAPI_OBJCL_CREATE' (value tables are filled with data that was stored in internal table.; commit
- as last step the batch class C_B is assigned to the batch B1 by BAPI_OBJCL_CREATE too, commit
If I check my material i get the new class B. If I open the batch in MSC3N, I get a message, that the classification is inconsistent.
I found following reason for this :
MCH1 has the field cuobj_BM to hold the key for table INOB. The value in the batch is different to the value that is stored in INOB itself.(is updated in the right way after my comit.) The value that is still seen, is my old value that was valid during assignment to batch class C_A.
I checked the changedocuments of the batch B1 and I get the information about the new class C_B in changdoc of classification. I I check the changedoc of the batch itself, I see nothing. (FYI: If I do all the steps above in MSC2N /MM02 I get the update of the CU_OBJ (from INOB) in the changedoc of the batch.
Question:
Is this something normal and I have to write the change doc to the batch by myself (including cuobj_BM change) or could it be that this is a bug with ECC6? I think the BAPI_OBJCL_CREATE should make all necessary changes to the system (changedoc, INOB , MCH1)
(FYI: i run the same function in 4.6c without problems. Based on some ECC changes, it was required to do a comit after batch class is delete from batches and after material. In 4.6c I use still the old CUOBJ with the old and new class.)
Thanks a lot for your help.
Jens
Hi Jens,
I have to do the same but for the diffrent transaction.
i my case i want to create the classification for Batch search strategy transaction code VCH1.
i had try use the function module BAPI_OBJCL_CREATE to assign the classification it shows the classification created sucessfully, but that value is not come in the transaction.
can you resilve that issue.
Regards
Dhirendra
Similar Messages
-
Change batch Classification for a BATCH.
Hi,
Does anyone know how to change the classification for a BATCH (Txn. MSC2N) programatically. Recording is not possible for the transaction MSC2N.
Thank you,
MaheshUse the BAPI 'BAPI_OBJCL_CHANGE'. Ensure to commit data afterwards.
Manoj -
Process Order creates Multiple Inspection for Same Batch
Hi Guys,
Expert opinion is needed to have this issue fixed.
Issue:When a new Process Order is created it automatically creates in storage location A. There are times when a process order needs to be created into another storage location B. When the Process Order is created and then is changed from A to B it will create two inspection lots for one batch, one for each storage location. From the plant perspective they only need one Inspection lot as they will not create two set of samples for testing since it is the same batch it just went into a different storage location then it was originally created for. Is there a way to change SAP so that it only creates one Inspection lot per batch.
Control InspLot field in QM view for Insp Type 04 is X
We had different scenarios with same Batch
SCENARIO #1: Sloc is changed to B prior to Release, in CRTD status of order Sloc was A
So there are 2 Insp. Lot created one for A & another for B after GR in Sloc B
SCENARIO #2: Sloc is changed to B after Release
IL is created after Release of order with Sloc A, after changing Sloc B in process order and performing GR, new IL is created for Sloc B
Business scenario is certain times of the year where one creates a PO with one Sloc and then it needs to be GR into a different Sloc.
They are generating a lot of IL’s that are not used and it seems like every year they need to get UD’s made on IL’s for finance to close out the year which is cumbersome.
Please suggest way out, objective is one process should have one IL per Batch irrespective of Sloc
Regards
Nitin DesaiThere are several things that come to mind.
First and foremost, get the planning right so that the process orders are created properly the first time around. This is a business issue. Yes.. I don't know your business.. no, you really aren't all that different then the thousands of other businesses using SAP. The root cause of this is you don't know what is going where when you order it or in the case of process orders, where you intend to make it or store it. That's a basic planning problem.
2 - you must have early lot creation turned on, "Y". You can't be using "X". X would only create an 04 lot when you do the GR so if you change the storage location prior to the Process order being released I'm not sure how you are generating two lots. Are you sure all the lots in question are 04 lots? Are you maybe seeing an 03 lot? Or possibly an 08 lot? Something doesn't sound right here.
3 - If you receive into two storage locations from one process order, you will get two inspection lots. No way around this. There is stock associated with these. You could use customization to suppress the second receipt but that stock would go right to UR with no inspection.
4. Don't change the storage locations in the process orders at all. You can use the stock posting screen in the UD and change the storage location when you make the UD.
5. Another option is to again, don't change the storage location in the PO but use QAC2 transaction to transfer the inspection lot into the proper storage location.
You need to explain your scenarios better cause I really don't see how you are getting the two lots when you make all your changes in the process order prior to releasing the process order. That doesn't make any sense at all.
Craig -
Using LSMW how to handle Value contracts create/change (VA41) /(VA42)
Hi Experts,
Please suggest me how to create and change of value contracts using LSMW.
Actually i got one standard batch input program RVINVB10 in LSMW for create/change for value contracts. but the problem is one field ZWERT - Target Value in Document Currency is not present in the Target structure at item level.
ZWERT - Target Value in Document Currency field is required for my scenario.
Points will be awarded for the Correct answers.
Regards,
Tirumala ReddyHi Ramky,
Thanks for your response.
In LSMW first we have to map all source structure fields to Target structure fields right, ZWERT field is there in my source structure and there is no field matching with ZWERT in the Target structure.
Field name :ZWERT
Field Description: Target Value in document currency.
If you know solution please reply me soon.
Regards,
Tirumala Reddy -
User exit to create change pointer as soon as network is created(CN21)
Hi All
I have to use function module change_pointers_create_direct . This function module i have to use in a exit which is called as soon as a network record is created(CN21).
Then I will use SMD tool to track changes made to these pointers.
can anyone tell me which user exit can I use for this?
Or do anybody have idea whether CN21 creates change documents by default or not in CDHDR.
Actual requirement is to send the network records to third party system through IDOC using program RBMIDOC which is scheduled every 15 minutes. This program will read the change pointers created in 15 minutes.
Please advise on this...hi,
CCOWB001 Customer exit for modifying menu entries
COIB0001 Customer Exit for As-Built Assignment Tool
COZF0001 Change purchase req. for externally processed operation
COZF0002 Change purchase req. for externally procured component
PPCO0001 Application development: PP orders
PPCO0002 Check exit for setting delete mark / deletion indicator
PPCO0003 Check exit for order changes from sales order
PPCO0004 Sort and processing exit: Mass processing orders
PPCO0005 Storage location/backflushing when order is created
PPCO0006 Enhancement to specify defaults for fields in order header
PPCO0007 Exit when saving production order
PPCO0008 Enhancement in the adding and changing of components
PPCO0009 Enhancement in goods movements for prod. process order
PPCO0010 Enhancement in make-to-order production - Unit of measure
PPCO0012 Production Order: Display/Change Order Header Data
PPCO0013 Change priorities of selection crit. for batch determination
PPCO0015 Additional check for document links from BOMs
PPCO0016 Additional check for document links from master data
PPCO0017 Additional check for online processing of document links
PPCO0018 Check for changes to production order header
PPCO0019 Checks for changes to order operations
PPCO0021 Release Control for Automatic Batch Determination
PPCO0022 Determination of Production Memo
PPCO0023 Checks Changes to Order Components
STATTEXT Modification exit for formatting status text lines
regds,
paras -
Creating an Action and then Batch Process
Need some help creating an action and then batch processing a file using that action. I was able to do it in previous versions of PS (wish I had kept the action!). For some reason its not working. Keeps creating the same file over and over again. Here goes:
Action:
Open up a PDF (separate PDFs of a PowerPoint Pres, may contain 80-100 pages); convert to grayscale; reduce to 43.2%; save as a TIF and close file.
Batch:
Use this action on all files.
When I create the action it just recognizes the first file that I use as a sample and saves over the result over and over again.
Thanks in advance.
TomYou probably recorded a save as command in it and changed the name of the file. This change is also recorded and after playing the action it just overwrites the same filename over and over again.
Always leave the filename untouched when recording actions. -
Track Create/Change a vendor
Hi all,
I want to know a table or a field which holds the status of the way in which a vendor is created/changed namely batch, online or any other.
I need to track whether the vendor is created online or in batch mode.
i have checked tables CDHDR and CDPOS but it does not contain such details.
Can any one suggest any thing else.
thank you.
taherHi
Once vendor is entered in PO u can not change same in ME22
U can change P org,P group,Company code
U can delete same PO and create new PO with required vendor
Vishal... -
FM for updating Batch Classification for a Batch (MSC2N)
Hi,
This is in regards to the Batch Classification (MSC2N).
Is there a Function Module available to load data into the Classification tab for the batch, in MSC2N?
Please Help.
Thanks,
JohnBAPI_OBJCL_CREATE
and you may also refer tho this one -
Look at Note 619913 - FAQ: Basic functions of batch management
Change classification data of a batch
Up to and including Release 4.6C, BAPI BAPI_OBJCL_CHANGE needs to be used.
In later releases, BAPI BAPI_BATCH_SAVE_REPLICA may also be used for that purpose.
Regards,
Amit -
Create a classification view over bapi
Hello,
i start a vb Programm to create a material in sap.
I get all views with material_savedata but the classification view is missing.
Does anybody know if there exist a special bapi to create a classification view
over the .net connector ?
thanks for any helpHello , thanks a lot for the answers. I am using a vb programm with the proxy connector.
In this connector i have defined:
Dim oClassnum As String
Dim oClasstype As String
Dim oKeydatum As String
Dim oLanguage As String
Dim oObjectkey As String
Dim oObjecttable As String
Dim oUnvaluated_char As String
Dim oStandardklasse As String
Dim oStatus As String
Dim oAllocvaluechar As New BAPI1003_ALLOC_VALUES_CHARTable
Dim oAllocvaluecurr As New BAPI1003_ALLOC_VALUES_CURRTable
Dim oAllocvaluesnum As New BAPI1003_ALLOC_VALUES_NUMTable
Dim oReturn0 As New BAPIRET2Table
Try
oProxy.Bapi_Objcl_Getdetail(oClassnum, oClasstype, oKeydatum, _
oLanguage, _
oObjectkey, oObjecttable, oUnvaluated_char, oStandardklasse, _
oStatus, oAllocvaluechar, _
oAllocvaluecurr, oAllocvaluesnum, oReturn0)
MsgBox(oReturn0.Item(0).Message.ToString)
Catch ex As Exception
MsgBox(ex.ToString)
End Try
When i start the programm i get the error:
The function OBJECT_CHECK_ does not exist.
WHY ??
I have also tried to use
Bapi_Charact_Getdetail
to test, if something works but i really do'nt know what the meaning of
the parameters are . Perhaps somebody can explain them to me.
I have tried with charactername and used a * but the result is always 0.
Has somebody a documentation of the fields and tables that are
needed or filled or a little example of the us of the classification.
thanks a lot -
Error while creating/changing/desplay cost element
Gents
Need urgent help. I am getting a below error while creating/changing/Displaying the cost element.
Table CI_CSKB is not an active table
Message no. AD 228
Kindly help me to get the resolve this issue.
Thanks and Regards
Vinay Thakrehi
In Cost Elements (Data is Dependent on Controlling Area), please go to extras and check your controlling area while creating the cost element, and make sure if u r creating Primary CE, it has been created as a G/L account and also make sure you use correct CE Category.
Thanks
plz award points if helpful. -
Error While Creating Material Classification Characteristic DataSource -
Hi All,
I am creating the Material Classification DataSource 1CL_OMAT001 with CTBW in R/3 with the following info:
Basis DataSource = 0MATERIAL_ATTR; Client = 200; Class Type = 001;
Obj table = MARA; DataSource Type = ATTR, DataSource = 1CL_OMAT001
I have added all the characteristics with 'New Entries' button and the following are the details after saving it:
DataSource = 1CL_OMAT001
Characteristic Name = ABCDXYZ
Item No = ' ' (blank)
Maintain Status = N
Characteristic = 1CL_AABC001
Typ = CHA
While adding the MATERIAL_GROUP as characteristic it got an error because of Reference Characteristic since it is reference to Table MARA. Finally, I didn't add it.
When I click the 'Generate' button to generate the DataSource then it is giving the error of <b>'BW Metada is incomplete'</b> (CLBW008).
What is wrong with it and how could I fix this problem, please ?
Thanks in advance.I am not too sure but this might be the cause of error. Data doesn't need to be in client 100, but the characteristic needs to be defined in the class if I remember it correctly.
To do a quick check, open report program RCLBW_STRUCTURE_GEN in SE38, there is a call to FM RSA1_SINGLE_OLTPSOURCE_GET (around line 169) put a breakpoint there in the editor (display).
Now run your CTBW generation, it should stop at the breakpoint. You should check the value of field GT_CLBW_SOURCES-IOBJNM in the debugger - it would likely be the characteristic name.
Now, go to SE37, do a single test of FM RSA1_SINGLE_OLTPSOURCE_GET, and specify this same value for field I_OLTPSOURCE and execute. You will likely get a sy-subrc of non-zero.
Repeat this in client 200, check sy-subrc.
If you are getting sy-subrc 0 in 200 and non-zero in 100; you will either need to create the classification in 100, or generate it in 200.
If this doesn't work, let us know. -
Error while create/change configuration an application
Hi,
while doing the configuration application.
when i am trying to create/change configuration an application.
i am getting following error.
Error:
Service cannot be reached
What has happened?
URL http://os1gvzg.gemsconsult.com:8000/sap/bc/webdynpro/sap/configure_application call was terminated because the corresponding service is not available.
Note
The termination occurred in system RT1 with error code 403 and for the reason Forbidden.
The selected virtual host was 0 .
What can I do?
Please select a valid URL.
If you do not yet have a user ID, contact your system administrator.
ErrorCode:ICF-NF-http-c:000-u:SAPSYS-l:E-i:os1gvzg_RT1_00-v:0-s:403-r:Forbidden
HTTP 403 - Forbidden
Your SAP Internet Communication Framework Team
can anybody help me out.
thanks in advance,
Kiran.Hi,
please check [documentation|http://help.sap.com/saphelp_nw2004s/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm]
grtz,
Koen -
Problem while creating change document
hi all
i am creating change document for master data like project type , project applicant
but i am unable to complete it as i am very new to ABAP
can any one give me step-by-step procedure to do the same?
I have followed the procedure given in sap Liabrary i.e.
1 - Define the change document object
2 - Check in the Dictionary, whether the data elements of the fields which are to
be logged are flagged appropriately.
3 - Generate the update.
4 - Program the appropriate calls in your program.
But then i got stucked on point 4...what exactly I need to do in that?
Regards
SheetalHi,
The table you have used is having the key which comprises both MANDT and ID. However, while writing the code you must have used only the ID. The system takes MANDT and ID both as the key fields.
This may be the reason of the error you are encountering.
Thanks,
Jyoti -
While creating PO using BAPI_PO_CREATE1 vendor batch number is not comming.
Hi Friends,
I am using BAPI " 'BAPI_PO_CREATE1' to create PO in my report.
The PO's are getting created but i the vendor batch number is not found in the PO.
Where as i am passing the vendor batch number.
bapimepoitem-vendrbatch = '2'.
bapimepoitemx-vendrbatch = 'X'.
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = bapimepoheader
poheaderx = bapimepoheaderx
memory_uncomplete = 'X'
IMPORTING
exppurchaseorder = v_po_number
TABLES
return = bapiret2
poitem = bapimepoitem
poitemx = bapimepoitemx
poschedule = bapimeposchedule
poschedulex = bapimeposchedulx.
Commit the transaction
IF v_po_number NE space.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
return = bapiret2_c.
ENDIF.
Please reply urgently.
Thanks Regards,
Sandipan JenaHi
My answer is pure assumption.
Please check the following OSS notes
Note 758810 - BAPI_PO_CHANGE vendor batch and batch not visible
Note 1230268 - Field Vendor Batch never filled for PO BAPIs
Please take help from BASIS and SAP, before implementing the OSS note
Regards
Madhan D -
Significance of IBase, Component and Product ID while creating Change Reque
Hello,
When we create a change request via SOLMAN_WORK_CENTER, we are supposed to provide values for
1) IBase
2) Component
3) Product ID
Ibase can be defined as the way SAP differentiates in a multiple system (APO, CRM, ECC) environment, the corresponding environment.
The values corresponding to IBase can be obtained via IB51,52 and 53 tcodes.
Can the value for IBase obtained via SMSY t code also?
What does component and Product ID signify?
Where can we get values for Component and Product ID?
Is Product ID the same as value we get from menu Option System->Status->Installation Number
Is it necessary to provide all 3 values (i.e. IBase, Component , Product ID) while creating change request?
If Not, how will SolMan identify which system the change should point to?
Or only value for Ibase is enough?
Thanks,
VikasIbase can be defined as the way SAP differentiates in a multiple system (APO, CRM, ECC) environment, the corresponding environment.
The values corresponding to IBase can be obtained via IB51,52 and 53 tcodes.
Can the value for IBase obtained via SMSY t code also?
No
What does component and Product ID signify?
Product ID is not mandatory. I actually hide it in the CRMD_ORDER screen.
Where can we get values for Component and Product ID?
Is Product ID the same as value we get from menu Option System->Status->Installation Number
Component - IB52 as you already mentioned
Product ID - in a customizing table, I've seen it once but can't remember where honestly. As stated, I don't bother with the field
Is it necessary to provide all 3 values (i.e. IBase, Component , Product ID) while creating change request?
The iBase and component are mandatory, odd thing is if you enter the component without entering 1 in the iBase, SolMan will fill the 1 in for you.
If Not, how will SolMan identify which system the change should point to?
By the logical components assigned to your maintenance project. You can actually have transports for more than one production assigned to your change document. For instance you could have a BI and ECC transport assigned to the sane change document. Your tak list will have the dev, testing and production systems for each logical component assigned.
Or only value for Ibase is enough?
I was having this discussion with someone the other day. Since the logical components assigned to the mianteance project really determines what systems you can create transports for, what is the value of the component field? Best I could determine was when you use the Logon on to System action, it points to the one listed in the component field only. other than that, I'm not sure.
Maybe you are looking for
-
I have a 6 month old MBP. About 2 months ago I noticed a large grey dot about 2 mm in diameter on the bottom of the screen. Would have taken it in but I am in Europe until next month. Today I noticed 4 - 6 more in the vicinity of the larger dot. It s
-
Is there a way to put metadata into an iWeb website?
I'm creating a website using iWeb which has a Facebook share button. I need to add some metadata to the web page's head section so that Facebook will pick up the correct content. Is there a simple way to do this without needing to manually edit the i
-
Strange behavior in apps/monitor refreshing after theme installation
Good times of the day everyone! I'm very new to archlinux and ArchLinux community (as you can see, this is my 1st post here). I use dwm and was playing around with themes. I found a GTK Theme - Moka which really suited my taste and installed it. But
-
Hi, We have a requirement in F110-DME administration. when i select environment from menu in f110 transaction,i choose DME Administration to display the data medium contents .i have to change the layout ie displaying data in a different format .How d
-
I have two t:datatable in one jsf page. Both the table are getting displayed but there is no data in the second table. Has anyone faced a similar problem? Any solution to this or am i missing something?