Update Sales Org Material Status via VK12?
Hello,
I have a request to update the DChain spec status for a given material when a user creates a new condition record in VK12. My initial response is that it's not possible and probably not a good practice, but before I respond to the request I wanted to know if it is possible. In my forum search I haven't found any topics on this, has anyone ever had to do this? If so, how was this completed?
Thank you.
Hi,
Just to recap, X-dist chain status is generally used in different purpose rather than conditions.
Whenver new material is created with sales views. its CO-Controlling directives that until the costing of the material is not done, there should not be any sales. Thus, they restrict the sales of this material with this field.
Once costing is done, this material will be ready for sale & then this field will be removed ( there are various ways to remove/blank this field in SAP).
same concept is exist, to procure the material also.
Let me know, the prupose- why you want to use this field in your requirement. Still if you would like to use, as said by mate, there is no automatic functionality to update this field. It has to be done manually or with some subsequent function.
Hope it helps.
Regards,
Reazuddin MD
Similar Messages
-
Changing "material status" via "project transfer"
HI,
I known that I can change the "material status" by transferring an item to a specific stock Locator that I already defined.
Is it possible to change the material status via project transfer?
For example my item's status is "active" and it was assigned to a project named "ACTV_PROJECT" I transfer this Item
to a random locator whose project is "HOLD_PROJECT". while I perform this transaction, item status will become "HOLD" (Hold is a status that I already defined)
Thanks for your
Help
CeyhunHi
I assume you refer to Item Status Control.
You can update the item status code using the designated form Item Status. This will automaticlly update the values of the following attributes -
BOM Allowed
• Build in WIP
• Customer Orders Enabled
• Internal Orders Enabled
• Invoice Enabled
• Transactable
• Purchasable
• Stockable
Project Transfer is a inventory transaction, that moves certain quantity of the item from one project locator to another project locator. Such transaction is not changing the item status.
Dina -
Any standard process to update Sales Order in SAP via XI / Idoc ?
Hello,
Currently one of our end customer is creating Sales Order in Oracle system. Once the Order is created there, they send the Order information to our XI system via flat file. XI system processes the flat file and then it calls order creation function using rfc / BAPI - BAPI_SALESORDER_CREATEFROMDAT2. This works just fine.
But now the customer wants an ability to update sales order, cancel certain line or even cancel the whole order in their Orcale system. And once that happens, they want the same thing to happen in SAP via some kind of interface automatically in the background.
So my question is :
what is the best way to do it ?
Is it possible to do via idoc ? The reason I am asking it via idoc is because it sounds that's the most standard way of doing it in SAP.
What idocs can I use ?
Has any one implemented such interface ? And if so, can you share some info ?
Any response is highly appreciate.
thanks,
DipankarI woudl suggest you check ORDERS05 IDOC type (ORDCHG message type).
FM - idoc_input_ordchg -
Userexit for updating sales order user status based on PO
Hi.
My clients requirent is
Sales order user status should get updated based on production order creation,GR for PO creation etc.
Basically depending on PO & GR For PO,various user stauts in sales order should get updated.
Can you please suggest me some userexits in PP for this requirement?
I am a SD Consultant and not having much idaes about PP
Thanks
Nishahi,
if you are not going to update it in the SO..
then you need different exits as those are different transactions. -
Userexit for updating sales order user status based on Production Order
Hi.
My clients requirent is
Sales order user status should get updated based on production order creation,GR for PO creation etc.
Basically depending on PO & GR For PO,various user stauts in sales order should get updated.
Can you please suggest me some userexits in PP for this requirement?
I am a SD Consultant and not having much idaes about PP
Thanks
Nishahi,
if you are not going to update it in the SO..
then you need different exits as those are different transactions. -
Problem in Updating sales text in MM02 via BDC
Hi All,
I've created a BDC to update the Sales text for MM02. As the no of tabs for the view in MM02 are different for different materials, wrong tabs are selected while executing the BDC for different materials. I need to always select Sales text in the view.
Kindly suggest.
Thanks and Regards,
NehaHi,
If you are only updating the sales text, then why not use function module SAVE_TEXT?
refresh : headerl, itab3.
headerl-tdobject = 'MVKE'.
headerl-tdname = '000000000300000560000101'. "(Material : 000000000300000560, Sorg : 0001, Dist channel: 01)
headerl-tdid = '0001'.
headerl-tdspras = 'E'.
append headerl.
move '*' to itab3-tdformat.
move 'Testing sales text' to itab3-tdline.
append itab3.
call function 'SAVE_TEXT'
exporting
header = headerl
insert = 'X'
savemode_direct = 'X'
tables
lines = itab3
exceptions
id = 1
language = 2
name = 3
object = 4
others = 5
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Regards
Vinod
Edited by: Vinod Kumar on May 26, 2010 12:48 PM -
How the sales order header status update?
Hello,
In the sales order header "STATUS" tab is there, under this status tab we can find OBJECT status if we click that object status it shows the Object number,Object category,status profile and status with status no. on which bases this status will update in the sales order header?
my case is Status "10-xxxx" set automatically for some orders.
Could you plz let me know on which bases, the status will be updated in the sales order?
Regards|KSHi
SAPu2019S GENERAL STATUS MANAGEMENT FUNCTIONALITY
General Status Management replaced order status management functionality in recent SAP releases (4.6C). This discussion will address general status management, as this is how SAP allows user statuses for controlling objects in this and future releases.
General Status Management applies to internal orders, project definitions, WBS elements, production orders and many other objects in SAP. For the purposes of this discussion we will concentrate on status management for internal orders and WBS elements. A list of all objects relevant for status management will be made available upon request.
A status is an indicator that fulfills two functions. First, it informs you that a particular status has been reached. For example, an internal order has been created and released; a settlement rule has been entered; a particular business transaction has been executed, etc. Second, it influences the business transactions you can perform for a particular status. A status can allow a business transaction; allow a business transaction but issue a warning message; or prohibit a business transaction altogether. If a warning message is issued it is up to the user whether the business transaction is carried out or not.
Statuses can be used to control and communicate. Statuses can be used in reporting (show me a report of all internal orders with a status of TECO, or technically complete). Statuses can be used as selection criteria (select all internal orders with a status of CLSD, or closed). Statuses can communicate the state of an object (ready for archiving, not ready for settlement execution).
There are SAP standard delivered statuses that apply to all object types. These are known as SYSTEM STATUSES. CRTD, REL, SETC, TECO are examples of SAP standard system statuses. SAP standard system statuses cannot be removed from use. You cannot override the SAP system status with a user status. You cannot change the behavior of an SAP system status.
User statuses (or user defined statuses) exist in addition to SAP standard statuses. User statuses are intended to augment or refine SAP standard statuses, not replace them. There is no limitation to the number of user statuses that can be created. Both system and user statuses influence business transactions in the same way.
An object can have multiple statuses active at the same time. A plant maintenance order can have released, preliminarily costed, work order printed and confirmed statuses all at the same time. For SAP display purposes only one status can be displayed on the status line in master data screens, but it is possible to see all active statuses for an object at one time by drilling down into the master data screens.
A STATUS PROFILE, or user status profile, contains individual user statuses and the business transaction rules defined for those statuses. There is no limit to the number of user status profiles that can be maintained in SAP. A user status profile is assigned to an order type or a project profile in configuration. This user status profile is then defaulted into all objects that reference that order type or project profile. A users status profile can be overwritten (or deleted) in an individual object (via native master data screens), but only if a user status has yet to be activated for that particular object. Once a user status has been activated for that object the user status profile cannot be changed.
HOW STATUS MANAGEMENT WORKS
When an object (internal order, WBS element, production order) is created SAP assigns the system status CRTD. MIT automatically releases the order, so the system status REL is also activated. If there is a user status profile defined in the order type (or project profile) this is carried over into the internal order (or WBS element). If not, only the SAP system statuses will apply to this object.
When a user executes a business transaction for this object, SAP checks the user status to see if that business transaction can be executed without any additional influence from a user status, can be executed but with a warning message being issued, or cannot be executed at all. SAP also checks whether the business transaction sets or deletes any other user statuses within the user status profile.
A user status may also be maintained directly in the object master data. Accessing the master data screens allows a user to manually maintain user statuses. If necessary, an authorization code can be assigned to a user status to ensure that no unauthorized persons can change the status of an object. Once changed, the new user status is fully active and acts no differently than if a business transaction set the user status.
Status management and business transaction control only work with standard SAP transactions. Z transactions will not show up on the business transaction list for an object. The business transaction table is configurable, but SAP strongly recommends not changing that table. SAP directly updates that table via support packs and it is often impacted during upgrades.
Authorization codes / keys are available in user statuses. The authorization code is checked only when user statuses are being set manually, from within the objectu2019s master data screens. This ensures the user has the proper authorization to set that status for that particular object. However, it is important to understand that SAP sets a user status in reaction to a business transaction it does not perform an authorization check. -
Update the x plant material status and plant speific material status
HI Experts,
I am new to abap. In my requriment i want to update the status of x-plant material status (MSTAE) in MARA and
plant specific material status (MMSTA) in MARC. In master data the status of those fields is blank. Insted of balnk i have to upload '01' or '02'.
using BAPI_MATERIAL_SAVEDATA i am unable to upload. its not working.
is there any another way to upload that two plants status.
thanks in advance
sravanHi martin,
i think insted of it_*** (internal table) we have to use work area. please make sure conform this one.
i am giving my logic wat i have written and my requirement also...
The process to update material master data status is described in 'xxxxx' Mark and Release Cost Estimates and BAPu201D.
u2022 As a result of releasing a standard cost, certain master data elements need to be updated by the Cost accountant in order to enable further activities within SAP.
u2022 All material codes for which Cost Accounting has released a new standard cost, need to have their Material Status indicators changed from 02 (reviewed) to 03 (released). This removes the system blocks on certain activities within SAP like purchasing, production and Sales. The status will be needed to change in two views of the Material Master.
u2022 The u201CX-plant matl statusu201D field on the Basic Data 1 view
u2022 The u201CPlant-sp. matl statusu201C field on the Costing 1 view
This update should be automated
Select materials for which a price change document was posted based on selection parameters.
Select price change documents for company code defined in selection screen since last run date
u2022 Reference procedure = PRCHG (MLHD-AWTYP)
u2022 Entered on MLHD-CPUDT u2013 verify against last run date to include in selection
u2022 Entered at MLHD-CPUTM u2013 verify against last run date to include in selection
u2022 Store last run date and time by company code, so that it can be picked up in the next run. (store in table TVARVC?)
Select only the documents of plants which belong to the company code in table MLIT. The link between company code and plant can be found in table T001K.
u2022 Valuation area = Plant MLIT-BWKEY
u2022 Create a list of all materials MLIT-MATNR
The next 2 updates should happen independently;
u2022 Update the u201CPlant-sp. matl statusu201C field (MARC-MMSTA) on all plant views belonging to the company on the Costing 1 view to status 3 with as prerequisite;
u2022 The current plant material status is 02
u2022 This action must be done on all plants belonging to the company code
u2022 Update the u201CX-plant matl statusu201D field (MARA-MSTAE) on the Basic Data 1 view to status 3 with as prerequisite;
u2022 The current X-plant material status is 02.
in pt_final1 i get the data corresponing to given tables.
LOOP AT PT_FINAL1 INTO GS_FINAL1.
*HEADER DATA
GS_HEAD-MATERIAL = GS_FINAL1-MATNR.
GS_HEAD-IND_SECTOR = GS_FINAL1-MBRSH.
GS_HEAD-MATL_TYPE = GS_FINAL1-MTART.
GS_HEAD-BASIC_VIEW = 'X'.
GS_HEAD-COST_VIEW = 'X'.
APPEND GS_FINAL1 TO IT_FINAL1.
*CLIENTDATA
GS_CLNT-PUR_STATUS = GS_FINAL1-MSTAE.
GS_CLNTX-PUR_STATUS = 'X'.
*PLANT DATA
GS_PLNT-PLANT = GS_FINAL1-WERKS.
GS_PLNT-PUR_STATUS = GS_FINAL1-MMSTA.
GS_PLNTX-PUR_STATUS = 'X'.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
HEADDATA = GS_HEAD
CLIENTDATA = GS_CLNT
CLIENTDATAX = GS_CLNTX
PLANTDATA = GS_PLNT
PLANTDATAX = GS_PLNTX
IMPORTING
RETURN = GS_RET.
Commit to release the locks
RETURN-TYPE is 'E' in case of error, else 'S'.
IF GS_RET-TYPE = 'E'.
LOOP AT IT_RET.
WRITE: / RETURNMES-MESSAGE.
ENDLOOP.
ELSEIF GS_RET-TYPE = 'S'..
WRITE: / 'PLANT MATERIAL STATUS '.
ENDIF.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDLOOP. -
How to extend Sales org for a material being Changed
Hi Experts,
i need to extend sales org , distribution Channel for a material .
my table look like this and having 6 fields shown below
1 2 3 4 5 6
Sales org | Des | Distn Chnl | desc | Copy from So | Copy from Dstn Chnl
If the user enters the existing value in Copy From SO and Copy Fron Distn Chnl . Then i need to copy all the values corresponding to the Existing SO and Distrn Chnl to the Newly entered Sales Org .
the table im displaying in ALV , if user perss F4 in copy From SO and Copy From Distn , i need to show the existing values for the material being changed , this is working fine and i am able to get the existing values.
After user selects one of the existing value for SO and Distrn channel , i need to copy all the values to newly created So and distrn Chnl .
i dont know how to proceed . Please help me to solve this problem.
Thanks,
ShrikanthYou can use AET to extend the sales area data of BP. However, it wont add the fields automatically in GUI, But the generated fields are available in the relevant DB tables.
BP GUI transaction is no more supported . Im not sure why you want to work on GUI.
Regards,
Shaik -
Free Goods determination -acess sequence sales org/ plant/material
Hi
I am trying to determine the free goods by choosing the key combination as Sales org/plant/material.
The system is not determineing the free qty ,instead when i maintain the condition record with customer/Material key combination ,then the system is determineing the free qty.
I also tried to put acess Sequence Sales org/plant/material above the Acess sequence customer/Material,but still the system not detrmineing the free qty in the order.
can any one pl gide me how to solve this issue.
regards
shashiHi
Go to the access sequence where Sales org/Plant/Material are maintained as condition table.
Now select the condition table and then click the node "Fields" on the left hand side of the screen.
It may give a warning message that "Fields are not yet generated". Just ignore this and Enter once again.
Do this until it takes you to a screen where you can see fields like KOMK-VKORG, KOMK-WERKS and KOMP-MATNR
Now create the condition records and check in transaction by creating sales order. It shoudl work.
Hope this helps.
You can reward if it helps you -
Free Goods Determination Based on Access Seq -Sales Org/DistCh/Cust/Materia
Dear All ,
Based on the requirement , I have configured 2 access seq for free goods determination.
1. Customer/Material
2. Sales org/DistCh/Customer / Material .
The free goods determination is working fine when i use the first access Seq - . Customer/Material and when i use the 2nd access seq - Sales org/DistCh/Customer / Material free goods determination is not happening for both inclusive and exclusive .
Can any one help me on this issue , as i am not able to identify the issue .
Thanks in advance for all the help.
Regards
VeeraHi
Ceck this thread
Forum post in ERP SD Sales: New Access Sequence for Free Goods Determination
New Access Sequence for Free Goods Determination
But for you free goods determination should be happening at
Sales org/DistCh/Customer / Material without any problem
Make sure Sales org/DistCh/ maintained in VBN1 and what is falling in sales order are same
Regards
Raja -
ABAB programm to copy material sales text from one sales org to another?
Hi all,
i'm searching for a ABAP programm to copy a material sales text from one sales org to another.
Has anybody seen something like that before or has anybody an idea how to do this?
Greetings & TIA
strobbel@Narin
I've tried to execute both code now over a new programm in the se38 and i get a error message from the first code (http://www.sap-img.com/abap/bapi-to-copy-materials-from-one-plant-to-another.htm).
It's called:
"BAPI_MARC1" cannot be converted to a character-type field.
Could you help me to solve this?
Sorry but i'm an absolutely newbie in things like ABAP and so on ... -
Sales org 2 view in material master
hi gurus,
Iam not able to see all fields in sales org 2 view in material master and i would like to know how to configure to restrict end users not to change it . thank you in advance.
regards,
GopioHi naga gopathi
go to Spro->logistics general ->materials management-> there you select the options of material feilds and select the material type and click on till you reach the sales orgn 2 view , .
In MMR settigs you can see table wise so i think it should me MARA table. for sales orgn 2 view
There you check the feilds wat you want is in display or supress mode
Regards
Srinath -
Updating Sales Order Status in Batch
Hi
Please let me know if we can update Sales Order Line details like Ship To Address , Date , Status in a batch?
We are using 11.5.10
ThanksUse the Order management API or the OM interface tables.
See irep.oracle.com for details. -
MM02 Sales view - Create new Cross distribution chain material status
Dear Gurus,
I need to CREATE new:
- Distribution chain specific material status
- Cross distribution chain material status
Can anyone please help urgently on this?
Many thanks for your help
Kind regards
ChrisIMG > Logistics general > Material Master > Settings for Key Fields > Data Relevant to Sales and Distribution > Define Sales Statuses
Maybe you are looking for
-
I connect to the Internet with a USB Super Antenna from CCrane. I want to establish a network on my Mac to allow my other wireless devices to use the USB connection at the USB. Any ideas?
-
Problem in assigning Database Value to jTextfield (form doesn't show up)
Hi, I'm trying to get an integer value from database, add 1 to it and assign it to a jTextfield in formInternalFrameOpened event, but this causes the form not to open. If I remove just this thing the rest of the form works fine. The open event has no
-
Unauthorized Issue in invoking REST API
Hi, I am getting the following issue when i am calling the "GET" method of REST API:" https://secure.p03.eloqua.com/API/bulk/2.0/syncs/14" Unauthorized java.lang.RuntimeException: Failed : HTTP error code : 401 at GetContactSync.main(GetContactSync
-
Best way to export custom postcard as .jpeg
Hi! I am very new to photoshop, and, I am sure these are very elementary questions... please bear with me. I really appreciate your help. I created a custom postcard with layers - a collage of family photos - to use as a Christmas postcard. After rea
-
Adobe Illustrator Keeps Crashing in Windows
I have Windows Vista on a Dell Inspiron 14 and everytime I start Illustrator it gets to the dialog box where it asks you to start a file, but no options appear and then the box dissapears and the program itself shuts down. It worked fine yesterday an