Direct production order when saving sales order.
Hi,
How to create a production order from sales order.ie. When a sales order is saved production order automatically created.
Thaks and regards
Harish
Hi
For the product that you need to have the production order once the sales order is saved
Maintain the planning strategy 82 Assembly processing w. production orders in material master / mrp 3 view
So once the sales order is created, system automatically do the bom explotion and availability check, routing in background and create the Prodcution order.
so in Md04, you can see the production order for you sales order qty.
Similar Messages
-
I need a Badi that is triggered when saving Sales order in both Va01 and Va
Hi
I need a Badi that is triggered when saving Sales order in both Va01 and Va02
I tried with the following BADI's
BADI : BADI_SD_SALES
Implementation : /BEV1/SR_SALES_ORD_1
Method SAVE_DOCUMENT
Now when i want to put my peice of code in this (SAVE_DOCUMENT) method.
It is asking for Access key. Which i do not have.
Should i create a implementation and then create a method and then put my code there?
Anybody plz help.You will probably not find a BADI to suit your needs. However if you look at include program MV45AFZZ you should find two subroutines: USEREXIT_SAVE_DOCUMENT_PREPARE and USEREXIT_SAVE_DOCUMENT. You can put the code you need directly into these subroutines. If these have not been changed yet on your system, you will need an access key to make these changes.
Please read the documentation in the header of the subroutines for furtner information on when they are called.
Best Regards,
Chris H. -
Update Customer's Credit Exposure amount when saving sales order
Hi All,
My requirement is to update the Credit Exposure amount(KNKK-SKFOR) of the Payer based on the open items for the payer when saving a sales order.
I checked the UserExit USER_CREDIT_CHECK2 however this is not working when I am trying to update the KNKK-SKFOR value in this userexit.
Please help.
Thanks.Dear Debashish
As per my understanding, this is because the credit limit check is always applicable at 2 levels only i.e. Sales Order and Delivery.
u r talking about Open Billing Doc and Open Items, but this is also covered within Open Sales Orders and Deliveries, isn't it?
Hope this will help u. -
Error:G/L account missing when saving Sales order
Hi Guys,
I will appreciate your input on this.
Whenever I try to save a Standard order for a particular material I get the error"G/L account missing. I have checked all the Account assigment settings and they are correct.
I faced this issue while creating an order for downpayments.This error occurs when we use the material of the kind "make to order".
RegardsHi Pvarinder,
First please check the customer account assignment group at your sales order header level and material account assignment group at your item level.
If they are ok then go to Environment->Analysis->Account determination
As you said the entries are ok in VKOA, so my guess is I think you have some condition type which is not getting the right G/L account.
Please check and revert with your findings.
Regards,
MT -
When saving sales order Error determining local currency: ER type 'M' date
Hi experts
we have created new sales area for intercompany billing process. we are doing testing for this.
Update was terminated
after saviing sales order express document update was terminated received from author
sales order Error Info... M2 802: Error determining local currency: ER type 'M' date 02.08.2011.
i need your input
thanksDear Manoj Verma,
Check the pricing date of the sales order.
Check the valid from date for the currency types/exchange rate type M in OB08
Now check whether the pricing date in sales order is before the valid from date in OB08.
If so , make the valid from date in OB08 as the pricing date in sales order in OB08 and then save.
Thanks & Regards,
Hegal K Charles -
User exit not active when saving sales orders
while creating a sales order (VA01) i need to update the storage location based on division . for this the badis and user exits are not triggering while creating a sales order for the above requirement
any solution........
<removed by moderator>
thanks in advance..
<Subject edited. Please read the [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]>
Edited by: Mike Pokraka on Aug 7, 2008 8:38 AMJVP,
MV45AFZZ this is the include which is trigger while creating SO.
use FORM USEREXIT_FIELD_MODIFICATION to write code.
your code look like if sy-tcode = 'VA01'.
update field.
endif.
Amit. -
Prompt for Customizing request when saving Sales Employee (VPE1)
Hi,
When we try to create Sales Personnel through SD Menu path (VPE1), on saving the system prompts for customizing request. Since this transaction is a master data and we dont transport this data to our production system. Suggest me a way to avoid this transport request while creating Sales Personnel.
We are currently using version 3.1i and upgrading to ECC6.0. In 3.1i we use transaction PAL1 to create Sales Personnel However it will not prompt for Customizing request
Also checked the SAP Note Note 854390 - FAQ: Use of the sales representative in SD without HR
Help me on how to turn off this customizing request. Basis and Security team could not able to turn this off.
Regards,
Pradeep Maddihello, friend.
you have 2 choices:
1. create a transport request, save the data but do not release it for transport.
2. when the dialog asks you for transport request, just close this. the system will give you a message about links. just ignore it.
hope this helped. reward if so.
regards. -
Run Time Error on Saving Sales Order
Hello,
We are facing problem when saving sales order. When order is created and save button is pressed, it saves sales order and gives Order Number. But while saving the order during update it gives dump due to Data duplication in VBFA while inserting data to VBFA table
Looking at ST22 log this error is in form VBFA_BEARBEATEN
Kindly guide.
Thanx in advance.
RegardsCheck the Sales Order Number Range.
It seems either the Number Range is exhausted (completed) or a document with same number is already created in system in past...
Hope this helps,
Thanks,
Jignesh Mehta -
User exit when saving the financial document (VX11N)
Hi,
We are creating financial document as a letter of credit using transaction code VX11N. User would like to have some checking on the fields based on some user defined logic. Is there any user exit that can be used to serve this purpose. I am looking to usre exit similar to when saving sales order (i.e: USEREXIT_SAVE_DOCUMENT in MV45AFZZ).
RegardsHi,
Check below link for all SD user Exits.
https://wiki.sdn.sap.com/wiki/display/ERPLO/SDUserexits
Best regards,
Anupa -
Creating a Service Order automatically when saving a Sales Order
Hello SDN,
I'm trying to have SAP automatically create a Service Order when a Sales Order is created. To this end, I've tried implementing BADI workitem_template and have been using method before_update. I've been using BAPI BAPI_ALM_ORDER_MAINTAIN to create the service order.
The problem is that in order for the BAPI to save the service order, the sales order needs to be fully saved and operational. Otherwise it just keeps saying 'sales order does not exist'. So the problem is that the BADI is intervening too soon in the saving process. The temporary sales order numbers have been replaced with actual ones, but the records do not show in the database just yet. I think there's a commit that still needs to be done or something.
However, I cannot find a BADI or user exit that intervenes after the sales order is saved into the database, so this leaves me stranded.
Any suggestions would be heartily apprechiated.
Kind Regards,
Niels.
Edited by: Niels Ruelens on Feb 20, 2008 4:20 PM
Edited by: Niels Ruelens on Feb 20, 2008 4:22 PMFollowing your suggestions, I've created an update function module and inserted it into the USEREXIT_SAVE_DOCUMENT. In this function module, I'm calling the BAPI.
Problem with this approach is that I cannot debug, nor is he actually doing anything. Here's the code that is put in the function. Is there anything wrong with the way I call the BAPI perhaps?
DATA:
lt_srule TYPE TABLE OF bapi_alm_order_srule,
lt_bheader TYPE TABLE OF bapi_alm_order_headers_i,
lt_srule_up TYPE TABLE OF bapi_alm_order_srule_up,
lt_methods TYPE TABLE OF bapi_alm_order_method,
lt_return TYPE TABLE OF bapiret2,
ls_vbak TYPE vbak,
ls_vbap TYPE vbap,
ls_bheader TYPE bapi_alm_order_headers_i,
* ls_header TYPE cobai_s_header,
ls_prps TYPE prps,
ls_srule TYPE bapi_alm_order_srule,
ls_srule_up TYPE bapi_alm_order_srule_up,
ls_methods TYPE bapi_alm_order_method.
* ls_item TYPE cobai_s_item.
SELECT SINGLE * INTO ls_vbak
FROM vbak
WHERE vbeln = vbeln.
SELECT SINGLE * INTO ls_vbap
FROM vbap
WHERE vbeln = vbeln.
FREE: lt_methods, lt_bheader, lt_srule.
* Fill methods
CLEAR ls_methods.
ls_methods-refnumber = 1.
ls_methods-objecttype = 'HEADER'.
ls_methods-method = 'CREATE'.
ls_methods-objectkey = '%00000000001'.
APPEND ls_methods TO lt_methods.
* CLEAR ls_methods.
* ls_methods-refnumber = 1.
* ls_methods-objecttype = 'SRULE'.
* ls_methods-method = 'CREATE'.
* ls_methods-objectkey = '%00000000001'.
* APPEND ls_methods TO lt_methods.
CLEAR ls_methods.
ls_methods-refnumber = 1.
ls_methods-objecttype = ''.
ls_methods-method = 'SAVE'.
ls_methods-objectkey = '%00000000001'.
APPEND ls_methods TO lt_methods.
* Fill header
CLEAR ls_bheader.
ls_bheader-orderid = '%00000000001'.
ls_bheader-order_type = 'ZM02'.
ls_bheader-funct_loc = 'FERBL_TD5C_DER'.
ls_bheader-planplant = 'B006'.
ls_bheader-sales_ord = vbeln.
ls_bheader-s_ord_item = '00010'.
APPEND ls_bheader TO lt_bheader.
** Convert the internal WBS to an external WBS element
* SELECT SINGLE * INTO ls_prps
* FROM prps
* WHERE pspnr = ls_vbap-ps_psp_pnr.
** Fill settlement rules
* ls_srule-objnr = ls_item-aufnr.
**** ls_srule-sales_ord = caufvd_imp-kdauf_aufk.
**** ls_srule-s_ord_item = caufvd_imp-kdpos_aufk.
* ls_srule-wbs_element = ls_item-projn.
* ls_srule-settl_type = 'FUL'.
* ls_srule-percentage = 100.
* ls_srule-extnr = 1.
* APPEND ls_srule TO lt_srule.
* ls_srule_up-wbs_element = 'X'.
* ls_srule_up-sales_ord = 'X'.
* ls_srule_up-s_ord_item = 'X'.
* ls_srule_up-orderid = 'X'.
* ls_srule_up-settl_type = 'X'.
* ls_srule_up-percentage = 'X'.
* ls_srule_up-extnr = 'X'.
* APPEND ls_srule_up TO lt_srule_up.
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = lt_methods
it_header = lt_bheader
* IT_HEADER_UP =
* IT_HEADER_SRV =
* IT_HEADER_SRV_UP =
* IT_USERSTATUS =
* IT_PARTNER =
* IT_PARTNER_UP =
* IT_OPERATION =
* IT_OPERATION_UP =
* IT_RELATION =
* IT_RELATION_UP =
* IT_COMPONENT =
* IT_COMPONENT_UP =
* IT_OBJECTLIST =
* IT_OBJECTLIST_UP =
* IT_OLIST_RELATION =
* IT_TEXT =
* IT_TEXT_LINES =
* it_srule = lt_srule
* it_srule_up = lt_srule_up
* IT_TASKLISTS =
* EXTENSION_IN =
return = lt_return.
* ET_NUMBERS =.
IF sy-subrc = 0.
ENDIF.
Edited by: Niels Ruelens on Feb 20, 2008 4:58 PM -
Inserting Pricing condition in Sales order when saving the sales order
Dear ABAPers,
My customers requirement is when saving the sales order new pricing condition has to be updated in the line item.for this i am using the User Exit 'USEREXIT_SAVE_DOCUMENT_PREPARE' ( MV45AFZZ).While saving the Sales order i am calculating the Price and updating in the Pricing conditions.
In XKOMV internal table i am appending the pricing condition.But the problem is ,it is not calculating the taxes and it is Updating in VBAK and VBAP.
How to do this.
Thanks & Regards,
Ashok.Dear ABAPers,
I have Solved this Problem.
Thanks & Regards,
Ashok. -
Block production order creation in MTO scenario when sales order is blocked
Hello Experts,
We are using the MTO scenario and creating production orders with refernce to sales order using CO08.
The requirement is to not allow the creation of production order when the sales order has a block. It can be an overall block or a credit block.
Right now the systme allows me to create the production order with refernce to the sales order even when the sales order is blocked.
Is there any way by which this check can be activated.
Thanks
RiteshHi!,
Please try follow:
Go to path IMG > Plant Maintenance and Customer Service > Master Data in Plant Maintenance and Customer Service > Technical Objects > Serial Number Management > Define Serial Number Profiles. There enter "2" in Stkck column for your serial profile.
Regards,
Uday -
Trigger an Idoc when a sale order is been opened in VA02 & saved
Hi Experts
I have a requirement to trigger an Idoc when a sale order is been opened in VA02 transaction and saved.
Now that I have attained the same through Message Control Settings and Nace out put type settings with Multiple Issuing.
Here in the Idoc will be triggered when the user makes any changes in the order based on the NAST table entry.
Now my requirement is that the Idoc has to be processed even if there is no changes made to the document when the user opens the sale order and clicks save.
This is the process been carried out to re-process the Idoc.
Now that the Idoc is triggered using the path ---> menu - extras -output - header- edit & save.
Now that the user need to process the Idoc by just opening the order in VA02 and click save.
How can this be attained ? is there any configuration for it ?
Or is it possible to handle the same in any of the user exit ?
the problem is the user exit save gets triggered only when there is any change in the document else it throws a msg " No changes made"Hi Niraj
Thanks for your Response.
Now that the output control works fine when there is any change made to the document.
Now that i need to configure such a way that the output control triggers even if there is no change to the document and save button is clicked.
Can U please elaborate how do i make settings in VOFM-> Output Control ?
Thanks
Sathish -
Applying user exit PPCO0007 Exit when saving production order
Hi,
I need the Production Order no. generated when above exit is called. Please suggest.Hi,
Try with the Method: IN_UPDATE
This is the documentation:
IO IF_EX_WORKORDER_UPDATE IN_UPDATE
Short Text
Save Order Time: Update
Functionality
This method is executed during the update after the order is saved.
Parameters
All tables relevant to orders of all the orders processed within this
transaction (also cross order type) are transferred. A table containing all
changed records is transferred for each order object and a table *_old that
contains the original state of the changed records when the transaction was
started.
To differentiate between different order categories, evaluate the "AUTYP"
field in the order headers.
To determine which actions were carried out on the individual objects of an
order, you can evaluate the update indicator in the individual tables. In the
different tables, the update indicator is called "VBKZ" (exceptions:
IT_PMPARTNER-UPDKZ, IT_PRT_ALLOCATION-MODKZ, IT_MILESTONE-VBKZ_MLST or
IT_MILESTONE-VBKZ_MLTX) and can contain the following entries:
"I": Insert
The data record is written to the database again. No *_old
entry exists
"U": Update
The data record already exists in the database and has been
changed in the transaction. An *_old entry exists.
"D": Delete
The data record already exists in the database and is to be
deleted. An *_old entry exists
The data record exists in the database. No changes have been made in
the transaction. An *_old entry exists.
Notes
Note that the method is carried out in the update process. In particular, no
dialog is possible, no messages may be sent and no database commit may be
executed because otherwise an orderly rollback is no longer possible.
Kind Regards,
Mariano -
Sales order to Production order direct conversion
Hi all,
When you runn MRP for a Sales Orde, system should raise a Production Order. How to configure the system without using strategy 82?
Regards,
Sudhakar.Hi,
Whats is Module pool and can you explain with an example?
Thanks & Regards,
Sudhakar
Maybe you are looking for
-
Customised tab in Purchase order header transaction
Hi all, I have implemented ME_GUI_PO_CUST BADI for adding a tab in PO header and activated.I have put break-points and found it's not triggering.I have gone through previous forums,but couldn't find any reason.Please help. pls find below code I used
-
PDF Output Settings for Word Email Merge?
Hi all, I'm using Acrobat X's integration in Word to do an email merge of PDFs. There are images in my template that need their quality maintained. So far, I've been unable to find a setting that affects the "Merge to Adobe PDF" script. I've created
-
Web Service Model transforms dateTime elements to java.util.Calendar
The issue is that my EJB returns a java.util.Date object, the WS that exposes this EJB states in the wsdl that it returns a dateTime element (see attachment). Web Dynpro web-service model, when given the wsdl generates proxies that receive a java.uti
-
Adobe creatpdf desktop printer
when using adobe creatpdf destop printer, where does the file end up
-
I'm trying to configure a WLAN composed of AP1242's managed by a WLSE and authenticating via an ACS Appliance. At present I'm still testing so the ACS box is using it's internal user database and I've generated a self signed and installed cert on it.