02-01-2013 9:11 AM
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.
02-01-2013 9:26 AM
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
02-01-2013 9:41 AM
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
02-01-2013 11:46 AM
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'
02-04-2013 1:29 AM
I just gave you an example of my code with the FM that you are using.
Regards
Waza
02-04-2013 1:37 AM
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.
02-04-2013 8:13 AM
01-29-2021 12:30 PM
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 ?
03-01-2022 12:35 PM