Validating Partners in VA01
If I want to validate the partners entered in VA01....i.e. if I enter a wrong partner then I'll display a error message but afte this the entire table control for partners is getting disabled, how can we keep it enabled inspite of giving the error message..so that I can allow user to enter a correct value without having to go back and coming again.......
Hi,
Try this user exit: V46H0001 or
try the badi:BADI_SD_V46H0001.
If it is helpful rewards points
Regards
Pratap.M
Similar Messages
-
USER_EXIT-MV45AFZB FORM USEREXIT_CHECK_VBAP
HI ALL...I HAVE ONE OBJECT THAT IS
IWANTO ADD 3 FIELDS FROM ADRC(POST_CODE1,REGION,COUNTRY) TO VBAP(ZZSHIPTOPC,ZZSHIPTOREG,ZZSHIPTOCO).
FOLLOWING THIS LOGIC....
1.ON USER EXIT CHECK INTERNAL TABLE XVBPA FOR THE PARTNER FUNCTIONS AT THE HEADER OR ITEM LEVEL.
2.THIS UE IS VALID FOR TC VA01 &VA02 ONLY
3.BEFORE DOING THE SEARCH IN ADRC CHECK THAT THE MATERIAL IS CONFIGURABLE(MARA-KZKFG = 'X').
4.MOVE FIELDS TO NEW ZZ ....FIELDS IN VBAP.
PLZ WRITE THIS OBJECT ANY BODY KNOW'S*& Include ZPLM_ENG_VC_REFCHAR
TITLE: POPULATE ZFIELDS IN TABLE VBAP BASED ON DOCUMENT LINE ITEM SHIP-TO PARTNER VALUES.
ZFIELDS REQIRED ARE POSTAL CODE,REGION,AND COUNTRY.
TRANSACTION: VA01,VA02.
PROGRAMMER: JANARDHAN REDDY.
DATE:07/24/2008.
*DATA DECLARETION.
TYPES:BEGIN OF STR_ADRC,
POST_CODE1 TYPE ADRC-POST_CODE1,
REGION TYPE ADRC-REGION,
COUNTRY TYPE ADRC-COUNTRY,
END OF STR_ADRC.
DATA:WA_ADRC TYPE STR_ADRC,
WA_KZKFG TYPE MARA-KZKFG,
TAB_ADRC TYPE TABLE OF STR_ADRC.
TYPES:BEGIN OF STR_VBAP,
ZZSHIPTOPC TYPE VBAP-ZZSHIPTOPC,
ZZSHIPTOREG TYPE VBAP-ZZSHIPTOREG,
ZZSHIPTOCO TYPE VBAP-ZZSHIPTOCO,
END OF STR_VBAP.
DATA:WA_VBAP TYPE STR_VBAP,
TAB_VBAP TYPE TABLE OF STR_VBAP.
IF SY-UNAME = 'OFF1'.
IF SY-TCODE EQ 'VAO1' OR SY-TCODE EQ 'VAO2'.
*CHECK INTERNAL TABLE XVPA.
LOOP AT XVBAP.
SELECT SINGLE KZKFG FROM MARA
INTO WA_KZKFG WHERE MATNR = XVBAP-MATNR.
IF WA_KZKFG = 'X'.
READ TABLE XVBPA WITH KEY VBELN = XVBAP-VBELN "Step 2
POSNR = XVBAP-POSNR PARVW = 'SH'.
ENDIF.
IF SY-SUBRC <> 0.
READ TABLE XVBPA WITH KEY VBELN = XVBAP-VBELN "Step 3
POSNR = XVBAP-POSNR PARVW = 'SH'.
ENDIF.
IF SY-SUBRC = 0.
*GATHER FIELDS FROM ADRC
SELECT POST_CODE1 REGION COUNTRY FROM ADRC INTO WA_ADRC "Step 4
WHERE ADDRNUMBER = XVBPA-ADRNR.
ENDSELECT.
ENDIF.
IF SY-SUBRC = 0.
*MOVE THE FIELDS TO Z..FIELDS
MOVE :WA_ADRC-POST_CODE1 TO XVBAP-ZZSHIPTOPC,
WA_ADRC-REGION TO XVBAP-ZZSHIPTOREG,
WA_ADRC-COUNTRY TO XVBAP-ZZSHIPTOCO.
MODIFY XVBAP TRANSPORTING ZZSHIPTOPC ZZSHIPTOREG ZZSHIPTOCO.
ENDIF.
CLEAR:TAB_ADRC,WA_KZKFG.
ENDLOOP.
ENDIF.
ENDIF. -
VA01 Error Message - Partners Validation
Hi Experts,
I have written a code to validate the partners(Sold-to & Ship-to) while creating a sales order in VA01 (program 'MV45AFZB') ( user exit form: USEREXIT_CHECK_VBAK).
If an invalid relationship is detected, this enhancement will display an error message and stop the sales order creation until the correct sold-to/ship-to relationship is entered or maintained.
I could able to give the error message based on the validation but the all the fields(Sold-to & Ship-to) on the screen are grayed out and are not ready for input.
Please suggest if there is any way to make these fields input enabled.
We are using SAP version ECC 6.0
Thanks in advance,
AnilHi Keshav,
Thanks for your reply. By including the code in SAVE_DOCUMENT_PREPARE of MV45AFZZ I could able to give the error message. Still all the fields are grayed out. and I need to rerun the transaction VA01 with the correct sold-to and ship-to partner data.
Please suggest is there any other way to correct the ship-to data without re running the transaction VA01. After displaying the error I want the Ship-to and sold-to fields should be displayed as input enabled fields.
Thanks,
Anil -
Problem with validating a field in VA01/VA02
Hi,
I was required to add validation for Material Group 3 (VBAP-MVGR3) in 'Additional Data A' tab (VA01/VA02). The corresponding screen number in 4459. In the PAI section, there is a module called 'vbap_bearbeiten'. In this module, there is an enhancement point called 'VBAP_BEARBEITEN_10 '. I created an implementation of this enhancement point to call a validation subroutine which i put in user exit MV45AFZZ. My problem is whenever a wrong entry is entered for that field, the whole screen in the 'Additional Data A' tab turned grey and disabled for user entry. Re-entry for the correct Material Group 3 is not allowed.
Initially, i used a different approach. I made a core change to screen 4459 by adding a statement like below in the PAI section :-
FIELD vbap-mvgr3 MODULE zsd_check_mvgr3 ON REQUEST.
In fact, the validation worked without any issue. User was prompted for an error message and then was allowed to re-enter a correct entry for that field if a wrong entry was entered initially. However, since this approach involved a core change, it was not allowed by my superior and he demands for using the enhancement framework approach.
Kindly please let me know if you have any idea of resolving this issue. Thanks much in advance.Hi guys, thanks much for your feedback.
I tried to call my validation subroutine from USEREXIT_CHECK_VBAP (MV45AFZB). However, it did not work as well. Although the validation subroutine was successfully called in USEREXIT_CHECK_VBAP and error message dialog box was shown if entry was not correct, but when i clicked on the dialog box / pressed the 'enter' key, the 'Material Group 3' field was not opened for re-editing (it was still shown in grey and disallowed for user entry). In fact, through debugging, i found that USEREXIT_CHECK_VBAP was called again (after i pressed the 'enter' key) and it caused the program to enter an infinite loop.
On the other hand, i also tried to use USEREXIT_MOVE_FIELD_TO_VBKD (MV45ZFZZ). Unfortunately, i also met with the same issue as described above. Kindly please let me know if there is a way to solve this issue. Thanks. -
Error in VA01: Message 00002 'Enter a valid value'
Hello Experts! When I try creating a sales order in VA01 after entering the order type and other mandatory information, I get the error message (no. 002 of class 00) saying 'Enter a valid value'. When I searched other threads in SCN with the same message, I found that this is probably because of authorizations or incorrect values in user parameters. I executed SU53 immediately after the message was issued and found that the check was successful. I even checked the profile parameters for my user ID and everything seems perfect. In fact, I was able to create sales orders until two days earlier and no user settings were changed since then. I tried creating orders from other user IDs and the same message is issued.
after entering the order type and other mandatory
information, I get the error message
If possible, share here after entering which mandatory field, system was throwing this pop up error.
G. Lakshmipathi -
Validation of document type in VA01
23.12.2008
Hi Gurus,
We create a Sales Order (eg. ZXXX) through a Z-development. My requirement is that this particular document type should not be created using t.code VA01. Need a validation for VA01 in the first screen itself ( where the document type, Sales Org, Dist Channel and Divn is entered) to restrict creation of document type ZXXX thru t.code VA01
RegardsDear Sanjay,
If your requirement is - To restrict Creation of Sales Document Type "ZXXX" with Transaction Code: VA01
which, I have understood from your query:
My requirement is that this particular document type should not be created using t.code VA01.
...the same could be achieved by changing/ modifying the Transaction Group in to Sales Document type.
Path: T. Code: VOV8 --> Key-in Sales Doc. Type --> Go in to Detail-page --> Tab: Transaction Flow --> Field: Transaction Group
If, we maintain entry as "0", the sale doc.will be created with VA01
If, we maintain entry as "1", the sales doc. will be created with VA11.
Note: If, you change Transaction Group to "1" for Standard Sales Doc. Type - OR; it will be created with VA11 and not with VA01.
So, change the Transaction Group from "0" to "as reqd." for Sales Document Type "ZXXX" in VOV8
Best Regards,
Amit -
Recording 'partners' and 'texts' in VA01 Tcode
Hi,
while recording VA01 tcode i'm not able to record partners and also texts.
can any one tell me how to record the partners and texts in VA01.
Thanks & Regards,
Prasad.Prasad,
In regards to Text, you can save text using FM 'SAVE_TEXT' provided you know the ID and OBJECT. For Sales Order Header text usually the OBJECT is 'VBBK' and the NUMBER is '<SO Number>'. For Sales Order Item text usually the OBJECT is 'VBBP' and the NUMBER is '<SO Number><Item Number>'. You will have to find out the ID of the Text from its attributes.
Thanks -
Hi all! I´m facing the problem of trying to make a validation that I was asked for. The thing is, I have to check the field lgtyp (Storage type) for every position of the sales order (VA01). I try a field exit (obsolete, I know!) but it didn't work because the exit is executed before the system picks the material (in that moment the LGTYP that will be used is known, not when the exit runs). Neither I found a helpful user exit.
The best choice would be to add the condition for LGTYP when the system chooses the storage location where the material will be taken from, but i'm afraid that won't be possible because that part is standard (i think) and can't be changed by an user exit.
What can I do??!
PD: The validation I have to make is that storage type (LGTYP) doesn't start with 9 (eg 922).
Thanks in advance!Hi Matias Catanzariti,
As you can find User EXits in this two Includes MV45AFZB / MV45AFZB for VA01.
I guess in Include MV45AFZZ You will find this USEREXIT_SAVE_DOCUMENT_PREPARE.
In exit try to validate your storage type.
Regards,
Suneel G -
When I try to fill out forms on line my I cannot send as it says my email isn't valid. I ve tried with my gmail and my work email and no luck. It will recognise my partners email with no problem. Please advise
Assuming that you can send email on the iPad, Maybe something is corrupt in Safari that is causing this. Try clearing Safari and see if the sites will accept your email address.
Go to Settings>Safari>Clear History, Cookies and Data. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button. -
VA01 Address validation for one time customer
Hi all
In va01 during Order Entry for a One Time Customer a pop-up screen is displayed to enter address details. Currently only the field CITY and COUNTRY is validated.
We need also the STREET, POSTAL CODE and REGION to be validated so that if these are empty then then an error message needs to be displayed.
How can I make the above fields mandatory using user exit/BADI/Screen exitHi,
following exits work with VA01.
EXIT_SAPFV45S_010
EXIT_SAPVSTRM_NO_ATPCHK_001 User Exit: Scheduling without requesting new ATP Check
EXIT_SAPFV45S_001 User Exit Product Selection
EXIT_SAPMV45A_002 Preassignment of Sold-to Party in Sales Documents
EXIT_SAPMV45A_003 Rev.Rec.: Copy Requirements An Header Level
EXIT_SAPMV45A_004 Rev.Rec.: Field Modification Sales
EXIT_SAPMV45A_005 Copyy Packing Proposal Into Outobund Delivery Orders
EXIT_SAPFV45E_001 Update Purchase Order from Sales Order
EXIT_SAPFV45E_002 Filling the Interface Structures for Procurement
EXIT_SAPFV45L_001 Edit Automatically Generated Planning Delivery Schedule Line
EXIT_SAPFV45L_002 Change Calendar used for Deliv. Sched. Split in SAP Standard: KUWEV-KNFAK
EXIT_SAPFV45L_003 Proposal Cumulative Quantity Received by Customer
EXIT_SAPLV45L_001 SD Component Processing: Release - Deviation Check
EXIT_SAPLV45L_002 SD Component Supply Processing: Supplement VBLB Structure
EXIT_SAPLV45L_004 Reset the Cumulative Delivered Quantity At Fiscal Year Change
EXIT_SAPLV45L_005
EXIT_SAPFV45P_001 Function Exit Profitability Segment in Cross-Company Sales
EXIT_SAPFV45S_002 Change Sales Document Using Configuration
EXIT_SAPFV45S_003 Planning Relevance for Requirements from Incomplete Configuration
EXIT_SAPFV45S_004 Planning Relevance for Requirements from Incomplete Configuration Subitem
EXIT_SAPFV45S_005 Display/Change Mode for Evaluating Parameter Validity
EXIT_SAPLV45W_001 SD Service Management: Forward Contract Data to Item
EXIT_SAPLV46H_001 Customer Function When Creating Item
EXIT_SAPLV46H_002 Customer Function for Partner Changes
EXIT_SAPLV60F_001 Editing the Proposed Different Billing Date
MV45AF0Z
MV45AFZ4
MV45AFZA
MV45AFZB Exits utilisateur
MV45AFZC Exits utilisateur
MV45AFZD Exits utilisateur
MV45AFZF Exits utilisateur
MV45AFZH Exits utilisateur
MV45AFZZ Exits utilisateur
MV45AI0Z Exits utilisateur
MV45AIZZ Exits utilisateur
MV45AO0Z Exits utilisateur
MV45AOZZ Exits utilisateur
Maybe one of them can be usefull.
Regards,
RAR
Message was edited by:
R_A_R -
User exit for transaction VA01 for screen validations
Hi All,
I would like to know a user exit where I can validate the entry for "sold to party" on second screen of VA01 transaction against the sales area entered in the first screen.
Also please let me know how to code in "MV45AIZZ" to capture the same if it can be done.
Regards,
Usha.Hi Usha,
Following are the User Exits for VA01.
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
SDTRM001 Reschedule schedule lines without a new ATP check
V45A0001 Determine alternative materials for product selection
<b>V45A0002 Predefine sold-to party in sales document </b>
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
<b>Have a look at V45A0002.</b>
<b>Reward points if it helps.</b> -
VA01 ITEM Level Exits for item validation
Hi Team,
I have a requirement of filling some custom fields upon entering the item in the VA01/VA02.
For that I need to know the suitable exits where I can fill this. The exit has to get triggered when the user gives the material and presses enter.
Please let me know.
Thanks!
Karthik.SHi Karthik,
To trigger your custom code when the user gives the material and hits enter, you can try enhancing VBAP_FUELLEN in the Include FV45PFAP_VBAP_FUELLEN. It should serve the purpose.
If you want to fill custom fields in VBAP as per your logic, you can use USEREXIT_MOVE_FIELD_TO_VBAP.
Hope this helps. -
Search help for VA01 Header Data Partners
Hello Team,
I have a requirement in va01/02/03 , where i will need to create/enhance a search help for one of the partner functions under SO header data.
and values will need to be extracted from a customer Z-Table., taking into consideration the sales area of the SO
Right now, I am not sure, but it looks like it has a search help attached to it, but when i press F4, nothing comes up.
Is there a way i can check if there is any standard search help associated with those screen field?thankyou suresh.
As i have created this search help and in the view i have given the join conditions as
MARA-MATNR = MARC-MATNR
MARA-MATNR = MAKT-MATNR
MARA-MATNR=MVKE-MATNR
and in search help parameters :
VKORG
MATNR
BISMT
MAKTX
MTART
WERKS
PRODH
I took the Hotkey as 1.
Please guide me what are selection conditions that i need to give in my VIEW.
Here iam using 4 tables.
MARA
MAKT
MVKE
Edited by: vinay raj on Jun 12, 2009 6:42 AM
Edited by: vinay raj on Jun 12, 2009 7:18 AM -
Bypassing selected partners address validation
Hi,
I want to bypass the address validation for one specific partner when creating an order using Idocs (ORDERS). This partner is use to store the address of a customer that is buying a furniture from his country to deliver to someone else in an other country.
Exemple:
The sold to party is STORE 1
The Bill to party is STORE 1
The ship to party is CUST 1
The specific partner is CUST 2
We receive a internet order from STORE 1 that we wil bill to STORE 1 and ship to CUST 1but was created from CUST 2.
The CUST 2 information only need to be print on the packing slip so we do not need to validate the information.
Thanks for your answer.
BrunoHello Bruno
You are better off posting this in one of the Technical forums. Work with your middleware consultant too. 2 ideas:
1) I don't think there is a configuration point which eliminates address verification for a specific partner (function).
You have to work on the Function Modules/Programs. One FM I can suggest is IDOC_INPUT_ORDERS and probably you need to work on one of the includes in this to skip address verification for that partner.
Take a look at this OSS note for some ideas where to work.
753153 - FAQ: Customer-functions in IDOC_INPUT_ORDERS
2) Why don't you capture the addressing partner's address in some text and later print it in the Packing List.
Hope this helps, let us know your final resolution. Thanks. -
Geting abort message in VA01.
Hi
I need to validate Usage in the sales tab of a order(Header data).
Validation is to check the partners(National Accts) in the partner tab.
This validation is working fine during change, But in the creation (VA01) it gives an error message if parner is not exits. But after if u press enter it gives abort message saying the line item does not exits.
Pls help me.
How to get rid of this problem.
Thanks and Regards
Harish#1. you can use if condition to differentiate creates and changes to the sales order
if t180-trtyp eq 'H' - for create (VA01)
or t180-trtyp eq 'H' - for change of sales order (VA02)
#2. read xvbpa and yvbpa internal tables and design your logic around it.
read oss notes # 178328 on how to manipulate X and Y internal tables within MV45AFZZ program.
Maybe you are looking for
-
ABAP Runtime error while activating Update rules.
Hi Gurus, Actually we are in NW 2004's SP9. While activating the update rules of cube "0PY_PPC01" it is going to ABAP runtime error. It is giving the key words like "MESSAGE_TYPE_X" "%_T005K2" or "INSTANTIATE". And i apply NOTEs also i am unable to f
-
Getting Canon CanoScan Lide 20 to work with 10.4.10 and 10.4.11
When I upgraded to the latest version of Tiger 10.4.10 and .11 ... My Canon Lide 20 which had been working perfectly for years just stopped working. I tried to download the latest driver from canon but kept getting errors. After several different att
-
How to handle duplicate Primary Key entries in the Source data
This is my first experience with ODI. I receive Source data from the customer that includes a one letter designation, ACTION_CODE, in each record of data as to the disposition of the record: 'R' represents Re-issue in which case I'm to modify the cor
-
Does anyone know how I can convert .SWF files to either Quicktime or .AVI? Thanks, as always.
-
Can't get flash to work on Safari
Hey so recently I wiped my hard drive and reinstalled snow leopard to get rid of a messy computer full of files. Anyways when I reinstalled snow leopard I had to download adobe flash again. The download and install go fine but when I open up Safari i