BAPI_SALESORDER_CREATEFROMDAT2 partners

Question: I am trying to use this BAPI to create only the order header data. I load the header_in and header_in_x parameters, and an internal table with the bill to and ship to parties.

I am getting errors when i try to run the bapi, concerning my partners. If i use the US abbreviations (SP/BP), it tells me i have not entered a bill to or ship to. If i use the german abbreviatiions (WE/AG), it tells me the customer number is not valid.

I have looked and KNA1, and KNVP, and the customer is set up in the proper sales org, dist channel and division, with the US abbreviations.

I have also tried using the CONVERT parameter, both when using the german abbreviations and the US abbreviations, and i get the same messages. In debug, it appears to be doing the conversion, but checking KNVP with the GERMAN abbreviations(!).

Please help me. I am about to revert to a BDC!
_________________
David Knittle
Dematic Corp

Answer:
Make sure the partner numbers have internal format (0000123456, not 123456). Use CONVERSION_EXIT_ALPHA_INPUT.

DK

Answer:
PERFECT! that was it, thanks.
_________________
David Knittle
Dematic Corp
Copyright ?2007 - 2008 www.jt77.com