Change of existing sales order (WCEM 3.0 SP1)
Hi all,
does anyone of developed the feature to change a existing sales order?
Any hint to do it the best way?
Thanks in advance,
Meikel
Hi Meikel,
personally i haven't modified the sales order, but i did something in relationship to service orders. Both types are transaction documents in kind of the same but both using a different transaction type-id.
Within WCEM the GenIL Layer has been integrated, which kind of gives you the chance to create, read & modify those transaction documents. The java interfaces which SAP has build is calling behind the scene the corresponding ABAP RFC function - should be the same as the WebUI does. This function is used for the e-service integration and should provide you what you need.
Just another hint: Not sure if my change request has been applied, but take a closer look into the toString() output of the GenIL (container) objects. When i was initially using it, the toString returned the string representation from the current object up to the root (excluding the child elements). Unfortunately this made it tought to understand the current status of the document. If my change request was applied, then you should get the output of current objects including all child elements recursively - if not, then just overwrite the toString() and generate a XML like output. That will safe you a lots of time to understand what is actually happening and within a short timeframe you can implement your logic.
Cheers,
Andreas
Similar Messages
-
Unable to change the existing sales order
Hi
I need to change the existing sales order document which was already created and replicated into R/3.The following error has been giving
"Document is being distributed - Changes are not possible".
Can anybody help me how to change the document.
early response would be rewarded,.
Regards
VikramHi Vikram,
The problem is caused by a program error.
Please follow the SAP Note for complete information.
SAP Note : 718065
Regards,
Johnny.
Reward with points if it helps. -
Mass change - Move existing sales orders from Sales org A to Sales org B
Good morning dear network,
am seeking for your guidance on one specific matter.
We are in the process of making changes to our billing / organisational structure (new sales orgs)
One of the challenges is that we need to move existing open sales orders from one sales org to another (new) sales org.
If all master records exist in the new sales org, is there a (technical) way of moving the existing sales orders from the current sales org into the new sales org, without having to replace each order individually ?
would welcome any suggestions.
Many thanksI would recommend to close the existing open sale orders by assigning Reason for Rejection and create new sale orders in the newly created sales organisation.
This is due to the fact that you need to ensure each and field in the existing sale orders to match with the newly created sales organisation and it is bit time consuming.
Still if you prefer to what you had indicated, LSMW is the better option
thanks
G. Lakshmipathi -
How to Change the Existing Sales Order Transaction
Hi all,
I am trying to change some of the fields in Existing Sales Order Transaction.
Fields which i am trying to change are Ext. Reference number and Net Value.
I am using CRM_ORDER_MAINTAIN to do so but its not working. I dont know if some BADI can solve my purpose.
If anyone of you have done something like this please share with me and suggest me the solution for that.
Thanks in Advance.
Regards,
Manoj TiwariThat you should be able to do in ORDER_SAVE badi.
You will be able to find lots of discussions on usage of this badi here in this forum.
You need to call ORDER_READ, then call ORDER_MAINTAIN to change the values according to your requirement.
Regards,
Kaushal -
Change to existing sales order - There is no incompletion data for sales document
we have just started TM in our sandbox system. When we change an existing order we get the following message:
There is no incompletion data for sales document and the order change does not get sent to tm. Creating a new order and changing all works fine. Is there something to be done with existing orders?Hello John,
Have you tried to use the report TMTRQINITIALSENDING?
Rgs, Marcelo Lauria -
In VF02 to change existing Sales order
Hi Gurus,
Have Scenrios to change in exsting sales order ,to change the Condtion class based on the line itemwise.
Please guide how to do it ,have check the sales order BAPI_SALESORDER_CHANGE but its not working.
Regards,
sanHi vinod,
Ve assigned the new condtion class for new sales order its picking correctly but existing sales order are more than 8000 for that need to change...ve cant create new sales order some of are open sales order.that need to change existing one ,please guide how to achecive/
Regards,
san -
Changing the Availability Check key in an existent Sales Order line
Hello gurus.
Is it possible to modify the Availability Check key (VBAP-MTVFP) of a material in an existent Sales Order line?
I changed it in the material master, but since documents are not automatically updated, I wanted to modify this value in an existing sales order line. I am not even able to find the field in it.
I had to delete the order line and create it again, but then I have troubles getting the exact same confirmed date that I had before.
Any help? Thank you.You cant see at item level. To see in sale order, click from top menu bar, Environment -- Availability. Now you can see the availability check on top of the screen.
Meanwhile, I dont think, this field will be in editable mode once partial delivery is made in which case, LSMW also wont help you.
If your requirement is desperate to change the availability check, to me the available option is close the existing sale orders, create fresh orders after changing the availability check in material master. On the other hand, if you want to change only in sale order, then the option is LSMW as you cant even succeeed in TCode MASS
thanks
G. Lakshmipathi -
Order change management in Sales order(MTO Scenario)
Dear All,
Iam trying to map OCm functionality.How is 'Initial object' created based on changes to the direct assignment of change numbers by using direct assignment.What exactly is this?I have a sales order of 10 pc. against which a prod. order is also created for 10 pc. If there is a change in qty. of sales order from 10 pc. to 15 pc.Is it possible to refelect the same in existing Prod.Order using OCM or any other functionality.Hi
order cahage management is tio track the changes made in production order .
It is no way to update the production order with changes made in sales order.
Regards
YMREDDY -
Hi,
I came to know Bapi_Saleorder_Simulate can be used for availability check and update an existing sale order.but there is no sample program explaining the process.I have tried this by passing parameters ORDER_HEADER_IN , ORDER_ITEMS_IN ,ORDER_PARTNERS and ORDER_SCHEDULE_EX(for getting details),also i have assigned the sale document number ,custom document type(ZSO) in ORDER_HEADER_IN . while executing the BAPI I am getting the error external number range is not assigned for the document type ZSO . I am confused on seeing this error. It is possible to do availability check for existing sale order using this BAPI. Please explain how to achieve this.It will be really helpful if it is expalained with an example.
Regards,
ShanmugaHello, I think you may have been misinformed about this BAPI updating a sales order at item level. As far as I understand it this BAPI can be used to simulate the creation of a sales order which obviously would include and ATP check. This is why it is giving the error because it is simulating creation but you are entering a value in a field that should be automatically generated (i.e. the sales order number). For change the sales order at item level have you looked at BAPI_SALESORDER_CHANGE? I pretty sure this BAPI both updates sales order (header or item level) and can do an ATP first.
Points are always welcome if you feel an answer has been helpful. -
MTO-Need to block (Not to Change)plant in sales order after process order
Hi All,
We are creating MTO sales order and requirement has been forwarded to MRP. Planning person is creating process order and will start their work. Sometime sales person change the plant in the existing sales order. Say for ex: changing the plant from 1000 to 1001. But requirement is already been transferred to 1000 plant. After changing the plant in sales order again the same requirement transferring to 1001 plant for planning. So based on this, 1001 plant also started producing the material. Here the problem is both the plants are producing for the same requirement. Now I need to control the this problem. Is there any way to control in std sap? if possible which way we can control? Please share your ideas.
Thanks in advance,
Babuhi
use user exit
MV45AFZZ
FORM USEREXIT_FIELD_MODIFICATION
here you write the logic
when production order exit that line item plant is not changeable , -
Modify the Net price of an existing Sales Order
Hi,
I got a requirement to modify the Net price of an existing Sales Order. I have called BAPI "BAPI_SALESORDER_CHANGE" for this purpose but its not working. I have passed the New Price in CONDITIONS_IN table parameter. Can you help me with any BAPI or FM for this purpose.
Mukesh KUmar
Moderator message : Duplicate post locked.
Edited by: Vinod Kumar on Dec 7, 2011 9:40 AMTalk to your SD consultants. Net value is determined based on the pricing conditions. Pricing configuration is usually unique to each business, so your SD consultant should know how the pricing condition should (and may) be changed in your specific situation.
-
Create and Change functionality for Sales order
Hii All,
Can any one please suggest me any Standard program or BAPI or IDOC for Sales order, it should cover create as well as change fuctionality of Sales order.
this is very urgent to me.
Suitable Answer will be Rewarded.
Thankyou,
Shobha.For change you can use:
BAPI_SALESORDER_CHANGE Sales order: Change Sales Order
For create you have the following choices:
BAPI_SALESORDER_CREATEFROMDAT1 Sales order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDAT2 Sales order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDATA Create Sales Order, No More Maintenance
BAPI_SALESDOCU_CREATEFROMDATA with business object 'BUS2032'
The difference between the create ones is the functionality you get e.g. create_from_data2 is the 'most powerful' but you also have to provide the most data. It just depends on what you want it to do.
In terms of IDOCS:
message type:
SALESORDER_CREATEFROMDAT201 or
SALESORDER_CREATEFROMDAT202 or
ORDERS05
Hope that helps,
Michael
Here is an example we use, you might want to populate additional fields or leave fields out in case you want different data to be transferred to the IDOC - however some fields are mandatory.
create the order header structure
ls_header-doc_type = ls_screen-order_type.
ls_header-sales_org = gc_vkorg_aa01.
ls_header-distr_chan = gc_distr_aa.
ls_header-division = gc_divis_aa.
ls_header-purch_no = ls_screen-po_num.
ls_header-po_method = ls_screen-po_source.
ls_header-ship_cond = ls_screen-ship_cond.
create partner input table (sold to)
ls_partner-partn_role = gc_role_sold.
ls_partner-partn_numb = ls_screen-sold_to.
APPEND ls_partner TO lt_partner.
create partner input table (ship to)
ls_partner-partn_role = gc_role_ship.
ls_partner-partn_numb = ls_screen-ship_to.
APPEND ls_partner TO lt_partner.
items are added by looping at a table
ls_item-material = <fs_upload>-matnr.
ls_item-req_qty = <fs_upload>-quantity.
process the quantity, it needs to be three decimals, because it
will be moved into a string in the BAPI and divided by 1000 before
it is moved back into a number field (1.500 => 001500 => 1.5)
ls_item-req_qty = ls_item-req_qty * 1000.
truncate remaining decimal places if exist (1.2525 => 1252.5 => 1252 => 1.252)
ls_item-req_qty = trunc( ls_item-req_qty ).
price is taken from the file
ls_item-cond_type = gc_cond_so_upld_price.
ls_item-cond_val1 = <fs_upload>-price.
condition one (price) is multiplied by 10 in the BAPI
ls_item-cond_val1 = ls_item-cond_val1 / 10.
no discount
ls_item-cd_type2 = gc_cond_so_upld_disc.
ls_item-cd_value2 = 0.
ls_item-item_categ = ls_screen-item_cat.
APPEND ls_item TO lt_item.
then BAPI is called
CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA'
EXPORTING
order_header_in = ls_header
business_object = gc_bus_obj
IMPORTING
SALESDOCUMENT = lv_vbeln
RETURN = ls_return
tables
order_items_in = lt_item
order_partners = lt_partner.
IF ls_return-type NE gc_msgty_error AND
ls_return-type NE gc_msgty_abend.
No errors where found
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ELSE.
There was an error or abend
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
ENDIF. -
Product Hierarchy Update on Existing Sales Order
Hi,
My company business process allows sales order to be created up up to 3 months before shipping. Prior to shipping, material can have the Product Hierarchy changed and pricing can also be updated for the new product hierarchy value (Pricing record with Product Hierarchy in the search key). Our company also want to make sure we bill customers with new (correct) price.
In order to support pulling in the new price for our existing backlog (orders), so that we don't mis-bill our customers, we need a way to update the product hierarchy value on the existing sales orders that have not been shipped. Our current solution is to implement some custom logic in the Sales Order Update user exit, so that when the user clicks on the "Update" button on the Condition Screen on VA02 to manually update price, the custom logic will be invoked to re-pull the Product Hierarchy from the MARA table to overwrite the old Product Hierarchy on the sales order. Next, pricing will perform the search for new price using the updated Product Hierarchy value.
This solution has worked okay for us, but we are trying to evaluate if there is any other better way to accomplish this same request. We would prefer to implement something that is offered by SAP via configurations. We try to stay away from customization as much as possible.
Have you ever experienced something similar or do you have any idea how to support this kind of business process?
Thanks very much.Hi Hans,
We don't want to wait for until billing to update price since we have the CI created at the time of delivery not billing. CI document also needs to display correct pricing for custom purposes.
Also, we would like to keep pricing on the Sales Doc. and Billing Invoice the same. This is why we would like to trigger re-pricing on sales order. And when pricing is re-invoked, we need to re-read the PRODH data to ensure new price is retrieved.
Thanks for your response.
Hannah -
Change status for sales order in crmd_order
Hi,
I am creating a report which has to change for all sales order with status "Open" to status "Processed". Is there any function or bapi to do this ?? Supposing, there is no function, which tables do i have to change ???
thanks in advance!!!
MariaMmmm it doesn't work... I have tried this:
CALL FUNCTION 'CRM_STATUS_CHANGE_EXTERN_OW'
EXPORTING
CHECK_ONLY = ' '
OBJNR = i_crmd_orderadm_h-guid
USER_STATUS = 'I1003'
SET_INACT = ' '
IV_REF_KIND =
IV_OBJECT_TYPE =
IV_NO_1O_MAINTAIN =
IMPORTING
STONR =
EXCEPTIONS
OBJECT_NOT_FOUND = 1
STATUS_INCONSISTENT = 2
STATUS_NOT_ALLOWED = 3
OTHERS = 4.
If sy-subrc = 0.
endif.
But noting has change in tag Status in tx. CRMD_ORDER.. still have in "system status": In process and in "User status": Order Rep Processed.
Thanks in advance !!! -
Send Existing Sales Orders to another system
hi experts!!
I have a requirement to move all existing sales orders from one system to another.
Please provide some hints on usage of IDOC_OUTPUT_ORDERS
1. we have to file NAST mandatory fields only or what else we need to code for complete generation of IDoc?
NikhilOk, sorry, I am not aware of BADIs or IDOCS. Normally in situations like this I just make downloads, straight from the tables or via a query.
Good luck
Maybe you are looking for
-
How Do I Duplex Print PDF to Brother 5250DN
******BUG****** Concise problem statement: Adobe Acrobat X Pro will not print PDF in Duplex mode. Printing to Brother HL-5250DN with latest CUPS driver and OS X Lion. Duplex mode works on my other Macs which have Snow Leopard installed and Acrobat 9.
-
Assassin's Creed Unity Collector's Edition Shipping Question
Hi, I am a best buy elite plus member. I have preordered the collector's edition for Assassin's Creed Unity from bestbuy.com. I noticed that the the only shipping issue is standard and that someone has to sign for it. Is there any chance of gaining e
-
Combobox with LinkedObject in matrix
OK, I know, that's a lot of whishes in once, but is this possible ???? Regards, Holger
-
New iPhone 4s 16gb home button a bit turned (awry)
Hello. I just got a new black iphone 4s 16gb and I discovered that my home button is a little bit turned to the right.(awry, twisted). You can easily see that the square is not completely right. Its working properly but I find this a lil weird. What
-
i forgot the password of my iphone 3g and when i try to restore it it shows the message"my iphone 3g could not be restored an unknown error occurred(1015)" can any body help please..