User Exit for Updating Plant
Hi,
I've got a requirement in user exit MV45AFZZ where i need to update field VBKD-KDGRP when a plant is changed in VA01 or in VA02.I wrote a logic for creating the VBKD-KDGRP getting this from Z table based on the plant entered......and automating the field VBKD-KDGRP in the item level of Sales order.....in USEREXIT_MOVE_FIELD_TO_VBKD
Now my other requirement is like i need to update this VBKD-KDGRP when a plant is changed in VA02 without effecting the logic of automating the field VBKD-KDGRP while creation of sales order using VA01...Shall i need to change the logic in USEREXIT_MOVE_FIELD_TO_VBAP or in USEREXIT_FIELD_MODIFICATION.........and how....need you guys suggestions
Thx for the quick response.......
I did tried using sy-tcode = 'VA02' but my question is how should i track the value of the plant which i change............suppose while creation a sales order if the plant is already configured for that material it will display automatically right........and my code does gives me the correct customer group based on the automated plant and displays correctly in its concern field VBKD-KDGRP( which i did it absouletly right in userexit_move_field_to_vbkd)
My worries are when i change the plant and press enter the value in VBKD-KDGRP should also be changed......this is not happing and for this to happen how should i trap the value which i've changed.....This is in case of 'VA01' while creating sales order and while chaning tooo in "VA02"....
Similar Messages
-
User exit for updating delivery block of Sales order before Delivery
Hi Folks,
Need to have an user exit for updating Delivery Block indicator for a Sales order Before creating its delivery
I have got an exit in Program SAPMV45A
MV50AFZ1
FORM USEREXIT_REFRESH_DOCUMENT.
that hits before processing the delivery block fro delivery (Correct me if i m wrong with this )
Now i want now how to change the Delivery Block indicator of Sales order in that exit
any FM available ?
Thanks n regards
Sonal...Hi ,
How did you solved this issue?
I am having similar scenario in which while pressing the save button delivery block should update if multiple schedule line exist.
Tried by two different approaches in various user exit without any success.
AFAIK we have two ways to achieve this functionality.
1) Count the no of rows in vbep. If greater than 1 then multiple schedule line exist and we can assign the value to VBAK-LIFSK(delivery block) as per our requirement.
This is not correct. If there are two line items both with single schedule line . This case total no lines in vbep will 2 and above condition will true which is incorrect.
2) There is a indicator for multiple schedule line (VBAPD-EPMEH , xvbap-epmeh ) if it is check then multiple schedule line exist and we can assign the value to VBAK-LIFSK(delivery block) as per our requirement.
If I write code in USEREXIT_SAVE_DOCUMENT_PREPARE.
Multiple schedule line indicator is not populate so can not use 2nd approach.
If I write code in USEREXIT_SAVE_DOCUMENT it of no use as vbak is updated before reaching this user exit.
If I write code in USEREXIT_MOVE_FIELD_TO_VBAK as this user exit is also called while pressing the enter key for this I have use
the condition of fcode but it also fails in some condition.
If fcode eq 'SICH'.
Read table xvbap with key epmeh = 'X'.
IF SY-SUBRC = 0.
VBAK-LIFSK = '03'.
Else.
VBAK-LIFSK = ' '.
Endif.
Endif.
Please help me to get the desired functionality working for all cases.
1) One line item with multiple schedule line
2) Two line item with multiple schedule line
3) One line item having one schedule line and second one having multiple
4)Two line item both with single schedule line. -
User exit for update rule of info structure
Hi gurus,
Can anybody tell me how to implement a user exit of update rule for LIS info structure, for ex,S140.
Thanks
Eric xuThere is no user exit and we are not allowed to modify the update rules of the standard SAP info structures. However, you can create your own info structure with the same or similar configuration and then apply a formula or a requirement in the update definitions (MC25 transaction), as you please.
After that you can just turn off the update of S140 (in OMO1 transaction) and use your own info structure instead in MCSI transaction. -
BADI or User Exit for updating MSEG
Hi,
We are using ECC 6.0 and here is the scenario that we have to update custom fields into VBAP, LIPS and MSEG tables when these fields are entered on the sales order screen VA01,VA02.These field are added on this screen using Additional Data B screen.Also, These fields are there in VBAP and LIPS through Append Structure and MSEG through CI_COBL.Is there any BADI or USER EXIT for this.Thanks in Advance.
Priya.Hi
You can use exit ZXMBCU02 ( Function EXIT_SAPMM07M_001
in SAP enhancement MBCF0002 ). Here also whtever changes you make to I_MSEG will be lost as MSEG is an importing parameter. You can do something like this.
FIELD-SYMBOLS <F1> TYPE MSEG.
DATA NAME(50) VALUE '(SAPMM07M)MSEG'.
ASSIGN (NAME) TO <F1>.
<F1>-KOSTL = 'XXXX'.
( In above example MSEG-KOSTL will be set as XXXX, you can change any of MSEG fields in above way. ).
Cheers -
Any user exit for updating VBRK-XBLNR when the billing is created?
Hi all,
I understand that in VTFL, there are 4 options for Reference number.
But if i want it has a special value, how i can achieve it?
Thanks,
JamesHi,
See Note 301077 - User exits for the interface to accounting. I think that EXIT_SAPLV60B_001 is the right option.
Regards
Eduardo
PD: althought perhaps USEREXIT_FILL_VBRK_VBRP in RV60AFZC fits better for your requirement.
Edited by: E_Hinojosa on Jan 25, 2011 9:08 AM -
User Exit for Updating Delivery Plant at Item Level in Sales Order
Hello Experts
There is a requirement to determine the delivery plant for each item level and than update the items with newly determined plant. There is a user exit MV45AFZZ routine FORM USEREXIT_MOVE_FIELD_TO_VBAP. to update the item level entries in Sales Order in VA01 or VA02. Is this the right place to do this?, if yes , do i need to perform any other standard logic (like re determine Shipping points , schedule lines ) for newly determined plant? If not , can you please suggest any other place , BADI or user exit to change the delivery plant of sales order.
Thanks a lot....
-HarkamalBest place is MV45AFZZ-USEREXIT_SAVE_DOCUMENT_PREPARE. Populates the values just before saving the document. You can have your own deriving logic. Make sure that peice of code is trigger only for Sales Order create or change (VA01/VA02).
Are you kidding??? You do realize that this is AFTER all validations against configuration, ATP, pricing, etc. have been performed??!!! Never, ever change a critical value like plant in the SAVE user exits... -
User exit for updating date field in msc2n while doing a goods rcpt in cor6
is ther anyexit to update the Date1 field(MCHA-FVDT1) in MSC2n( Batch) while doing a Good receipt for an order
Thanks in advanceHi,
to find the user exits & Badi's for the T-code..
go to table TSTC>enter T-code and execute> get the Program for the t-code..
and go to-se38-->get the package attached to the t-code..
next go to t-code Se15>expand the enhacement tab>enter package under userexit and
execute you will get the list of exits
available...
-->enter package under Badi's tab and
execute you will get the list of Badi's
available...
All the User exits are stored in Table MODSAP..
Prabhudas -
Hi all ,
I am using the user exit for the Plant A - MRP by MRp Type.
and i would like to use the same enhancement in the Different project in Plant B MRP by Material Group , But the sys is not allowing to use the same enhancement saying the enhancement is already used in the Project .
Whether i have to code in the Same project or i can create TWo project with the same enhancement ?
RegardsPlease understand, if you are changing the project for a different plant then you need to create same enhancement. If you are working on same project, you need not to create another code, you can get results by simply changing the plant name.
I hope, I have cleared.
cheers!!! -
USER EXIT FOR CHANGING POSTING DATE IN THE MATERIAL DOCUMENT
Hi,
Pls advise any USER EXIT FOR CHANGING POSTING DATE IN THE MATERIAL DOCUMENT.
Regards,Hi,
There is another user exit for updating material document data Upon posting is MB_CF001
I hope this will fullfill you.
Prem -
BADI/User Exit for custom table update from Delivery
Hi
Our requirement is to update a custom table with the delivery number and other related details when the picking status is changed to "C". Kindly suggest BADI/User exit for this requirement .
Thanks in Advance for your immediate help .Hi Joseph,
See SAP Note 415716 - User exits in delivery processing. It says when you have the document number available, what is permitted, what not, ....
I hope this helps you
Regards
Eduardo -
User exits to update a Zfield in AUFK table for T-code KO01(Order Creation)
Hi all,
I have a custom field(zZTEST) in aufk and coas struture(zztest) in order to display in the output generated by kok5 for order.
The reason for adding in coas struture is the ALV output in kok5 uses coas structure
I know aufk table gets an entry while creating an order in ko01.
When i save the order (i.e when i succesfully create an order) i have to pass a value to aufk-zztest so that the custom field in aufk for that internal order created has an value.
I was looking at the user exits available for ko01
i found 5 user exits for ko01
Exit Name---Description
COOPA002---Customer function for master data maint. - internal
COOPA003---User-Defined Fields in the Order Master
COOPA004---Customer function: Print order master data
COOPA_01---Customer check modules for internal orders
KKAZ0001---Customer check modules for internal orders
I have written the code break-point in all the includes associated with this USER EXITS.
Out of this only only 2 includes gets triggered when i click General data and investments tab .
I have the code in both of them and the aufk tables gets updated when i save an internal order and i can see the value in kok5 output as well.
To be frank this is what i want.
But my only worry is that when we create a new internal orders we don't have any data to be filled i.e mandatory fields in General data and INvestments tab.
i.e. user can create an internal order without even going to these tabs(General data and INvestments tab) in that case the custom field doesn't get updated and as a result of that i don't see that value in KOK5 ALV output.
Let me know what can be done or is there any other way that this can be achieved or the way i approached is right or wrong or am i am missing any user exits and the system is at 4.6c.
Thanks
VenkatHi,
Any suggestions on this post
Thanks -
User exit for Price Conditions in VA02 (update,insert or delete conditions)
Hi folks. I would like to know if anyone of you has already worked with transaction VA02...I need a user exit, which could be capable to: Erase, Update and Insert new Price Conditions.
Scenario: The user will not enter into the Price Conditions Tab. He will only make some modifications to the document via VA02 and when he saves the document, then the user exit should update, erase or include new conditions based on some logic that the user exit will implement. does anyone know a user exit for this particular case, please !
Thanks in advance.HI,
Check this.
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
V46H0001 SD Customer functions for resource-related billing
V45W0001 SD Service Management: Forward Contract Data to Item
V45S0004 Effectivity type in sales order
V45S0003 MRP-relevance for incomplete configuration
V45S0001 Update sales document from configuration
V45P0001 SD customer function for cross-company code sales
V45L0001 SD component supplier processing (customer enhancements)
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45E0001 Update the purchase order from the sales order
V45A0004 Copy packing proposal
V45A0003 Collector for customer function modulpool MV45A
V45A0002 Predefine sold-to party in sales document
V45A0001 Determine alternative materials for product selection
SDTRM001 Reschedule schedule lines without a new ATP check
Business Add-in
BADI_SD_SCH_GETWAGFZ Scheduling Agreement: Read WAGFZ from S073
BADI_SD_V46H0001 SD Customer functions for resource-related billing
Regards
Rajendra -
User exit to update extended segment in idoc for va01
Hi Experts,
I am working on Outbound IDOC interface for VA02 and VA01
I am using ORDERS05 IDOC type
i want to create one custom segment
and i want to fill that custom segment
but i am not able to find user exit to update this custom segment
please help.Akshay,
I think you want to send order response for the orders created via Va01 or edited by Va02
To do this steps are:-
1) Use FM IDOC_OUTPUT_ORDRSP to send order response (ORDERS05)
2) Find the function exits in this Fm using search string as " Call Customer-function".
3) Use include in the exits to write code to append new segments to the IDOC. Look for the Tables parameter in the Exits which are of structure type EDIDD. Insert new Segment details in this table and your IDOC will be generated with required values.
Hope this helps!!
Harry -
User exit for item level plant checking for va01
Hi ,
I have got many user exits for va01 .I have to check the plant at item level in va01 . Kindly give name of user exit for this task as im not able to find the right one.
Thanks .Hi,
Please check through path
S&D>>>System modification>>>Userexits.
here you will find various user exits available for SD module.
Regards
kapil -
User Exit for Delivery Updating
Hi,
I am creating one user exit for delivery ,
My condition:
If XLIKP-UPDKZ (Update indicator) = Update (U).
Read table Deferred COGS Activity (Z1009) with key
Delivery Number eq LIKP-VBELN.
If sy-subrc <> 0
Exit.
Else.
If V50AGL-WARENAUSGANG=X (PGI is active)
Update table Z1009 with
WADAT_IST = XLIKP-WADAT_IST
PGI_ERNAM = SY-UNAME
PGI_ERDAT = SY-DATUM.
where Delivery Number (DL_NO) eq LIKP-VBELN.
If delivery updated successfully then no problem ,
if not updated then I need to through error message to log.
I need Function Module for this.
Can u help me.These ar all the User Exits used in VL01N.
Exit Name Description
V02V0001 Sales area determination for stock transport order
V02V0002 User exit for storage location determination
V02V0003 User exit for gate + matl staging area determination (headr)
V02V0004 User Exit for Staging Area Determination (Item)
V50PSTAT Delivery: Item Status Calculation
V50Q0001 Delivery Monitor: User Exits for Filling Display Fields
V50R0001 Collective processing for delivery creation
V50R0002 Collective processing for delivery creation
V50R0004 Calculation of Stock for POs for Shipping Due Date List
V50S0001 User Exits for Delivery Processing
V53C0001 Rough workload calculation in time per item
V53C0002 W&S: RWE enhancement - shipping material type/time slot
V53W0001 User exits for creating picking waves
VMDE0001 Shipping Interface: Error Handling - Inbound IDoc
VMDE0002 Shipping Interface: Message PICKSD (Picking, Outbound)
VMDE0003 Shipping Interface: Message SDPICK (Picking, Inbound)
VMDE0004 Shipping Interface: Message SDPACK (Packing, Inbound)
You can also look at BADI: LE_SHP_DELIVERY_PROC. It has several implementations which could be useful to you.
Maybe you are looking for
-
Can't Import MP4 Files Into DVD Studio Pro
I'm trying to start a DVD Studio Pro 4 project, and have .mp4 video files. When I import them with the Assets>Import tab, they come in as MP4 audio files only, not movie files. The users manual says the integrated encouder auto encodes Quick Time ass
-
I have an iMac, Mac Mini and a Macbook Pro connected to a Airport Extreme Base Station. I normally use a Public DNS Server and I am not sure where to put the DNS URLs. Do I put them on the individual computers or is there somewhere in the Airport Ext
-
InfoRecord price versus Contract Agreement Price !!!
Hi I have a material for which there is full fledged InfoRecord and the price in that matained as 30 euro. And i have a contract agreement for the same material which i have price as 28 euro. Now if i raise a PO for that material mentioning both the
-
How to add photo from Photos app as iCloud/user avatar?
Hello, I would like to change my login and iCloud user avatar. I have photos in the new Photos app, but I can't import or drag&drop files on the settings screen from Photos. "Take a photo with your iOS device or manually add photos from the Photos ap
-
ISight not working with mac programs, functional with Tech Tool Deluxe
MBP 15 (late 2008) iSight not functional, ie "no camera connected" when using photobooth, imovie, ichat, skype, but when I fire up tech tool deluxe 5, it's working - I can see myself and it is functional. Tried all the restarts, etc. Can I fix this m