VF02 user exit
Hi guys,
I need your help, I went through all these forums, but with no success. I am looking for any user exit when changing billing document, because i need to change payment terms according to billing date. I have already checked user exits:
SDVFX007
SDVFX008
SDVFX009
SDVFX010
SDVFX011
V05I0001
V05N0001
V60A0001
V60P0001
V61A0001
bud these are called when billing doc is posted to Fi
and I also checked
RV60AFZC, RV60AFZZ, RV61AFZB - but these are called when billing document is created.
If you have any advice let me know.
Thanks
Dear Zbynek
Sorry I am not clear on your comments "when billing date is changed in invoice"
Can you please let me know as to how and in which situation, you will change the invoice date.
As you would be aware, while creating invoice, you can change the invoice date but not once you saved the billing document. So please be clear so that it will be easy for others to give suggestion.
thanks
G. Lakshmipathi
Similar Messages
-
In VF02 User exit problem.
Hi All,
I Done enhancement for VF02 transation to update data into one custom tablem,every thing working fine,but problem is when user click flag button in VF02 this user exit will get trigger by that time posting status is 'A'(means not been posted)I required status 'C'(Posted) but I am getting all data to my Custom table except this,pls help me out..
Thanks n regds,
Sree.Hi All,
My user exit triggering when SY-UCOM = ' FKFR'.(When I cllick flag)
and it is comming out side of the transaction and throwing message Invoice saved actually my user exit should trigger here,if I go once again inside and click save button User exit triggering and chaging the posting status,how can i solve this problem Is I need to put any condition for this,rigth now I am using like below
IF SY-TCODE = 'VA02'
and sy-ucomm = 'SICH'.
CALL FUNCTION 'ZSALES_DATA_UPDATE'
EXPORTING
IT_VBELN = vbrk-vbeln .
endif.
Thanks n regds,
Sree. -
VF02 user exit just after saving
Hi,
Please tell the user exit or BADI which will work in VF02 alone. Requirement is, whatever changes have been made for quantity in the document, has to be reflected in the Z table in the background.
Please clarify.
Regards,
Tom Jerry.Hi,
Below are the list of user exit available for billing:-
USEREXIT_NUMBER_RANGE (Module pool SAPLV60A, program RV60AFZZ)
The internal number range used in the standard system is specified in the billing type table and can be changed in this user exit. This user exit is only called when the billing documents is created.
USEREXIT_ACCOUNT_PREP_KOMKCV (Module pool SAPLV60A, program RV60AFZZ)
In this user exit additional fields for account determination that are not provided in the standard system are copied into communication structure KOMKCV (header fields).
USEREXIT_ACCOUNT_PREP_KOMPCV (Module pool SAPLV60A)
In this user exit additional fields for account determination that are not provided in the standard system are copied into communication structure KOMPCV (item fields).
USEREXIT_NUMBER_RANGE_INV_DATE (Module pool SAPLV60A, program RV60AFZC)
Depending on the number range, table TVFKD is used to set the billing date (country-specific requirments in Italy). USEREXIT_NUMBER_RANGE is automatically deactivated when this user exit is being applied.
USEREXIT_FILL_VBRK_VBRP (Module pool SAPLV60A, program RV60AFZC)
This user exit is only called when the billing document is created. It is used to provide the header and the item of the new billing document with deviating or additional data.
USEREXIT_PRINT_ITEM (Module pool SAPLV61A, program RV61AFZB)
Printing the item line of a billing document can be supplemented or changed.
USEREXIT_PRINT_HEAD (Modulpool SAPLV61A, Programm RV61AFZB)
Printing the header line of a billing document can be supplemented or changed.
User exits in program RV60AFZD
Short descriptions of the user exits are contained in the program:
USEREXIT_RELI_XVBPAK_AVBPAK
USEREXIT_NEWROLE_XVBPAK_AVBPAK
USEREXIT_NEWROLE_XVBPAP_AVBPAK
The following user exits are available in report SAPLV60B for transfer to accounting (function group V60B):
EXIT_SAPLV60B_001: Change the header data in the structure acchd
You can use this exit to influence the header information of the accounting document. For example, you can change the business transaction, "created on" date and time, the name of the person who created it or the transaction with which the document was created.
EXIT_SAPLV60B_002: Change the customer line ACCIT
You can use this exit to change the customer line in the accounting document. This exit is processed once the ACCIT structure is filled in with data from document header VBRK.
EXIT_SAPLV60B_003: Change the customer line in costing
The customer line is filled in differently for costing. You can use exit 003 to influence the ACCIT structure.
EXIT_SAPLV60B_004: Change a GL account item ACCIT You can add information to a GL account item (such as quantity specifications) with this exit.
EXIT_SAPLV60B_005: User exit for accruals
Once all relevant data for accruals was entered in the GL account item, you can add to this data with this exit.
EXIT_SAPLV60B_006: Change the control line ACCIT
You can use exit 006 to add information to the control line.
EXIT_SAPLV60B_007: Change the installment plan
You can use exit 007 to add information to the installment plan
parameters in the GL account item.
EXIT_SAPLV60B_008: Change the transfer structure ACCCR, ACCIT and ACCHD
After the accounting document is filled in with data, you can use exit 008 to change the document once again.
EXIT_SAPLV60B_010: Item table for customer lines
You can use exit 10 to influence the contents of customer lines before they are created.
EXIT_SAPLV60B_0011: Change the parameter for cash account determination or reconciliation account determination
You can use this exit to change inbound parameters in order to influence account determination.
with regards
Vivek. -
VA02 and VF02 User Exit - entering transaction
Hi all,
I am trying to find a user exit that will be called when the user opens a document.
For example the user types in VA02 and enters the sales order number. When they press enter, the user exit is called.
Can someone tell me which user exit can be used for VA02 and VF02 (or how to find it)?
Thanks,Following are the BADI's called while opening a sales document in VA02.
<BADI farm removed by moderator>
Following are the user exits called while opening a sales document in VA02
<exit farm removed by moderator>
Moderator message: please reply with specific information only, not a long list of technical objects that might or might not help.
Edited by: Thomas Zloch on May 20, 2011 9:28 AM -
Does anyone know of a user exit for the Sales Billing (VF02) that would allow me to manipulate the email address for email outputs. Currently the email address comes from the communciation tab on the customer master, and I want to be able to change it to come from the contacts tab in the cusomer master. I think the program used for the output is RSNAST00
Maybe in one of these Enhancements
VN000001 Customer exits in output determination
VCOM0004 Fill Output Communication Areas - Application V7
VCOM0003 Fill Output Communication Areas - Application M1
VCOM0002 Fill Output Communication Areas - Application E1
VCOM0001 Fill Output Communication Areas - Application V6
Sorry, don't remenber which one is for printer, for fax or for mail.
Regards,
Raymond -
User Exit or Badi for VF02 Transaction
Hi Friends,
I need to do Billing Date validation while chnging the Billing Document. so can u plz provide me some on the user exit which will get triggered for VF02 tran.
I checked with some of the exit like,
V61A0001
V60P0001
V60A0001
V05N0001
V05I0001
SDVFX011
SDVFX010
SDVFX009
SDVFX008
SDVFX007
SDVFX006
SDVFX005
SDVFX004
SDVFX003
SDVFX002
SDVFX001 but nothing seems to be triggering for me. Plz help me...Hi Please find the below list of userexits.
Exit Name Description (VF02)
J_3RSINV Export sales
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
LV60A001 vf -
Good Day Gurus,
I would like to change the value of cobl-AUFNR upon the release of biiling document to accounting. I already tried EXIT_SAPLV60B_008 and EXIT_SAPLV60B_004. I can see that it changes the value of the field cobl-AUFNR upon the debugger but I does not save the values when I look it on a standard VF03. I need KOMV, VBRP and VBRK, so that I can assign the value for this specified field. I just want to ask the proper user exit that I should use.
Thanks a lot for the help.
Regards,
Mon Magallanes
Edited by: Mon Magallanes on Aug 11, 2009 12:02 PMTransaction Code - VF02 Change Billing Document
Enhancement/ Business Add-in Description
Enhancement
V61A0001 Customer enhancement: Pricing
V60P0001 Data provision for additional fields for display in lists
V60A0001 Customer functions in the billing document
V05N0001 User Exits for Printing Billing Docs. using POR Procedure
V05I0001 User exits for billing index
J_3RSINV
SDVFX011 Userexit for the komkcv- and kompcv-structures
SDVFX010 User exit item table for the customer lines
SDVFX009 Billing doc. processing KIDONO (payment reference number)
SDVFX008 User exit: Processing of transfer structures SD-FI
SDVFX007 User exit: Billing plan during transfer to Accounting
SDVFX006 User exit tax line in transfer to accounting
SDVFX005 User exit reserves in transfer to accounting
SDVFX004 User exit G/L line in transfer to accounting
SDVFX003 User exit cash clearing in transfer to accounting
SDVFX002 User exit for A/R line in transfer to accounting
SDVFX001 User exit header line in delivery to accounting -
hello
gurus
My req is to give a popup in vf02 inital screen where a pop up will come with message
'Want to Display Doc'.
Plz help.One of below might help:
Transaction Code - VF02 Change Billing Document
|Exit Name |Description |
|SDVFX001 |User exit header line in delivery to accounting |
|SDVFX002 |User exit for A/R line in transfer to accounting |
|SDVFX003 |User exit cash clearing in transfer to accounting |
|SDVFX004 |User exit G/L line in transfer to accounting |
|SDVFX005 |User exit reserves in transfer to accounting |
|SDVFX006 |User exit tax line in transfer to accounting |
|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 |
|J_3RSINV |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 |
Regards
Shital -
Need user exit to add body text in mail while saving the transaction VF02
Hi All,
Output type has been configured as external send(5) to trigger billing document as PDF. There is a requirment to add body text in the mail along with pdf attachement. Funtional consultant has tried using NACE "Mail title and Text" but that doesn't worked out. As a abaper, we are trying to identfy the user exit where I can code the body of mail text.
Can any body please let us know the user exit to add the body text only?
Regards,
Suresh Kumar.Hi,
In your driver program you will have one standard include RVADOPFO.
Copy all the code available in that include and make it to Z include.
In this include function module ADDR_GET_NEXT_COMM_TYPE, will have the email address, subject etc.. details.
So You can modify the contents of the imported parameters here.
The above code will trigger only when update debugging is switched on!!!!!
Regards,
Santhosh. -
A/R User Exit Spec and code
The spec -
1. Canadian tax - currently based on Freight type: Read the country(?) Ship-from (plant jurisdiction) to Ship-to(customer jurisdiction) and the inco term on the line item of the sales order and if it's not equal to 'DDP' the line item tax classification will be set to '0' exempt. (This is freight that comes into Canada from the US)
We will look at the shipto and shipfrom txjcd on the sales order document and billing document along with the inco term logic and we will tax freight when they are both Canada
Example Scenario:
For Freight charges where the Ship from is in Canada (Bedco, Artmedco, etc) and the Ship-to is in Canada the freight will always be taxable regardless of the inco term. This is freight that ships within Canada, no boarder crossing.
2. Regular Freight - US & Canada: If separate line item on sales order, it may be exempt from tax based upon state. revisit
a. D.1 Freight included on the line item
i. The freight is passed to the external system by populating the field FREIGHT. The freight amount is always included in the base amount.
ii. An example to fill the freight using the user-exit:
iii. In the customer pricing procedure (for example ZUSA01) enter 4 in the subtotal field of the freight condition type (OTC must have this configuration in the pricing procedure for the freight pricing conditions).
iv. In the customer structure CI_TAX_INPUT_USER, add the field KZWI4 as in KOMP-KZWI4.
v. In the user-exit, add the code CH_USER_CHANGED_FIELDS-FREIGHT_AM = I_INPUT_USER-KZWI4.
3. For PO Specific A/R Tax Exemptions using material tax class of 2, pass the TAXM1 field to the ACCOUNT_NO field in Taxware
oSolution:
For PO Specific Tax Exemptions CSR will go to the line item detail Billing Tab, Tax Classification field (TAXM1) and change that to 2 One-Time Exemption. Configuration complete.
CSR will go to the Text Tab, Internal Item Notice and CSR will provide a brief description as to why that line is tax exempt.
This the code----
TABLES: KNVV, KNA1, KOMK, MLAN, T001W, KNVI.
DATA: w_taxm1 LIKE mlan-taxm1,
i_kna1 LIKE kna1,
c_com_tax type com_tax,
i_komk LIKE KOMK.
*--- if this freight comes into canada from US then set TAXM1 to 0
*----otherwise set TAXM1 to 2 and apply frieght charges. Set ACCNT_CLS
*----to 'Y' each time TAXM1 is passed to ACCNT_NO.
IF KNA1-LAND1 EQ 'CA'.
IF C_COM_TAX-TXJCD_SF EQ C_COM_TAX-TXJCD_ST.
CH_USER_CHANGED_FIELDS-FREIGHT_AM = I_INPUT_USER-KZWI4.
w_taxm1 = 2.
CH_USER_CHANGED_FIELDS-ACCNT_NO = W_TAXM1.
CH_USER_CHANGED_FIELDS-ACCNT_CLS = 'Y'.
ELSEIF C_COM_TAX-TXJCD_SF NE C_COM_TAX-TXJCD_ST.
C_COM_TAX-TXJCD_SF = C_COM_TAX-TXJCD_ST.
C_COM_TAX-TXJCD_POA = C_COM_TAX-TXJCD_ST.
SELECT SINGLE * FROM KNVV
WHERE INCO1 = KOMK-INCO1
AND INCO1 NE 'DDP'.
IF SY-SUBRC EQ 0.
w_taxm1 = 0.
CH_USER_CHANGED_FIELDS-ACCNT_NO = W_TAXM1.
CH_USER_CHANGED_FIELDS-ACCNT_CLS = 'Y'.
ENDIF.
ENDIF.
ENDIF.
SELECT SINGLE taxkd FROM knvi INTO knvi-taxkd
WHERE kunnr = i_komk-kunwe
AND aland = i_komk-land1.
IF SY-TCODE = 'VA01' OR SY-TCODE = 'VA02' OR SY-TCODE = 'VA03' OR
SY-TCODE = 'VF01' OR SY-TCODE = 'VF02' OR SY-TCODE = 'VF03' OR SY-TCODE
= 'VF04' OR SY-TCODE = 'VF05' OR SY-TCODE = 'VF05'.
SELECT SINGLE * FROM kna1 INTO i_kna1
WHERE kunnr = i_komk-kunwe.
IF i_KNA1-land1 EQ 'CA'.
C_COM_TAX-TXJCD_SF = C_COM_TAX-TXJCD_ST.
C_COM_TAX-TXJCD_POA = C_COM_TAX-TXJCD_ST.
ENDIF.
ENDIF.
I am able to enter the user exit, but there is no value for KNA1-LAND1 or C_COM_TAX-TAXJCD_SF or C_COM_TAX-TAXJCD_ST. Does anyone what I am missing ? Please help.
Thanks in advance !!!!
NHi NP ,
which User exit ur using ? Are u talking abt MIRO or VF01.
Regards
Prabhu -
Cancel Billing document User Exit
Hi,
The requirement at our client is as follows:
In transaction VF02, if the user selects to cancel the billing document "Menu: Billing document->Cancel", then we need an user exit to check that, for a particular pricing condition if an accounting document exists. If so, then put out a message and stop the cancel from happening.
Are there any user exits that get triggered specifically when cancelling a billing document so that I will have access to VBRK, VBRP and KONV data to read table BSET?
Any suggestions will be appreciated.
TIA.
Cheers,
-RameshHi Ramesh,
In configuration of the billing document type, there is a section for 'cancellation'. In this section, you can enter a copying requirement. In that requirement(probably your custom one), you can write the logic for your purpose. You can see this configuration by following the path
IMG--> Sales and Distribution
-->Billing
-->Billing Documents
-->Define Billing Types
-->Define Billing Types
Once you select your billing type and do the display, you will see this section in there.
Srinivas -
User exit for pricing to calculate net sales value and tax at billing level
Hi,
Can anyone give the solution for below thing.
I have written the code for to calculate the net sale a value and tax value based on condition types YTN1 & YTN2 and with pricing procedure "ZXTNIC" under user exit "userexit_field_modification" in include program LV69AFZZ
Calculation as per below
FD:
The user exit will run on the values of the line item and the header of the pricing conditions
The user exit will subtract the current net value from the value of the conditions YTN1 & YTN2, also the Tax value will be added to the value of the conditions YTN1 & YTN2.
Need the Net value = 8,032 and not 8,882 " here 8832 value is before calculation
This value will be calculated as follows = Current Net u2013 YTN1 u2013 YTN2 = 8,882 u2013 0,773 u2013 0,077 = 8,032
Need the Tax value = 2,395 and not 1,545 " here 1545 value is before calculation.
This value will be calculated as follows = Current Tax + YTN1 + YTN2 = 1,545 + 0,773 + 0, 077 = 2,395
When i will execute the VF01 transaction there in initial screen values are not updating automatically.Once we will select item line and then clicking on " item pricing condition" icon i.e., item level , then only the values are updating both in item level and header level.
But when we will execute the VF02 and VF03 the values are updating automatically as per condition.
So please suggest me is there any exit for this requirement.
Regards,
JayaramHi,
You should implement your logic in VOFM Copying routine for billing document.
Regards
Prasenjit -
Hi experts,
I need to find a User-Exit or a BADI in transaction VF01 or VF02, I have found several but I need one before save or after save.
Anyone knows any User-Exit or Badi for this case?
Thanks in advance
Nuno RodriguesSDVFX007 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
check out which exit suits ur reqirement. -
User exit to change accounting doc no. range
Anyone knows if there is a user exit for VF02 - where when releasing to accounting, I can use this exit to assign another number range (starting with '5') to the accounting doc to be generated.
The requirement here is that for specific invoices (identified by shipping point), we want to assign a different no. series for billing doc and consequently, an accounting doc that has the same no. as the billing doc. Currently the billing doc and accounting doc is the same no. (starting with '9') for those not affected by the shipping point condition.Roberto,
You can influence the billing document number ranges using the exit mentioned by you. I dont think it will be possible to influence the accounting document number ranges.
Yeo, your accounting document number ranges should match with the billing document number ranges if you want the accounting document number to be same as the billing document number.
Regards,
GSL. -
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.
Maybe you are looking for
-
Animated GIF in Flash v. Fireworks
Hi- I was told that I had to learn Fireworks to create an animated GIF because the animate gifs created through Flash are different. That doesn't make sense to me. Does it?
-
How to print two sides with one page?
I have a PDF that is one page long and I'd like to print the same thing twice (front and back) on one page. Can I do that? I've tried printing two copies with the printer set to double-sided, but it just printed two sheets with one side on each sheet
-
Work with ListBox in Acrobat Reader and 3D Pdf
I have a template with LiveCycle Designer 8.2. This listbox i fill dynamically with JavaScript in the 3D Model and in the template. I can manipulate both scripts. The user should select items in that view. So i have choosen User Entered - Optional as
-
When import tables independent with queue,but show queue already exsists
I try to import tables into my database, these tables are independent with queue, but errors show that ORA-24006: cannot create QUEUE, EMAUSER.EMA_CFG_QUEUE already exists, any idea why impdp is trying to create queue??? command: impdp user/password
-
Pls tell me how automatically delete the messages in trash i
Dear bro. pls tell me how to delete the messages in trash if is there for more than 7 days. i want to enable the feature to delete the messages automatically from mailboxe's trash folders if it is there for more then 7 days help will be appreciated w