Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem reading data in LSMW (using batch input program RFBIDE00)

Former Member
0 Likes
663

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

3 REPLIES 3
Read only

Former Member
0 Likes
484

My mistake, the actual problem I'm having is that the CONTACT data isn't being WRITTEN. It is being READ.

Read only

0 Likes
484

Hi

Have you inserted the key field (to link the records of files) in the CONTACT file?

Max

Read only

Former Member
0 Likes
484

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.