cancel
Showing results for 
Search instead for 
Did you mean: 

Please enter sold-to party or ship-to party ( Sales order creation )

deviprasad_pothireddy
Active Participant
0 Kudos

Hi all,

i am using the fallowing bapi to create sales order

BAPI_SALESORDER_CREATEFROMDAT2 and i have used fallowing mandatory parameters that are

ORDER_HEADER_IN:

DOC_TYPE Sales document type ->TA

SALES_ORG - Sales organization ->1000

DISTR_CHAN - Distribution channel ->10

DIVISION - Division ->00

ORDER_PARTNERS:

PARTN_ROLE Partner role, SP sold-to party ->SP

PARTN_NUMB Customer number ->1000

ORDER_ITEMS_IN:

MATERIAL Material number ->R-1140

After sending request to XI-R/3 , It is giving the fallowing error i.e.

Please enter sold-to party or ship-to party.

My question is, shall i include any fields other then above fields

and how to find test data for sales order creation( i didn't find any test data in the test directory).

Please help me ( Points for good solutions)

Regards,

Deviprasad.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Did you get the answer for this question? If yes, could you let me know.

Thanks,

Sundar,.

raktim_banerjee
Participant
0 Kudos

Hi ,

1. Call the function module BAPI_CUSTOMER_GETSALESAREAS to get sales area from ship to party

2. Call function ZGVSA_DET_SP_FROM_WE to get sold to party from ship to party , do not need to pass bill to party here

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

why are you using a BAPI to create the SO?

does your interface need to be sync?

if not change and you want to use a BAPI

how will you track the errors if they occure?

if you don't need sync call I suggest changing to ORDERS IDOC

(also easier to debug as it uses batch input)

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

deviprasad_pothireddy
Active Participant
0 Kudos

Hi Michal,

Thanks for your reply,

I have seen your previous threadID related same error

my scenario is soap-xi-rfc. using wsdl file i need to give input parameters and i am expecting corresponding sales order number from it.

I tested same bapi in R/3 system for the same input data but i didn't find any sales order number(in response). and it's return message is SALES_HEADER_IN has been processed successfully.

where can find the sold to party or ship to party information in the bapi.

Regards,

Deviprasad.

prabhu_s2
Active Contributor
0 Kudos

those are the partner details

prabhu_s2
Active Contributor
0 Kudos

you can find here:

<i>ORDER_PARTNERS:

PARTN_ROLE Partner role, SP sold-to party ->SP

PARTN_NUMB Customer number ->1000</i>

prabhu_s2
Active Contributor
0 Kudos

to test this bapi use it in an sample program and use commit work. this work and will get u the sale order #

prabhu_s2
Active Contributor
0 Kudos

first thing i wud suggest is to test teh bapi in r3. this is tell the inputs u wud req if not fully maintained

prabhu_s2
Active Contributor
0 Kudos

might be this kinda sale document wud req entry for ship to party also. try entering both the data and check

Former Member
0 Kudos

According to your error some mandotry fields are not mapped in your BAPI.

please check your BAPI in XI mapping editor please assign value to all mandatory fields i.e. occurance 1to 1 and which has red symbol on that field.

Thanks

Sreeram.G.Reddy