Application Development 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: 

Please enter sold-to party or ship-to party in SD_SALESDOCUMENT_CREATE

former_member221367
Participant
0 Kudos

Hi

I m creating Credit Memo Request by using FM SD_SALESDOCUMENT_CREATE with reference to billing doc but its giving error as

Please enter sold-to party or ship-to party while  I have already assigned PARTN_ROLE and PARTN_NUMB in SALES_PARTNERS table .

M srry if its a silly qus bt please help me out.

8 REPLIES 8

Former Member
0 Kudos

Why do you need to have the partner, the partner will come from the reference document.  See my example below:-

    IF P_REFDOC <> ''.
    SALES_HEADER_IN-REF_DOC = P_REFDOC.
    SALES_HEADER_IN-REFDOC_CAT = 'M'.
    IF P_VKORG = '????'.
      SALES_HEADER_IN-REFDOCTYPE = '????'.
    ENDIF.
  ENDIF.

  IF V_VBTYP = 'K'.
    BUSINESS_OBJECT = '2094'.
  ELSEIF  V_VBTYP = 'L'.
    BUSINESS_OBJECT = '2096'.
  ENDIF.

Regards

Waza

Former Member
0 Kudos

Hi Ankita,

There can be multiple Things which are leading to this error :

1. First Check that the Sold To party and corresponding Ship to party are Managed in Customer Master ( XD01 )

2. You might not have entered Data in PARTNERS_EX Import table in Your BAPI. You can see that down the List.

3. You can also use BAPI_SALESORDER_CREATEFROMDAT2 for the purpose.

Let me know if it helps.


Thanks

Gaurav Guglani

former_member221367
Participant
0 Kudos

thanx warren and gaurav

warren , I need reference document .I used BAPI_SALESDOCU_CREATEFROMDATA but its not giving ref doc so I m working on  SD_SALESDOCUMENT_CREATE .

Gaurav ,
PARTNERS_EX is not inside SD_SALESDOCUMENT_CREAT

and
BAPI_SALESORDER_CREATEFROMDAT2 is not creating credit memo request with refence to billing doc its giving error as ' Unpermitted combination of business object BUS2032 and sales doc. category K'

0 Kudos

I just gave you an example of my code with the FM that you are using.

Regards

Waza

0 Kudos

First try to copy the reference document to credit memo using the standard transaction, then see whether u able to create without any errors. Then proceed with BAPI.

former_member221367
Participant
0 Kudos

thanx to all

solved ...

0 Kudos

Hi Ankita , this might be a very old one for you , but I'm having the same issue at my end. Although I've maintained the partner details in the partner structure but I'm still getting this message . Could you tell me how did you solve it ?

0 Kudos

Hi. How did u solve/ Can you tell?