Userexit / Correction ??
Hi all,
I am working out on Function exits.
I created a project project and i maintained everything in SMOD/CMOD.
From DOcumentation i read a staement like
<b>When you create/change a project, you must create a correction. This correction contains only the attributes and the SAP enhancements associated with a project</b>.
What does correction mean?
In which scenarios we shud create correcion? and where to create this?
Thanks in adavance.
Raja
Sanjay,
Thanks..
I find that in planetsap.com.I am pasting that INFO.
Corrections/transports
When you create/change a project, you must create a correction. This correction contains only the attributes and the SAP enhancements associated with a project, as well as a program that is automatically started with the transport and activates the project in the target system. Corrections for individual components are created only when you edit the relevant component. This allows several users to edit different components from the same project at the same time without the use of a network. Since activating a project affects all components, you should transport all components associated with a project at the same time, in other words with the same transport request. To ensure that the project is activated automatically in the target system, the correction that contains the program concerned must also be in the same transport request. If this is not the case, or the project has not been activated in the target system for other reaons, you can also activate it by manually starting the program (RSMODACT).
Thanks for ur clarication.
DID u find some thing from this...is he meant the above in the occassion of modfication?
Reply..
Sanjay.
Similar Messages
-
How to Carry out New Pricing in Sales Order userexit
Hello,
In userexit save_document_prepare of program MV45AFZZ, I'm adding an entry in XKOMV for a header pricing condition ZD01. After saving, if I go back into the order and go directly into the line item conditions, the ZD01 does not exists at the item level. If I navigate the the header conditions and then go back to the items, ZD01 appears as it should. I believe what is happening is that the header condition is not being distributed to the line items unless New Pricing is carried out. If I manually enter the ZD01 condiiton instead of relying on the userexit code, everything works fine. The header condition is properly distributed to the line items. Therefore, I believe the configuration is correct. My question is, "How can I programatically trigger New Pricing from a sales order userexit". Is this possible in SAVE_DOCUMENT_PREPARE or do I need to do it somewhere else.".
Thank you,this problem has been resolved. The problem was that I was appending the header condition to XKOMV instead of inserting the header condition as the first line in the table. SAP will carry out the new pricing if the header condition is on the first line.
-
Create Userexit for MD01for particular material group
Dear all,
My requirement is : To execute MRP run for particular Material Group only.
I create new userexit key by using OMIX like 500.
after that in EXIT_SAPMM61X_001 - double click in zxm61u01 and create object and write code, but it is not fired when execute tcode MD01.
This procedure is correct or not.
how to create user exit , MD01 execute particular material groups only.
Thanks in advance
Regards,
Chandu.Problem solved my self.
Regards,
V.Chandu
Edited by: GoldMoon on Oct 15, 2009 9:56 AM
Edited by: GoldMoon on Oct 15, 2009 9:56 AM
Edited by: GoldMoon on Oct 15, 2009 9:57 AM -
Userexit for vendor evaluation
hi!
i am looking for userexit to change the way the system cpmposes the subcriteria price level.
thanks
yifathi
first download the program from sdn.sap for finding all the user exit ..enter the transaction code u will get all the enhancements ther....create project n use the relevant one for ur purpose!!
reaward points for correct answers!!
Regards,
Gunjan -
Userexit to change PO Line items
Hi All,
We are looking for a userexit for changing the PO line items (EKPO-SPINF)......searched the entire forum but not working.....
we were trying to implement MM06E005........however none of the function modules in it are triggered......
Any help.....Hi Faheem,
Thanks for the reply.
We are on 4.6c system...hence we do not have this BADI available...
What i am trying to understand is whether we can use exit MM06E005 to modify standard fields.....though we do not have any customer fields...
What i feel is no since....the BADi will not be triggered from those custom screens.........
Please correct, if i am wrong....
But its hard to believe that we cannot modify standard fields of PO when creating purchase order......in 4.6c -
Bookmark with Variable screen and UserExit
Hi
We're using the bookmarks in portal of N2004s.
If someone starts a bookmark it's possible to bring the user first to the variable screen. But I recognized that the userexit is not activated for some variables after changing them.
concret:
I called a report with time-selection week = 10.2007 - the report has keyfigures which are restricted by a userexit variable which is previous year (calculated by time selection - 1year) - so the report shows me the keyfigures with previous year 10.2006 and 10.2007 - I save this as a bookmark.
calling the bookmark with this link: &bookmark=46LQ49TMUQ8BRH3O91VEH0XMK&variable_screen=X
the bookmark shows me first the variable screen. The user can change then the time-selection. But when i change now the time-selection in the variable screen from 10.2007 to 20.2007 I get in the report stll 10.2006 and 20.2007.
So it seems to me the bookmark doesn't run through the user exit to fill the variable "previous year".
How can this be activated?
Thank you for your reply.
RogerHi
I debugged now the user exit and it seems as following:
- calling a bookmark with selection_screen=x but without the parameter clear_variables=x does run through the user exits step 1 to 3 before showing the variable screen. After changing a variable the user exit is only enabled for step 3 and not anymore for step 2 - that's why the previous year is not updated.
- calling the bookmark with selection_screen=x and clear_variables=x runs user exit with step 1 before selection screen and then after entering variables step 2 and 3 - and the previous year is filled correctly. But this is not useable, because the user want's to have selection variables prefilled.
Has someone an idea how to bring the bookmark without clear_variables=x to the point to run the step 2 in user exit after changing variables in selection screen?
Thx
Roger -
Regarding Email address - Userexit for VF02 transaction
Once you enter a VF02 transaction, If you goto header partners and double click on the partner number it would take you to the customer master data screen in which we have an option for Email address this is in Display mode my requirement demands to make it Visible so that the enduser would enter the email address which finally reflects in the printoutput.
I would like to know the correct exit for resolving this issue
Any suggestions are appreciated........................
Naveen.Hi Naveen,
Check all Exits for VF02
Transaction Code - VF02 Change Billing Document
Exit Name Description
SDVFX007 User exit: Billing plan during transfer to Accounting
SDVFX008 User exit: Processing of transfer structures SD-FI
SDVFX009 Billing doc. processing KIDONO (payment reference number)
SDVFX010 User exit item table for the customer lines
SDVFX011 Userexit for the komkcv- and kompcv-structures
V05I0001 User exits for billing index
V05N0001 User Exits for Printing Billing Docs. using POR Procedure
V60A0001 Customer functions in the billing document
V60P0001 Data provision for additional fields for display in lists
V61A0001 Customer enhancement: Pricing
No of Exits: 10
Rewards if useful...............
Minal -
Hi Friends,
I have one extension idoc type requirement, now i want to insert the code in userexit. how can i find the user exit related to the idoc.Hi,
can u explen what is your Scenario, here i am given some userexit for idoc.
u can find it from SMOD
MWMIDO01
MWMIDO02
MWMIDO03
MWMIDO04
MWMIDO07
MWMIDO08
MWMIDO09
MWMIDO10
MWMIDO11
MWMIDO12
MWMIDO13
SIDOC001
SIDOC002
EX......
MWMIDO01 (User Exit)
With this user exit, the contents and structure of IDOC WMTOID01
'Transfer order' can be influenced customer-specifically in the outbox.
Call transaction and other important requirements
The user exit is performed in the function module that sets up IDOC
WMTOID01. This is done after the IDOC setup but before it is transferre
to the ALE interface. The standard function module for setting up IDOC
WMTOID01 is called L_IDOC_CREATE_WMTOID01. The IDOC setup is part of th
transfer order generation. This means that the source code can run both
asynchronously in the update program and online. For this reason, all
error messages must be issued as abend messages to guarantee a correct
termination with rollback. Furthermore, you must not use any key words
such as COMMIT WORK, ROLLBACK WORK, LEAVE, or the like.
Parameters and options
The user exit in the program is function module EXIT_SAPLLIDO_001. In
order to be able to use the user exit, you must create Include ZXLIDU01 and activate the enhancement with transaction CMOD. As parameters, you
can use the transfer order and IDOC data:
o TO header (import parameter I_LTAK)
o TO items (table parameter T_LTAP)
o Control record of the IDOC that has been set up (import parameter
X_IDOC_CONTROL)
o Data records of the IDOC that has been set up (table parameter
T_IDOC_DATA)
This user exit can basically be used to:
o change or redetermine the data in IDOC WMTOID01 that were determined
during the standard procedure or provide partners with additional
information using empty fields of this IDOC.
o change or enhance the data for controlling the IDOC processing in
the control record of the IDOC.
o If you enhanced the basic IDOC WMTOID01 with your own segments, you
have to fill these segments including the necessary data.
The user exit returns the modified IDOC data to the calling program by
means of the following parameters:
o Control record of the IDOC that has been set up (export parameter
X_IDOC_CONTROL)
o Data records of the IDOC that has been set up (table parameter
T_IDOC_DATA)
The modified IDOC is passed on by the calling program to the ALE
interface for sending.
Although changes to table T_LTAP are without any meaning, they should
still not be made.
Examples
Below, you will find some conceivable changes including the necessary
source code.
o You want to send additional data on TO item level. These data are
transferred in the standard segment of IDOC WMTOID01.
With field 'Goods recipient', information is transferred whether the
external system should additionally print accompanying documents for
the sent transfer order. The indicator for printout from the TO
header and the printer from the TO items are specified in this
field.
In addition, a separate description is written into the field
'Unloading point'.
INCLUDE ZXLIDU01
tables: e1ltori,
loop at t_idoc_data.
*........Zusatzinfos aus dem Transportauftrag..........................
if t_idoc_data-segnam = 'E1LTORI'.
move t_idoc_data-sdata to e1ltori.
loop at t_ltap
where tanum eq i_ltak-tanum
and tapos eq e1ltori-tapos.
exit.
endloop.
if sy-subrc eq 0.
move i_ltak-drukz to e1ltori-wempf.
move t_ltap-ldest to e1ltori-wempf+2.
move e1ltori to t_idoc_data-sdata.
modify t_idoc_data.
endif.
*........Zusatzinfos die individuell beschafft werden..................
move 'USER-EXIT' to e1ltori-ablad.
move e1ltori to t_idoc_data-sdata.
modify t_idoc_data.
endif.
endloop.
o The IDOCs that have been set up are to be transferred to the
external system via two different logical destinations, depending on
the transport type. This requires two different partner profiles.
The partner profile depends on the message type, message variant and
message function. Message function 'EIN' is used for stock
placements whereas 'RES' is used for all other movements. You have
to maintain the partner profile for these two message functions
'EIN' and 'RES' as well.
INCLUDE ZXLIDU01
if i_ltak-trart eq 'E'.
move 'EIN' to x_idoc_control-mesfct.
else.
move 'RES' to x_idoc_control-mesfct.
endif.
For transfer orders on deliveries, the external system requires
additional delivery data such as name of the goods recipient, route,
shipping point, and the like. In this case, the large amount of
additional data can only be transferred via an additional IDOC
segment. That is, you have to define a seprate IDOC type that
consists of the basic IDOC type WMTOID01 and a separate enhancement
type. In the enhancement type, you define the new segment, for
example Z1LTORZ, that refers to the standard segment E1LTORH. Filling the data of the new segment can be done as follows.
INCLUDE ZXLIDU01
tables: e1ltori,
z1ltorz,
edidd,
likp.
data: flg_neues_segment.
data: begin of xidoc_data occurs 0.
include structure edidd.
data: end of xidoc_data.
*....>>> Neues Segment anlegen Z1LTORZ <<<.............................
*........Bestehendes IDOC sichern......................................
loop at t_idoc_data.
move t_idoc_data to xidoc_data.
append xidoc_data.
endloop.
*........Neuen IDOC-Typ und Erweiterungs-Typ im Kontrolsatz fortschr...
move:
'ZZWMTOID' to x_idoc_control-doctyp,
'ZWMTOID1' to x_idoc_control-cimtyp.
*........Aus dem bestehenden IDOC ein neues IDOC erstellen.............
dabei wird das neue Segment aufgebaut und eingebettet
refresh t_idoc_data.
loop at xidoc_data.
*........Merken:neues Segment soll nach dem Segment E1LTORH kommen.....
if xidoc_data-segnam = 'E1LTORH'.
flg_neues_segment = 'X'.
endif.
*........Standard-Segmente übernehmen..................................
move xidoc_data to t_idoc_data.
append t_idoc_data.
*........Neues Segment übernehmen......................................
if flg_neues_segment eq 'X'.
*........Lesen Lieferung und Daten in neues Segment übergeben..........
if not i_ltak-vbeln is initial.
select single * from likp
where vbeln eq i_ltak-vbeln.
if sy-subrc eq 0.
clear t_idoc_data.
move-corresponding likp to z1ltorz.
*........Neues Segment sichern.........................................
move 'Z1LTORZ' to t_idoc_data-segnam.
move z1ltorz to t_idoc_data-sdata.
append t_idoc_data.
endif.
endif.
endif.
move space to flg_neues_segment.
endloop.
if it is help full to u please give max rewad point. -
Dear experts,
I'm not sure if this is the correct place to pose this questions, if I'm at the incorrect place, please let me know.
I'm wondering if there is a userexit or maybe even a BADI available for the following requirement:
After creating a return sales order in VA01, I want to have SAP give me some kind of pop-up to propose to print labels for each line item in the return order.
Is there a BDI which could be used for this, or a user exit where I can enter this enhancement?
Your input is much appreciated,
MHi Hoge,
After creating a return sales order in VA01, I want to have SAP give me some kind of pop-up to propose to print labels for each line item in the return order.
I think there is no badi available to print like line item wise print.
I will suggest take all the line item will be in the return sales order. Develop a smartform and attach for output type. Generally this is a good practice.Anyway while creating return sales order we will get only return line items. I am not sure how you are getting data in sales order whether copied from invoice or manually entering.
Regards,
Madhu. -
IPC condition value userexit - wrong condition rate
Hi Pricing-gurus,
I have a java condition value userexit to calculate the value for the very first price condition.
The condition value is calculated correctly, however, the price per unit is wrong which is due to the condition rate that was not changed, also.
If I change condition rate also in this formula, the entire pricing is wrong because the IPC carries out the pricing run multiple times (SAP: for internal reasons) resulting in a rate and value that is too high, as the changes are adding up.
How can I change the condition rate just once? Or how how can I make sure that the formula is carried out only once during a pricing update?
Regards,
MichaelHi Pricing-gurus,
I have a java condition value userexit to calculate the value for the very first price condition.
The condition value is calculated correctly, however, the price per unit is wrong which is due to the condition rate that was not changed, also.
If I change condition rate also in this formula, the entire pricing is wrong because the IPC carries out the pricing run multiple times (SAP: for internal reasons) resulting in a rate and value that is too high, as the changes are adding up.
How can I change the condition rate just once? Or how how can I make sure that the formula is carried out only once during a pricing update?
Regards,
Michael -
Purchase Requisition Release Strategy not triggeringusing Userexit M06B0001
Hi,
My client wants to trigger PR Approval based on the Department,based on User it will go to respective Line Manger.
For that I am using Userexit M06B0001, But when I am using this Characterictis it is not triggering Release Strategy.
If I am using other Characteristics like Plant it is triggering.
Can Anyone Help me on this.
Best Regards,
RajuHi Raju,
Did you checked for this Characteristic if it's attributes are correctly maintained. Also Reference to Table field is correctly mapped. I hope you must have done this correctly, but check it once again to confirm.
Prashant Rathore. -
Error when building the Java pricing userexit manual code
I went throught the manual for the pricing userexit manual... it tells you to ignore the errors when you do an ant build but I want to remove all the errors since they dont let the rest the code compile.... where are the jars for these errors:
[javadoc] C:\DEV\PRC_UE_CUSTOMER\lib_src\src\com\sap\spc\document\DocumentConstants.java:16: package com.sap.vmc.logging does not exist
[javadoc] import com.sap.vmc.logging.Category;
[javadoc] ^
[javadoc] C:\DEV\PRC_UE_CUSTOMER\lib_src\src\com\sap\spc\document\DocumentConstants.java:26: cannot resolve symbol
[javadoc] symbol : class Category
[javadoc] location: class com.sap.spc.document.DocumentConstants
[javadoc] public static final Category CATEGORY = Category.getCategory(Category.APPLICATIONS, "/AP/SPC/Document");
[javadoc] ^See the [SAP note 809820 - Userexit concept for pricing|https://service.sap.com/sap/support/notes/809820]
Use ZIP file the attached to the above note - PRC_UE_CUSTOMER_V105.zip
ZIP file contains an Eclipse .project file that has the required build path. If you read the documents carefully, it does refer this project file.
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry sourcepath="lib_src/src" kind="lib" path="lib_api"/>
<classpathentry kind="lib" path="lib_vmc_api/base_services_stripped_api.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Again read the documents thoroughly. They are neither fictions nor non-fictions, but technical documents written with care. So, we must also read them with care. If we don't follow them, then it is time to engage someone who does. )
BTW, coming back to the Java basics - One must have a class and source files to debug. You won't get a class file unless it is compiled. The Java file won't compile correctly if it has syntax / reference errors. Unfortunately or fortunately, all these apply to the IPC java userexit development as well.
Easwar Ram -
Userexit or BADI to change service price when create PO reference from PR
Hi,
I need userexit or Badi to change the gross price ( ESLL-TBTWR ) when create PO reference from PR. Currently , when I do this it will recalculate the gross price based on the service master and ignoring whatever the price put in PR. Could anyone tell me userexit or Badi that would allow me to change the price when i create PO from PR via ME21N.
Thanks,
GilbertHi Gilbert,
You can try using Function Exit EXIT_SAPLMLSP_030 of Enhancment SRVESLL.
This Function Exit has ESLL data as changing parameter.
But this Function Exit is called from a number of transaction. So do put in correct checks (like sy-tcode or sy-ucomm) before substituting any values. If proper checks are not put in then values may be substituted when this function exit is called from other transactions (like tcode "ML81N").
Hope this will help.
Regards,
Abhisek. -
IPC4.0: UserExit ABAP Structures konp, komp
Hi
I need some help with the representation of some ABAP structures in Java.
We are looking for the representation of the KOMP-TAXM1 field, which should be an attribute of the Java Interface "IPricingItemUserExit". However, the call
prItem.getItemAttributeValue("TAXM1")
seems not to work.
The ABAP KONP structure might be represented by IPricingConditionRecord:
IPricingConditionRecord konp = (IPricingConditionRecord)prCondition.getConditionRecord();
Is that correct?
Thanks for any help.
KilianHi Yatendra,
Question 1 ) Do i need to define/declare "constants" and "feild-symbols" in Java userexit, as mention in above ABAP code ?
Java has no such thing as 'field-symbols', thanks God for that, so the answer would be a no. And there is no such thing as 'constants' in Java, thou you can reach the same using a final class with a public static final variable of any given type you want.
Question2 ) How to write SELECT statement code in Java UserExit ?
You simply don't, and if you have such in ECC just raise ' ECC user exit is incorrect and should be fixed '... very very popular topic, pretty sure you will have a hard time to prove, but I'm certain you will prove that ECC userExit code in ABAP is a joke (because that code is a joke and I'm fairly positive it was created by an intern or something..)
Question 3) What would be equivalent code/logic in Java userexit for READ TABLE statement ?
as Sarath mentioned above, as soon you implement the BADI in ABAP code and Map the attributes accordingly, you will end up with no collection or Array inside the userExit itself, as stuff has been calculated before in the BADI and only final values have been passed forward to your custom Java code.
Hope it helps, you should read Sarath hyperlink as he compiled a master piece on IPC extensions.
Cheers,
D. -
UserExit Variable leads to warning: "You have no authority...
Hello Experts,
I have a question concerning a UserExit Variable.
I created a UserExit Variable on the InfoObject 0CO_AREA. In addition, I created a DSO in which I have two fields. The Username and the 0CO_AREA. The DSO contains the authorizations.
I also checked in RSSM and no authorization objects are activated.
When a User executes the Query the Variable takes his or her Username and checks in the DSO for which 0CO_AREAs the User is authorized.
The variable itself works fine but when I execute the Query in the BEx or the Web I don't receive any error or warning because I have a "ALMOST ALL" authorization. Nevertheless we created a role for the users and in the BEx everything is fine as well but for those user a warning appears when they execute the query on the web saying:
"You have no authority for a characteristic value of characteristic 0CO_AREA".
Nevertheless the results are correct. All I want is to get rid of the warning.
Thanks in advance.
StefanHello Snatic,
thank you for your help but we have not been using this authorization concept yet.
Therefore we traced the query when executed on the web. Unfortunately the trace doesn't show any strange messages.
Also quite interesting: When I copy the User (exact the same authorizations) and execute the Query on the Web it only leads to the warning but the original user receives an Error.
The Web Error message says: java.lang.UnsupportedOperationException
When I look further down the page it says.
WARNING: You have no authority ...
Very very strange
BR
Stefan
Maybe you are looking for
-
Pictures and Music on SD is not showing in Music or Pictures applications
I just transferred my 32GB microSD from my 9900 to my Z30, non of my existing music or pictures are showing up in respective apps. They are available through file browser app in BB10, but do not show up in player apps. Also when I put the SD card in,
-
Changes are not reflected in Script output
Hi All, i am facing a problem in SAPscript. I have made a Zscript by copying standard script F110_FR_CHEQUE. I have made the changes in the script as per requirement in development client and transported it to testing client to test (As i dont have a
-
Hello; I have an SQL query: Select year, sum(group1) as A from table1 where name in ('test1', 'test2') group by year; When I run it through SQL editor in MS Access it returns the years and sum and a total of 5 rows. When I pass this command through J
-
G3 Mac OS 10.4.11 iTunes 8.2.1 cannot access store
My brother-in-law writes: I am running a G3 Mac and a 10.4.11 operating system. My iTunes v8.2.1 is the most recent for G3s and I cannot, I repeat, I cannot run a version any higher. I have been running the 8.2.1 version successfully for many months
-
How do I replace my superdrive in my late 2007 macbook pro 15 inch?
My macbook pro doesn't read or burn CD's, doesn't burn DVD's. It's a 5 year old computer and I'm sure it's time to replace the superdrive in it. Is there a step by step procedure in doing this that I can do myself? I went into an apple store and was