How to capture an address change for a sale order in user exit MV45AFZZ?
Hi ,
My requirement is to capture the address change in sale order .
I have to write the code in my own z-include in MV45AFZZ of SAPMV45A.
Here I have to use VBAP-KUNNR for PARVW = AG or WE. And ADDR1_DATA.
Could you please give me idea , how to capture the address change?
Thanks ,
Suresh.
Farshid,
As I understand it it is the RCS software that replaces the $Revision$ with $Revision: 1.2$. Is that correct?
There are two things that you need to be aware of if this is the case.
First, the length of the text fields are saved as part of the SystemBuild model file. This means that when the revision control software replaces the tag the length is no longer correct, and SystemBuild will not be able to load the file correctly. You can still change the text as long as you make sure the the length of the tag stays the same. For example if the version number is a single digit decimal then single digit, then when you create the file you could store the revision as $Revision: x.x$. When the tag gets replaced by the revision control software you would get
$Revision: 1.2$ which is the same length.
Next you need to be aware of potential line breaks. When the SystemBuild model is saved as ASCII then line breaks are added at regular intervals, so the tag might be broken up on two lines. This could prevent the revision control software from recognizing the tag. To prevent this save the file as binary.
In short make sure that the text the revision control software adds is the same length as the text that it replaced and save the files as binary files.
Carl L
National Instruments
www.ni.com/matrixx
Similar Messages
-
How to change price in Sales order using user exit ?
The scenario is - when the user creates a sales order, there has to be an RFC called to another system to get the price of the materials in that system. Then it has to overwrite that price in this S.O.
Which exit in S.O can be used for this and then what processing needs to be done after the RFC call to get price. Like how the price can be overwritten on this S.O ? (Lets say to get price we use some BAPI to the other system). Any help ?Dear Theodorous,
1)Please check the Material has been extended to the second plant.
2) Assign the second Plant to Sales Org and Dist Channel
If you have any concern revert back the same
Regards
Amjath -
Creating line item for a sales order in user exit
Hi
I have to create a line item through user exit "userexit_save_document_prepare" when saving the sales order.I am doing this by appending a row to the internal table XVBAP in the user exit.
The row is getting appended to the internal table but the line item is not getting created in the sales order .I dont getting any error also.
Can anyone tell me what could be the reason for this and is there any other means by which i can create a line item through the user exit.You have to set the creation flag UPDKZ to 'I'.
to correctly use the user exit refer to OSS note 0381348 Using user exit, customer exit, VOFM in SD.
pls reward if helpful
Roberto -
How to get the delivery number for the sales order
hi
how to get the delivery number for the sales orderHi,
1. IN VA03, enter the sales order and click on the document flow button. From there you can check the delivery document.
2. In SE11, enter VBFA(Document flow) table and enter the sales order in VBELV field and in VBTYP_N field enter 'J' to specify that you want to check if there is already a delivery document for that sales order.
Hope it helps...
P.S. Please award points if it helps... -
How to create a single delivery for two sales orders?
Hi Experts,
I need to create one delivery for two sales orders. But it fails.
The route, shipping point, ship to party are same for both orders but INCOTERMS are different.
Delivery date, Good issue date, loading date,material availability date, transportation planning date for 1st order is 12/07/11 and for second order is 14/07/11.
I have created delivery on 14/07/2011 but the delivery is created for 1st order only, the second order is missing in the delivery.
It not happened because of incoterms.? different dates
Kindly help regarding this.
Thanks
RaghuPrerequisite for Grouped delivery
1. Header data should be same like Inco terms,Payment terms
Go to VL10A
Enter the sales order Numbers and execute
Select the sales order Nos for the group delivery and select "Background" Tab in Tool Menu Bar
If delivery is created coloured line items will get generated
Check the log for delivery docuements
Check and confirm
Senthils -
How update amount of charge line for a sales order line id
I have a modifier which are qualified for a order line id, i want to update the amount of charges if the Shipping date is > 1 day than resquest date, as I do not have the advances pricing module so i have to do a customization for this condicion.
I want to now how to update these, Does exist a API in order to do that ? or Can i go directly to oe_price_adjustments table and modify the data ??
Thanks
FernandoHi Fernando,
I'd probably do this in Adv. Pricing using a dynamic formula + factor list (two diff charge levels dependent on schedule ship date minus request date) against a booking event modifier. Obviously, you don't have dynamic formulas in Basic Pricing but could you handle this via creating a new pricing attribute? The charge levels could be maintained on a lookup rather than hardcoded and used in the calculation by your new pricing attribute.
Whatever approach you go for would also need to cope with the scenarios that you either rescheduled the order or manually amended the request date because obviously the gap between request date and SSD would change.
Your first suggestion is feasible, the second not a good move - I'm not sure how much it costs to licence Adv. Pricing but you could always offset the cost against the cost of developing and maintaining a custom update routine.
Regards,
Jon -
Detecting change on header and item texts for sales order in user exit
Hi,
In the user exit of VA02, I need to identify/detect if header or item texts for sales order is changed or not.
Please advise on this.
Regards,
ShreyasNormally system stores the old values in XTables and new values in YTables. Check if you have access to these in your user exit. If you give the user exit name, someone will be able to guide you.
hith
Sunil Achyut -
How can I determine material costs for a sales order
We are using 11.5.10..2
For sales orders that have shipped and details of which are stored in OE_ORDER_HEADERS_ALL, OE_ORDER_LINES_ALL and WSH_DELIVERY_DETAILS,
I would like to determine the material costs that have been incurred for that order.
I am guessing I will have to find the WIP order that has been created in response to that sales order and find the material costs for that WIP order.
However, I am not sure which tables should I look at in WIP or Costing
I would appreciate some hints i.e. the tables that could have this information.
Regards
Manav
Any help on the above question would be appreciated.
Edited by: manav_purohit on Jan 7, 2009 2:52 PMIf this is not too late:
If you have cost elements then you can use this.
select .....
where
mtl_material_transactions.txn_source_line_id=oe_order_lines_all.line_Id
and mtl_material_transactions.transaction_type_Id=33
and mtll_material_transactions.transaction_id=MTL_CST_TXN_COST_DETAILS.transaction_id
and oe_order_lines_all.line_id=&your_line_Id
and MTL_CST_TXN_COST_DETAILS.cost_element_id=&your_element_Id_for_material;
if you do not need cost elements
you can just use mtl_material_transactions.transaction_cost to get that transaction's cost.
Thanks
Nagamohan -
How to delete the subsiquent document for a sales order
Hi,
Please tell me the tcode to delete the subsequent document of a sales order and a sales quotation.I want to reject or delete the sales quotation.
Please tell me the procedure.
Currently i am trying to cancel the billing document for sales order by VF02 and try to cancel through menu bar.
After canceling the document its still giving the message that subsequent document exists.
Please help.
Thanks and Regardsin the document flow : i am finding documents which are given below :
Doc. Date Overall Processing Stat
Serv. notif. 00015773
Qt For NewConnection 20022016 23.04.08 - Completed
Order New Connection 22460 23.04.08 - Open
Z New Connection 90022430 23.04.08 FI doc. not Required
Cancel. Invoice (S1) 90023731 19.07.08 FI doc. not required
And no accounting document created.
Thanks and Regards
Edited by: Birendra Choudhary on Jul 19, 2008 2:08 PM -
How to ChangePlantfor each item of Sales order using User Exit SAVE_DOCUMEN
Hi All,
I have to change plant for Each line item of sales order using (MV45AFZZ) (USEREXIT_SAVE_DOCUMENT) based on first Schedule line.
if Confirmed Quantity is Less than Ordered Quantity.
based on first Schedule line.
it has to select other Plant and need to populate it in line item of sales order.Please see the below code and let me knoe if any changes required... Thanks in Advance.
data : wa_vbep like xvbep,
Lv_matnr type mara-matnr,
lv_werks type marc-werks.
DATA: it_vbap TYPE STANDARD TABLE OF vbap,
wa_vbap TYPE vbap.
field-symbols: <wa_vbap> type VBAPVB.
clear wa_vbap.
*loop at xvbap into wa_vbap.
loop at xvbap assigning <wa_vbap>.
read table xvbep into wa_vbep with key posnr = <wa_vbap>-posnr.
if wa_vbep-ETENR = '0001'.
if sy-subrc = 0.
IF wa_VBEP-BMENG LT wa_VBEP-WMENG.
SELECT SINGLE DWERK
INTO lv_werks
FROM MVKE WHERE matnr = <wa_VBAP>-matnr
and DWERK ne <wa_VBAP>-werks.
if not Lv_werks is initial.
if lv_werks EQ 1033.
move '1002' to <wa_vbap>-werks.
if sy-subrc eq 0.
xvbap-werks = <wa_vbap>-werks.
modify xvbap from <wa_vbap> .
endif.
elseif lv_werks EQ 1003.
move '1003' to <wa_vbap>-werks.
elseif lv_werks EQ 1010.
move '1010' to <wa_vbap>-werks.
endif.
endif.
endif.
endif.
endif.
endloop.
endif.
Regards,
Sudhakar Reddy.AYou have to use the form routine "USEREXIT_SAVE_DOCUMENT_PREPARE"
regards
Vinod -
How to trigger Availability check in Sales Order 'save' user exit.
I have requirements which dictate that I change item categories of most of the line items in a user exit. If I do that the line items no longer confirm. I know that the availability check happens in 'move_Field_to_vbap' user exit. Is there any way I can re-trigger it on save. These orders will be coming through a bapi. Thanks in advance.
Hi!
Search the way (via menu) in VA01 to trigger the availability check manually. Then have a look, with routines are called.
Then call this (these) routines in the exit. If you see something like 'perform okcode_...', then this should work. Be careful not to trigger recursive loops by this way. Maybe the prepare_save-exit is a better place to do this.
Regards,
Christian -
How to find territory for a sales order?
Hello,
How do we find the territory for a sales order?
Please help.
Regards,
SamAs you know, the territory keyflex is multi-segment so you'll need to adapt the following to show which segments you want. The SQL below prompts for OU org_id, order number and line number.
Regards,
Jom
SELECT
terr.segment1
FROM
hz_cust_site_uses_all ship_su
, hz_party_sites ship_ps
, hz_locations ship_loc
, hz_cust_acct_sites_all ship_cas
, oe_order_headers_all ooh
, oe_order_lines_all ool
, ra_territories terr
WHERE 1=1
AND ooh.org_id = &org_id
AND ooh.order_number = &order_number
AND ool.header_id = ooh.header_id
AND ool.line_number = &line_number
AND ool.ship_to_org_id = ship_su.site_use_id(+)
AND ship_su.cust_acct_site_id = ship_cas.cust_acct_site_id(+)
AND ship_cas.party_site_id = ship_ps.party_site_id(+)
AND ship_loc.location_id(+) = ship_ps.location_id
AND ship_su.territory_id = terr.territory_id(+) -
Single idoc generation for multiple sales orders
Hi,
Pls let me know how do we generate single idoc for multiple sales orders.
Its not collecting idoc. As we know we can generate an idoc for one sales order correspondingly
my requirement is to generate single idoc number for multiple sales orders.
Do we need to write a program.Amar,
To understand take HRMD_A04 as example. Root segment has Maximum 9999999999 defined.
Segm.type E1PLOGI
Minimum number 1
Maximum number 9999999999
Parent segment
Hier.level 2
This means that this IDOC types has capability to hold multiple HR Master data objects. PFAL program creates this IDOC and it has facility to mention the Objects per process, check selection screen.
I checked for INVOICE01/02 its not possible there. Hope this clarifies. -
WebDynpro Application for Create Sales Order
Hi All,
Can any one help me to get the right documentation on How to create a WebDynpro Application for Create Sales Order, Calling BAPI.In NWDS, click Help-->Welcome...Netweaver Developer Studio. Under "Developing WebDynpro Applications" click the link to the chapter.
Go to....
SAP WebAS for Java Applications
Development Manual
Developing Web Application
Web Dynpro
Tutorials
Advanced Tutorials
Model Tutorials
Creating a Web Dynpro Appliation Accessing ABAP Functions.
This should get you started.
Regards,
Rich Heilman -
Maximum number of Invoices for a Sales order
Dear All,
How many invoices we can make for a Sales order?
Is there any maximum limit for that?
How many documents can be shown in Document flow?
Please let me know.
Regards,
Mullairajahi mullairaja
if in the case for partial deliveries you could process any number of invoices but only till the number of partial deliveries in the customer master data > sales area > shipping > partial deliery per item .....
if the case of the sales order is processed and delivery and COMPLETE picking ...and PGI with respect to that delivery document you could only process one invoice ......
IF you complete the whole sales cycle ...you can see the whole document flow in va02 by clicking document flow in the left top corner.
the document flow will be more if their are many partial deliveries.
<removed_by_moderator>
Please read the "Rules of Engagement"
Regards,
JAGAN N M
SAP SD
Edited by: Juan Reyes on Mar 14, 2011 9:35 AM
Maybe you are looking for
-
Change Application Icon Size in iTunes.
Can anyone tell me how to change the size of the application icons in iTunes so I wouldn't have to scroll and see them all at once? Thanks
-
The Search box in iTunes 11.0.2 under OS X 10.7.5 won't even accept mouse clicks in Library view, it is completely unresponsive. However, it works fine in iTunes store. Just another in the endless list of ways Jobs-less Apple is ruining good things
-
How to charge an Ipad faster?
well i have an ipad 2 whose charger is completely broken. I charge my Ipad using my HP computer and the usb cable which seriously takes a lot of time. How can I charge the Ipad faster?
-
a simple query on plsql block if i don't define the size of a variable of number type what will be the default size ? declare a number ; begin null end; and in a procedure if i don't mention in or out in the parameters what will oracle take it by def
-
How to create database.properties???
Hi i am a starter for JDBC...although I know a lot of java already... can some one help me out to tell me what will be the structure of my database.properties file??? I am using MSSQL server as database... I hv already set the classpath as shown unde