EDI order change - user exit
Hi group
Quick question...while doing a PO change ( IDOC_INPUT_ORDCHG)....sales order line items are to be deleted....I know that this needs to be done in a user exit...i am trying to nail down to the right user exit......
I found only one user exit ( customer function 002 ) dealing with BDCDATA...but the problem is this one is called multiple times in the program...and I want to run this code only once....have you guys encountered similar situation / have any clue....Plz let me know
Hi,
I did not get your question. What is the relationship between changing PO data and deleting sales order line item.
I do not recommend changing sales order line in some userexit while processing PO idoc. Eventhough you find an userexit to do this, when sales order line item is deleted and commit happens in not only commits the sales order data but also other outstanding updates. This might cause database inconsistency.
Please clarify your exact requirement.
Regards,
RS
Similar Messages
-
Sales Order Pricing User Exit Problem
Hi,
I am facing a problem related to coding in Sales Order pricing user exits. Scenario is as mentioned below:
Based on Material Entered and Sold To in Sales Order, auto determination of a manual pricing condition happens. For doing this, coding has been done in USEREXIT_PRICING_PREPARE_TKOMP by changing XKOMV table. Auto determination of the manual price is happening properly.
From Sales Overview Screen when user goes to the Conditions tab, Net Value is not getting calculated. When we navigate away to Schedule line tab and then come back to COnditions tab, Net Value is automatically getting calculated.
AM i missing something in the coding part? As the data is getting populated automatically I guess some piece of code needs to be triggered. Can anyone shed some light into this.
Thanks in advance,
thunderans.Prabhu: After filling in XKOMV structure, I am calling FM PRICING. On doing this, the Sales Pricing is getting calculated but even then net value of order at header i.e VBAK-NETWR is not getting populated when we are in Sales Overview screen. When, I am getting into Conditions tab and coming back to Sales Overview screen, Net value is getting populated correctly. This portion of everything not getting populated at the same time is bothering me. The pricing conditon that I am filling is a manual pricing condition.
I put a breakpoint after FM PRICING which correctly populates XKOMV structure. How do I properly update Order Net Value in Sales Overview screen wihtout having to navigate to any other tab?
Nicklas: I am looping at Order line within the user exit USEREXIT_PRICING_PREPARE_TKOMP and determining price. Once all line items are processed, I am using the FM PRICING for calculating Sales Prices.
J@Y: Request to send me a bit more details into your approach. -
Plant Maintenance Order - BADi/user exit for operation change
I need to send a mail on plant maintenance order (IW32) save event if there is any change in operation - requirement assignment person. Means if the operation is assigned to a person then notify that person on order save event.
Can anybody help me on this in finding some BADi or user exit?
Thanks in advance.Hi,
User Exits:-
IWO10009 Customer Check for 'Save' Event
BAdI:-
ALM_ME_001_ORDER Order/Operation Data
ALM_ME_ORDER_OPER MAM 1.0 Order Operations
IBAPI_ALM_OPR_GETDET BADI for Reading Fields for BAPI_ALM_OPERATION_GET_DETAIL
Check with these User Exits & BAdI's.
regards,
Venkatesan Anandan -
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 -
Disable the characteristic window in sales order and user-exit to pick up
Hi Freinds,
I am working on 1 VC assignment in which
1. I have to pick up the characteristic values selected in VA02 in sales order before saving the change sales order.
2. I have to Disable the characteristic window (with characteristic name and value) appear after click on u2018item detail : configurationu2019 button in sales order (if the chracterstic say 'Approval' having the value 'Yes')
3. I have to disable the characteristic window after selecting the one of the characteristic value to 'Yes' in VA02
So I need to fetch this character value witnin sales order before saving the change sales order and need to restrict the user to change any other characteristic value(disable the characteristic window) .
Please guide for any user exit at configuration side to export and import the values in sales order and disable the characteristic window to restrict the user from changing any other characteristic value for the item.
Please do the needfull.
Best Regards,
Vikram ChavanHi,
Check....
Exit Name Description
LMR1M001 User exits in Logistics Invoice Verification
LMR1M002 Account grouping for GR/IR account maintenance
LMR1M003 Number assignment in Logistics Invoice Verification
LMR1M004 Logistics Invoice Verification: item text for follow-on docs
LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting
LMR1M006 Logistics Invoice Verification: Process XML Invoice
MRMH0001 Logistics Invoice Verification: ERS procedure
MRMH0002 Logistics Invoice Verification: EDI inbound
MRMH0003 Logistics Invoice Verification: Revaluation/RAP
MRMN0001 Message output and creation: Logistics Invoice Verification
Reward points if useful....
Regards
AK -
I have a problem that I have tracked down to the code below.
In order entry through EDI, if a material is not on the customers buying list it is rejected by setting ABGRU. The problem occurs when the last 2 lines are rejected we get strange error messages like customer not maintained in dist channel xx or posting date is in the past.
At the end of the inbound orders user exit (EXIT_SAPLVEDA_001 include ZXVEDU03), we do this (see below) but I do not know why we set flag PBES = 'X' ?
What does it do?
When I remove the line setting PBES, it is OK
But before I can make a change to the live system I need to know what this does. Pls help
Update output parameters
IF NOT xvbap-abgru IS INITIAL.
d_flag_p = dd_flag_p.
d_flag_p-pbes = 'X'.
d_flag_p-pde1 = 'X'.
dd_flag_p = d_flag_p.
dxvbap = xvbap.
Update Material No if mapped from EAN Code
ELSE.
dxvbap = xvbap.
ENDIF.Hi,
You can maintain Production Storage location in BOM as well as you can maintain also in Material Master--> MRP-2 View--> Production Storage location.
So system will by default take the respective storage location and user need not select each time manually.
For this purpose, you need not implement any exit.
Revert in case any doubt.
Hope this solves your problem.
Regards,
Tejas -
Sales order number user exit in Purchase order
hi,
There is a sales order number in Purchase order(item level/account assignment/sales order no)
Now, i have to populate the SO no in orders 05.
Can any one say the user exit for populating the sales order number in PO.Hi
Check the below exits related to purchasing in which the table EKKN is referenced
EKKN will have VBELN (sales order No) and POSNR (item of sales order)
M06B0001
Role determination for release of requisitions
M06B0001
Changes to communication structure for release of requisitions
M06B0003
Number range and document number
M06B0004
Number range and document number
M06B0005
Changes to communication structure for overall release of purchase requisitions
M06E0004
Changes to communication structure for release of purchasing document
M06E0005
Role determination for release of purchasing documents
ME590001
Grouping of requisitions for PO split in transaction ME59
MEETA001
Determination of schedule line type (backlog, immediate requirement, forecast)
MEFLD004
Determination of earliest delivery date for checking at time of goods receipt (PO only)
MELAB001
Generation of forecast delivery schedule: realization via creation profile
MEQUERY1
Enhancement for document overview ME21N / ME51N
MEVME001
Calculation of default GR quantity and over/underdelivery tolerances
MM06E001
User exits for inbound EDI messages and outbound purchasing documents
MM06E003
Number range and document number
MM06E004
Control of import data screens in purchase orders
MM06E005
Customer fields in purchasing documents
MEREQ001
Customer's own data in purchase requisitions
MM06E007
Change document for requisitions when converting into POs
MM06E008
Monitoring of contract target value in case of release orders
MM06E009
Relevant texts for "Texts exist" indicator
MM06E010
Field selection for vendor address
MM06E011
Activation of requisition block
MM06L001
Exits for determination of ratings in vendor evaluation
MMAL0001
ALE source list distribution: outbound processing
MMAL0002
ALE source list distribution: inbound processing
MMAL0003
ALE purchasing info record distribution: outbound processing
MMAL0004
ALE purchasing info record distribution: inbound processing
MMDA0001
Default values for delivery addresses
MMFAB001
User exit for generation of releases
MRFLB001
Control items during release creation
LWBON001
Enhancement of LIS update through extension of the communication structure MCKONA (business volumes and rebate income)
LWBON003
Change settlement data for end-of-period rebate settlement before creation of settlement documents
LWSUS001
Customer-specific source determination in Retail
LMEXF001
Conditions in purchasing documents without invoice receipt
LMEKO002
Enhance communication structure KOMP for price determination
<b>Reward points for useful Answers</b>
Regards
Anji -
Supress some fiels in sales order? user exit?
can somebody help me regarding this. i want to supress some fields in a standard sales order. i dont want to delete . i just want to supress some fields in a standard sales order. is there a user exit for it? if yes do tell me which user exit is it and how to use it?
hi,
To make optional / mandatory you can use in IMG - S&D-> Basic > Functions-> Log of incomplete Procedures => select the fields > from the tables and the system will check for them (OVA2/VUA2)
To make a filed entry enabled or grey (non-entry allowed):
User exits in the program MV45AFZZ-USEREXIT_FIELD_MODIFICATION
This user exit can be used to modify the attributes of the screen fields.
To do this, the screen fields are allocated to so-called modification groups 1 - 4 and can be edited together during a modification in ABAP.
If a field has no field name, it cannot be allocated to a group. The usage of the field groups (modification group 1-4) is as follows:
Modification group 1: Automatic modification with transaction MFAW
Modification group 2: It contains 'LOO' for step loop fields
Modification group 3: For modifications which depend on check tables or on other fixed information
Modification group 4: is not used
The FORM routine is called up for every field of a screen. If you require changes to be made, you must make them in this user exit. This FORM routine is called up by the module FELDAUSWAHL.
Actually suppressing fielding sales orders userwise is quite easy. We are doing it in our company. For this we use userexit FORM USEREXIT_FIELD_MODIFICATION in MV45AFZZ.
Below is the sample code
IF SCREEN-NAME = 'VBKD-ABSSC'.
AUTHORITY-CHECK OBJECT 'ZMV45AFZZ' ID 'SCRFNAME' FIELD SCREEN-NAME.
IF sy-subrc = 0.
SCREEN-INPUT = 1.
else.
SCREEN-INPUT = 0.
ENDIF.
endif.
You place the authority check object in authorization profile in the role of the users, who should have access to the field (in this case it is VBKD-ABSSC), and there assign the corresponding fields that are to be accessed via this userexit.
pls reward points if the answer is helpful
REgards,
Murali -
Availability check run requirement in the Sales order Save user Exit.
Hi Gurus,
As per the requirment we are using a user exit SAVE SALE ORDER PREPARE for BOM purpose to reconfirm the confirmation qty.
Now we need to add one more logic in the same user exit, which will run the availabilty check run for each of the line items of the BOM and consider latest confirmation qty from it. So my concern is it possible that we can call the availabilty check run event with in the user exit SAVE SALE ORDER PREPARE or this not advisable?
Please let me know..
Regards,
BabsHI Venkat,
Thanks for your reply.Yes you are right availability check runs automatically at sub item level.
But please note the customer requirment iteself is is little different from std BOM configuration.
Currently the availabilty check is activated both at header and sub item level. They are maintaining the stock for header and sub item level.Also the these sub items are some time being sold as invidual materials. hence there exist a mismatch in the stock value between header and sub items.
when a sales order is created both header and sub items will have confirmation with different value between each and the same mismatched values are being passed in to delivery. But the deliveries can not be processed for PGI because of the mismatched confirmation qty between header and item level.
I guess now you the rrequirment.
So we are using the SAVE SALE ORDER exit which will re check the confirmed qty between header and item and takes lowest confirmed qty and change the confirmed quantities from all the line items to lowest one, so that confirmation qty among all the line items are same. This is the first logic we are planning.
Further there is one more additional process BOP need to be run for this header and sub items, which will change the confirmed qty based on the latest stock for individual line item. even in this case also the user exit SAVE Sale order is being called but we need to run the availability check run additionally because of which our requirment will be taken care.
Regards,
Babs -
Maintenance Order - Reservation User Exit
Dear,
If there is any change in the order for adding new material / delete material / any change in quantity.
We need to send an email to the concerned person if there is any change in component tab. What will be the user exit for the same to be achieved?
SenthilHi,
You can use user exit - CNEX0026.
Regards,
Mihir Popat -
Schedule Line Category change-USER EXIT
REQUIREMENT:
When saving a SALES ORDER, Change the schedule line category on the SALES ORDER from CP(Standard Availability Check) to CS(Third Party Processing u2013Trigger Purchase Requisition)
Initially when we create the SALES ORDER, we have Schedule line category CP to generate schedule lines based on stock availability
SO Date- 09/14/2010
Schedule line 0001--- 09/14/2010 --- Confirmed Qty (0) --- Sched Line Categ(CP)
Schedule line 0002--- 09/16/2010 --- Confirmed Qty (1) --- Sched Line Categ(CP)
Config Change: We have changed the Schedule line category- CS to turn off Purchase Order Scheduling (Indicator turned off--P.req.del.scheduling)so that when we change the schedule line category, no PO scheduling happens again
Our requirement is that when saving the sales order, we want to change both the schedule lines item category-0001/0002 from CP to CS
SO Date- 09/14/2010
Schedule line 0001--- 09/14/2010 --- Confirmed Qty (0) --- Sched Line Categ(CS)
Schedule line 0002--- 09/16/2010 --- Confirmed Qty (1) --- Sched Line Categ(CS)
After saving the order, a Purchase Requisition is generated for the Schedule Line 0002..
MY QUESTION:
Is this possible using the BAPI_SALESORDER_CHANGE without changing the dates on the schedule lines or deleting any schedule line
Thanks
KumarHello Kumar,
Please check the User exit and let us know whether your requirment is met or not.
#USEREXIT_MOVE_FIELD_TO_VBEP
Use this user exit to assign values to new fields at the level of the sales document schedule lines.
The user exit is called up at the end of the FORM routine VBEP_FUELLEN.
Regards,
Sarthak -
Sales Order Create - User Exit
Does anyone have experience using available user exits to split sales order line items before saving SO?
After user enters a line item, we'd like to split the line item into 2 or more line items and schedule lines (VBEP). We are achieving this using exit "USEREXIT_CHECK_VBKD". However, we get the error "Item 000020 for schedule line 000011 is in the work area" (Message no. V1 357).
Error occurs when VBAP-POSNR is not equal to VBEP-POSNR.
Any suggestions?
Thanks,
David GuerreroThank you all for your responses.
The trick was to get table SVBEP populated with the proper values for field TABIX. We
achived this using MV45AFZZ user exit as follows:
FORM USEREXIT_MOVE_FIELD_TO_VBKD.
TABLES KNB1.
DATA PMTHD(10) TYPE C.
DATA L_SVBEP_LINES(06) TYPE N.
CLEAR: KNB1,
PMTHD.
re-indexing after splitting lines...
DESCRIBE TABLE SVBEP LINES L_SVBEP_LINES.
IF L_SVBEP_LINES GT 0.
loop at SVBEP WHERE TABIX NE 0.
READ TABLE XVBEP INDEX SY-TABIX.
IF SY-SUBRC EQ 0.
MOVE SY-TABIX TO SVBEP-TABIX.
MODIFY SVBEP.
ENDIF.
ENDLOOP.
ENDIF.
This corrects SVBPEP tabix entries after lines have been changed/added
programatically, via program MV45AFZB, FORM USEREXIT_CHECK_VBKD.
Thanks again!
-David -
Hi there,
In the system we have disable the "complete" - TECO of an order if there is Still "Open sub.Orders still exists"...
BUT...
In some case we want this to be possible. Is there any badi, user exit or what-so-ever exists... to allow bypassing the customizing and all "Complete action" of the order...
Is this any clear ?
Thanks in advance.
StephanHello Stephan,
In some case we want this to be possible. Is there any badi,
user exit or what-so-ever exists... to allow bypassing the
customizing and all "Complete action" of the order...
Is this any clear ?
Please try out the following User Exit with the help of technical consultant to check as per your requirement :-
1:- IWO10026 User check on setting status 'Do not perform'
2:- IWOC0001 Create PM/SM notification: Determine reference object
3:- IWOC0002 PM/SM notification: Check whether status change is allowed
If you question is answered then please close this thread.
Regards,
Sarthak
PS : Please ensure to post your query related to SAP PM module in "Enterprise Asset Management (EAM)". -
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 -
Sales Order - partner user exit
Hi,
I have looked at the SDN posts and can not find one with an answer to my question. I need to check the bill-to-party when the order changes and disallow certain bil-to-parties (the customer must exist on knvp for the sales order sold-to-party). I can put code in to the one user exit (mv45afzz - USEREXIT_MOVE_FIELD_TO_VBAK) , however the relevant field is greyed out. Which is the correct user exit?
Thanks,
Leanne.Sorry, please explain with an example, I am missing your explaination.
Thanks,
Leanne
Maybe you are looking for
-
How to uninstall BPC 7.5 on Windows Server 2008 R2
Hello Everyone I have to uninstall BPC 7.5 and then perform a re installation as the Domain Name was wrongly specified in previous installation. We already have a BW server installed and on top of it the BPC 7.5 Installation was carried out. O.S: Win
-
Does it matter which slot you put the 8800 GT 2007 card? It seems to fit in any of the 4 available slots.
-
Header text to get copied from order to Invoice
Hi, we are creating an Invoice(through transaction VF01) giving the delivery document number and document type (Invoice F2). we are maintaining Header text in Order through which the above mentioned delivery document number is created and this header
-
Dear All, I have a Power Mac with the ATI Radeon HD 5770 card, I need to connect three monitors to that card. The main one and I need the second and third monitor having the same video or image, I already bought a DVI splliter and did not work, and a
-
Cannot connect to abap server, please check your abap server connection
Installed new NW BPC 7.5 system on windows 2008 server but get the error as follows when logon to BPC server: "Cannot connect to abap server, please check your abap server connection". "define system user group tab" is inactive in server manager also