Multiple partner functions in bdc
hi ,
i am creating a new customer (xd01) master and their are multiple bill to party , ship to party and other extra partner functions are their,how to handle them in the table. i need ur valuable advice.
thanks in advance.
Syed,
There is a SAP standard Program which can accomplish your requirement (Direct Input Method) . Please look into this program RFBIDE00.
first use transaction SXDA_TOOLS
Enter following info:
======================
Object: KNA1
Program type: BINP
Program Method: RFBIDE00
File Type: Physical or logical
File Name: /../../customertest.txt
Now hit the button create file or create file with data.
Once done, you can view a template of how customer info is organized.
From your point of view, you need to create a flat file to populate the structures in the exact format that is required.
Alternatively you can check Bapi for customer
BAPI_CUSTOMER_CREATE, BAPI_CUSTOMER_CHANGE
Similar Messages
-
Multiple Partner Functions for a Sales document Item
Hi,
Can you please advise on modeling scenario for showing multiple partner functions for a given sales document in BI Report ..
Because Key figure values should not be distributed for multiple records just becos of multiple partner functions but users want to see them in the reports along with sales doc and key figure
I am explaining bit more clearly...
I can achieve above requirement by having below model ..
SDOC ITEM PF1 PF2 PF3 AMOUNT
1000 10 AB CD EF 50000
PF : Partner Function
but as I feel it is a complicated task to add more and more columns fro partner functions as and when new partner functions have been added or requested to show by users at sales doc level...
So Can you please advise a better solution to meet the same requirement.
Thanks & Regards,
BRK
Please advise me on this scenario
Thanks & Regards,
BRK
Edited by: BRK on Jul 22, 2008 9:19 AM
Edited by: BRK on Jul 22, 2008 9:29 AMSalesDoc______Item_______PartnerFunction________Amount
80000_________10_____________A1_______________$1000
80000_________10_____________A2_______________$1000
80000_________10_____________A3_______________$1000
This will be the normal display in the cube if there is only one Partner Function.
But what we need is
SalesDoc______Item_______PartnerFunction________Amount
80000_________10_____________A1_______________$1000
80000_________10_____________A2_________________' '
80000_________10_____________A3_________________' '
The Amount (KF) should be populated only for the first record for a SalesDoc / Item combo.
You load data from source to the ODS, say delta.
Suppose that the below record is already available in the ODS.
SalesDoc______Item_______PartnerFunction________Amount
80000_________10_____________A1_______________$1000
And you get the following data as DELTA in the Data_Package from the source.
SalesDoc______Item_______PartnerFunction________Amount
80000_________10_____________A2_______________$1000
80000_________10_____________A3_______________$1000
If you populate the Amount again for these 2 records, then the total would sum to $3000, which is wrong.
So what we do is,
Write a Select stmt for ALL ENTRIES in Data_Package and fetch the records from the target ODS. Have it in an Internal table, say t_ODS1
Take the SalesDoc / Item from the Data_Package and chk if it is present in the internal table t_ODS1.
If it is present, then populate the Amount as ' ' (Blank)
Else populate the Amount as $1000.
Say, you are getting 3 new records, which is not present in the ODS1.
In that case, your internal table t_ODS1 will be blank.
Now again, we need to populate the Amount only for the first record among the 3 records.
So, here comes the "Flag".
Set the Flag as X, when we populate the Amount.
Everytime chk the Flag <> X.
Only if it is <> X, populate the Amount.
Else Leave it Balnk.
Hope I have explained in detail
Regards,
Balaji V -
Mail to multiple Partner function
Hi,
We are in process of implementing SOLMAN CHARMS .
i have a requirement where i need to send mail to multiple partner function.
I have created a z action , however it gives option to select only one Partner function.
Is there any way to send mail to multiple Partner function or any workaround for this?
Kindly suggest.
Regards,
Sangvir SinghHello Sangvir,
As stated, you can create multiple actions (if you do that, don't forget to properly tune the action merging). This is the best option, because involves only configuration.
You can also add a few ABAP code in a new implementation of the standard send mail method and add multiple mail destinations in the "To" or "CC" fields. This is simpler than sounds to be. Ask for an ABAPper to analyze the method source code and he/she will adapt it for you in a question of hours.
Best Regards,
C Canzone -
Creating multiple partner function for a sale order @ header level
Hi All,
I have a requirement where in i have to create more than one partner funtion for a sale order @ header level. But the system did not allow this sort of scenario and i got the error,
Partner function ZZ can only occur 1 times in procedure TA (Sales Document Header)
the function module that was giving this error was SD_PCHECK_PARVW_COUNT_OK
here the function module checks if a partner function already exists if so it throws that error. This also updates the VBPA table where partner function is one of the key fields.
Our issue is that we have to allow the system to enable posting 2 or more partner function for the same sale order. It was also verified that the unique key was unchecked during configuration.
is there any other way of over coming this issue as we are updating the standard table. Is it possible??
Thanks a lot in advance for your reply....I believe this is a configuration setting, based upon the details of your post. Typically, a sales order can have multiple partner functions, but usually the partner type is not duplicated at a single level (header or one item). For example, it would not be logical to have multiple ship-to partners at the header level...these would be unique at the item level, if required.
Speak to your SD functional specialist about the configuration controls for partners, if you must have more than one partner with parvw = ZZ, for the entire order (header level).
Edited by: DaveL on Aug 23, 2011 3:00 PM -
Multiple Partner Function in a sales Order
Hi
I have created a partner function ZR Referred By ( Type Customer) but not able to enter multiple ZR in a sales Order
Error .VPD012. Partner Function can occur only 1 in ..
The requirement is to attach the referred customers for reporting purpose and there can be more than one customer referring this new Customer / Order.Hi
Thanks for the input but the solutions suggested by you all does not work.
The Unique button is only relevant for Customer Master and not the Order. In the Order you can have only one.
The Button Modifiable is only for allowing you to change a Partner and not adding another partner with the same partner function.
Any way I figured a way out, we can use the system provided AA ( Partner Function) and able to use multiple AAs in a Service Contract./Scheduling agreements.
But if you need to have multiple partner in a sales Order ...Only way seems to be to have Z1, Z2 Etc ...
Thanks -
Actions creating task for multiple partner functions
Hello Masters,
Need help in below scenario.
We are using actions in quotations. Different actions gets triggered as per status of quotation.
ex: Status: manger approval request: Task to be create with action for manager
Status: Manger approved: Task to be created with action for Sales employee.
I have configured action profile. My actions are partner function dependent.
Partner functions are different for manager and sales employee.
But when action is getting triggered it is creating task for both partner functions.
How can I avoid this? Does though we say action is pertner function dependent is it true or it is actually partner function catagory dependant. In my case partner function category is same for manager and sales employee. The partner function category is "Employee"
looking for your guidence
Thanks
KushalHi Kushal,
The partner function category is same - employee and hence it is triggering actions at the same time.
You may have to see if you can assign a separate partner function category to meet your requirement.
Hope this will be useful
Thanks and Regards
DJ -
Upload partner functions to customer master using LSMW
Dear Friends,
I'm trying to uplaod customer partner functions data through LSMW. I have tried to upload the data using recording method in LSMW(Tr. code: XD02).
As per the business requirement, I need to upload multiple number(For example: 10 records) of SP(Sold to) partners to a single customer.
While executing session, instead of adding all 10 records of partner functions, only the last record(i.e 10th records) is adding in the customer master.
Your response will be highly appraciated.
Regards
SatishHi Satish,
You can't use XD02 to upload multiple partner functions by recording the transaction. It will not create multiple entries, always it will replace the existing ones with the new entry. you need to use the standard BI program or Idoc method do the same.
I know the scenarios for the vendors it didnot work in that way for me at that time I used Standard BI method to create the multiple partner associations. -
R/3 partner functions to CRM BP roles
Hi experts,
We are trying to replicate customers from R/3 to CRM. If a customer plays multiple partner functions, say he himself plays sold to, ship to, payer and Buyer in R/3, how can we show this as multiple roles in CRM. i know that we can not create relationship between identical BPs. we were succesful to view the contact persons and other partner functions in Relationship view. please help me out on this.
Points will b rewarded surely.
Thanks in advance.
RK.Hi Kiran,
Refer Note
Note 914437 - Preassigning BP role during download from account group
Regards,
Shalini Chauhan -
Loading Multiple Partner Fuctions for a vendor using LSMW
Hi Everyone,
I need to upload multiple partner functions for vendors. I am using LSMW recording for transcation XK02.
The LSMW runs fine but instead of adding a new line for each partner function for a specific vendor it keeps overwritting the previous one. As a end result I get only the last partner function in vendor.
Any help in resolving this is highly appreciated.
Thanks
Zoryou can use below LSMW batch input method and pass the tcode XD02.. for partner functions....
TCODE Transaction Code
Rule : Constant
Code: BKN00-TCODE = 'XD02'.
Object 0050 Customer master
Method 0002 Extended PSM
Program Name RFBIDEK0
Program Type B Batch Input -
Multiple bill to partner function in sales order
How can a partner function be setup that it can appear more than once in a sales order ?
Need to make a sales orders with more than one "bill to partner". When I add the same partner function with another customer in the header of the sales order I get error message VPD012 : "partner function ZX can only occur 1 times in procedure ZEXP (sales document header) .
I searched OSS, and debugged for a while to try to find where that "1" is coming from.
In function SD_PCHECK_PARVW_COUNT_OK, a counter is set to "1" based on the field TPAER-PAREI (line 86). Allthough the flag "unique" is not set in partner function ZX, I get this error.
Some further in the function, there is the comment :
102 * currently uniqueness of a partner is mandatory in sales docs, so
103 * if no CAS-Doc, partner has to be unique if not AA or AW
Perhaps, in sales orders it is not at all possible to use multiple partners with the same partner function in sales orders ?
Anyone having experience with this ?
Thanks,Hi Dries,
Even after you created your order you can maintain different bill to party.
Go to VA02 screen
Enter your order number.Enter.
Goto item details Partners tab:
Now all the details are in editable mode.enter your bill to party.Make sure your bill to party is in same sales area and company code as of sold to party.After entering the taxes will be redetermined message will come.
Enter.
Save.
Now You do the same for all other items.
Regards,
Mohan. -
Classic Scenario PO has multiple OA Partner Functions for Vendor
Hi,
I have a 'design' issue. My R/3 Vendor has many OA Partner Functions for the different Branches they have and the PO needs to be Faxed to the OA Partner Function number, but the PO needs to be created against the VN Partner Function.
So, how do i do this in SRM? I was going to have a seperate Catalog link for each OA Partner function, but this is not creating the R/3 PO with VN Partner Function of the 'core' Vendor number.
Does anyone have any advice for this?
regards Adam
Using SRM 5.0 (Server 5.5) SP 8 and R/3 4.6C in Classic Scenario - my catalogs are external vendor.Hi
Please see these links, which might help ->
Partner function missing in backend PO
Re: Error in transmission while PO cration
"Multiple" partner data at PO header
Partner functions in plan driven MM-SUS
Re: Partner function not found
Number range for business partner
Re: Problem with BP. Assignment: Business partner person to user not unique
Error in creation of Employee for Business Partner
Re: enter exactly one partner of type vendor
Re: Business partner as Vendor and Invoicing Party
Partner functions in EBP for extended Classic Scenario
Regards
- Atul -
How to Split 1 Order into Multiple Deliveries based on Partner Function ?
Hello,
How can I split one Sales Order into multiple deliveries, based on the partner function "managed by" ?
The requirement is that one order will be created for different "managed by".
If partner function "managed by" is same at line item level in order, than the items having same "managed by" can be combined in one delivery, else delivery will split and multiple deliveries will be created from 1 Order.
Jatin MistryHi,
You need to create a new requirement in tcode VOFM for that, together with your ABAP consultant. This requirement will be used in copy contol.
http://saptechsolutions.com/pdf/VOFMCopyRequirementRoutines.pdf
MdZ -
Multiple Partners with Same partner Functions in LEAD
HI Experts,
we have maintained in partner determination procedure -> partner functions in procdure -Channel Partner-> Maximum as 1 . it means that system willl allow only one channel partner to be determined or only one channel partner will be allowed in a txn.
However when we create a Lead, system is allowing to add multiple channel partners under Parties involved AB with error message which is fine, but it allows the user to SAVE it which we dont wont .
any thoughts.
thanks
SmitaDear Raju,
You may have different Bill-to-Parties and Payers, in a single Sales Order, at Item level (for different Line-Items);
BUT
You may not have multiple Bill-to-Parties and Payers, for a single line-item, for a Particular Sales Order Line-Item.
Best Regards,
Amit,
Note: Haven't experienced, but might be achieved the requirement with Customization (not sure). -
Partner Function Queries Multiple Partners for Single Partner function SO
Hi Experts
Is it possible to enter multiple partners for Single partner Function in SALES ORDER
For Ex : We have created Z1 as a Partner function for Sales Executives : and Sales Executive 1 , Sales Executive 2 Sales xecutive 3 etc as sales Partners for Z1 partner Function .
Now Is it possibe to enter for Z1 -
sales Exeutive 1
Z1----
Sales executive 2
Z1----
Sales Executive 3............
I would be greatful if you repond the same at the earliest
Thanks
Rashmi KHi Rashmi,
The requested function is possible.
In the customizing of partner function, you could set the field Unique as blank. Then you could enter multiple partners for same partner function.
IMG->SD->Basic functions->Parnter determination->Partner Functions
Hope it helps.
Thanks and best regards,
Smile -
Dear Experts,
how to upload partner functions by using LSMW. I developed LSMW and if i go to partner function tab there is only one partner function field is available I need to upload 4 partner functions. Can any one help me out in this regard.
regards,
sivaHello Sivasai Myneni,
Demo Example 1
LSMW to Update Customer Master Records with Transaction Recording
Call Legacy System Migration Workbench by entering transaction code LSMW. Every conversion task is grouped together as
Project / Subproject / Object structure. Create a Project called LSMW_DEMO and a Subproject as CUSTOMERS and Object as
CUST_obj as shown in Figure 1.
Figure 1 Conversion Task with Project, Subproject and Object
The main screen of LSMW provides wizard-like step-by-step tasks, as shown in Figure 2. To complete your data conversion, you
need to execute these steps in sequence. Once a step is executed, the cursor is automatically positioned to the next step.
Note that these steps may look different depending upon your Personal menu settings. You could make step numbers visible by
Numbers on icon or hidden by Numbers off icon. You can execute a step by double-clicking on the row. Toggle icon
Doubleclick=Display or Doubleclick=Edit, makes the step in display mode or change mode.
Figure 2 LSMW Wizard initial screen
Step 1: Maintain Object attributes
In this example, you will be updating the customer master records with the help of recording a transaction (XD02). Choose radio
button Batch Input Recording and click on the recording overview icon to record the R/3 transaction. Enter the Recording name as
XD02_REC, the description as Customer Master Updates Recording, and the transaction code as XD02.
Figure 3 Object type Transaction Recording
The system calls the transaction code XD02 and prompts you to complete the Change
Customer transaction, as shown in Figure 4. Enter the key customer information (I entered customer number 1000, sales
organization 1000, distribution channel 01, and division 00) and choose Sales view within Sales area data. Make changes to
these three fields (I entered, sales office 1010, sales group 110, and customer group 01) and save the transaction.
Figure 4 Transaction recording for Transaction Code XD02
Once the transaction is completed, R/3 records the flow of screens and fields and saves the information, as shown in Figure 5.
Figure 5 Transaction recording overview
Note that the fields are populated with default values. The values you entered when you recorded the transaction are set by
default.
Note that if you have more fields in the recording than needed, you can remove them by clicking Remove Screen field icon.
Observe that the transaction-recording process stores field names in a technical format. By pressing the F1 key on individual
screen fields and then pressing the F9 key, the system displays technical names. You then can replace the technical names with
descriptive names. Double-click on the field RF02D-KUNNR and enter the name as KUNNR and the description as Customer
Account Number and remove the default value. (See Figure 6.)
Figure 6 Field attributes
Similarly, double-click on all other fields with default values and make appropriate changes. Once you have made changes, the
recording overview screen looks like what you see in Figure 7.
Figure 7 Transaction Recording Overview with screen field attributes
Save your changes. When you go back to the initial screen, you will see that the initial screen steps have changed. Since you want
to import data via the BDC method, the Direct Input and IDoc-related steps are hidden, as they are not relevant.
Step 2. Maintain Source Structures
Give a name and a description to the source structure (Figure 8).
Figure 8 Source Structure
Step 3. Maintain Source Fields
In this step, you need to list what fields are present in the source structure. The easiest way is to click on Table Maintenance icon
to enter Fieldname, Type and Length for each field as shown in Figure 9.
Figure 9 Source fields of source Structure
Note that your input file will have four fields as key fields and you need to update three fields in the system.
Step 4: Maintain Structure Relations
Execute a step to Maintain Structure Relations. (See Figure 10.) Since, there is only one Source and Target Structure, the
relationship is defaulted automatically.
Figure 10 Structure Relation
Step 5: Maintain field mapping and conversion rules
Field RF02D-D0310 represents that you chose Sales view for the customer Master screen accordingly its value should be set to
X. Keep your cursor on field RF02D-D0310 and click on Constant rule icon to choose the constant value of X.
If your source file already has the field value, you choose rule Source Field.
Keep cursor on field KUNNR and click on Assign Source field icon to choose source field CUSTOMER from structure XD02S as
shown in Figure 11.
Figure 11 Assign source fields
Similarly, assign Source Field rules to the remaining fields.
Once all the fields are mapped, you should have an overview screen as shown in Figure 12.
Figure 12 Field mapping and Conversion rules overview
Step 6: Maintain fixed values, translations, user-defined routines
You can also maintain re-usable translations and user-defined routines, which can be used across conversion tasks. In this case,
that step is not required.
Step 7: Specify files
In this step, we define how the layout of the input file is. The input file is a [Tab] delimited with the first row as field names. It is
present on my PC (local drive) as C:\XD02.txt. (See Figure 13.)
Figure 13 File attributes
Create an Excel file (Figure 14) with your data and save it as a Tab-delimited text file on your local drive (C:\) and name it XD02.
txt.
Figure 14 Source data in Excel file (saved as Tab delimited file)
Step 8: Assign files
Execute step Assign Files (Figure 15) and the system automatically defaults the filename to the source structure.
Figure 15 Assign file to Source Structure
Step 9: Read data
In this step, LSMW reads the data (Figure 16) from the source file (from your PCs local drive). You have the option to read only
selected rows and convert data values to Internal format.
Figure 16 Read Data
Step 10: Display read data
This step (Figure 17) is optional. If required, you can review the field contents for the rows of data read.
Figure 17 Display Read Data
Step 11: Convert data
This is the step that actually converts the source data (in source format) to a target format. Based on the conversion rules defined,
source fields are mapped to target fields.
Step 12: Display Converted data
Again this is an optional step to view how the source data is converted to internal SAP format (Figure 18).
Figure 18 Display Converted Data
Step 13: Create batch input session
Once the source data is converted in an internal format, you can create a batch session to process updates (Figure 19).
Figure 19 Create Batch Input Session
Step 14: Run Batch Input Session
You can execute the BDC session by Run Batch input session. Executing a batch input session is a standard SM35 transaction for
managing BDC sessions. Once you have successfully executed the batch input session, the customer master records are updated in
the system. You can confirm this by viewing the customer master records (XD03).
Note! Browsing thru these 14 steps, you may get a feeling that this is a very lengthy and time-consuming activity. However, for
the purposes of demonstration, I have made it detailed. Although it looks lengthy, actually it takes hardly few hours from start-to-
finish! After playing around with few simple LSMW scripts, you will find it so easy to change and create more complex ones.
Demo Example 2
LSMW to Update Customer Master Records with Standard Object
As an alternative to using Transaction Recording, you could also use a standard SAP object to update Customer Master Records.
Business Object 0050 is already pre-defined in the system with standard Batch Input Interface Program RFBIDE00.
Create an Object CUST_OBJ within Project as LSMW_DEMO and Subproject as CUSTOMERS as shown in Figure 20.
Figure 20 LSMW Object with Standard SAP Object
Note! For the Demo example 2, I will list only those steps that are different from the first demo example.
Step 1: Maintain Object attributes
You will be updating the customer master records with the help of Standard Batch Input; therefore, choose radio-button Standard
Batch/Direct Input as shown in Figure 21. Enter Object 0050 for Customer Master records and default method 0000 and click
on Save.
Figure 21 Standard Batch/Direct Input Object Attributes
Step 4: Maintain Structure Relations
Sales view of Customer Master is stored in table KNVV. Accordingly, you need to update structure BKNVV. However, in addition,
the Standard Object 0050 also requires updates to BGR00, BKN00 and BKNA1 structures. (If you do not maintain Structure
relations for mandatory entries, you might get a message such as Target structure BKNA1 needs a relation to a source structure.)
Even though you dont want to update any fields in these structures, you need to create a relationship with source structures. In
all, you need to create relationship for four target structures.
Create relationship between source structures XD02S with these target structures with icon Create Relationship .
Keep Cursor on these four target structures and click on icon Create Relation and structure relations are maintained as shown in
Figure 22.
Figure 22 Structure Relation
Step 5: Maintain field mapping and conversion rules
Keep your cursor on TCODE field and click on Insert Rule icon
Figure 23 LSMW Conversion Rules
Choose radio button Constant (Figure 23) to enter value XD02 transaction code.
Keep your cursor on field KUNNR and click on Assign source field icon
Choose source field Customer from source structure XD02S. (See Figure 24.)
Figure 24 Assign Source fields
Similarly, choose source fields for Sales Organization, Distribution Channel, and Division. (See Figure 25.)
Figure 25 Field Mapping and Conversion Rules
Scroll down to structure BKNVV fields and assign source fields to three fields Sales Office, Sales Group, and Customer Group
(Figure 26).
Figure 26 Field Mapping and Conversion Rules
Save and go back to main screen.
Step 12: Display Converted data
When you convert data, LSMW automatically converts into the appropriate structure layouts, as required by Standard program
(RFBIDE00). (See Figure 27).
Figure 27 Converted data into multiple structures
Note that if you had only one record in source file, the converted file has four records.
Earlier, creating this input file, so that the standard interface program can read it, was a big nightmare, the primary reason being
that it could have multiple record layouts. Even for a simple conversion with one input record, you would have to create this
complex file with many record layouts. The advantage of LSMW is that it prepares these multi-layout files automatically.
Step 13: Create batch input session
Once source data is converted in internal format, you can create a BDC session to process the updates (Figures 28 and 29).
Figure 28 Create BDC Session
Figure 29 BDC Session CUST_OBJ created
Regards
AK
Maybe you are looking for
-
Can there be more than one JVM Running on the same machine
Can there be more than one JVM Running on the same machine.
-
I'm looking for an app for my iPhone that I can store my music on, but can be accessed if i'm on a flight or in another country. It also has to sync with my mac. My music library is pretty hefty, its a whole 15gb. Please help me out. Thanks in advanc
-
Java.lang.NegativeArraySizeException in comm.channel
Hello, have this error in RWB for comm.channel for file adapter. java.lang.NegativeArraySizeException We don´t have something special in the adapter of the comm.channel. This is the source directory: $DATA1.SSBWSLS Any idea where this comes from? Bes
-
Merging of same records in columns while printing
Dear All, Kindly let me know how to merge same records in a column while printing. I used ALV_GRID_DISPLAY and merged using sort in LIST but not able to get the same while printing. Regards, Karthik
-
Drop Shadow possible within a paragraph style?
I have a table and on a certain row I have a style that requires a dropdown. I have made a paragraph style that has everything perfect but I can't find the drop shadow option there. Is it possible to include drop shadow effects as a style?