User Exit to validate sold to party field
Hi Friends,
Is there any user exit/ BADI to validate sold to party field in VA01. This exit should not only apply to the VA01 transaction but anywhere customer number is created in SAP. It should be possible to find a user exit that is called right at the time of entry of the customer number so that the search in the database can be intercepted and search by either number and return the one found.
I found V45A0002 ...but this is for predefine values on sold to party field.
Please Note: - It should be common user exit to validate sold to party and customer number in any trn.
Points will be given for helpful answers.
Regards,
Hari krishna
Hi Nagaraj,
Thanks for your reply.
In this include (MV45AZZ), It will stop at the user-exits USEREXIT_MOVEFIELD TO_VBAP, USEREXIT_FIELD_MODIFICATION.
But however, I tried to create/change customer in XD01/XD02...It was not stopping in MV45AZZ at any of the exits.
Any alternative solution or Is there any exit/ BADI ???
Regards,
Hari krishna
Similar Messages
-
User Exits to validate Fields in BP transaction
Hi,
Anyone Send me the User Exits To validate the Screen Fields of Transaction BP.
with Regards
kesavaperumalPlease Check Following BADI's.
BUPR_FILTER_RELSHP_2 Filtering or Hiding of Relationships Within the GUI
BUPA_ROLEGRP_HIDE Badi For Hiding Role Groups
BUPA_NUMBER_GROUP Badi for presetting the number grouping field
BUPA_INITIAL_SCREEN Initial Screen for BP creation
BUPR_ENQUEUE_TEST INTERNAL: Tests Whether BP is Locked
BUPR_RELSHP_OVR_EXT SAP BP: Extension of the Relationship Overview
Regards,
Swamy. -
How to automatically set value of sold to party field in crmd_order screen?
Hi Experts,
We have a requirement where we have to automatically populate a standard SAP screen field when the screen opens. The T-code is crmd_order and the field is present in the fast entry tab whenu201Dcreate support messageu2019 is clicked. Now I am trying to achieve this by implementing the BADI which this T code calls. There are no user exits to this as per my understanding. There are some 20 BADIs this Tcode calls before opening. I have tried implementing almost all of them but the value is not getting reflected on the screen field. List of BADIu2019s called are as below.
We are trying to automatically populate the sold to party field based upon the guid of the support message. Based upon this guid of the support message we are fetching list of partner function from u201CBAPI_ACTIVITYCRM_GETDETAILMULTu201D. Then we are taking the partner function value of u201CSLFN0002u201D. The BP number captured from this partner function will be passed to u201CBAPI_BUPA_ADDRESS_GETDETAILu201D to get the country of the super user. Based on this country the sold to party is to be determined.
We have made a Z table for fetching this sold to party/region based on the country derived from above logic:
Z Table
Country Region/Customer/sold to party
IN IN/BAN-C1
BD IN/BAN-C2
US US/CAN-C1
Now these unique (sold to party/region) values based on the country has to be populated automatically on the sold to party field of the screen (CRMD_ORDER).
The logic for deriving the same is correct and the main problem is to default it on the screen field.After getting the value of the required field I am trying to display it on the screen by using the standard FM u201CCRM_ORDER_MAINTAINu201D and passing the value in IT_PARTNER.The FM is getting executed but the value is not getting reflected on the screen. I donu2019t understand where it is going wrong I am not able to solve this.Kindly let me know if anyone can throw some light on this.
Regds,
vlpHi vlp,
You can achive it with BAdI:CRM_ORDER_FIELDCHECK. Actually I've implemented the similar case with this BAdI. This BAdI is called many times because it always works when any field is changed. So you should restrict the timing your logic works.
Regards,
Masayuki -
Sold to party field should be editable and non-Editable for diff sales org
Hi,
in creation of SO,i want SP field should be editable for Domestic sales org and Non Editable for Export sales org.
please help on this.Dear Mohanty,
In sales order, for domestic sles SP is editable - It is Normal process.
Non Editable for Export sales org.
In this how user will enter the sold to party while creating sales order.
And did you create export customer classification in Sales org rather Distribution channel.
Regards,
Mani -
User exit or BAdI name for Netprice field in PO
Hi All,
Can you please give me the name of the BADI or user exit to update the net price field in automatic creation of PO ME59N.
In this case I am creating the PO based on a PR the net price field has to pick the price from the Sales Order.
Please help me out in this.
Thanks,
Praveen<b>User-Exits</b>
MM06E010
MM06E009
MM06E008
MM06E007
MM06E005
MM06E004
MM06E003
MM06E001
MEVME001
MM06E011
MEQUERY1
MRFLB001
MMFAB001
MMDA0001
MMAL0004
MMAL0003
MMAL0002
MMAL0001
M06B0002
M06B0001
LWSUS001
LMEXF001
LMEQR001
LMELA010
LMELA002
LMEDR001
AMPL0001
MELAB001
LMELA002
LMEDR001
AMPL0001
MELAB001
MEFLD004
MEETA001
ME590001
M06E0005
M06B0003
M06B0004
M06B0005
M06E0004
<b>BADIs</b>
ME_HOLD_PO
ME_CIN_MM06EFKO
ME_CIN_LEINRF2V
ME_CIN_LEINRF2R
Greetings,
Blag. -
Customer and sold.to.party field
Hi,
I have a question related to cproject I hope someone can help me.
We would like to use customer and sold-to-party fields for a project. When we select these field , 'BP' values are retieved. We would like customer values ( data from ERP) are showed in this matchcode, Is this possible? ( link customer field to ERP).
In the case only BP values can be retrieved from these fields, how can I difference from employee and customer?
I'll appreciate any help!
Thanks a lot,
SaraHi,
The standard search help would show only the Business Partners for these fields. If you want to use these fields, you will have to create corresponding BPs for your customers.
A work around for this would be to have different number range / numbering convention for BP as customers and BPs as employees. For e.g. use C0XXXXXXXX for customers and use E0XXXXXXXXXX for employees.
You may also check out the search criteria base on BP roles in the same search help as another work around.
Let me know if this helps.
Regards,
Vivek -
MB56-sold to party field value is not appearing
Hi,
In MB56 - Batch where used list report, there is no data flowing for sold-to-party field. Sales order is displayed and delivery also performed for the same. But, still there is no sold-to-party data.
Mean while, it shows sold-to-party value against some STO transactions in MB56.
Kindly help me out to solve this problem.
Thanks in advance
Regards
SudharHi Sudhar,
Just change the Layout, you should see the Outbound Delivery/Sales Order/Sold-to-Party information.
Thanks -
Hello all,
I recently add a new sales order type and then I try to create a sales order using the new creating order type. After I filled in the first screen and entered in the second screen, I found the sold to party field was disabled and can't be used.
Can anyone help on this issue? How can I solve the problem?
Thank you.
slaiDear Sai
Do you mean it was in display mode???
If it is so then check your settings in VOPA for sales document header and check if in partner procedure you will see SP is not changeable.
If you are facing another problem check in VOV8 if you are using Transaction Variant ? and in SHDB check the transaction variant is OK.
If some other issue is thr then do right back
Regards
Jitesh -
Hi,
I am unable see the sold-to-party field in this function module crm_order_read....and which parameter i will check....Hi Pavan,
I think you might have already posted same thread in other space,
There will not be any field called directly sold to party in crm_order_read function module.
We have table type parameter ET_PARTNER, you can get sold to party partner number corresponding to sold to party function.
If you want to see the sold to party id you should know the partner function of the sold to party.
Refer to this thread
i am unable see the sold-to Party in this function module crm_order_read
Best Regards,
Dharmakasi. -
User Exit for correct ship-to Party while Creating Sales Order
Dear Friends,
Pls let me know which User Exit should I use to validate the Ship-to Party on the basis of Sold-to Party, while creating a sales order.
In other words we wish to make sure that the user gives the correct Ship-to party corresponding to the Sold-to party, while creating a sales order.
Regards,
Alok.Dear Naveen,
Thanks for replying.
I do agree with you that SAP may validate the Ship-to Party in accordance with the Sold-to Party. But still the user may change that Ship-to Party value and save the Sales Order with a wrong Ship-to Party.
Here, my user wants a check/validation that no one should be able to save the sales order with wrong Ship-to Party other than the ones defined in Customer Master.
Hope you got the issue now.
Regards and thanks once again,
Alok. -
How to use MV45FZZ user-exits to validate PONumber
I want to detect duplicate PO numbers on sales orders. On VA01 I want to check if for the Sold-to-party is there already an Order with the some PONumber. Code to detect this is simple. The problem is what user-exit routine I should use (and how) in report MV45AFZZ.
There is a form called USEREXIT_MOVE_FIELD_TO_VBKD but how do I know in this routine that the screen field POOrder was changed, and not any other? I would like to make the check only once, after changing VBKD-BSTKD or XVBAK-KUNNR, not to any screen-field change.
Can someone give an help on this user-exit usage?
Thanksyes. I didn't knew there were standard validations for duplicate POs
Where do I configure thais? in Sales Document types?
Thanks -
User Exit in VA02 for Warranty Status field change
Hi Gurus,
Can any one pls suggest the user exit that gets trigerred when there is a Warranty Status Field change in the Repair Order of Order type ZRAS and when the change occurs it has to update the work center of the Corresponding Service Order.
Pls help me with this issue.
Regards,
VIJAYB.Transaction Code - VA02 Change Sales Order
Enhancement/ Business Add-in Description
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
No.of Exits: 15
No.of BADis: 2 -
VF01 - Ship to party and sold to party fields
Hi,
I am changing user exit in VF01. Currently logic use VBRP-KUNWE Ship to party. But we need to refer to sold to party.
How can I get sold to party from ship to party?
Thanks,
RupaliRather than get the sold to party from ship to party, rather go back to the underlying sales order and get the sold-to party from the partner information in this particular transaction.
-
User exit for IW31 which capture screen field Po number
Hi all
I have the requirement that when we save work order created by IW31. It shud trigger any user exit or BADI.
In that we have to validate the screen field Purchase order number BSTKD from the Ztable entries.
My problem is that no user exit passes this value as export parameter. so without that how can I get this value in the include program. Please let me know the user exit which hit after save and passes PO value so I can validate this field. Thanks!!!
Quick answer will highly be appreciated!!
Nikhilesh VyasHello Kiran
Thanks for ur reply
But this Badi does not have purchase order number as parameter in any method which call after user press save button.
Please let me know any other alternative if u have ...thanks!! -
User exit for me 51 to put field descryption for ekbn-sakpto in screen 505
hi .
i have a requirement to put field descryption in screen 505 for me51 tcode(program sapmm06b) for field g/l account in screen 505(Account Assignment for item 00010).
waiting for your resposne.
bye.
sita.Hi Seetaram,
Hi,
By using the below code you can find the User exits for a particular TCODE.Execute this program and the TCODE in selection screen.
REPORT z_find_userexit NO STANDARD PAGE HEADING.
*& Enter the transaction code that you want to search through in order
*& to find which Standard SAP® User Exits exists.
*& Tables
TABLES : tstc, "SAP® Transaction Codes
tadir, "Directory of Repository Objects
modsapt, "SAP® Enhancements - Short Texts
modact, "Modifications
trdir, "System table TRDIR
tfdir, "Function Module
enlfdir, "Additional Attributes for Function Modules
tstct. "Transaction Code Texts
*& Variables
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
*& Selection Screen Parameters
SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK a01.
*& Start of main program
START-OF-SELECTION.
Validate Transaction Code
SELECT SINGLE * FROM tstc
WHERE tcode EQ p_tcode.
Find Repository Objects for transaction code
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 = enlfdir-area.
MOVE : tadir-devclass TO v_devclass.
ENDIF.
ENDIF.
Find SAP® Modifactions
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.
Take the user to SMOD for the Exit that was selected.
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.
Reward if helpful,
phani
Maybe you are looking for
-
How do I change the default font In Pages 08
When I open a new blank document the Font is Helvica. I want Verdana to be the default. This seems like a dumb question, but I can't see any way to do it. Thanks for any help. Owen
-
Opening .pdf files in Firefox 3.6.13 spawns "infinite" tabs -- amazing!
If I click a link to a .pdf file, Firefox will open up tab after tab after tab -- they go shooting across the top of the tab bar (it's incredible). I can use Task Manager to force FF to quit (and then manually end the Firefox.exe process since it doe
-
Migrated using PST, problem with replying to old mails now
Hi, we have migrated from Exchange 2007 to Exchange 2013. We built a new Exchange 2013 organization with new Active Directory... All new :) After exporting all mailboxes to PST's, we imported them using new-mailboximportrequest... Everything works fi
-
I just got a K450e desktop. I have used a Toshiba 23" HGTV as a monitor on two other computers. When I connected to the new K450e, the system recognized the TV. However, the TV won't show the icons on either side, so I can't navigate. I changed the r
-
Dreamweaver CC generates one of 3 error messages when using find and replace is used more than twice in succession. "While executing onLoad in bc_afterSave.htm, the following JavaScript error(s) occurred: At line 188 of file C:\Program Files (x86)\Ad