User Exit to log incompleteness
There is an user-exit to insert a flield into log incompleteness (for sales document) putting conditions?
Thanks.
Hi,
I think that the best way to meet these requirements are the next:
For example: you need to put the field VBKD-IHREZ in the incompleteness log if the table ZXXX is set.
Well, you need to configure in your incompleteness log with this field obligatory, ok?
Then, you can use the user exit MV45AFZB (USEREXIT_MOVE_FIELD_TO_VBKD) to fill the field VBKD-IHREZ with a caracter.
Or, you can use the user exit MV45AFZB (USEREXIT_CHECK_VBKD) to check the VBKD, but, this won't go to incompleteness log.
Regards.
Similar Messages
-
USER EXIT for Incompleness of Deliveries
Hi,
I would like to know the USER EXIT & INCLUDE for Incompletion of Deliveries.
Present system:
In the Incompletion procedure one field is added of delivery document & without filling this field Delivery Document can not be saved.
Our requirement:
For some plants without filling this field the system should allow to save the delivery document.For the same we need apply USER EXIT.
Plaese suggests.
Thanks & Regards,
Hemant PatilDear Hemant Patil,
Try with the fallowing include with the help of ABAPer
Incompletion Control of Deliveries
You can use the include FV50UZXX to program individual incompletion checks for a delivery document. Note 158807 contains more information on this.
I hope this will help you,
Regards,
Murali. -
User exit to update the incompletion log in sales order for pricing error
Hi experts,
I have to check the some mandotory pricing conditions in sales order, if that conditions are not exist in sales order then i need to show the information message as well as i need to update it in incompletion log of sales order. (incopletion log we can see on menu bar 'EDIT' or ctrl+F8 on main screen of VA01). So that user can save the sales order but it will be in incomplete status.
I have completed it upto showing the information message using user exit 'MV45AFZZ', but after this i don't know how to update it in incompletion log of sales order for pricing. I tried to update in tables VBUK-UVPRS, but i am not getting the desired result.
Please anyone can tell me how to update it. In which user exit i can update the incompletion log.
Thanks and Regards,
Vicky.Hi Vinod,
I am sending you my code please check it,
if TKOMK-SPART = 10.
if XKOMV is not INITIAL.
clear v_JEXP.
READ TABLE XKOMV with key kschl = 'JEXP'.
if sy-subrc = 0.
check XKOMV-kwert = 0.
message i003(ZT) with 'Value should not be 0 for conditioin type JEXP'.
v_JEXP = 'X'.
else.
message i003(ZT) with 'Maintain the mandatory Conditioin type JEXP'.
v_JEXP = 'X'.
endif.
if v_JEXP = 'X'.
XVBUV-MANDT = sy-mandt.
XVBUV-POSNR = '000010'.
XVBUV-TBNAM = 'VBAP'.
XVBUV-FDNAM = 'PRSOK'.
XVBUV-FEHGR = 20.
XVBUV-STATG = '06'.
XVBUV-FCODE = 'PKON'.
XVBUV-SORTF = 9999.
XVBUV-LFDNR = 0000.
XVBUV-UPDKZ = 'I'.
append XVBUV.
endif.
endif.
endif.
Please suggest something to solve this.
Thanks and Regards,
Vicky. -
Write to application log in user exit
Hi all,
I want to write a collection messages to the application log in user exit EBIA0003, user exit for transaction EA00, but I only can write one if I just use
message eYYY(x) with lv_msgv1
lv_msgv2
lv_msgv3
lv_msgv4.
It will be placed in the log after the exit.
I've already tried with the BAL functions, but it doesn't seem to work or maybe I'm doing something wrong. Is there a way to write a collection of messages in to the application log in this user exit?
greetz PieterHi Pieter,
you can do using BAL functions if the lop is already opened. Try to find out what parameters the transaction uses for LOG access (handle!). Do the calls in the exit accordingly.
We append messages to the current log using FUNCTION 'BAL_LOG_MSG_ADD'. If the log handle is not available, you might access it using dynamic assign like
ASSIGN ('(<program>)<field>') TO <field> .
Regards,
Clemens -
User exit or BADI for standard change Log ?
Is there user exit or BADI for standard change log update ?
I want to update a customer fields into standard change log table.
Could someone tell me about it?Could anbody tell me ?
-
How to implement user-exit based changes for incompletion status?
Hi,
I have to implement changes to incompletion procedure using user exit. I have found the following user exit for controlling header status.
User exit in Program RV45PFZA
In this user exit you can store a specification for the reserve fields in VBUK (header status). Reserve field UVK01 could, for example, be used for an additional order status (as for rejections status, etc.).
The following workareas are available for this user exit:
VBUK (header status)
FXVBUP (item status)
FXVBUV (Incompletion)
Please help, how to implement changes to incompletion procedure using user exit?
Regards,
ChamandeepDear,
Go to CMOD and enter the enhacement number there. U can find the enhancement number through table MODSAP. here u can enter the enhancement object which is in ur case is Program name. Then you can use the enchacement number in CMOD and create a project and export it.
RG,
VM -
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 -
Sales order forceful completion using the USER-EXIT
Hi all,
We have a requirement as follows: As soon as the sales order is created a smartform should get triggered. the configurations are done in nace. It is working fine. But in our case we dont enter the PO number in the sales order this will show an incompletion log throwing a warning message. So we need to do modification in the user exit MV45AFZZ for the forceful completion of the sales order
This is to be done for the order type Zxxx. As i have not worked in the userexits before can anyone help me with the code.
Thanks and Regards
venu.mulaparthiHi,
Try this..
Create a new incompletion procedure in SPRO without that PO number field..
In the user exit USEREXIT_SAVE_DOCUMENT_PREPARE in the include MV45AFZZ..
IF VBAK-AUART = 'Zxxx'.
* Switch the incompletion procedure.
TVAK-FEHGR = 'ZZ'. " New incompletion procedure..
* Then call the function module with the new incompletion procedure..
* I believe the function module name RV_CHECK_DOCUMENT.
* Or check RV*check*document in SE37..
* This will make sure the sales order to recognize
* the new incompletion procedure..
ENDIF.
Thanks
Naren -
Using a variable not in the Export,Import, table Parameters in USER EXIT
Hi all,
During the Invoice Creation, I need to add an entry in the VBFS table, so that it will be displayed in the system log. In the FM 'RV_INVOICE_CREATE', the structure corresponding to it is XVBFS. There is a user-exit CALL CUSTOMER-FUNCTION '002', in this FM 'RV_INVOICE_CREATE'. But the import, export or Table Parameters does not have XVBFS.
How can I use XVBFS inside the User exit?..
Please help.
Regards,
AshaHi,
I dont know whether this will help u...
write this in user exit...to access variables/tables of main program..
FIELD-SYMBOLS: <komv>.
ASSIGN ('(SAPLMEPO)TKOMV[]') TO <komv>.
where.. SAPLMEPO is the main program...and TKOMV[] is a internal table in SAPLMEPO.
regards
Sukriti.... -
Pricing User Exits - Requirement
Hi Experts,
I am new to IPC and Pricing. Can anybody please suggest me how to code in java for the pricing user exits. Also I would like to know. After I have uploaded the Jar file into the system. How can I put a breakpoint in my java code and debug. Or does the code get converted into ABAP after uploading?
Can anyone please throw some light on this issue.
Warm Regards,
Abdullahhi abdullah,
You cannot debug the java program as an ABAP program.
you can use the following code in the java program for debugging.
private static UserexitLogger userexitlogger =new UserexitLogger(//put the name of the class file of ur userexit);
userexitlogger.writeLogDebug(//here you can write the varibles those values which you want to know at the runtime.);
And to see this values using sm53 transaction. select log administration->log display->slect ur user exit under the corresponding package. Then you can see the values of the varibales at runtime.
For developing user exit u have to use Eclipse IDE.
With Regards
Shanto Aloor -
IPC Pricing with AP 7.00 Database Access/Call function module user-exit
Hi experts,
we are running SAP ECO on SAP ECC 6.0 with IPC Pricing AP 7.00 running in the VMC.
I'm facing a new requirement. In an user-exit for requirements the access to the ABAP database is needed.
(I know that the SAP recommendation is, don't have access to database. But we need this functionality)
In ABAP it looks like:
select single * from a590
into LH_674_a590
where kappl = 'V'
and kschl = 'ZSPR'
and kunnr = komk-kunnr
and matnr = komp-matnr
and datbi >= komk-prsdt
and datab =< komk-prsdt.
Is there a possibility to implement the same SELECT in the Java-User-Exit?
Is there maybe the alternative to call a function module instead?
The database exits on the same application server on which the VMC runs.
If there is a possiblity can anyone provide me with sample coding or give an advice where to find samle coding?
I would prefer to call a functions module.
Thanks in adcance
Karl-WilhelmHi Shanto & Sumit,
Thanks for the inputs.
as per my understanding of the log
java.lang.IncompatibleClassChangeError: com.sap.leasing.pricing.tools.LeasingPricingTools: method getPricingConditionByConditionTypeName(Lcom/sap/spe/pricing/transactiondata/userexit/IPricingItemUserExit;Ljava/lang/String;)Lcom/sap/spe/pricing/transa ctiondata/IPricingCondition; used to be stati
error is thrown by the SAP standard user exit and because of which execution is failing in customer user exits and surprisingly we have not made any changes in both of them.
this was working earlier before upload.could this be because of the jar packaging.
how i can download the standard user exit com.sap.leasing.pricing.tools.LeasingPricingTools from crm
for further investigation.
Thanks,
Siddharth -
User exit for sales order - schedule lines
Hi all,
I have requirement in SO, that user has not to change the scheduled lines date and quantity in va01, va02.
I could find FV45EFZ1 as the include program for this and the value of CH_SUBRC should set to > 0.
But i put break point here and the control wont come to the line. Anyone can help me to find the correct user exit ?
Thanks and regards
Jijohii
Exit Name Description
SDTRM001 Reschedule schedule lines without a new ATP check
V45A0001 Determine alternative materials for product selection
V45A0002 Predefine sold-to party in sales document
V45A0003 Collector for customer function modulpool MV45A
V45A0004 Copy packing proposal
V45E0001 Update the purchase order from the sales order
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45L0001 SD component supplier processing (customer enhancements)
V45P0001 SD customer function for cross-company code sales
V45S0001 Update sales document from configuration
V45S0003 MRP-relevance for incomplete configuration
V45S0004 Effectivity type in sales order
V45W0001 SD Service Management: Forward Contract Data to Item
V46H0001 SD Customer functions for resource-related billing
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
SDAPO001 Activating Sourcing Subitem Quantity Propagation
put a break point int he user exit and check.
hope , this will solve ur problem.
Regards,
sabarinathan.L -
How can i display warning messages in user exit EXIT_SAPLMGMU_001 (MM02)
Hi all,
while modifying the material master using MM02, i have added new conditions to display messages in user exit EXIT_SPALMGMU_001.
But using this user exit i am not able to display warning messages.
Can you please help me with this?
Sample code which i have included in exit :
SELECT SINGLE mstav FROM mara
INTO w_mstav
WHERE matnr = wmara-matnr.
IF wmara-mstav NE w_mstav.
IF wmara-mstdv NE sy-datum.
wmara-mstdv = sy-datum.
MESSAGE w177(z03_mm) WITH text-s04 text-s21.
ENDIF.
ENDIF.
Thank you all in advance.As written in the SAP documentation of the Enhancement , you can only raise error message using a
MESSAGE .. RAISING APPLICATION_ERROR.
You could manage the "warning" yourself, sending an error first time and keeping a trace of the check in some STATICS variable, and not raising the error again if data input remains unchanged between two call of the include.
<i>----
EXIT_SAPLMGMU_001
Where Is the Customer Exit - EXIT_SAPLMGMU_001 called?
The customer exit is in function module MATERIAL_UPDATE_ALL. The
function module checks the data for errors (logical relationships,
foreign keys, fixed domain values, and so on) when the material master
is updated.
Use
o New fields
You can make checks possible for new fields of your own. These
checks must be identical to the checks that you carry out for your
new fields in online maintenance.
o Existing fields
For existing fields, you can extend and intensify the checks.
You can also change data for descriptions and general material data
(MARA). For example, the descriptions can be generated from attributes
of the material.
Limitations
You cannot bypass existing checks.
Interface to Application
The respective data of the current logical transaction is contained in
the structures, for example, in structure WMARA for MARA. Nonrelevant
structures are transferred with their initial values.
General material data that can be changed (CMARA) has the structure
MARU. This MARA view contains fewer internal fields than MARA itself. If
WMARA is filled, CMARA is also filled when accessed.
The customer exit contains the exception APPLICATION_ERROR for your
self-defined error situations.
Using the language element MESSAGE .. RAISING APPLICATION_ERROR, you can
terminate the current (logical) transaction and display your message in
the log. </i>
Regards -
Hello all.
I have been search for a user exit in planned orders that allow me to define some code in it to triger some changes. this user exit should be at time of planned order is saved.
I have already search in this forum and I found out how to find the user exits by transaction. I have tried for transaction MD12 but did not found any suitable user exit.
Does any one know any user exit that could make my life easiser
thanks
Manuel AntonioYou can try the following BAdIs:
You can use the Business Add-In (BAdI) MD_PLDORD_CHANGE to change, before posting, data from planned orders, which have been created, changed, or deleted as a result of planning a material or manual processing.
The Business Add-In allows you to fill and change fields from planned orders in the PLAF table. It also supports filling of customer-specific fields in the customer include CI_PLAFDB.
You can execute the Business Add-In in the planning run in the following areas:
Material requirements planning
Master production planning
Long-term planning
You can also carry out the Business Add-In in all applications, which execute manual planned order changes. Examples of this kind of application are:
The dialog transactions for creating and changing planned orders (MD11, MD12, MS11, MS12)
The Business Application Programming Interfaces (BAPI) for creating and changing planned orders
all applications that explicitly or implicitly create or change planned orders, for example the planning table of repetitive manufacturing, repetitive manufacturing confirmation, capacity planning, assembly order processing and so on.
Requirements
When planning a material or manually processing a planned order, you must change individual fields in the planned order or provide entries for customer-specific enhancements of the planned order structure.
Standard settings
The Business Add-In is not active in the standard.
The Business Add-In cannot be used multiple times.
The Business Add-In is not filter dependent.
Activities
To activate the Business Add-In, you must create an active implementation. To do this, choose the following path in the SAP Menu: Tools -> ABAP Workbench -> Utilities -> Business Add-Ins -> Implementation
For more information about this procedure, see the SAP Library under
Basis Components -> ABAP Workbench -> Changing the SAP Standard -> Business Add-Ins -> Implementing Business Add-Ins.
Further notes
Documentation on the BAdI method CHANGE_BEFORE_SAVE_MRP
Documentation on the BAdI method CHANGE_BEFORE_SAVE_MAN
You can also call the documentation on the BAdI method via the menu, by carrying out the following steps:
1. Choose the tab page Interface.
2. Double-click on the relevant method.
3. Click on the right mouse button and choose Component documentation.
Update Planned Orders (MD_PLDORD_POST)
Use
Application components: PP-MRP, PP-MP-MPS, PP-MP-LTP, PP-REM
Function group: M61P, M61U
You can use the Business Add-In (BAdI) MD_PLDORD_POST to further process data from planned orders, which have been created, changed or deleted through the planning of a material or as a result of manual processing.
The Business Add-In allows you to publish the created and changed data from planned orders and can be used to update customer-specific tables or to connect to information systems and workflows.
You cannot use the methods of the Business Add-In to change the planned orders themselves. The planned orders are always posted in the communicated form.
You can execute the Business Add-In in the planning run of the following areas:
Material requirements planning (PP-MRP)
Master production planning (PP-MP-MPS)
Long-term planning (PP-MP-LTP)
You can also execute the Business Add-In in all applications, which carry out manual planned order changes, for example:
The dialog transactions for creating and changing planned orders (MD11, MD12, MS11, MS12)
The Business Application Programming Interfaces (BAPI) for creating and changing planned orders ( PlannedOrder Create, PlannedOrder Change)
All applications that explicitly or implicitly create and change planned orders, for example the planning table of repetitive manufacturing, repetitive manufacturing confirmation, capacity planning, assembly order processing, and so on.
Standard settings
The Business Add-In is not active in the standard.
The Business Add-In can be used multiple times.
The Business Add-In is not filter dependent.
Activities
To activate the Business Add-In, you must create an active implementation. To do this, choose the following path in the SAP Menu: Tools -> ABAP Workbench -> Utilities -> Business Add-Ins -> Implementation
For more information about this procedure, see the SAP Library under
Basis Components -> ABAP Workbench -> Changing the SAP Standard -> Business Add-Ins -> Implementing Business Add-Ins.
Note that the Business Add-In can be used multiple times and therefore all active implementations are called and run through.
Example
The following is a possible use for the methods of this Business Add-In:
When planning a material or manually processing planned orders, you want to log the changes made to the planned orders or the triggered subsequent functions.
The subsequent processing of certain planned orders or individual data from the planned orders occurs in an external planning system. In this case, you can log the corresponding changes to these planned orders in a user-defined table during planning. Using a separate report, you can select the data from the log table and process it further.
Further notes
Methods
Update Planned Orders: Requirements Planning - POST_AFTER_SAVE_MRP
Update Planned Orders: Manual Processing - POST_AFTER_SAVE_MAN
You can also call the documentation on the BAdI method via the menu, by carrying out the following steps:
1. Choose the tab page Interface.
2. Double-click on the relevant method.
3. Click on the right mouse button and choose Component documentation.
Regards
Ram -
User exit for SO creation while changing the net price for item
Hi folks,
Is there any user exit or BADI to change the net price in the item label of Sales order??
My req. is that--- i need to change the net price of sales item if the cond type is 'ZUR1 ?
how can i achive this?
Regards
pabiHi
The user exits and badis for va01 tcode:
Enhancement/ Business Add-in Description
Enhancement
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 articles for product selection
SDTRM001
Reschedule schedule lines without a new ATP check
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
RP-relevance for incomplete configuration
V45S0001
Update sales document from configuration
V45P0001
SD customer function for cross-company code sales
Business Add-in
BADI_SD_SCH_GETWAGFZ
Scheduling Agreement: Read WAGFZ from S073
BADI_SD_V46H0001
SD Customer functions for resource-related billing
If it is helpful rewards points
Regards
Pratap.M
Maybe you are looking for
-
Network ACL for two specific ports
As far as I can tell there is no way to set Network ACLs such that only two specific ports are available. I'm using Oracle 11gR2. I'd like a HTTP port and an SMTP port open for the local loopback address. These are ports 7777 and 25. It's my understa
-
IMPORT & EXPORT from/to compressed files directly...
for newbies a tip to import(export) directly to(from) compressed files using pipes . Its for Unix based systems only, as I am not aware of any pipe type functionality in Windows. The biggest advantage is that you can save lots of space as uncompressi
-
I have the SAP Netweaver SP12 Trial Version successfully loaded. This is my upgrade from the version that came with the 2002 'ABAP Objects' book. This version is slightly different. A couple of questions. First, when I am entering - manually typin
-
Dear All I receive critical alert from my C350 and i am not sure what this mean. The Critical message is: An application fault occurred: ('Lib/re.py _compile|233', "<class>", 'nothing to repeat', '[util/Aquarium.py screenLoop|407] [util/InternalLibra
-
Can anyone send BPS oriented DOCs
Hi Folks, I am now working in a BPS based project. I came from BW background. Can anyone pls send me Docs related to BPS to my email [email protected] . Thanks in advance. Points will be rewarded. Thanks, Arvind.