This website is not affiliated with, sponsored by, or approved by SAP AG.

VA01 with LSMW with sold-to-party and ship-to-party differen

Logistics : SD and its sub-modules (Inquires, Quotes, Order Entry, SIS, Sales Contacts, Dist. & Billing)

Moderators: Snowy, thx4allthefish, mike_ac, Lost Identity

VA01 with LSMW with sold-to-party and ship-to-party differen

Postby Hasim » Fri Feb 13, 2015 7:17 am

Hello gurus,

I have created a LSMW (object 0090, method 0000, program name RVINVB10, direct input) that successfully creates a sales order. However, I can't figure out how to change it so that it can create a sales order when the sold-to and the ship-to are different (it creates a SO with same sold-to and ship-to). Any help would be greatly appreciated.

Thank you,

Hasim.
Hasim
 
Posts: 54
Joined: Thu Oct 27, 2005 6:42 am

Re: VA01 with LSMW with sold-to-party and ship-to-party differen

Postby Gothmog » Fri Feb 13, 2015 9:33 am

How are you filling structure BVBPAKOM?
Have you tried with two records, one for each partner function?
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1941
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: VA01 with LSMW with sold-to-party and ship-to-party differen

Postby Hasim » Fri Feb 13, 2015 10:25 am

Gothmog wrote:How are you filling structure BVBPAKOM?
Have you tried with two records, one for each partner function?


You mean like:

BVBPAKOM-PARVW = 'AG'. (or a field for AG)
BVBPAKOM-PARVW = 'WE'. (or a field for WE)
and
BVBPAKOM-KUNNR= KUNNR1 (for sold to)
BVBPAKOM-KUNNR= KUNNR2 (for ship to)?
Hasim
 
Posts: 54
Joined: Thu Oct 27, 2005 6:42 am

Re: VA01 with LSMW with sold-to-party and ship-to-party differen

Postby Gothmog » Fri Feb 13, 2015 12:04 pm

Yes
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1941
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: VA01 with LSMW with sold-to-party and ship-to-party differen

Postby Hasim » Fri Feb 13, 2015 3:04 pm

Yes - but it just takes the last value and ...that's it :(
Maybe some coding there if I knew how to do that...
Hasim
 
Posts: 54
Joined: Thu Oct 27, 2005 6:42 am


Return to Logistics SD

Who is online

Users browsing this forum: No registered users and 4 guests





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.