BADI for partner function
Hi all,
I'm looking for a badi for partner function in trx ME21N, ME22N.
In the tab Partners of the header of PO there is a table with partner function.
Any ideas?
thanks
enzo
Hello Enzo
The BAdI you are looking for is (most likely) <b>ME_PROCESS_PO_CUST</b>.
If you want to check data then the method of choice <b>IF_EX_ME_PROCESS_PO_CUST~CHECK</b> (<i>closing check</i>).
The CHECK method provides you with IM_HEADER (IF_PURCHASE_ORDER_MM). If you look at the implementing class CL_PO_HEADER_HANDLE_MM you have a method IF_PURCHASING_DOCUMENT~GET_PARTNERS available.
Please search the SDN forums for postings related to <b>ME_PROCESS_PO_CUST</b>. I have posted several answers to this topic.
Briefly, here is the way to go:
method IF_EX_ME_PROCESS_PO_CUST~CHECK.
DATA:
ls_header TYPE MEPOHEADER,
lt_partners TYPE MMPUR_PARTNER_ALL_TAB,
ls_partner LIKE LINE OF lt_partners,
lo_po_doc TYPE REF TO IF_PURCHASING_DOCUMENT.
ls_header = im_header->get_data( ). " header details
lo_po_doc ?= im_header. " casting to purchase document
lt_partners = lo_po_doc->get_partners( ).
LOOP AT lt_partners INTO ls_partner
WHERE ( parvw = '..'
AND parno = ls_header-lifnr. " vendor
EXIT.
ENDLOOP.
IF ( syst-subrc = 0 ).
" partner = vendor -> do something, e.g.
ch_failed = 'X'.
ENDIF.
endmethod.
Regards
Uwe
Similar Messages
-
Find collective Search Help for partner function at runtime
Hi experts,
I have a screen very similar to VF05. When I enter the partner function, the corresponding field for the partner function, I want a collective search help to open.
If I enter the partner function - Employee responsible, then the search help PERM has to be called or for partner function Payer, I want the search help DEBI to be called. Can anyone let me know how can I get the related partner functions, without hardcoding for every partner function. Something similar to the VF05 report.
Warm Regards,
AbdullahHi,
Collective search helps:- Combination of elementary search helps. When we need to fetch data based on multiple selection criteriau2019s. More than one tables are Selection from multiple tables
Steps for creating collective search help.
1) Enter the search help name and click on create.
2) Choose Collective search help radio button option as the search help type.
3) Enter the search help parameters.
Note that there is no selection method to be entered for a collective search help.
4) Instead of the selection method, we enter the included search helps for the collective search help.
5)We need to assign parameters for each of the included search helps.
6) Complete the parameter assignment by clicking on the push button.
7) Collective search help offers the user to obtain F4 help using any of the included search helps.
Hope this helps u.
thanks -
Partner (vendor no.) does not exist for partner function LF
I am trying to trigger outbound i doc from PO messages, and im getting this message, also im just getting this for UB type order and not regular PO NB.
Partner 970023 does not exist for partner function LF
Message no. VN006
Diagnosis
Partner does not exist for the partner function selected for this
transaction.
Procedure
Check your input.Hi Ankit,
Please check the Partner Tab in Header and see whether partners have been determined for the PO. If that is not determined, then check the customization settings in NAST.
You can also refer to SAP Notes 117537, 407600, 69492 and 459350.
Hope this helps.
With Best Regards
Srinivas -
Partner does not exist for partner function LF
Hi gurus
while trying to print the output of a Purchase order thru ME22N, after selecting Print output, Output type as Purchase Order (NEU), and a partner, the system isues a arning message "Patner xxxx does not exist for partner function LF".
Can someone pls explain what does this imply?
Regards
DeepakHi
xxxx is just a string to show you the Warning Message that appeared. Actually it was a Partner that was missing for the Patner Function LF.
Regards
Deepak Prasanna S -
No address found for partner function type : 0002 and 0013
Hi Experts,
I have SRM PO and it is partially confirmed ,requester and Goods receipant has left the organisation, now another user trying to post the confirmation, getting the error :
No address found for partner function type : 0002
No address found for partner function type : 0013
We understood that requester and Goods receipant has left the organisation and this user is not there in organisation structure, hence we are getting the error.
Now we are trying to amend requester and goods receipant in the PO with new user(alreday there in the Orgn structure) but system is not allowing to do the same.
How can i post the confirmation now?? is ther any way to post the confirmation without amending the PO ?
Thanks in advance
Suresh.AHi
Please find the below steps
Step1:
Fetch the shopping baskets GUID using the table CRMD_ORDERADM_H.
Creator of shopping basket -CREATED_BY
Shopping basket no.: OBJECT_ID
Creation date: CREATED_AT
Fetch the shopping baskets GUID.
Step 2
Fetch the GUID of Alternative goods recipient:New User who would be doing Goods Receipt
Use the Function Module'HR_OBJECTBUPA_GETBUPA'
Use function module BBP_PD_SC_GETDETAIL input the shopping basket and GUID.
Fetch E_PARTNER-PARTNER_GUID's of Partner type 00000016 and 00000020.
Go to CRMD_PARTNER table for the above GUIDs replace the PARTNER_NO for 16 and 20
with PARTNER GUID of the alternative goods recipient.
Thanks
Trinath -
Userexit for partner function changed
What is the userexit for partner function changes in VA01 or VA02.
Hi,
Please check this:
EXIT_SAPLEINM_002
Thanks and best Regards,
Suresh -
Hi everybody,
I get the following error in a Opportunity:
Item 100: Address changes for partner function Projektorganigramm (assignment BUYING-CENTER) not possible
Can anyone tell me what is wrong and how I can fix this please?
Thank You!
Regards BjoernHello Bjorhn,,
Go to the spro-->crm-->basic functions-->Partner functions-->partner determination procedure.
select the procedure set for opportunities. now Select the Check box for Changeable address which means one will be able to change the address if the partner function has many addresses.
see the attatchment snapshot
please reward the answer and like if my answer if helpful
.Regards
sai -
Error: No address found for partner function type Ship-To Address
Hi All,
I am working in SRM 5.0(patch level1) and for PDP scenario
When I am creating service PR in R/3 with two header items and each header item has only one below line item (service item), then it transfer in SRM properly. But if I am maintaning more than one below line item for each header item it does not transfer in SRM. In SLG1 error is coming as "No address found for partner function type Ship-To Address".
Please suggest some solution.
Thanx in advance
SomaHi Moon
Please check this note
1166211 - Delivery address from Vendor not transferred - Ext. Req.
or do you maintain ADDR_SHIPT maintained in PPOMA_BBP
regards
Muthu -
Error "No address found for partner function type 0025 "
Hi,
Could anybody suggest me the issue as in below?
When I would like to change a PO through process PO (in SRM) I have received an error as "No address found for partner function type 0025". But the business partner looks fine in case of address matter. Only the things are missing are
PO Box address
PO Box
Postal code
Company postal co
Thanks,
PijushHi Pijush,
I have seen this error many times, the user was probably deleted from the SRM system and so no subsequent actions can be taken on open documents linked to this user.
The SRM system behaves like this
In Standalone scenario:
SRM system is standalone system not connected with HR system
If we try to delete the user locally the system will check is there any
open documents if any open document exists
then the system won't allow to delete the
users which inturn won't delete the associated business partner
relationship.
So the user as well as the business partner relationship (BUT050 ,
BUT052) won't be deleted.
SRM with HR Replication scenario:
All the users are maintained in HR system and the HR system is the
leading system.
If the employee leaves the organisation, from HR side the requirement is
that the user has to
be deleted immediately. So here we can't check whether the user has open
documents in child system (i.e, SRM system), even if
we check and block the deletion of user in HR, from HR side this is not
acceptable from HR the user should be removed immediately. If the user
is deleted or delimited in HR side when the user is replicated to SRM
system the BP relationship will be deleted this is the reason that the
open documents could not be processed.
So the please follow either of these options,
1. Before deleting a user from HR make sure that all the open documents
are completed or assigned to some other
active requestor / recipient.
2. All the open documents associated to the deleted business partner or
user should be archived.
3. If the user is deleted in HR before closing the documents and still
want to access the open documents of the deleted user / Business Partner
they can use the Z Report which will replace the deleted Business
Partner with active business partner.
I have attached the report Z_change_pguid_002_new.txt please use
this report to replace the deleted Business partner with the active
business partner.
Hope this helps,
Kind Regards,
Matthew -
MB01 is giving error:No entry for partner function '' in table TPAR
MB01 is giving below error when i am trying to trigger ALE idocs using output type 'ZWE2'
Error:'No entry for partner function '' in table TPAR'.
I am unable to find what could be the above error and how to rectify.
Any help in this regard would be appreciated.
Thanks!There is a partner function code for which there is no configuration data in TPAR. What is the partner function? Can you find that and verify that it is correct, or correct it to a value that is configured in TPAR?
-
Issue with Shopping Cart ... No Address Found For Partner Function etc.
Hi Experts,
I am facing an issue in EBP.
Using SRM 5.0 classic scenario.
While creating a shopping cart we are experiencing the following ERROR: "error in system, shopping cart cannot be processed any further."
The details of errors are as below:
No data found for contact person XXX. inform System Administration (XXX is the BP ID of the user)
No address found for partner function type Goods Recipient
No address found for partner function type Requestor
Please help me in overcoming the issue.
Thanks,
PratyushThanks for your reply
I have already checked that the BP number is present.
However using bbp_bp_om_integrate i got the errors:
using user ID from su01: I got a red signal in Object Existence / Consistency with error
"Business Partner for user XXX is missing or containing errors"
using CP & BP : I got a red signal in Address consistency & following errors:
"Error determining address for employee XXXXXXXXXXXXXXXXXXXXXXX" & "Address for person (BP) XXX missing"
Please help -
BADI for Partner Determination in Sales Order
Hi Experts,
Please guide me on this issue:
Issue: When we create sales order in CRM..through org data profile...org entities will be derived automatically and based on this partners also determined.However my situation here is something differrent.We are maintaing one Z table for sales office and vendor number.Once ord data is derived in sales order,custom defined program should read sales office from org data and check the correspoding entry in z table,if its find match....put the entry as a partner function under partners tab.
I am searching for BADI's which will trigger after the org data determination and populate the vendor number as a parner function under partner tab.
I tried using all standard partner badi's and sales order badi's...but no luck.
Please help.
ThanksCOM_PARTNER_BADI should help.
We have successfully used method DETERMINATION_ADD_IN_3 to achieve something similar.
Regards,
Kaushal -
Derivation Rule for Partner Function
Dear Experts
I have some questions about COPA derivation rule.
I attempted to input a number for remark by using the partner function u201Ccontactu201D field in biling table (KNVP-PANRN).
Itu2019s always occurred error while SD entered PGI after I configuring the derivation rules.
My derivation rules as following:
Source Fields
KNVP KUNNR >>CO-PA KNDNR
KNVP VKORG >>CO-PA VKORG
KNVP VTWEG >>CO-PA VTWEG
KNVP SPART >>CO-PA SPART
KNVP PARVW >>GLOBAL USERTEMP3 (use MOVE for constant=CP in last step)
KNVP PARZA >>GLOBAL USERTEMP4 (use MOVE for constant=000 in last step)
Target Fields
KNVP PARNR >>CO-PA WW001
Seems probably have some problems.
Could Experts give me a hint?Problem solved.
I just set my constant numbers wrong. -
Partner Number for Partner function in Vendor master definition
Dear Gurus,
I need to define a new vendor through Tcode: Xk01 / Mk01, but while defining particular screen know an partner functions, in this its asking partner number in lookup where no data ia avalibale to select and subsequently not able to save the vendor.
Please help.
Regards,
Prashanth PaiHi,
Before vendor creation, you have following configuration steps:
1. Create Vendor Account Group.OBD3
2. Maintain Number Ranges from Vendor account Group:XKN1,
3.Assignment of Number ranges to Account Group,OBAS
4.Partner Function: SPRO->MM->Purcahsing->Partner Determination-> partner roles->Permissible partner role sper account group
5.Partner Schema:
SPRO->MM->Purcahsing->Partner Determination->Partner setting in Vendor master record-> Define partner Schema
6.Assgin partner schema to accont Group
SPRO->MM->Purcahsing->Partner Determination->Partner setting in Vendor master record-> Assgin partner schema to account Group.
& then after above steps, you can create vendor with XK01 t.code by entering company Code,Vendor account group and purchase organisation.
Note:what is partner role:Generally during in your business transaction process we are specifying the roles involved by vendor i.e..... vendor act as a Goods Suplier, Ordering Address, Invoice Processing. Here all these functional activities by vendor we termed as partner functions (GS,IP, OA) in partner determination Process. SAP has standard Partner role and its 2 characters.
Example: A company supplying goods/material having plant in Hyderabad, south India branch office is in bangalore and head office is in Delhi.So hyderabad plant is your"GS",banglaore office is your"OA" and Delhi office is "IP"where you pay to Vendor. for the procurred material/goods.
Regards,
Biju K -
Search help for partner functions in the message to get organisation unit O
hello,
Depending on the Business partner category (Organisation, Person,Group) the search help of the partner function in a message should return the corresponding partner list.
This is working fine for standard partner functions like SLFN0002 (reported by=P) SLFN0003 (support team=O). When doing a searchhelp we get a list of organisation for the "support team" and a list of users for "reported by". this is a normal behaviour.
When copying the partner function SLFN0003 into a new ZLFN0003 and including it in the partner profile of the message the search help returns all business partners of category P but should return category O. The function category 0016 (service team) is well defined for ZLFN, I guess the link to business partner category is made indirectly there but I might be wrong.
Does anyone of you experience the same behaviour ? Any idea how to correct this ?
thank you for your help
XavierHi,
Collective search helps:- Combination of elementary search helps. When we need to fetch data based on multiple selection criteriau2019s. More than one tables are Selection from multiple tables
Steps for creating collective search help.
1) Enter the search help name and click on create.
2) Choose Collective search help radio button option as the search help type.
3) Enter the search help parameters.
Note that there is no selection method to be entered for a collective search help.
4) Instead of the selection method, we enter the included search helps for the collective search help.
5)We need to assign parameters for each of the included search helps.
6) Complete the parameter assignment by clicking on the push button.
7) Collective search help offers the user to obtain F4 help using any of the included search helps.
Hope this helps u.
thanks
Maybe you are looking for
-
Mssql single quote problem!
Hi, I user servlet to update MS SQL2000. My problem is there is a single quote inside a text string! I can't use double quote for string, as it is not a valid statement for MSSQL. I need to use single quote, but there is single quote inside the strin
-
Photo montage Ken Burns effect w/ variable intervals synced to music cues
I was thinking of buying Final Cut Pro to create a photo montage because iMovie does not let you define the specific timings for each photo montage. For example, I need one photo to show for 3 seconds and transition to another photo that lasts 5 seco
-
I just downloaded Skype, but my video does not work. What do i need to do to make it work?
-
Application Date Format in Interactive Reports
Hi, What should we define in Number/Date Format in interactive reports column attributes such that it will use application level date format? Thanks
-
Package.Class extends Package.Class ??
Is there any way I can make a class in a package extend another class in the same package://---- File: JrcCode1.java package jrc; public class JrcCode1 { public JrcCode1() { System.out.println("JrcCode1"); //---- File: JrcCode2.java package jrc