EHS FM user exit Question
Dear experts
In EHS, we copy FMs and change the configuration to point to the copied FM for modifications. In this case, what happens during an upgrade? How should such a situation be handled.
Thanks
Raj
Please check the following enhancement components. One of them should suit your requirement.
LMR1M001
LMR1M002
LMR1M004
MM08R002
MRMH0001
MRMH0003
MRMN0001
RMVKON00
WIS60001
Cheers,
Balaji
Similar Messages
-
A user exit question about ck11n .
I want to get a user exit about i can change some parameters before i run ck11n ,such as in routing date tab ,i want to change the group counter parameter before i run ck11n in user exit ,i found a badi named is DYNPRO_EXTENSION_CK ,but it can't actualize my need,who can give me some cue about it ?thank you very much !
Hi
It seems no user exits exist for this transaction
found the following BADI
check them
COSTINGRUN_CK Edit Costing Run
COST_APPORTION_CK Maint Apportionment Structure Joint Production: Dist Rules
CO_PROD_COSTING_CK Cost Management for Joint Products (Costing, Target Costs)
DATA_EXTENSION_CK For Data Enrichment in Product Costing
DYNPRO_EXTENSION_CK BAdI for Interface Enhancement in Costing
ORDER_COSTING_CK Enables Header Data Changes in Preliminary Order Costing
QUANTITY_STRUCT_CK Enables Quantity/Structure Changes in Costing
SUR_STOCK_TRANSF_CK Overhead on Materials with Stock Transfer Between Plants
CK_KALAMATCON2_CI BAdI for CI Fields for Table KALAMATCON2
VALUATION_CK BAdI for Valuation in Product Costing
Reward points if useful
Regards
Anji -
Answer for user exits question please
hi,
this is vishnu vardhan
1. how many ways are there to see the function modules used of enhancements in user exits?
2.how to print a script on a news paper for 20 lines ,space and 20 lines?
3.is there any table for storing the source code of reports and MM flow?
4.wt is QRFC?
5. how to work on BAPI and BADI ?1. how many ways are there to see the function modules used of enhancements in user exits?
Ans: 1. You can search the standard program with "CUSTOMER-FUNCTION" tag
2. If you know the exit name you can go to CMOD
3.is there any table for storing the source code of reports and MM flow?
Ans: Explore the SAP Help to know the process flow in MM. For example you can check this link:
http://help.sap.com/saphelp_47x200/helpdata/en/f0/4228f5a97311d2897a0000e8216438/frameset.htm
TSTC table contains the list of program names and transaction codes. Donno the table which stores source code. Doubt it exists!
4.wt is QRFC?
Master the 5 types of RFCs in ABAP. Check this excellent link:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f078394a-4469-2910-c4bf-853c75674694
5. how to work on BAPI and BADI ?
Check these links:
http://www.allsaplinks.com/bapi.html
http://www.allsaplinks.com/badi.html
And many more in this forum to search.
Hope the above stuff helps you...
Thanks,
Santosh -
Hi Guys,
I have two custom fields in my CATS time sheet called Zclock1 and Zclock2. For a record that already exists I need to pre-populate these fields when I open the time sheet for an employee using CAT2, Which user-exit should I use?
I tried CAT0002 but this one will trigger only at the time of creating a new record or modifying an existing record.
Thanks,
Royhi Avisek Bhardwaj,
i want to change the data when i use CAT7 to transfer data to CO, before CO document created i must delete some dummy WBS element in a certain user-exit, so i need to find this user-exit to process the data,
i've checked the enhancement CATS0002, but it isn't what i want,
i've found one user exit PCA00001--EXIT_SAPLPC02_001(EC-PCA: Changes to Document when Transferring CO Actual Data)
i do delete dummy wbs element in this user exit but when transferring is finished, i find that the dummy wbs element still appears in the co document. it looks like that user exit doesn't work.
i don't know why,
regards,
buffer -
Hi all,
i m looking for a code to make an User exit variable to select the actual month and the previous month , for example in this moment ( september and October )Hi,
Use Tcode: CMOD, funtion module :EXIT_SAPLRRS0_001 double click on the program ZXRSRU01, start writing ur code. The code which i gave u is for Calculate Month to date, similarly u have change the code as per ur requirement.
Regarding User exits:
http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56f5e09411d2acb90000e829fbfe/frameset.htm
to calculate "month to date" user input is "Calday" Key Date
sample code:
WHEN 'ZPUTMNTH'.
IF I_STEP = 2. "after the popup
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
WHERE VNAM = 'ZPDATE'.
CLEAR L_S_RANGE.
L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(6). "low value, e.g.YYYYMM (200606) part of key date (20060625)
L_S_RANGE-LOW+6(2) = '01'. low value e..g. YYYYMM01 (20060601)
L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW. "high value = input
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'BT'.
APPEND L_S_RANGE TO E_T_RANGE.
EXIT.
ENDLOOP.
ENDIF. -
Hello, i have seen in my last project that when you go in to cmod. you have the program and when you click on the program it has different datasources listed like 2LIS_02_PUR and then there is one program written under SE38 which is named after 2LIS_02_PUR. some one told me the purpose is so many people can work at the same time in cmod. can someone tell me if i am working on a brand new implementation how can I implement that?
Example:
Inside the include program 'ZXRSAU01', there is a line like this "CONCATENATE 'ZBW_TRN_'1_datasource INTO l_prog_name."
and then
if you go in SE38 :
we have programs with names like
"ZBWI_TR_2LIS_02_HDR" or
"ZBWI_TR_2LIS_02_ACC" etc. for each data source.
Would just putting CONCATENATE 'ZBW_TRN_'1_datasource INTO l_prog_name." be enough or I need to write some program?
Please help. thanks.Hi Vik,
In your project
they have not used the old technique of writing a Case statement and then a When condition for each datasource as it makes the code quite messy and if several developers/teams are modifying the code then creates challenges for transport management.
So after using CONCATENATE 'ZBW_TRN_'1_datasource INTO l_prog_name.
The code in the Include we can simply create a new program starting with ZBWIN_XXXX for each data-source which will be independent from any other enhancement so wonu2019t create any problems.
Thats the reason why you are able to see the Programs in Se38.
in the Programs they had written the logic od what fields they had enhanced and select statement to populate the values to the enhanced fileds.
You can check the document link posted earlier by frank... it shows the earlier way how we used to write the code in the CMOD -include program.
If its a brand new implimentation there is not much to do from your end, based on the business requirement we check the Business content data source if needed we go for enhancing the Datasource by appending the fields and writing the logic in the CMOD.
Check the below link which explains you with the new technique that used in your proj
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00c1f726-1dc2-2c10-f891-ddfbffdb1a46?quicklink=index&overridelayout=true
Regards
KP -
Dumb question about E messages generated in user exits called from dialogs
After a user enters goods receipt info in MIGO and hits POST, there is a user exit (EXIT_SAPLIE01_007) which receives a copy of the goods receipt table (xmseg) from MIGO and lets you do whatever you want before the MIGO update task is called. In other words, you're still in the MIGO dialog process.
I have successfully used this exit before to pop an editable ALV that lets the user enter custom data per line item, and then store this data in memory so it can be accessed in MB_DOCUMENT_BADI or in the equivalent XMBC exit (enhancement MB_CF001).
But here's my question.
Suppose I generate an "E" message in EXIT_SAPLIE01_007.
Will this stop the MIGO "POST" so that the update task isn't called?
And will the text of the "E" message be displayed at the bottom of the main MIGO screen (the one you hit "POST" from) ????
Edited by: David Halitsky on Feb 21, 2008 9:03 PM
Edited by: David Halitsky on Feb 21, 2008 9:04 PMHi David,
it seems that you will get it:
E in Status bar
+behaviour: +
PAI processing is terminated, and control returns to the current screen. All of the screen fields for which there is a FIELD or CHAIN statement are ready for input. The user must enter a new value. The system then restarts PAI processing for the screen using the new values. Error messages are not possible in POH or POV processing. Instead, a runtime error occurs.
according to help [http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbaabc35c111d1829f0000e829fbfe/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbaabc35c111d1829f0000e829fbfe/frameset.htm]
best regards,
Wojciech -
Questions about authorization variable customer user exit
Dear all,
To reduce the authorization maintenance effort, I found from the web that we can use authorization variable with customer user exit RSR00001.
When I use the transaction CMOD to display the maintain the user exit RSR00001, the user exit does not found. I would like to know how can I use thie user-exit?
My SAP version is R/3 4.7
The information of authorization variable from web is as follow:
http://help.sap.com/saphelp_nw04/helpdata/en/6d/58f438114ee836e10000000a114084/frameset.htm
Would anyone have some ideas to solve my questions?
Many thanks
Sunny
Edited by: LI Sunny on Aug 3, 2010 12:08 PMDear Bala Duvvuri,
Firstly, many thanks of your reply.
Actually, what I want to do is to call some user-exit when performing authorization checking. I want to add some logic to the authorization checking and the user exit can be called automatically when performing authorization checking.
I mainly use this checking in the FI module.
Are there any ways I can perform this checking?
One more findings, I have another machine containing SAP XI, I can search the user exit RSR00001. but it doesn't exit in SAP R/3 4.7. Is it version issue or my SAP R/3 4.7 doesn't contain the BI module?
Many Thanks again.
Sunny -
0FI_AR_4 Extractor Enhancement without user exit code Question
Hi
I have a requirement to enhance 0FI_AR_4 Extractor with below Fields from BSID:
Field DataElement
PRCTR PRCTR
VPOS2 NUM06
VBUND RASSC
As per SAP Note: 410799, I am assuming I don't need to write any ABAP code to populate these fields.
In the extract structure DTFIAR_3 of extractor 0FI_AR_4 Double clicked on the Include CI_BSID.
It prompted "Structure CI_BSID not available. Create the structure?"
After entering Access key it created new Structure "CI_BSID".
I have entered the Component and Component Type values as below:
Component Component Type
YYPRCTR PRCTR
YYVPOS2 NUM06
YYVBUND RASSC
1. Please let me know Component and Component Type values and the steps I followed are correct or not?
2. And I hope I don't need to write the code in the User exit to populate these fields?
Thanks
SreeHi,
For any FI datasource enhancement there are two scenarios :-
1. All the fields of the customer enhancement in the customer include are available in the read structure BSID
Then no additional action is required. The fields of the customer enhancement are filled automatically by the datasource from the assigned read structure via "move-corresponding".
2. Fields of the customer enhancement in the customer include are not contained in the read structure BSID
In this case you have to program a function module to fill the field of the customer enhancement. To do this, there is a Business Transaction Event available (open FI interface for process 00005021). Create any function module you like and use function module SAMPLE_PROCESS_00005021 as a template for the interface (input parameter, changing parameter).
Hope this helps.
Reg,
Rahul -
Question - SD user exit for Billing with multiple sales orders
We have a situation where we are summarizing Accounting Billing document updates via OBCY, transaction type VBRK .
We will also have multiple sales orders per billing document.
One of our accounts is a COGS- clearing account which will post for both delivery and billing documents.
Our goal will be to clear the COGS-clearing account after the delivery and billing has occurred.
One alternative being evaluated is to update the assignment field ( bseg -zuonr) for the sales order.
To do this, one of the SD user exits , perhaps SDVFX008, would be necessary to update the sales order from vbrp-vbel2 to bseg-zuonr.
I am concerned about
1) will the update work
2) what will be the effect on summarization
If we try to implement the user exit , would we be successful to just update the assignment field for just the COGS accruall account. _Therefore the next effect is that AR,Rev, etc, would summarize , but the COGS clearing would break out due to the update to the assignment field..
Does anyone have any experience similar to this situation.
Thank you,
JeffHi
You can use SDVFX008 or FI Substitution exit RGGBS000 (Form U100)
You can very well update the required GL (COGS Clearing) with the Sales order No... However, how exactly it would behave upon summarization, I am not sure about that.. you need to develop that and see
In the COGS account during PGI, Sales Order No is populated always in the field "Sales Order"... In your case, the COGS clearing account should be having sales order no populated...
So, if you are successful to populate Sales Order No during billing in the "Sale Order" Field for the COGS clearing account, that should also suffice...
or See if you can have relevant sort key in FS00 for the COGS clearing account so that Sales order no is always populated..
Regards
Ajay M -
User exit ZXPADU02 - evaluating SY-UCOMM
Hello everyone,
I am trying to display an error message whenever someone tries to create a new work schedule rule (P0007-SCHKZ) in infotype 7. However, the error message should just come up when the user is trying to save his data.
I am using user exit ZXPADU02 for this purpose. My problem is that SY-UCOMM does not seem to hold reliable data in this user exit, and SSCRFIELDS does not seem to be supported at all.
My code looks like this (only the relevant code snippet in ZXPADU02):
CASE INNNN-INFTY.
WHEN '0007'.
CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
EXPORTING PRELP = INNNN
IMPORTING PNNNN = P0007.
CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
EXPORTING PRELP = PSAVE
IMPORTING PNNNN = P0007_ALT.
IF P0007_ALT-SCHKZ <> P0007-SCHKZ
AND IPSYST-MASSN IS INITIAL " do not warn within an info group of a personnel action
AND SY-UCOMM = 'UPD'. " only warn when saving the data -> problem here <-
MESSAGE 'Do not change IT7 directly or else.' TYPE 'I' DISPLAY LIKE 'E'.
SHOW_DATA_AGAIN = 'X'.
ENDIF.
At first glance, the above works nicely. But this is what happens when I test more thoroughly:
I create a new period in IT 7, enter a P0007-SCHKZ other than the one that was previously valid, press F11. Some warnings appear (for different reasons), which I dismiss using the Enter key. Afterwards, the above code fires, the error message is being displayed, and I am thrown back into the data screen. So far, so good.
Now I simply alter the value in the field "Weekly hours" (P0007-WOSTD) and press Enter (!). Again a series of warnings appear, including one that a dataset is going to be deleted (seeing that an IT 7-period with just the same date range already exists). I confirm that with Enter, and the data is being saved. The above code does not fire because I have only pressed Enter - but the data is being saved anyway!
Looks like a pretty erroneous behavior on the side of the SAP system. The question is whether I have a chance to do something about it in the code.Mihir Nagar wrote:
Dear Petersen,
Your IF condition seems ok. I doubt on the message statement. Can you replace your message statement with type E.
MESSAGE 'Do not change IT7 directly or else.' TYPE 'E'.
ENDIF.
Hope this works.
Regards,
Mihir.
I did not expect this to work, because normally you use type 'E'-messages only in certain PAI-environments, but it does the job, thank you!
make use of field IOPER of the structure PSYST to check on the infotype actions INS, MOD, COP, DEL...
In this particular case I did not care, so I did not check that. IT 7 should only be maintained through personnel actions in our case.
Next you can check with sy-ucomm field the different between "enter" and "save". With "save" sy-ucomm will be 'UPD'.
That is what I did, but as I described, there was a situation when SY-UCOMM is SPACE, but the system saved anyway due to a prior save attempt. -
Call an applications 'user exit' from a PL/SQL procedure
My question is a technical PL/SQL question related to Oracle Applications. I need to call a standard applications 'user exit' from a stored PL/SQL procedure. Can anyone tell me if this is possible and how to do it?
(i.e. I am attempting to call the AR user exit SALESTAX)
Thanks,
Michelle DodgeHi,
Read this thread, perhaps is there your response :
Host...
Nicolas. -
Follow-up on Ravi's User Exits example
Hi,
Ravi's user exit example:
You have a content data source with fields say customer,sale org, profit center and amount. You wish to add sales manager to this extractor. You <b><u>locate</u></b> the table and <u><b>field name and append that field to the extractor</b></u> and write a code to pick that field when the extractor extracts data. This piece of code is called exit. What it does is the system reads the customer code.
In the above example explaining customer exists, regarding the field, can you clarify locate the field. I read that if this field were available in the LIS communication structure that would be an enhancement to the structure where we only move the field from the left to the right (extract structure). In this case an append structure will be generated in the corresponding Include structure.
In the case of the user exit, my understanding is that the field in question, in this example, Sales Manager, is not available in the LIS Communication structure so I was expecting that you would state create the field but you said locate the field. Did you mean that, and if so, locate from where? Because if it is being located from the LIS communication structure then I would not expect a user exit, at least from my understanding.
Thanks.Hi Amanda,
Yes, a field can be created when none of the SAP defined fields are solving the issue on hand. In this case too User exits are used. These fields are then appended to the tables.
So all fields are in some table or the other. The field that you require has to be located in these tables and appended to the extractor. This again requires User Exits.
For LO Cockpit extractors, if the field is already available in the extracstructure in LBWE then it can be moved from left to right and no extra coding is required.
Hope this helps.
Kumar -
How to access the global data in user exit.
Hi All,
How to access the global data in user exit.
the question is that when we were writing a code in the FM. i need to read data from the standard program like newly created documen and this document number need to be accessed in my program.
this document number is not imported to the FM i needed to access for frther proceed.
Thanks in advance.Hi,
See the below PDF file by Jeff Goldstein. There you can find all the details about accessing data outside of the exit.
[SAP User Exits and the People Who Love Them|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208811b0-00b2-2910-c5ac-dd2c7c50c8e8]
This will help you to solve your problem.
Regards
Karthik D
Edited by: Karthik D on Dec 2, 2008 4:18 PM -
Packing data at delivery user exit or BADI time
I create a delivery and enter associated packing data (handling units HU), then save the delivery. At user exit time, the delivery header is available via XLIKP and the delivery items are available via XLIPS tables, but the packing data is not!
Now, program SAPMV50A has a table called CVEKP, whose structure is VEKPVB, the handling unit header, but this table is always empty.
I thought I had a solution: instead of putting my custom logic in user exit MV50AFZ1, I tested putting my logic in the "Delivery Publish" BADI. Supposedly, this one is executed after the commit work, and so I could then read table VEKP directly and get the handling units. No such luck! Unfortunately, at the time the BADI is executed, the VEKP table may or may not be updated. Even adding the WAIT option wasn't 100% effective.
But these attempted workarounds still leaves the big question unanswered: "Where are the handling units data stored during execution of transaction VL01 or VL02"?
Anybody know?which BADI u have seen ?
what abt ur requirement ?
Regards
Prabhu
Maybe you are looking for
-
Problem to open a report on view preview on R2
I have I problem, on R1, the next URL It's working very good, when I call on another application. http://localhost/crystalreportviewers11/viewrpt.aspx?id=46391&apsauthtype=secEnterprise&cmd=EXPORT&EXPORT_FMT=crxf_pdf:0&apsuser=administrator&apspasswo
-
Datasource related to FI and Cash Flow
Hi ,can anyone please give me information on FI and Cash Flow management and it's datasource as well. Regards Arjun
-
How to download background color of ALV with button "Export to Excel"
Dear Experts: I can download the data of ALV in webdynpro for ABAP, but the color is missing. Does anybody know how to download background color of the ALV cells also by "Export to Excel" button? Could anybody help on this? Thanks in advance! Best Re
-
How do I post a slide show (from iPhoto 11) with music to Facebook from my mac
How do I post a slide show to facebook, from my imac. I am using it was made on iphoto 11 but I cannot figure out how to post or publish to post link. I also have slide show saved in itunes Thank you for your help
-
IMovie or iDVD Clipping Edges from 16:9 Movie Clips
I have a Canon Elura 80 that I have set to record in 16:9, have set iMovie to widescreen, and have set iDVD to widescreen. When I view the movies on the camera or in iMovie on my laptop, I see the entire content of the movie. However, when I move the