User Exit - VA41
How Do everyone.
I have written some code within the user exit for VA41
within the FORM USEREXIT_SAVE_DOCUMENT_PREPARE.
It bascially asks for some user input. If the user
answers 'Y' I carry on as normal with the document save.
However, if the user answers 'N' how can I force the
system to reject everything the user has entered? So
that he/she can start again.
Hi Andy,
The user answer 'N' will itself cancels the user inputs, and will not save anything.
If you have access to OSS , read consulting notes 7688 /
582767 / 313440 .
Check OSS 178328 It will answer all your queries
XV*** structure will hold the current values of the Sales Order.
YV*** structure will hold the previous values of the Sales Order.
For Example,
Sales Order is created with two line items say 10 and 20.
During the sales order change an item is added say 30.
XVBAP holds all the three line items(10, 20 and 30).
YVBAP holds only 10 and 20.
All the values in XV*** will be updated to the tables V*** repectively during COMMIT.
Using XV*** and YV*** you can determine the changes made for the sales order while change is processed.
Regards,
Raj
Similar Messages
-
User exit VA41 at save document
Hi Freinds,
Im using VA41 tcode to create contract. Before saving the contract, i want to do some validation. Is there any user exit for VA41 at save document.
Thanx
RRHi Rajiv,
you can use the user exit USEREXIT_SAVE_DOCUMENT or USEREXIT_SAVE_DOCUMENT_PREPARE in the include MV45AFZZ(use se38 to access this) to do your validation
All VBAP details are available in XVBAP
and all VBAK details are available in XVBAK
Reward if helpful
Regards
Byju -
User exit at item level for billing block field default for VA41 or VA42
Hi All,
I want user exit at item level for contract (VA41or VA42) for the field Billing Block in the Billing document tab
which has to populate with some default value.
Which user exit i need to check.
Regards
JaiHi,
Use subroutine USEREXIT_FIELD_MODIFICATION in Include MV45AFZZ.
Make sure this is for only tcodes VA41 and VA42 because this wil trigger for sales order also.
Regards,
Ashok. -
User-Exit in VA41/VA42 at ITEM level for output determination?
Hello Experts,
Am looking for user-exit/BADI/Enhancement Spot, my requireemnt is I need to populate the output (VA41/VA42 Tx>Menu>Extras>Output>ItemEdit goes to next screen, here we hv a column with lable of Output) output with my_z_output as soon as user inputs a line item and press ENTER (if its ONLY 1 item user may press SAVE button), pls. let me know whiich is the good spot for my req. in VA41/VA42
Thank youThank you. But, functional analyst is saying its 'not' or may be some other reason!
Pls. let me know wht is the good user-exit in VA41/VA42 to populate a value into a custom field (inserted via APPEND STRUCTURE) of a standard SAP communication structure? This is for output determination
Thak you -
User exit or badi after 'SAVE' of VA41 OR VA42
Hi,
What is the user exit or BADI that going to be triggered after clicking the 'SAVE' button of create service order ( VA41) and after clicking the 'SAVE' button of 'VA42'.
I am searching, but not able to find.
Regards
BadariHi Badari,
Try USEREXIT_SAVE_DOCUMENT_PREPARE or USEREXIT_SAVE_DOCUMENT found in MV45AFZZ, one of them should do it.
U also might find other exits to handle items there, if needed.
Pls reward if helps.
All the best
Igal -
Hi,
Is there any user exit which would help in making the characteristics value field input disabled as soon as the user enters a value .He/She should be allowed to choose only once and not be able to change again.The characteristics data is visible when the user has provided a material number information and clicked on Configuration (in Extras tab - visible on top menu bar of the screen).I came across a few exits like USEREXIT_MOVE_WORKAREA_TO_SDWA .But I don't think it would solve the problem.Please help.
Thanks & Regards,
SavithaHello,
Transaction Code - VA41 Create Contract
Exit Name Description
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 plan
SDAPO001 Activating Sourcing Subitem Quantity Propagation
No of Exits: 16
VAsanth -
User Exit for VA41 Validity Date
Hi,
I am giving order type in VA41 Tcode and then Clicking on 'Create with Reference' .Then a Pop Up is getting generated. In this i am giving Contract created with validity date lessthan today's date(in Contract Tab).For Example i created a Contract xxxxxx with 'valid to' 9.12.2008. When I am giving this contract and clicking on 'Copy' button a Warning message is getting generated 'The sales document is only valid until 09.12.2008'. Now i have to change this into Error message instead of Warning Message.
i used User Exits mv45afzz,MV45AFZA,MV45AFZB. But the debugger is getting started only after Warning message got generated.Is there any User Exit for which debugger gets started when i give the Contract and then Click on 'Copy' button. Please Suggest.
Thanks
K SrinivasHi,
Create a file say breakpoint.txt file as follows:-
[FUNCTION]
Command=/H
Title=Debugger
Type=SystemCommand
Once you come to the screen of 'Create with reference' where you are giving the contract, from second session drag the above mentiuoned file to the session where you are running VA41, & drop it here. Now debugger has been activated. Proceed with debugging. This method you can use for any of the 'POP UPs'.
I hope this helps,
Regards
Raju Chitale -
User Exit for Validity Date for VA41 Tcode
Hi,
I am giving order type in VA41 Tcode and then Clicking on 'Create with Reference' .Then a Pop Up is getting generated. In this i am giving Contract created with validity date lessthan today's date(in Contract Tab).For Example i created a Contract xxxxxx with 'valid to' 9.12.2008. When I am giving this contract and clicking on 'Copy' button a Warning message is getting generated 'The sales document is only valid until 09.12.2008'. Now i have to change this into Error message instead of Warning Message.
i used User Exits mv45afzz,MV45AFZA,MV45AFZB. But the debugger is getting started only after Warning message got generated.Is there any User Exit for which debugger gets started when i give the Contract and then Click on 'Copy' button. Please Suggest.
Thanks and Regards
K SrinivasHi,
One idea. Go to VTAA (copy between sales docs) and create a new VOFM where you manage the copy control. Set a warning/error message in the new VOFM (in your range number), and try it.
Regards,
Eduardo
Edited by: Eduardo Hinojosa on Dec 10, 2008 3:58 PM -
User Exits in RV45PFZA for TCODE VA41, VA42..
Hi all,
I need to write my own code in the 'USEREXIT_SET_STATUS_VBUK' in Include 'RV45PFZA'. I am not able to change the code as it is a Standard SAP code and it asks me the access key. Now The question is :
1. Do I have to request for the Access Key to make this change?
or
2. Do I have to Create a Project in CMOD?? If I have to, then where will I find the Enhancement name or the Exit Name. I tried all the methods proposed in the earlier forums but have not been sucessful in finding the right exit.
Have any of you worked on this or on something similar?? This is urgent. Your invaluable suggestions are greatly appreciated.
Thanks in Advance,
Raj.Ravi,
Thank you for your suggestion. I got the Doubt cleared. I have one more question.
In Include RV60AFZZ , I have added my code in
FORM USEREXIT_PRICING_PREPARE_TKOMP to Deactivate Condition types for FPD process . I activated the code. Now when I create a delivery doc (via Vf01), it gets created and saved if I do it in the fore ground, but it fails if I schedule it as Back ground job. Is this because the Include doesnt have the SAVE_DOC User exit.Please elaborate if you have any suggetsions as to why it is failing in the Background and what will be the other options to make it work in the Back ground.
Again Thank you so much.
Raj. -
User exit to input Cost center in Billing document
Hi all,
My requirement is I need to get the cost center value in accounting document ( FB03)
Actually a contract is getting created and a billing document is generated and saved.
There is no cost center in contract creation screen (VA41)but it is visible in billing document(vf01) in grey mode.
Now my requiremnt is based on contract type ,distribution channel, sales org. and division I need to pick the cost center and should get display the value in accounting document(fb03).
For this do I need to go for user exit ? If yes then where should I write it ?
In Contract creation screen(VA41) or in the billing document screen? and plz guide me the program name and User exit,
or is there any other solution for this?
Plz answerI think you have to try from the Txn VF01 and the below are the BAdi and method details
Check the BAdi SD_CIN_LV60AU02 in the method EXCISE_INVOICE_CREATE check the importing parameter of the method
XVBRP Importing Type VBRP_TAB -
User exit at billing and sales document level
Hi,
Like we use a quantity contract through that we create resource related billing order and thn do the billing of that order but in the resource related billing order user enters the data manually which can exceeds the quantity of the contract.
Now we want to put a check at the billing document level where system should throw an error message whenever total qauntity fo the billing document exceeds the contract quantity.
So which user exit should i use?
How to find a user exit or screen exit for a particular tab in a transaction like in VA41 at the item level in the sales B tab we want user should enter a field to a certain level.
Regards,
SATYAHi,
you can check with the below user-exits for you requirement.
Enhancement
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
V45L0001 SD component supplier processing (customer enhancements)
Business Add-in
BADI_SD_V46H0001 SD Customer functions for resource-related billing
How to find [USER EXIT.|https://www.sdn.sap.com/irj/scn/advancedsearch?query=findauserexitorscreenexitforaparticulartab+&cat=sdn_all]
you can get details in the SCN
Regards! -
Hi ,
I had a include program in Development for Delivery module, "MV50AFZ1" in program "SAPMV50A", which is supposed to be a user exit. So I transported that to production on clients requirement, but then its creating some problems for client, so he wants his previous program to be back. But I can't change this "MV50AFZ1" program in development nor in Production. So how could I bring that previous code in production.
Plz help, and if possible tell me how can I change "MV50AFZ1" program code.
Thanks.
Shailesh.check the below link for user exits in SD
http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
Some more links r here....
User Exits In Sales Document Processing
http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
Get the access key from basis for the program SAPMV45A. And change the screen.
First create a subscreen with that two fields, call that subscreen in the screen 8309.
call subscreen s2 including 'SAPMV45A' '9002'.
How to add custoim fields on the additiondata b tab of va01 and va02
VA01/VA02 screen exit
Re: Is there any enhancement available .....for va01??
Add a field in va01 transaction
Additional Screen field in VA41 or VA01
Here are the user exits available for creating PO.
AMPL0001 - User subscreen for additional data on AMPL
LMEDR001 - Enhancements to print program
LMELA002 - Adopt batch no. from shipping notification when posting a GR
LMELA010 - Inbound shipping notification: Transfer item data from IDOC
LMEQR001 - User exit for source determination
LMEXF001 - Conditions in Purchasing Documents Without Invoice Receipt
LWSUS001 - Customer-Specific Source Determination in Retail
M06B0001 - Role determination for purchase requisition release
M06B0002 - Changes to comm. structure for purchase requisition release
M06B0003 - Number range and document number
M06B0004 - Number range and document number
M06B0005 - Changes to comm. structure for overall release of requisn.
M06E0004 - Changes to communication structure for release purch. doc.
M06E0005 - Role determination for release of purchasing documents
ME590001 - Grouping of requsitions for PO split in ME59
MEETA001 - Define schedule line type (backlog, immed. req., preview)
MEFLD004 - Determine earliest delivery date f. check w. GR (only PO)
MELAB001 - Gen. forecast delivery schedules: Transfer schedule implem.
MEQUERY1 - Enhancement to Document Overview ME21N/ME51N
MEVME001 - WE default quantity calc. and over/ underdelivery tolerance
MM06E001 - User exits for EDI inbound and outbound purchasing documents
MM06E003 - Number range and document number
MM06E004 - Control import data screens in purchase order
MM06E005 - Customer fields in purchasing document
MM06E007 - Change document for requisitions upon conversion into PO
MM06E008 - Monitoring of contr. target value in case of release orders
MM06E009 - Relevant texts for "Texts exist" indicator
MM06E010 - Field selection for vendor address
MMAL0001 - ALE source list distribution: Outbound processing
MMAL0002 - ALE source list distribution: Inbound processing
MMAL0003 - ALE purcasing info record distribution: Outbound processing
MMAL0004 - ALE purchasing info record distribution: Inbound processing
MMDA0001 - Default delivery addresses
MMFAB001 - User exit for generation of release order
MRFLB001 - Control Items for Contract Release Order
EXIT_SAPMM06E_001 Other Number Range or Own Document Number
EXIT_SAPMM06E_004 User Exit for Cust.-Specific Control of Import Data Screens in Purchasing
EXIT_SAPMM06E_005 Field Selection Control: Vendor Address Screen
EXIT_SAPMM06E_006 Export Data to Customer Subscreen for Purchasing Document Header (PBO)
EXIT_SAPMM06E_007 Export Data to Customer Subscreen for Purchasing Document Header (PAI)
EXIT_SAPMM06E_008 Import Data from Customer Subscreen for Purchasing Document Header
EXIT_SAPMM06E_009 Reset Customer Data at Beginning of New Document (Without Dialog)
EXIT_SAPMM06E_010 Export of Service RFQ Data
EXIT_SAPMM06E_011 Import Service Prices for Quotation
EXIT_SAPMM06E_012 Check Customer-Specific Data Before Saving
EXIT_SAPMM06E_013 Update Customer-Specific Data in Purchasing Document
EXIT_SAPMM06E_014 Read Customer-Specific Data when Importing Purchasing Document
EXIT_SAPMM06E_016 Export Data to Customer Subscreen for Purchasing Document Item (PBO)
EXIT_SAPMM06E_017 Export Data to Customer Subscreen for Purchasing Document Item (PAI)
EXIT_SAPMM06E_018 Import Data from Customer Subscreen for Purchasing Document Item
EXIT_SAPMM06E_020 User Exit: Change Document for Requisitions (Conversion into PO)
EXIT_SAPMM06E_021 Fulfillment of Target Value: Release Orders Against a Contract
EXIT_SAPMM06E_022 Relevant Texts for "Texts Exist" Indicator
EXIT_SAPMM06E_023 Definition of Relevant Texts for "Texts Exist" Indicator
EXIT_SAPMM06E_024 Customer Enhancement: Activate PReq Block
user exit for sto
Regards. -
Any user-exit to change VBAK from VA02?
Hi all,
I have an urgent problem to fix in few hours but so little ideas for the moment, in deed I have to fill the field VBAK-STCEG_L in T-codes VA01, VA02, VA21, VA22, VA41 and VA42 according to some conditions from table VBPA, I can't find any user-exit or BADI to implemant my code so any solution would be welcome.Hi,
These are the availble Enhancements and BADIs
Enhancement
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
V46H0001 SD Customer functions for resource-related billing
V45W0001 SD Service Management: Forward Contract Data to Item
V45S0004 Effectivity type in sales order
V45S0003 MRP-relevance for incomplete configuration
V45S0001 Update sales document from configuration
V45P0001 SD customer function for cross-company code sales
V45L0001 SD component supplier processing (customer enhancements)
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45E0001 Update the purchase order from the sales order
V45A0004 Copy packing proposal
V45A0003 Collector for customer function modulpool MV45A
V45A0002 Predefine sold-to party in sales document
V45A0001 Determine alternative materials for product selection
SDTRM001 Reschedule schedule lines without a new ATP check
Business Add-in
BADI_SD_SCH_GETWAGFZ Scheduling Agreement: Read WAGFZ from S073
BADI_SD_V46H0001 SD Customer functions for resource-related billing
Regards,
Satish -
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. -
Using a variable not in the Export,Import, table Parameters in USER EXIT
Hi all,
During the Invoice Creation, I need to add an entry in the VBFS table, so that it will be displayed in the system log. In the FM 'RV_INVOICE_CREATE', the structure corresponding to it is XVBFS. There is a user-exit CALL CUSTOMER-FUNCTION '002', in this FM 'RV_INVOICE_CREATE'. But the import, export or Table Parameters does not have XVBFS.
How can I use XVBFS inside the User exit?..
Please help.
Regards,
AshaHi,
I dont know whether this will help u...
write this in user exit...to access variables/tables of main program..
FIELD-SYMBOLS: <komv>.
ASSIGN ('(SAPLMEPO)TKOMV[]') TO <komv>.
where.. SAPLMEPO is the main program...and TKOMV[] is a internal table in SAPLMEPO.
regards
Sukriti....
Maybe you are looking for
-
To open a PDF file in Windows 8 Desk
Would you please tell me how to put an icon of Adobe in the Desk page of Windows 8?
-
Active Directory client not dynamically updating DNS
Hi, There has been some other issues mentioned on other threads regarding the Active Directory Plugin within Lion, it does appear to be flaky. I just wanted to make sure that the issue I'm having is not down to a mis-config by myself. We have several
-
How to get status of server side
Dear All, I have developed the client program for communicating with server (Which can be developed again java or any language and on running on any platform ). So now I can connect with server and continue the communication but suppose if server dow
-
Does A- 1 can use the otg to connect the micro usb to the usb drive?
We have a question? Can we use the otg in A 1 to connect the micro usb to the usb drive?
-
How can I authorize my laptop?
I got a new laptop so I tried to authorize but got the message about too many activations. When I tried to contact customer support and begin a chat, there's an option to "select the program you're having a problem with" and digital editions isn't on