Help in user-exit
Hi
i use transaction vl10g - to create delivery
i want when the delivery create to update table vbuk
i didn't find any user-exit on create or save
Can you help me
Thanks
have a nice day
Hi Yossi,
Check out the following if works:
V50Q0001
V50PSTAT
Ashven
Similar Messages
-
Need help for user exit mereq001
Hi,
I need help for user exit mereq001. I think I messed up with include table CI_EBANDB and CI_EBANMEM. And When I tried to check the syntax . It gives me error like : <b>Class IF_PURCHASE_REQUISITION. Inconsistency in the dictionary for the structure mereq_item_s_cust_data.</b> Anyone had experience for this exit? I just need to extract costcenter information of the each item from the requisition and block the requisiton if the costcenter are differents from each other before the requisition is saved. Any one has idea about it?
Thanks.biao,
Have you checked this struture consistency from SE11. Also check the activation log.
If there are any errors and you are not able to rectify the same use RSDDCHECK program, give your table name and run the report.
This will list down the error structures releated this table and also prompts for you to activate it.
Regds
Manohar -
Urgent Help in User-Exit for MM!
Hi,
1. I am writing code in the Exit "EXIT_SAPLMGMU_001".
2. I have to pop-up error/warning messages for incorrect data entered in various fields/screens/views of MM01/MM02 transaction.
3. The Exit gets triggered when i press "SAVE" after modification.
4. When I create the Classification View, i enter the class type as "001" for material class.
5. Then i need to enter a value "Z_Product" in the class column(on the screen in classification view). This class is the "Product Class" (description).
My problem is to find this value that i enter on screen before "Save" i.e. when i am creating material for the first time in MM01, i dont want the error message to pop-up if i am entering any value in the class column and also entering values in the internal characteristics for that class.
Basically i want to read the values (before "SAVe") entered in the class column as well as want to know the values for the internal characteristics of the class.
For Class, the std. field is "RMCLF-Class" , but i have no buffer field available in my exit that contains the value for the Class. I have also tried using "Get parameter ID", but it doesnt work.
For Internal Characteristic values (of the class) that are entered in the tab(that appears on pressing "Enter" after filling the Class value) below the Class tab, i am fetching data from std. table AUSP to check for corresponding entries for that particular material number....but this table will get updated only after "SAVE" and so i would be able to read the values only in MM02.
Please help me in finding out a way for reading the class values & Characteristic values in my user-exit.
Thanks & Regards,
TejasHi Ronak.
You can try with <b>'EXIT_SAPLCLFM_002' (CLFM0002)</b>. This is the exit for the classification view. You can get this for the transaction CL22N / CL24N.
This is also called in MM01 for classification values. This classification details are cross application components. So This is also called from other transaction.
Regards
Rusidar. -
Help on User Exits with example needed
Hello Experts,
Need help/material on:
1)Understanding Advanced Customization (VOFM, User Exits)
2)Calculating Freight Charges
3)Integrating Credit and Payment Cards
4)Interfacing with Other Modules (MRP, AR)
5)Using Batch Delivery Processing
Regards
InnovaHi,
There are a number of techniques SAP have used over the years to implement user-exits.
The most recent exits will be found in CMOD. Using CMOD (or SMOD), you can list all the enhancements available, that use this technique. As usual in the SAP world, the later the version of SAP you are using, the more exits are available.
Other exits do not use the enhancement technique. For example, in Sales Order Processing (SAPMV45A), SAP have provided empty forms, such as USEREXIT_SAVE_DOCUMENT_PREPARE that can be used to provide customer functionality. With one client, this was used to set the blocking indicator on a sales order, if a manual change had been made to pricing. The requiredscript is written in between form and end form.
Another technique is the use of validation and substitution rules in the financial modules.
The best way to find the user exits available is through the IMG. The relevant nodes will take you to where the customisation can be performed. Usually, the associated IMG note details the use of each exit, though there are gaps.
Award points if helpful.
Message edited by
Mohan -
ABAP help in user exit variables
Hi,
In the selection screen of a query, I have an optional variable CalenderMonth (SOMONTH). I have to calculate another user exit variable (CALMONTH) in ZXRSRU01 by using this SOMONTH. This is how. If the value SOMONTH is entered, then I need to assign SOMONTH to CALMONTH. If SOMONTH is not entered, then I need to set CLAMONTH to current calender month from system date.
For that, I need to check if SOMONTH is entered or not in the program ZXRSRU01. This is what I am trying to do, and is not working.
WHEN 'CALMONTH'.
If I_step = 2.
Loop at I_T_VAR_RANGE into LOC_VAR_RANGE
Where VNAM = 'SO_MONTH'.
IF LOC_VAR_RANGE-LOW IS INITIAL.
ELSE
ENDIF.
<b>PROBLEM:</b> The statement "IF LOC_VAR_RANGE-LOW IS INITIAL." is not working. When I try to debug the code, program aborts at that line. By this line of code, I mean to check if SOMONTH is initial or not.
Any suggestions or ideas very much appreciated.
Thanks alot
JohnHi
When I have tried something similar to this (in BW v3.1), and the (optional) variable I am reading from is not populated by the user; in STEP 2 table I_T_VAR_RANGE does not contain a record for it. Hence, the logic I would use is:
CASE I_VAM.
WHEN 'CALMONTH'.
IF I_STEP = 2.
READ TABLE i_t_var_range INTO loc_var_range
WITH KEY vnam = 'SOMONTH'.
IF SY-SUBRC = 0.
loc_range-low = loc_var_range-low.
ELSE.
loc_range-low = sy-datum+4(2).
ENDIF.
loc_range-sign = 'I'.
loc_range-opt = 'EQ'.
APPEND loc_range TO e_t_range.
ENDIF.
Hope this helps. -
Help needed: user exit for CO02
I have a problem with user exit. I need to display an error message when the quantity of a specific component of a material is changed in CO02 and user hits save button.
I inserted my code in include program ZXCO1U01. Based on the material type if the user changes the quantity I will display a message. But the problem is the documentation shows that we cant insert a error message in this exit. Its giving a dump if I do that.
I am calling a new screen to display a message but if I try to execute CO02 again for the same order its displaying error messages as that component will remain locked.
Please help me regarding this.
ThanksHi Bobby,
We had similar issue and we have added a code to send an e-mail message to the user is any error occurs.
You can't insert an error meesage in this user exit.
Lanka -
Help in user exit and enhancement
hi expects,
can any body help me by providing me the enhancement and user-exist material.please help meHi Santosh
User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a functionmodule. The code for the function module is writeen by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.
The naming standard of function modules for functionmodule exits is:
EXIT_<3 digit suffix>
The call to a functionmodule exit is implemented as:
CALL CUSTOMER.-FUNCTION <3 digit suffix>
Example:
The program for transaction VA01 Create salesorder is SAPMV45A
If you search for CALL CUSTOMER-FUNCTION i program
SAPMV45A you will find ( Among other user exits):
User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a functionmodule. The code for the function module is writeen by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.
The naming standard of function modules for functionmodule exits is:
EXIT_<3 digit suffix>
The call to a functionmodule exit is implemented as:
CALL CUSTOMER.-FUNCTION <3 digit suffix>
Example:
The program for transaction VA01 Create salesorder is SAPMV45A
If you search for CALL CUSTOMER-FUNCTION i program
SAPMV45A you will find ( Among other user exits):
CALL CUSTOMER-FUNCTION '003'
exporting
xvbak = vbak
xvbuk = vbuk
xkomk = tkomk
importing
lvf_subrc = lvf_subrc
tables
xvbfa = xvbfa
xvbap = xvbap
xvbup = xvbup.
The exit calls function module EXIT_SAPMV45A_003.
*2. How to find user exits *
Display the program where you are searching for and exit and search for CALL CUSTOMER-EXIT
If you know the Exit name, go to transaction CMOD.
Choose menu Utillities->SAP Enhancements. Enter the exit name and press enter.
You will now come to a screen that shows the function module exits for the exit.
*3. Using Project management of SAP Enhancements *
We want to create a project to enahance trasnaction VA01
- Go to transaction CMOD
- Create a project called ZVA01
- Choose the Enhancement assign radio button and press the Change button
In the first column enter V45A0002 Predefine sold-to party in sales document . Note that an enhancement can only be used i 1 project. If the enhancement is already in use, and error message will be displayed
Press Save
Press Components. You can now see that enhancement uses user exit EXIT_SAPMV45A_002. Double click on the exit.
Now the function module is displayed. Double click on include ZXVVAU04 in the function module
Insert the following code into the include: E_KUNNR = '2155'.
Activate the include program. Go back to CMOD and activate the project.
Goto transaction VA01 and craete a salesorder.
Note that Sold-to-party now automatically is "2155"
for more information.
try out with this links:
[http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm]
Hope answered your question.
Reward if helpful
Thanks
abdul -
Require help on User Exit for t-code VA31
Hi All,
I have a requirement of updating one of the fields in the Customer Master for selected Sold-to-party while creating or modifying a scheduling agreement.
Is there an user exit available for doing this?
Please help on this as early as possible.
Thanks,
HemaExits for the tcode VA31 are
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
Regards
- Gopi -
Help on user exit (credit limit blocking)
Hi,
Currently, my user exit checks the order value in va01, va02 against the remaining credit and puts a credit block on the customer/order if the order value is higher than the credit limit.
However, it should only take confirmed order values. For example, if the user entered 10 qty, but only 1 qty exists, then only 1 of the values should be considered when it against the credit limit.
Please help.
Thanks,
JohnHello John,
Use MV45AFZF Include
here look at documentation top of the form routine
FORM USEREXIT_AVAIL_CHECK_CREDIT USING US_VBAK STRUCTURE VBAK
US_VBUK STRUCTURE VBUKVB
US_VBAP STRUCTURE VBAPVB
US_RELEASE
US_RECHECK
CHANGING CH_CHECK.
DATA: CON_CHECK_STANDARD LIKE SY-SUBRC VALUE 4,
CON_CHECK_NO LIKE SY-SUBRC VALUE 8,
CON_CHECK_YES LIKE SY-SUBRC VALUE 0.
CH_CHECK = CON_CHECK_STANDARD.
CH_CHECK = CON_CHECK_NO.
CH_CHECK = CON_CHECK_YES.
ENDFORM.
Thanks
Seshu -
Hi,
Please help me to do coding inside this..new to user exit.
Guide me step by step
EXIT_SAPLRSAP_001 for Transactional DATA.
EXIT_SAPLRSAP_002 for Masterdata Attributes.
EXIT_SAPLRSAP_004 for Masterdata Hierarchies.
EXIT_SAPLRSAP_003 for Master data Texts.Hi,
Specification-requiremnt.
Right now i have only a brief idea about it.
I need to get the information regarding the coding side.
Thaks and regards -
Hello,
I am and include within a user exit and what i am trying to do is:
populating a field that shows up in a screen popup. transaction is iw32 for which the program name is different than that of the screenvalue that im trying to populate. in iw32, in components tab, i add a component and then i get a popup to populate the purchasing group field and this is the field that i am trying to put a default value into so that I do not get prompted. Please help.
Thanks.Hey Jasmeet
You can definitely get the values of RESBD in this exit. Please use the code below to get the resbd-ingrp value from the screen:
DATA:l_field(60) TYPE C VALUE '(SAPLCOMK)RESBD',
ls_resbd TYPE resbd.
FIELD-SYMBOLS: <fs_resbd> TYPE ANY.
*Fetching the Component Item from the Screen. This is for read-only
*purpose and content should not be changed.
ASSIGN (l_field) to <fs_resbd>.
if sy-subrc eq 0.
ls_resbd = <fs_resbd>.
UNASSIGN <fs_resbd>.
endif.
Now you have all the values in the structure ls_resbd and you can easily set the value for ingrp according to your conditions.
Hope this helps. Let me know if this is what you want.
cheers
shivika -
Ugrent help. User exit- Read data from BW BPS layout and write to ODS
Hi,
I am new to BW BPS and have a req. where i need to read data from BPS layout (EXCEL) and write it to ODS.
Is there any function module or user exit which read data from excel layout and upload it to ODS. Or can any one help me out how can i write a code for this.
It is urgent and i need your help.
Appreciate any kind of input.
Thanks
MamathaDear Mamatha,
read following documents. i hope it will work for you.
[http://www.geocities.com/cynarad/reference_for_bps_programming.pdf]
[Accessing BW Master Data in BPS Functions using ABAP ( Exit Function )|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d3dcc423-0b01-0010-4382-aa3e0784b61e]
Regards,
Malik
Give me points if its helpful for you. -
Need help in user exit !!!!!
I have two requirements like
1.When the SAP Sales Order is shipped a SAP iDoc DESADV will be triggered. Note This idoc already exists.
2. On the generation of a Shiping Document Reversal (Trans code VL09) and Idoc will be created
I want to get the user exits for both the cases.Hi Deb,
What are U trying to achieve, are you sending a notitification to the customer of the shipment. If so you may not have to go through a user exit but will have to setup idoc processing for the same by the customer. Same will be true for credit memo. Look at WE20,SALE or under sap menu-> Tools->ALE.
Thanks
Deep -
Hi,
I am working on purchase req. enhancement,i developed a subscreen at item level with 9 fields. the screen is coming properly.when i enter data, i have to store this data in eban table. for this i append a str with those fields.How can i update this screen data in eban table.Have to implement another exit or can i write in PBO and PAI.What's the code i have to write here.Pls waiting for your reply.
Thanks in advance,
Avinas M.Hello,
If you are using MEREQ001 user exit.
INCLUDE ZXM02U01 *
Tables *
tables: eban.
Reading current status of purchase requisition object and assigning to
local structure
data: s_mereq_item type mereq_item,
s_temp type ref to if_purchase_requisition,
s_trtyp type mepo_document.
call method im_req_item->get_data receiving re_data = s_mereq_item.
assiging data to the fileds on screen
move-corresponding s_mereq_item to eban.
*eban-zctarc = s_mereq_item-zctarc.
*eban-zuscno = s_mereq_item-zuscno.
*eban-zuscit = s_mereq_item-zuscit.
*eban-z1eldsze = s_mereq_item-z1eldsze.
*eban-z1especs = s_mereq_item-z1especs.
*eban-zalstr = s_mereq_item-zalstr.
*eban-znumcc = s_mereq_item-znumcc.
*eban-znumch = s_mereq_item-znumch.
*eban-znumsu = s_mereq_item-znumsu.
*eban-zinco1 = s_mereq_item-zinco1.
*eban-zinco2 = s_mereq_item-zinco2.
*eban-zcrnam = s_mereq_item-zcrnam.
*eban-zzterm = s_mereq_item-zzterm.
*eban-z1ecrrep = s_mereq_item-z1ecrrep.
*eban-z1etelfx = s_mereq_item-z1etelfx.
*eban-zektel = s_mereq_item-zektel.
*eban-matnr = s_mereq_item-matnr.
call method im_req_item->get_requisition receiving
re_requisition = s_temp.
call method s_temp->get_transaction_state importing ex_document =
s_trtyp.
export s_trtyp-trtyp to memory id 'TRT'.
and in
INCLUDE ZXM02U03 *
Tables
tables : *eban.
data: ls_mereq_item type mereq_item.
*get values if PReq item exists
if not im_req_item is initial.
*read item data from system
ls_mereq_item = im_req_item->get_data( ).
*if customer field changed
if eban ne *eban.
*fill field with new value
move-corresponding eban to ls_mereq_item.
ls_mereq_item-zflag = eban-zflag.
*set new item data to system
call method im_req_item->set_data( ls_mereq_item ).
*tell the system that there has something changed on the customer tab
EX_CHANGED = 'X'.
endif.
endif.
Regards,
Shekhar Kulkarni -
BPS Help with user exit.----- Quick one for Marc.B?
Hi All,
I'm using an user exit to prefix the GL/account with '2' to make it a stat account.In the fields to be changed , i have included all the characteristics like gl account,region,line of business...key fig name..etc.However when i run the exit, my key figure amount is doubling up.Need a quick fix or a second pair of eyes..also found that xth_data cannot be used in MODIFY statement because of hash table .so I'm using a collect.But as soon as i exit out of the loop, the key figure amount doubles....any pointers????
Here is the code.................................
FUNCTION Z_SEM_PREFIX_2ACCOUNTS.
""Local interface:
*" IMPORTING
*" REFERENCE(I_AREA) TYPE UPC_Y_AREA
*" REFERENCE(I_PLEVEL) TYPE UPC_Y_PLEVEL
*" REFERENCE(I_PACKAGE) TYPE UPC_Y_PACKAGE
*" REFERENCE(I_METHOD) TYPE UPC_Y_METHOD
*" REFERENCE(I_PARAM) TYPE UPC_Y_PARAM
*" REFERENCE(IT_EXITP) TYPE UPF_YT_EXITP
*" REFERENCE(ITO_CHASEL) TYPE UPC_YTO_CHASEL
*" REFERENCE(ITO_CHA) TYPE UPC_YTO_CHA
*" REFERENCE(ITO_KYF) TYPE UPC_YTO_KYF
*" EXPORTING
*" REFERENCE(ET_MESG) TYPE UPC_YT_MESG
*" CHANGING
*" REFERENCE(XTH_DATA) TYPE HASHED TABLE
DATA:
ls_data TYPE t_s_alloc,
lth_data TYPE t_th_alloc.
*Loop thru the data and check if its a valid GL account.
*If its a valid GL account, Prefix '2' to the beginning of the
*account and also add 'DDD' to the transaction type in order to
*identify the record.once the prefixing is over , you will have the old as well as the new set of records.
*records as they will not have the 'LOB' flag in the transaction type.
lth_data = xth_data.
LOOP AT lth_data INTO ls_data.
if ls_data-s_chas-0gl_account
is not initial.
if ls_data-s_chas-0gl_account+3(1) = '0' AND
ls_data-s_chas-0gl_account+4(1) <> '0'.
concatenate '000' '2'
ls_data-s_chas-0gl_account+4(6)
into ls_data-s_chas-0gl_account.
ls_data-s_chas-zoctrtype = 'LOB'.
endif.
endif.
collect ls_data into lth_data.
ENDLOOP.
DELETE Lth_data
where s_chas-0gl_account+3(1) <> '2' and
s_chas-zbpsflag = 'C'.
xth_data = lth_data.
ENDFUNCTION.Hi Sudz,
you got it almost right. If you do the collect the system will add the changed records to the exiting ones since you start with lth_data = xth_data. So use the following logic:
start with empty table
refresh lth_data.
now process all exiting data
LOOP AT xth_data INTO ls_data.
if ls_data-s_chas-0gl_account is not initial.
if ls_data-s_chas-0gl_account+3(1) = '0' AND
ls_data-s_chas-0gl_account+4(1) <> '0'.
concatenate '000' '2' ls_data-s_chas-0gl_account+4(6)
into ls_data-s_chas-0gl_account.
ls_data-s_chas-zoctrtype = 'LOB'.
endif.
endif.
and collect the new data
collect ls_data into lth_data.
ENDLOOP.
return only the new data
xth_data = lth_data.
Regards,
Marc
SAP NetWeaver RIG
Maybe you are looking for
-
Want to download LR5 onto new iMac. Computer won't read my LR5 CD. Tried to download from Adobe, but my Serial number is not accepted. All I can do is download the free trial. Not acceptable. I bought this copy of LR5. I check my Adobe account - My p
-
Can't drag and drop from iPhoto to iWeb anymore!
I used to be able to drag photos from iPhoto into a photo page in iWeb. Now when I do so, large versions of the photos show up, overlapping one another instead of fitting neatly into little boxes on the photo page like they used to do. Does anyone ha
-
Downloading Reports - with other regions
Hi, We are re-writing a web report application in APEX. Our current system "regions" for the report description and report parameters. When you export/download the report these regions are included in the csv file. Is their a way we can do this in AP
-
11.1.7 on Windows 2008 R2 - Error TNS:protocol adapter error
I am getting the error on Windows 2008 R2 ORA-12560: TNS: protocol adapter error. Even I applied the patch: 9166858 Installed the software and created the Database with Database Configuration Assistant. Even I started all the Oracle Services. Same pr
-
Multiple issues after iOS 5 update (iPhone 4)
I'd like to know if others have experienced these issues, and more importantly if they were able to fix them. It's really frustrating. 1. Sticky keys. Just like the 4.0 update when the 4 came out, my 3GS suffered the same issues. You start typing an