Skip to Content
author's profile photo
Former Member

LSMW,use IDoc to creat sales order

Hi all,

I am trying to use LSMW IDoc to migrate sales orders.

the basic type is "SALESORDER_CREATEFROMDAT202".

In Maintain Field Mapping and Conversion Rules, I don't find a field for mapping the sold-to-party or ship-to-party.

Does anyone face the similar problem?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    author's profile photo
    Former Member
    Oct 06, 2005 at 03:46 AM

    there really isn't a unique field you can map to because these 2 parties are basically 2 different partner types. They are identified using identifier WE (Ship-to) and AG (Sold-to). What you need to do is to create 2 segments of the same type (for example in basic type ORDERS01 segment E1EDPA1). These 2 segments are exactly the same structure but hold unique info for each partner type. What you end up with is the first segment holding Ship-to info and the other with Sold-to info. To differentiate between these 2 segments you maintain the first field in the segment (PARVW) with the corresponding partner type ie. AG or WE. I hope this helps ...

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 06, 2005 at 04:20 AM

    to be more precise, in basic type SALESORDER_CREATEFROMDAT202 there's a segment called E1BPPARNR. This segment holds all partner info. Double click this segment in WE30 you will see that the segment is a muktiple segment up until '999999999' times. Clicking on the segment editor you will notice field PARTN_ROLE. This is the field that holds the partner type ie AG or WE. The end result is an IDOC with 2 same segments (E1BPPARNR) but with different partner type values and its corresponding data.

    Add comment
    10|10000 characters needed characters exceeded