‎2008 Oct 22 10:05 AM
Hi,
I have created an LSMW using the customer creation batch input program RFBIDE00, in it I'm creating a customer with multiple contact persons and multiple partners. So I've defined 3 source structures:
MAIN_STRUCTURE
- PARTNER
- CONTACTS
The link between them all is KUNNR. I've created the fields I need beneath all these structures and mapped them to the correct fields that RFBIDE00 will accept.
I've created 3 test files, one for the main customer details (MAIN_STRUCTURE), one for the multiple partners and one for the multiple contacts. I've assigned these files to the correct source structures.
My problem is when I try and read my test data, for some reason the contact file is not being read but the MAIN_STRUCTURE and PARTNER is. I can't see any difference between the way I've defined PARTNER and CONTACT so I don't know why one is being read and not the other.
Am I missing something obvious? Any suggestions welcome.
Thanks,
Gill
‎2008 Oct 22 10:06 AM
My mistake, the actual problem I'm having is that the CONTACT data isn't being WRITTEN. It is being READ.
‎2008 Oct 22 10:11 AM
Hi
Have you inserted the key field (to link the records of files) in the CONTACT file?
Max
‎2008 Oct 22 10:17 AM
Found it!
It was to do with the key fields. The fields KUNNR and NAME1 appear in both SOURCE_STRUCTURE and CONTACT but as NAME1 wasn't the same the read program wasn't finding the contact lines in table CONTACT.
I've changed NAME1 to CONTACT_NAME in table CONTACT and that works.