User-exit that split at item level according to bill of entry(BOE)
HI,
need to write the logic for splitting invoices at item level according to BOE.
Customized new table:
Info for the customized table:
Table Name: ZIN_BONDINV
Field Name Data Element Type Length Short Text
MANDT MANDT CLNT 03 Client
VBELN VBELN_VF CHAR 10 Billing Document
EXNUM J_1IEXCNUM CHAR 10 BOE or Excise Invoice #
EXYEAR J_1IEXYEAR NUMC 04 Excise Year
ZEILE J_1IZEILE1 NUMC 04 Item no - GR at depot
ZVBELN VBELN_VL CHAR 10 Delivery Number
Z POSNR POSNR_VL CHAR 06 Delivery item
ZWERKS WERKS_D CHAR 04 Plant
This table to be used for storing the invoice created using delivery document along with other information extracted during billing document creation.
Logic for populating the table:
User Exit: RV60AFZC
Form: USEREXIT_FILL_VBRK_VBRP
This user exit should be used to update records in the customized table for the data with which billing document is created. The data should be populated as follows:
VBELN = VBRK-VBELN
EXNUM = J_1IRG23D-EXNUM*
EXYEAR = J_1IRG23D-EXYEAR*
ZEILE = J_1IRG23D-ZEILE*
ZVBELN = VBRP-VGBEL
ZPOSNR = VBRP-VGPOS
ZWERKS = VBRP-WERKS
*The above data is read during splitting the billing document based on BOE (copy control routine 602) and should be used from there.
USER-EXIT NAME IS RV60AFZZ
Similar Messages
-
User exit which changes po (item level) delievery date (eket-eindt)
Hi,
Can you please suggest EXIT which triggers while changing delivery date (LIKP-LFDAT) of outbound delivery through TCODE VL02N should reflect in its corresponding purchase order delivery date ( ME22N at item level field (EKET-EINDT)..
I tried in USEREXIT_SAVE_DOCUMENT_PREPARE include MV50AFZ1. but changes are not reflected in PO.
code:
XEKET-EINDT= LIKP-LFDAT.
but it is not working .there is no field as update indicator (updkz) in table xeket..Please let me know if I am doing something wrong.
Thanks in advance.Have you checked the BADI 'ME_PROCESS_PO_CUST' ? This has a method PROCESS_ITEM, this may solve your problem.
-
Hi,
We have a requirement where the GR-based Inv. Verification flag, at the line item level of a Purchase Order (EKPO-WEBRE) needs to be modified, on the save of a Purchase Order.
Is there any user exit that can be used for achieving this?Hi Adarsh ,
u cannt update by using some user exits , SAP will Automatically update this Fields onces u completed ur GR Verifications.
get some more inputs on this business reuirement,orelse Create a BDC to Update ?
or u can use BAPI BAPI_PO_CHANGE. See the Documentation for more info.
Regards
Prabhu -
USER EXIT: Update Sales Order Item User Stauts
Can you tell me the user exit that performs the would alter the system status from open to complete if the PO can't be cancelled and therefore the sales item can't be rejected ?
If the item has been shipped, item system status to be changed to Complete (not allow further processing). If the item is rejected, the status can be complete.
Thanks!!The status management is performed by the standard operations.
So you cannot update it directly. If some malfunction occurred, run program SDVBUK00 to restore the right statuses.
pls. reward if helpful
Roberto -
BADI or User Exit that executes after BADI ORDER_SAVE
Hi. I am trying to find a BADI or user-exit that occurs after the BADI ORDER_SAVE has executed completely and saved the values to database. This is because ORDER_SAVE only gives the item GUID not the header GUID and it appears the header data is only created when the save has taken place. I am trying to use the function CRM_ORDER_MAINTAIN but I need the header data to manipulate it.
Thanx in advance
MartinI will tell you four methods to find a BADI,
Method 1. If you think that it is a simple requirement then got SE18 and click on F4 and Iformation Systems. In the short description enter the short text and search.
Method2. Another simple method is to search with Package.
Method3. Put a break point in the FM SXV_GET_CLIF_BY_NAME and then run your transaction---> your requirement may satisfy here after when you press the SAVE Button. There are two more BADIs that will be triggered in general.
a) Before Update
b) In Update.
Method4. Put a break point in the class CL_EXITHANDLER for METHOD get_instance. and then run your transaction.
Hope this material helps.
Bhargav. -
How to find out FICO user exits that are used by User
How to find out the FICO user exits that are used by user.
Go to tcode CMOD. In the project field drop down your list there. Put a Z* there and run the list. These should be all the exits that are activated. Search for the ones that pertain to FI. You can also search by development class. You need a little ABAP knowledge to search easily. You get this by going to the tcode then to status then to the program then to the attributes. There you find the development class. Ie FBAS.
pls assign points if helpful as a way to say thanks. -
How to find which are the user exits that updating z table.
There was a question posted by someone else which said:
I have a z table. my requirement is to find the user exits that update the value to this table?
but my requirement is to get only those user exits that update my z table.
Before that question was rejected, it got 5 replies which made me think that this tip is worth sharing.
So the steps are:
Do a where-used list search from SE11
Click on Search Range button at bottom
Type UPDATE (you can also add Insert, Delete etc to select-option) to ABAP Key Words field
Say No to the popup that asks whether to include Fields of the Table
Result will show relevant programs with code snippets doing static Update on that custom table.EWK1 would be too performance heavy in this case. It scans the source code to get the result.
You can however, download the list of programs given in where-used list, and give that as limiting condition in EWK1 or some other code scanning utility.
Using my method, where-used list of table is taken from database tables, and then code scanning is done only on the that list, not on entire Z* programs.
Try it yourself to notice the speed difference. -
How can i do a variable User exit that present the values before execute
Hi Gurus,
How can i do a variable User exit that present the values before execute, i need this:
a variable that calculate SYS-DATUM until 30 days before (I got the code) but this variable run automatic because is user exit, i want this variable but first present the values, not execute automatic, this is because the users want the report that automatic present the values , helpHi,
Refer the below links,
http://documentation.softwareag.com/natural/nat424mf/pdf/ops_mf/conf_usrex.pdf
http://www.erpgenie.com/component/content/article/1097
http://www.apentia-online.at/UP/Apentia/files/Article/SAP_BW_User_Exits_and_BAdIs.pdf
Hope it helps you,
Regards,
Ravindra. -
User exit that gets triggered at the press of 'Enter' in IW42
Hi,
Is there any user exits that gets triggered at the press of Enter key in PM order confirmation IW42 transaction. Basically the requirement is to give a customized message at the order confirmation screen when the enter key is pressed.
Regards,
Prabaharan.GHi,
You may try the following enhancement points and exit respectively.
CMFU0001 E EXIT_SAPLCMFU_001
CMFU0002 E EXIT_SAPLCMFU_002
Pls reward points if useful.
Regards,
Renjith Michael.
Edited by: Renjith Michael on Jan 12, 2008 12:57 PM -
User exit that runs at the start of VF01
Hello ABAP gurus,
Forgive me if this question seems stupid but I'm very new to user exits. In fact this is my first time handling one. I need to find the <b>user exit that runs at the start of VF01</b>. In that user exit I need to put some authorization checks and if they're not met the user won't be allowed to continue to run VF01 (VF01 must exit).
<i>When user runs billing (transaction code VF01), I need to insert an authorization object V_LIKP_VST. If they have access to that plant (VSTEL), then they can proceed to run the transaction. If not, they should be rejected or forced to exit VF01. So the trick here is find that user exit that runs at the start of VF01.</i>
Thanks.Hi Carl
Please see if you can use BADI: <b>BAPI_SD_BILLING_ITEM</b>.
Alternatively, you can try with Routine: <b>USEREXIT_FILL_VBRK_VBRP</b> in include: <b>RV60AFZC</b> to add the authorization check.
Kind Regards
Eswar
Message was edited by: Eswar Rao Boddeti -
User exits that change invoice price?
Are you aware of any user exits that change invoice price? Thanks.
Hi,
Pl use MV45AFZZ include. It has many user exists.
FORM userexit_pricing_prepare_tkomk.
Here you may your code
ENDFORM. "USEREXIT_PRICING_PREPARE_TKOMK
FORM userexit_pricing_prepare_tkomp.
Here you may your code
ENDFORM. "USEREXIT_PRICING_PREPARE_TKOMP
FORM userexit_save_document.
Here the code while saving the document
ENDFORM. "USEREXIT_SAVE_DOCUMENT
FORM userexit_save_document_prepare.
ENDFORM. "USEREXIT_SAVE_DOCUMENT_PREPARE
Check the below enhancesments components also from SMOD.
V45A0001
V45A0002
V45A0003
V45A0004
V45E0001
V45E0002
V45L0001
V45P0001
V45S0001
V45S0003
V45S0004
V45W0001
V46H0001
V60F0001
Cheers
Hema -
User exit for split of PO items
Hi all.
In the creation of purchase orders from SRM shopping carts, we have a requirement to split the service purchase order lines in different items when the tax code in SRM is different. I mean, the requirement is to have only services with the same tax code in SRM in the same PO item. If the SRM tax code is different for a concrete service I have to split it in another PO item.
In short, what I need is to know any user exit, badi, etc... in the creation of PO for the splitting of PO items. Can anyone of you help me?
Thanks in advance.Hello Manosij.
I have not much experience in SRM. I think that the difference between scenarios is where the subsequent documents of a shopping cart are created, is that right? In my case, the PO is created in the backend, in R/3.
In the shopping cart (in SRM) the services are created everyone in a different SC item, with the possibility of having different tax codes for each one. However, in the purchase order (in R/3), the services are grouped all together in a unique PO item, all of them under a unique tax code (EKPO-MWSKZ). What I need to do is to have a PO item for each different tax code from the SC. The services have to be under their correspondent tax code in the PO.
For example, I am creating a SC with two services, one of them with tax code VP and the other one with tax code V5. The PO must have two items, one with tax code VP and the other one with tax code V5. Currently, the PO is being created with a unique item with tax code VP. If both items in the SC would have tax code VP, it would be correct to have the PO with a unique item with tax code VP.
I hope this clarify my requirement.
Thanks. -
User exit to find sy-comm when user select a tab at item level data in VA02
Hi Gurus,
is there any user exit in VA02 in which we can find the command button pressed in the sale order line item data where we find sales A sales B .....and condition tab in the screen.
rewards for sure.
thanksDear Mandy,
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 in 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.
Finding the user-exits of a SAP transaction code
* Finding the user-exits of a SAP transaction code
* Enter the transaction code in which you are looking for the user-exit
* and it will list you the list of user-exits in the transaction code.
* Also a drill down is possible which will help you to branch to SMOD.
report zuserexit no standard page heading.
tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
tables : tstct.
data : jtab like tadir occurs 0 with header line.
data : field1(30).
data : v_devclass like tadir-devclass.
parameters : p_tcode like tstc-tcode obligatory.
select single * from tstc where tcode eq p_tcode.
if sy-subrc eq 0.
select single * from tadir where pgmid = 'R3TR'
and object = 'PROG'
and obj_name = tstc-pgmna.
move : tadir-devclass to v_devclass.
if sy-subrc ne 0.
select single * from trdir where name = tstc-pgmna.
if trdir-subc eq 'F'.
select single * from tfdir where pname = tstc-pgmna.
select single * from enlfdir where funcname =
tfdir-funcname.
select single * from tadir where pgmid = 'R3TR'
and object = 'FUGR'
and obj_name eq enlfdir-area.
move : tadir-devclass to v_devclass.
endif.
endif.
select * from tadir into table jtab
where pgmid = 'R3TR'
and object = 'SMOD'
and devclass = v_devclass.
select single * from tstct where sprsl eq sy-langu and
tcode eq p_tcode.
format color col_positive intensified off.
write:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
skip.
if not jtab[] is initial.
write:/(95) sy-uline.
format color col_heading intensified on.
write:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
write:/(95) sy-uline.
loop at jtab.
select single * from modsapt
where sprsl = sy-langu and
name = jtab-obj_name.
format color col_normal intensified off.
write:/1 sy-vline,
2 jtab-obj_name hotspot on,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
endloop.
write:/(95) sy-uline.
describe table jtab.
skip.
format color col_total intensified on.
write:/ 'No of Exits:' , sy-tfill.
else.
format color col_negative intensified on.
write:/(95) 'No User Exit exists'.
endif.
else.
format color col_negative intensified on.
write:/(95) 'Transaction Code Does Not Exist'.
endif.
at line-selection.
get cursor field field1.
check field1(4) eq 'JTAB'.
set parameter id 'MON' field sy-lisel+1(10).
call transaction 'SMOD' and skip first screen.
*---End of Program
Best Regards,
Rajesh
<b>Please award points if found helpful.</b> -
User-exit that triggers everytime I change a line item and change condition
Hello Experts,
We are encountering an error wherein when we create a return order with reference
to an invoice and we create multiple line items with the same material, the succeeding
line items points to the wrong conditions in the reference invoice. Below is an example:
Original Sales Invoice 3010002390
Line Item No. SKU Quantity Total Rebate Discount Per Unit Rebate Discount
10 100315 10 128.07 12.81
20 106666 10 128.07 12.81
30 100338 10 243.86 24.39
Return Order 1120000402 (repeatedly created with reference to the same sales invoice number)
20 106666 1 12.81 12.81
30 106666 1 24.39 24.39
For Return Order line 30, it should have picked the price 12.81 instead it picked 24.39,
which is the same line item with the original sales invoice.
I am using user-exit 'USEREXIT_NEW_PRICING_VBAP' and it triggers everytime I change the quantity of a line item.
But I tried to change the values in XKOMV and put 'U' in UPDKZ but it doesnt reflect when I view it.
Hope you can help me guys. Thank you and take care!Thanks anyways...
-
USER STATUS For Inquiry at Item level in VA12.
Dear Sir/Madam,
In Customer Inquiry we have maintained User Status at item level as 10,20,30,40 as radiaobutton.
Now we have to trigger event to initiate workflow as User changes User status from 10 to 20 like that.Currently
if user changes status from 10 to 20 in VA12 we get BO BUS2030 & Event 'Change'.
But we unable to trace exact changed status of that item in that particular Inquiry numbers.
1.All such user status are stored in JESt table but its get updated only after save button.So if i also try to use User exit to trigger Event
but i am unable to get Run time values of JEST table (USER STATUS).
2.If i go for BSVW (STATUS MGT ), in that we have 'VBK-SALES Header' & 'VBP-SALES ITEM' status present.But we have maintained User status at item level
so if we use 'VBP' then we didn't get BUS2030 BO & in Header 'VBK' we get BUS2030 but its at header level..so its didn,t give us item level status.
So Pease suggest me some way to handle such situation.
Thanks.So what is your problem? You are not able to trace for which item the event got triggered?
I think you can make use of Change document table CDPOS and CDHDR to check which item had a latest change in status and accordingly incorporate this info in Workflow.
Thnaks
Arghadip
Maybe you are looking for
-
30+ bad blocks and now mbp won't start
i had 30+ bd blocks last week. I got a ext hard drive to back up my data. Using SuperDuper I managed to get 170gb out of 220GB off my drive before backup stopped due to corrupt files. I deleted the corrupt files and found superduper stopped at 108GB
-
Dumb question of the week...
how do i remove songs from my i-pod? i've looked at the manual and it doesn't make any sense to me...
-
SOAP Adapter status stay "Channel started but inactive"
Hi, Folks: We have a couple of SOAP adapters that I have not used for a while, so I put them in inactive status. Now we need to switch SOAP Scenario, I activate them, however, in Communication Monitoring Page, The status is Yellow Triangle: "Channel
-
I have noticed that pictures taken on my Z10 are not in my albums. Pictures do not display in this app. Today I took 3 photos. Could not find them in the pictures folder. When I opened the camera 1 was displayed in bottom left corner of screen, until
-
Having problems with adobe acrobat prof. 9 and freeflow access software
I am currently using Adobe professional version 9. I have a 6204 wide format xerox machine scanner and printer. I use freeflow access to retrieve my scanned documents, but adobe and freeflow are not talking? Can anyone help?