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
Satish
Hi 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.
Similar Messages
-
Creation of partner functions for customer master with LSMW
Hello,
I try to create partner functions together with a customer via Batch Input in LSMW.
Object: 0050, method: 0000, program name: RFBIDE00, program type: B.
I use the structure BKNVP (Customer master partner functions) to create a new partner and set values for the fields KTONR and PARVW.
When I start the batch input the fields are filled in correctly in a new dynpro. After the confirmation of these values the dynpro changes back to the partner functions sscreen, but the value for KTONR isn'n being transferred. So I get an error message.
Is it only possible to update partner functions with that BI or what is going wrong ?
Thanks in advance and regards
AlexHi Alex,
Could you specify what error message you are getting?
Thanks!
Rudra -
How to update partner functions in customer master
Hi all,
I want to update the partner functions for the customer master using transaction code XD02. I created the LSMW by means of recording but it doesn't work because the partner functions for the customer changes.
for example , certain customers have shipto paty, sold to party , bill to party payer and forwarding agent. some customers wont have all the above mentioned category.they may have only ship to party, sold to paty & bill to party.
Is there any other alternative way to update the partner functions for the customer.
Regards,
A.RathinaprakashHi A.Rathinaprakash,
Please use the FM 'SD_CUSTOMER_MAINTAIN_ALL' to maintain the partner functions in the customer.
Pass the partner details in the TABLES parameter T_XKNVP.
Regards
Chetan -
Upload sales text for material master using LSMW direct input method
Hello Experts,
I was trying to upload sales text for a material master using LSMW direct input method.
I followed the following steps for the same
Tab dlimited Text file format
MATNR LONGTEXT LINE
MATERIAL1 LONGTEXT FOR MATERIAL MATERIAL1 1
Step1 -> Maintain object attributes
Object -> 0001
Method-> 0001
Program name -> /SAPDMC/SAP_LSMW_IMPORT_TEXTS
Program type -> D
Step2 -> Maintain Source Structure
Source structure -> LONG_TEXT Source structure for long text
Step 3-> Maintain souce file
Source Fields
ZLONG_TEXT Source structure for long text
MATNR C(018) MATNR
LTEXT C(132) LTEXT
Step 4-> Maintain structure relationship
Structure Relations
/SAPDMC/LTXTH Long Texts: Header <<<< ZLONG_TEXT Source structure for long text
Select Target Structure /SAPDMC/LTXTH .
/SAPDMC/LTXTL Long Texts: Row <<<< ZLONG_TEXT Source structure for long text
Select Target Structure /SAPDMC/LTXTL .
Step 5-> Maintain Field mapping and conversion rules
Here i have assigned constan rules to couple of them like
/SAPDMC/LTXTH Long Texts: Header
Fields
OBJECT Texts: Application Object
Rule : Constant
Code: /SAPDMC/LTXTH-OBJECT = 'MVKE'.
NAME Name
Source: ZLONG_TEXT-MATNR (MATNR)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTH-NAME = ZLONG_TEXT-MATNR.
ID Text ID
Rule : Constant
Code: /SAPDMC/LTXTH-ID = '0001'.
SPRAS Language Key
Rule : Constant
Code: /SAPDMC/LTXTH-SPRAS = 'E'.
/SAPDMC/LTXTL Long Texts: Row
Fields
TEXTFORMAT Tag column
Rule : Constant
Code: /SAPDMC/LTXTL-TEXTFORMAT = '/'.
TEXTLINE Text Line
Source: ZLONG_TEXT-LTEXT (LTEXT)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTL-TEXTLINE = ZLONG_TEXT-LTEXT.
Step6 -> Specify file
Legacy Data On the PC (Frontend)
Data D:\Sales_Longtext.txt
Step7 -> Assign File
ZLONG_TEXT Source structure for long text
Data D:\Sales_Longtext.txt
Step8 -> Read data
Output result
Source Structure Read Written Not Written
ZLONG_TEXT 1 1 0
Transactions Read: 1
Records Read: 1
Transactions Written: 1
Records Written: 1
Step 8 -> Display read data
Field Name Field Text Field Value
MATNR MATNR MATERIA1
LTEXT LTEXT SALES TEXT FOR Material MATERIAL1
Step 9 -> Convert data
File Read: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.read
File Written: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Transactions Read: 1
Records Read: 1
Transactions Written: 1
Records Written: 2
Step 10 -> Display converted data
1 /SAPDMC/LTXTH 1MVKE MATERIAL1 0001E
2 /SAPDMC/LTXTL 2/ SALES TEXT FOR Material MATERIAL1
Step 11 -> Start direct input program
Output result for the same
Legacy System Migration Workbench
Project: ZNRD_PRJ1 ORH
Subproject: ZNRD_SUBPRJ2 Upload long text
Object: ZNRD_LTEXT Long text tru direct input
File : ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Long Texts in Total: 1
Successfully Transferred Long Texts: 1
Non-Transferred Long Texts: 0
Now when i check the material master sales view -> sales text it is empty.
Please help me with the same.
Regards,
Ranjith NHello Experts, I was trying to upload sales text for a material master using LSMW direct input method.
I followed the following steps for the same
Tab dlimited Text file format
MATNR LONGTEXT LINE
MATERIAL1 LONGTEXT FOR MATERIAL MATERIAL1 1 *************************************************************************************************************
Step1 -> Maintain object attributes
Object -> 0001
Method-> 0001
Program name -> /SAPDMC/SAP_LSMW_IMPORT_TEXTS
Program type -> D
Step2 -> Maintain Source Structure
Source structure -> LONG_TEXT Source structure for long text
Step 3-> Maintain souce file Source Fields
ZLONG_TEXT Source structure for long text
MATNR C(018) MATNR
LTEXT C(132) LTEXT
Step 4-> Maintain structure relationship
Structure Relations
/SAPDMC/LTXTH Long Texts: Header <<<< ZLONG_TEXT Source structure for long text
Select Target Structure
/SAPDMC/LTXTH . /SAPDMC/LTXTL Long Texts: Row <<<< ZLONG_TEXT Source structure for long text
Select Target Structure /SAPDMC/LTXTL .
Step 5-> Maintain Field mapping and conversion rules
Here i have assigned constan rules to couple of them like
/SAPDMC/LTXTH Long Texts: Header
Fields
OBJECT Texts: Application Object
Rule : Constant
Code: /SAPDMC/LTXTH-OBJECT = 'MVKE'.
NAME Name
Source: ZLONG_TEXT-MATNR (MATNR)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTH-NAME = ZLONG_TEXT-MATNR.
ID Text ID
Rule : Constant
Code: /SAPDMC/LTXTH-ID = '0001'.
SPRAS Language Key
Rule : Constant
Code: /SAPDMC/LTXTH-SPRAS = 'E'.
/SAPDMC/LTXTL Long Texts: Row
Fields
TEXTFORMAT Tag column
Rule : Constant
Code: /SAPDMC/LTXTL-TEXTFORMAT = '/'.
TEXTLINE Text Line
Source: ZLONG_TEXT-LTEXT (LTEXT)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTL-TEXTLINE = ZLONG_TEXT-LTEXT.
Step6 -> Specify file Legacy
Data On the PC (Frontend)
Data D:\Sales_Longtext.txt
Step7 -> Assign File ZLONG_TEXT
Source structure for long text
Data D:\Sales_Longtext.txt
Step8 -> Read data
Output result
Source Structure Read Written Not Written
ZLONG_TEXT 1 1 0
Transactions Read 1
Records Read: 1
Transactions Written: 1
Records Written: 1
Step 8 -> Display read data
Field Name Field Text Field Value
MATNR MATNR MATERIA1
LTEXT LTEXT SALES TEXT FOR Material MATERIAL1
Step 9 -> Convert data
File Read: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.read
File Written: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Transactions Read: 1
Records Read: 1
Transactions Written: 1
Records Written: 2
tep 10 -> Display converted data
1 /SAPDMC/LTXTH 1 MVKE MATERIAL1 0001 E
2 /SAPDMC/LTXTL 2/ SALES TEXT FOR Material MATERIAL1
Step 11 -> Start direct input program
Output result for the same
Legacy System Migration Workbench Project:
ZNRD_PRJ1 ORH
Subproject: ZNRD_SUBPRJ2 Upload long text
Object: ZNRD_LTEXT Long text tru direct input
File : ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Long Texts in Total: 1
Successfully Transferred Long Texts: 1
Non-Transferred Long Texts: 0
Now when i check the material master sales view -> sales text it is empty. Please help me with the same.
Regards,
Ranjith N -
LSMW problem with Partner functions in Customer Master
Hi All,
Requirement is to load the Customer Master Data using LSMW.
Loading General data is ok, But when I am planning to load the
partner function using the recording method in LSMW, How do I upload
more than '1' Ship to party partners and more than '1'
Bill to party partners using LSMW.
Normally in table control there is a "+" button at the end of the
table control which when pressed enters one line in table control,In
Partner function screen , there is no such button available, so how
can I determine which line am I supposed to enter data using LSMW.
One partner can have multiple no of BP and SH partners like more than 10
of both types. How do I upload these partner functions in SAP using LSMW?
Regards,
AjayThat a customer master has several business partners is just usual, a customer can have as well several company codes and sales areas. So where exactly is the problem?
Most problems come with recordings, recordings should be the last option, not the first.
What import method do you use? -
Rg: How to upload Partner Functions in vendor master
Hi All,
I am doing LSMW batch input for vendor master. Since the client has different address for a single vendor, we use partner functions. So two lsmw are used, one for the different address and the lifnr is system generated. another lsme for the original vendor master witl the partner functions like Ordering Address, Invoicing party. The vendor number which is cretaed in first lsmw will be provided in the partner numbers for vendor the field is gparn. But while uploading the datas the partner numbers are not getting updated..
so does any one have solution..
thanks
srivatsanHi,
You can make use of this Tgt Structure BWYT3,
BWYT3 - Vendor Master Record: Partner Functions (Batch Input)
In this you need to pass the combination values of
PARVW Partner function
PARNR Number of contact person (batch input only),
In field mapping you need use Conversion exit for both.
Reward for helpful answer.
Regards,
Sivaram. -
BAPI to add additional partner functions in customer master(KNA1)
Hello All,
I wanted to add additional partner functions(2) to the list of partner functions which gets added by default while creating a customer. I am currently using BAPI_CUSTOMER_CREATEDATA1 to create the customer master. There i do not find any option to add my partner functions.
NOTE: I need to update KUNN2 field as well while adding my partner functions.
Could anyone please help here?
Regards,
JayHi,
No you should not feel confident with SD_CUSTOMER_MAINTAIN_ALL.
It is used for only one very special case. The maintenance of consumer. And this should only be true from the transaction itself.
There exists other cases, one of the oldest one is the BAPI_CUSTOMER_CREATEFROMDATA1. But is is exclusively reserved for SAP Online store.
Despite the fact CMD_EI_API is quite difficult to use, it has the main benefit that is it supported if being triggered directly.
For the maintenance of customers, there is NO BAPI and NO direct function module.
There are some functions modules like the one above where the name is looking nice. But these should not be used.
The only valid solutions are :
Below ECC 2005 (6.00), the only solution was batch input and DEBMAS idocs. See note 384462
Starting with ECC 2005 (6.00) and above: a synchronisation tool has been introduce. See class CMD_EI_API and VMD_EI_API
Hope this helps
BR
Alain -
Account Group and partner functions in customer master records
Hi Gurus,
I need your help to confirm the following understand if correct:
1. To create customer master record for partner function Ship-To, need to create a customer master record using the uniquely assigned account group for Ship-To , that is, 0002 . In this ship-to master record, define in its partner function tab, the other partner functions related to it.
2. To create the above, it cannot be achieved by just assigning the partner functions in the partner function tab of SOLD-To customer master record , created using account group 0001.
Question:
1. How does the system know or allow what codes a user can select (f4) or enter manually when defining in customer master record's partner function tab, the partner functions and their respective codes?
How is this controlled? Is it by user authorization? or will user / sales administrator be able to select any codes tied to a partner function?
2. Lets say there are 2 partner functions : Sales employee VE and 9E called Sales Representative. Both of these partner functions are of Partner Type PE.
When defining in customer master record's partner function tab, how does the system know what codes is selectable for the administrator for each of these partner functions?
best regards
M Russohi russo,
this is to inform you that,
1. yes you are right.
2. you need to follow the steps as you said.
Question:
1. that you can find in the search basing on account group for partners. that assignment we should know russo which SH to be assigned to which SP. no need to have authorization for that, make a note of the list of SH and SP to be assigned that's all.
yes, he will able to select any SH from the list but make sure that we assign the correct SH to the list of SP.
2. that you will be defining it in Partner Determination Procedures. at the time of CMR creation you have to select the correct code that will get populated in sales order.
hope this clears your issue.
balajia -
Add partner functions to customer master
Hello,
how can I add new partner functions to a customer master. Is there an IDOC available for that ? With DEMAS / DEBMAS06 I can only change the standard partner functions.
Thanks for your help.
Regards
AlexHi,
No you should not feel confident with SD_CUSTOMER_MAINTAIN_ALL.
It is used for only one very special case. The maintenance of consumer. And this should only be true from the transaction itself.
There exists other cases, one of the oldest one is the BAPI_CUSTOMER_CREATEFROMDATA1. But is is exclusively reserved for SAP Online store.
Despite the fact CMD_EI_API is quite difficult to use, it has the main benefit that is it supported if being triggered directly.
For the maintenance of customers, there is NO BAPI and NO direct function module.
There are some functions modules like the one above where the name is looking nice. But these should not be used.
The only valid solutions are :
Below ECC 2005 (6.00), the only solution was batch input and DEBMAS idocs. See note 384462
Starting with ECC 2005 (6.00) and above: a synchronisation tool has been introduce. See class CMD_EI_API and VMD_EI_API
Hope this helps
BR
Alain -
Classification View in customer master using lsmw
Hi folks,
I have a requirement regarding conversion method that is fields regarding classification view in customer master needed to be populated r created in through xd01 transaction this should be done using lsmw tool,if tried with standard method and bapi method ,can any one tell how to do whether it is bapi r standard method plz dont suggest recording method,even it is idoc method k r can any tell me which function module exists fr this ,POINTS will be awrded for answers .Try FM : SD_CUSTOMER_MAINTAIN_ALL
Thanks
Seshu -
No change log is created when updating the customer master using LSMW
Hi Gurus,
I am a bit confused on why no change log is created when I use the LSMW to update the customer master. What I update is the customer partner of the customers. For example I have a sold-to 1000 then a customer representative (Z3) 50001, now when I use the LSMW to change the customer representative to 50002 it is correctly updated however no change log is found if you check for the changes on that specific customer. This is a bother for me since I want to send all the customer changes through IDOC and the processing needs to access the change log.
Thank you.Hello,
What process are you using object, BAPI, etc.
Regards
Waza -
Customer Master using LSMW standard batch
Hi All,
I am uploading the customer master data using LSMW standard batch input method. When i process the session created using this i am getting an error that input data that "No batch input data for screen SAPMF02D 0310". This is happening when it reachs the sales area screen. All the remaining screens are processed correctly.
Please help me in this regards,
Thanks & Regards,
SudheeraHi,
Refer
https://forums.sdn.sap.com/click.jspa?searchID=9408057&messageID=4828875
Regards
Kiran Sure -
RE:Business partner functions in customer Master creation
Do we need to send the Business partner functions while creating record in R3 thru MDM.
For any account group i pass the Idoc is expecting all Business partner functions to be defined for the account group to which am trying to create Customer.(As SH,BP,PY..)
Can anyone please explain me in brief the Business partner function -Problem in my scenerio............................Concept of Business Partner function while creating Customer.In ECC partner functions are used when you have multiple addresses for the same customer. The partner function links those address records together. You could have multiple unique customer numbers on the KNA1 table, but in the KNVVP table (partner functions) you maintain the linkage between the main table records.
Partner functions are not recommended in MDM. These are generally not considered to be "enterprise level attributes" and therefore shouldn't reside in your customer repository in a central create scenario. Additionally, some of the complexity required to model partner functions can't be modeled in MDM at this time. When 7.1 comes out, there is a new data type called "tuples" which supports deeply nested structures, and therefore you could model a true partner function table inside the sales area table. -
Partner functions in Customer master
Hi,
Can we maintain partner functions with out maitain customer sales area data, we need to maintain only general and company code data.
Business scenario - 1. We have some certain customers like carrying only address purposses we dont need maintain company code and sales area, so is sytem creates partner functions once save this type of customers.
2. same as said in point one some customers need general and company code data, dont need sales area, can system creates partner functions for this.
regards
SatishHi Satish C,
As already expressed by all other friends,
Just would like to add,
SAP has given 3 levels to maintain cusotmer relevant data ( General , Company Code & Sales area) & you are already aware of the same.
But each level has its own importance & it can be based on how you would like to use the respective partners in specific transactions.
for eg:
in Billing- Bill to / Payer is required to have Company Code data & Ship to doesnt need to have Company Code data.
In FI transactions- Customer doesnt need to have Sales area data.
similarly, it all depends on how you want to use.
NOte: if any partners using in Sales documents, should have General & Sales area data is mandatory. Company data is in billing.
Just to maintain the address, if its ok with your client, you can go for different partner function ( if required in sales transactions) & add in sales area data.
Regards,
Reazuddin MD -
Issue while uploading Partner Function in Sales Order through LSMW
Dear All,
I have to make change some partner function at item level in existing sales order. I have created the LSMW for changing the partner function at item level. But while recording the system field (Field Name ) will maintained as beow:
GVS_TC_DATA-REC-PARTNER(08)
GVS_TC_DATA-REC-PARTNER(09)
It will run successully when at line item the Partners which i have to change are availble at 08 & 09 level. But in some cases the partners are available on differnet position, in that case my LSMW will not work.
Is there any solution for the same.
Thanks in advance.
PM
Edited by: PM on Mar 7, 2012 6:47 AMHi,
This is the most common drawback while using LSMW. The position should be the same for all records to update the partner function. Else, think of of writing a BDC or manually updating it.
Regards,
Raghav
Maybe you are looking for
-
Airport Express no longer visible in Airport Utility
Hi guys, first post on here, so hoping someone can help me. I have an Airport Express connected to my stereo and have been using it to stream music with no problems, until today. iTunes told me the airport was no longer available so I opened up the A
-
My daughters laptop won't boot up the automatic repaire screen comes on then just goes off and try's to reboot on loop won't do anything
-
Could not open the file in application server
Hi All, I have a Zreport which will write files on application server. When I tried to download it is showing me "Could not open the file". And when checked again with /nal11 the files does not exist. When I ran the Zreport again the file exist in ap
-
Hi all! In my addon application I have Matrix with 10 columns (2 columns with column type Edit Text, 8 columns with column type checkbox) now In 8 columns with type checkbox I want to display Footer as form Id = 60207(Menu service/service Report/Resp
-
Hi, I'm planning on purchasing the HDMI Digital A/V adaptor for the iPad 2. My quetion is: can you output the Audio via the headphone jack rather than the HDMI cable as I'm hooking it up to a projector and wish to send the audi to external speakers?