Trigger custom idoc through ALV when sales order is created in VA01 & VA02
Dear Experts,
I am new to the concept of ALV_idoc. Please give me the procedure in detail.
How to send custom fields to non SAP system when sales order is created or modified in VA01 &VA02?
Can i use existing Logical Systems and Ports and partner profiles?
Thanks & Regards
Moderator message: please search for available information/documentation.
Edited by: Thomas Zloch on Jan 17, 2012
hi,
the first option is the right one. the FM invoked makes a direct input, so all the functionalities in S.O. are the standard one in the same way as if you are making it manually.
Also you can have some exits in the Idoc FM, so you can manipulate data there before loading the sales order.
pls. reward if helpful
regards
Roberto
Similar Messages
-
Want to get a popup when sales order is created or saved
hi all ,
I want to get a popup when sales order is created or saved .Is there any user exit for the same?
thanks in advance ,
Naval bhattHi,
try this.
Go to the include MV45AFZZ of Sales Order Main program SAPMV45A
and find the correct exit in that and write the User exit code after saving the document FORM USEREXIT_SAVE_DOCUMENT_PREPARE or
FORM USEREXIT_SAVE_DOCUMENT by calling/writing the
fun module POP_UP_TO_CONFIRM.
Regards,
Anji
Message was edited by:
Anji Reddy Vangala -
When sales order is created ,costing of a material cann't be created automa
dear suppporter:
when sales order is created ,costing of a material cann't be created automatically.if i cost the material in va02 ,the cost can be generated.please help me analyse it .
best regards.There is Tick in Delivery block 01 Deliveries: Blocking Reasons/Criteria
I have observed in testing Before you save a sales order, you look at the schedule line overview, you can see what the system would Proposed confirm date and confirmed qty, if the block were not set. However, as soon as you save the sales order,(warring message Oldest open items over due will appear) the confirmed quantities are automatically reset to zero because sales order is Blocked. Here the goods remain available for other customers.
Note : When you release the sales order the automatically in sales order confirmed qty and proposed date will come.
Here the problem is when they do MRP run after sales order saved with block Planned order is creating. -
Over write ship to party address when sales order is created
Hi
I am creating sales order using BAPI_SALESORDER_CREATEFROMDAT2 but would like to change the shipto party address.
I want to change the following address fields of shipto party
Name1
Name2
Street
STR_SUPPL1 (Street2)
C_O_NAME (c/o name)
POSTL_COD1 (City postal code)
CITY
COUNTRY
REGION
TRANSPZONE
Following is the piece of code i wrote for partner structure and partner address structure of the BAPI.
I_ORDER_PARTNERS-PARTN_ROLE = 'WE'.
I_ORDER_PARTNERS-PARTN_NUMB = '0000241269'.
I_ORDER_PARTNERS-country = 'US'.
I_ORDER_PARTNERS-TRANSPZONE = 'US'.
I_ORDER_PARTNERS-ADDR_LINK = ''0000201328'.
APPEND I_ORDER_PARTNERS.
I_PARTNERADDRESSES-ADDR_NO = ''0000201328'..
I_PARTNERADDRESSES-NAME = WA_CUSTOMER-NAME.
I_PARTNERADDRESSES-NAME_2 = WA_CUSTOMER-NAME2.
I_PARTNERADDRESSES-STREET = WA_CUSTOMER-STREET.
I_PARTNERADDRESSES-STR_SUPPL1 = WA_CUSTOMER-STREET2.
I_PARTNERADDRESSES-C_O_NAME = wa_customer-c_o_name.
I_PARTNERADDRESSES-POSTL_COD1 = WA_CUSTOMER-ZIPCODE.
I_PARTNERADDRESSES-CITY = WA_CUSTOMER-CITY.
I_PARTNERADDRESSES-COUNTRY = WA_CUSTOMER-COUNTRY.
I_PARTNERADDRESSES-REGION = WA_CUSTOMER-REGION..
I_PARTNERADDRESSES-TRANSPZONE = WA_CUSTOMER-TRANSPZONE..
In the above code address number 0000201328 is address number for customer 0000241269. Now the sales order is getting created but ship to party address is not overwritten with the values passed above. Ship to party address is just defaulted from customer master.
What should i have to pass to the address number field.
Any piece of code which is working would be more helpful.
Thanks in advance
Rajesh.I haven't tried for this, but from the documentation of FM I got this note:
<i>Notes
If the table is used to enter document addresses for a sales and distribution document, the address data is then not necessary in the document partner table BAPIPARNR / BAPIPARTNR ).</i>
So, I am not sure wheather it is possible or not.
Regards,
Naimesh Patel -
Block For billing when sales order is created
Hi experts,
I have a requirement in which i want to block the sales documrnt for billing when the sales order is created with particular discount value.
for this i have checked the condition of discount first it works fine no i want to block it for billing.
My SD consultant told open the sales doc in change mode(VA02) and then go to Billing Block field (FAKSK) and then give 02 Compl confirm missing and save the doc
So for this i have writen a method.
SET Parameter ID 'VBELN' Field OBJECT-KEY.
Call Transaction 'VA02' and SKIP FIRST SCREEN.
SET Parameter ID 'FAKSK' Field '02'.
in this it is calling the VA02 screen but i am not able to pass the billing block value and save.
Please give me a solution how to do this.
for blocking i have also used the standard method in BUS2032 SetDefaultBillingBlock
it is not blocking the billing.
Or should i use some bapi for this.
Regards,
HariHi Hari,
SET parameter ID only sets the value to an input field. It wont saves to the database. More over i don't find any parameter ID for billing block in VA02.(May be because it is a drop down).
Use BAPI BAPI_SALESORDER_CHANGE Pass the sales order number, ORDER_HEADER_IN-BILL_BLOCK = ur blocking code, ORDER_HEADER_INX-BILL_BLOCK = X.
After calling the BAPI call BAPI_TRANSACTION_COMMIT.
Above procedure is to programativally.
If u want to do it manually then directly open VA02 and change the billing block and save.
I dont think we can set parameter ID for billing block
Thanks,
Vinod. -
Creation of delivery when sales order is saved in VA01
Hi All
We got the requirement in such a way that
we are creating sales order of type (ZOR -standard order ) . Configrration is donde in such a way that when the order is saved one dilvery will be created for that order of deilvery type ZLF .as this is assginned as default delivery type in VOV8 .
Hre we have two delivery types ZLF and ZF and we have diffrent different item categories for that sales order like ZZTC , ZPU ,
ZTDP .
our requirement is as follows
when we create sales order through va01 (order type - ZOR standard order ) having onlu one item category ZPU then delivery should be created of type ZLF it is happing correctly .
when we create a sales order through va01 having non ZPU item categroies like ZZTC and ZTDP dlivey should not be created automatically for that sales oder on saving that order . this is also happeing correctly
but the problem is
when we create a sales order having diffrene item categories ( one condiotn here one item should be ZPU) and other item is ZZTC while saving the sales order delivery is getting created partially for one item only not for two items i mean delivery is getting created only for item categroy zpu the item with type ZZTC is not gettting added to that delivey .
for exmaple
sales order 1234
item category ZPU
item category ZZTC
delivery created with only one item ZPU
May i know any requirments (routines ) are thre to solve this in VOFM .
let me know how to hanlde this issue .
Regards
Sunil
Moderator Message: It looks like you are using the forums to get your work done for free. This is not a help-desk to get your Consulting work done. Also you have closed only 1 out of total 68 questions till date. Since you are such a lazy and irresponsible forum member, Im giving you the final warning against breaking the rules of this forum. One more violation and you userid will be deleted.
Edited by: kishan P on Oct 14, 2010 4:36 PMHi Mohanty,
I think the Immediate Delivery under Shipping for that order type may have value A or X, Clear that value.
1) Goto VOV8 tansaction.
2) Select the Sales order type (For eg: OR for standard order) and double click on that
3) Under Shipping tab, Set Immediate Delivery with Blank value
Plz reward points if it is helpful
Thanks,
Vinay -
Create a new entry for zfield in the CDHDR table when sales order is create
Hi,
We have some custom field added to table VBAP and that field need is updated thorugh transaction VA01 or VA02.
The Function poeple is asking to Update the CDHDR table for the ztable when ever the field is updated ,and they want
the changes to appear in the sales order changes Log.
PrabhudasProblem solved.
By using the ..
Used this FM "VERKBELEG_WRITE_DOCUMENT" in MV45AFZZ in exit...DOCUMENT_SAVE.
by passign the only VBAK and VBAP table structure of XVBAP and YVABP and field name as ZZFIELD.
Prabhudas. -
Create delivery automatically when sales order is created but not invoice??
Hi,
I have a requirement where in, it should create delivery (also issue) automatically when i create sales order, but it should not create the invoice automatically. I am going to do the invoice manually from the delivery document. Can you suggest me how to do this??
Thanks
GhaneshHi,
If the sales document type is not relavant for Cash sale and the document type is used globally in the business then if for some specific conditions like distribution channel or plant or for division if u want to carry out the immediate delivery creation and PGI, use the below user exits and Bapi's
The below user exit is used to export the sales order details to capture the required checking cond such as sal org,dist ch,div,plant,etc
Include MV45AFZZ
FORM USEREXIT_SAVE_DOCUMENT.
Include MV45AFZA
FORM -USEREXIT_REFRESH_DOCUMENT.
BAPI_ISAORDER_GETDETAILEDLIST
BAPI_OUTB_DELIVERY_CREATE_SLS
SD_DELIVERY_UPDATE_PICKING
BAPI_OUB_DELIVERY_CONFIRM_DEC
Regards,
Gopal. -
Updating email address in Sales order header partner address -VA01/VA02
I got the requirement to update the email address in Sales order-> header-> partner address.
The mail address will be picked from ZTABLE and updated in header partner address through user exit
I cannot find any field for updating email address in partner address in user exit "MV45AFZZ"
Is there any other user exit/option to update email address in header partner address of sales order?
Thank You,
GMHi Rajesh,
I agree with you but this Scenario is different.
Just as you have mentioned the address change will not reflect in the Old Sales orders but it should in the new Sales orders right??
But that is not happening..The Address was changed say two months back and the new address is not appearing in the Sales orders created these days say yesterday or today..
In such a case,what is should I check to get the address updated??
Please advice.
Regards,
Sophia Xavier -
How to generate IDOC while creation of Sales Orders
Hi
If i create a sales order means.. i want to trigger a IDOC with this ORDER data .. how can we do this.. when ever i'm creating a sales order it should be automatically trigger a IDOC , Because ehen ever sales ordre was created in R/3 system it should be transferred to some destination.. all the ALE configurations are done.. .
so, how can we trigger an IDOC based on Orders creation..
Thanks
BabuHi,
Here is the link
[Re: Idoc creation;
Regards
Sudheer -
When sales order get cancelled
Hi Gurus
Please explain the process when sales order is created for 10 QTY and production order released for 10 qty and all operations confirmed for 5 QTy & moved to FG remaining 5 no qty is in WIP, so then sales order get cancelled, and got another new sales order with different specifications with same qty.
now i want convert the cancelled sales order qty to new sales order qty
please explain me step by step
with Regards
Laxmipathi.G.VHi
Anyway you were doing the Activity confirmation for the 5 quantities at the operation stage.
so the component only consumed for this production .when you check the material document for the particular confimation . you can see the component was consumbed. ( 261 movement)
So you do the reverse the confirmation at the operation stage CO13 . and you can reverse the components back to the production storage location back. (movement type 262)
Edited by: raj on Jun 8, 2009 8:11 AM -
Sending Email to Material Department when a Sales Order is created
Hello All,
I am a facing the problem to find out the exit when creating the sales order.
My Requirement is whenever a sales order is created via VA01, a email is sent to the material department with some contents. My task is to enhance the contents of the email.
Can anybody tell me where, this exit is triggered.
I have checked in USEREXIT_SAVE_DOCUMENT_PREPARE and
USEREXIT_SAVE_DOCUMENT. But nothing written in these to forms
Please come up with ur Ideas
Regards,
Vasanth.MHi,
There might be some output type which is associated with VA02 , that output type triggers when ever you create or change , that might be sending the mail.
You Go to <b>NACE</b> transaction there you can see the output type related to sales order , in that look for output types which are sending mails. there you can get the driver program and use that progrm , go to SE38 and modify the content accordingly..
Regards
vijay -
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 -
When idoc failes for inbound sales orders then how to trigger a mail notifi
Hi All,
When idoc failes for inbound sales orders in SAP then i would like to send an email notificaiton to particular user id. Could you please let me know the settings for this requirement.
Thanks in advance..Closing thread as there are no replies
-
Business Event when Sales Order is Booked....Custom Business Requirement
Hello,
I have business requirement like when a sales order line is booked/ Item is Received in Inventory/ Line is Cancelled , I need to update quantity,price for that customer and item# in a custom table.
So what is the best approach to do it..Is it making use of business events or Alerts or any other approach?
If business events, can you please tell me what are the business events and how to find out event parameters for the following
1. When Sales order Line is Booked
2. When Item is Received in Inventory
3. When Account Alias Receipt is Done in Inventory
Please advise.
Thanks,
SridharCheck these links
https://forums.oracle.com/thread/2337912
https://forums.oracle.com/thread/976272
https://forums.oracle.com/message/2427841
I don't recommend alert as the alert is fired during every record update. If you have modified the OM workflow, then you can achieve your requirement by adding a new node/function in the workflow to update the custom table.
Thanks
Shree
Maybe you are looking for
-
Mapping multiple Siebel BC's to a single OPA entity
My colleague referred me to this forum, so glad to know there's support for such niched technology. Wondering if anyone has tried mapping multiple BC's to the same OPA entity using IO? This is not possible via BO Mapping due to user-key constraint o
-
Org.xml.sax.SAXNotRecognizedException
I'm Working on Jdeveloper... It compiles pretty fine.. but I get a bunch of errors when I try to run. Can anybody help me come across this problem. the stack trace is here: [Digester.java:686] ERROR - Digester.getParser: org.xml.sax.SAXNotRecognizedE
-
Windows 8.1 Capture through MDT Get Error -217217406 in MDT 2013
zti error unhandled error returned by lti apply not found 217217406 0x80041002
-
Where is apps file sharing located on itunes
itunes locate the apps file sharing on itunes
-
.this just started (again) this afternoon.......switched web browsers and everything is fine.......no software updates......what is going on