‎2009 May 09 9:02 AM
Hi experts,
I am using BAPI_SALESDOCU_CREATEFROMDATA to create debit memo requests with reference to sales orders.But when i checked the sales order after debit memo creation,it was not showing debit memo request as preceding document. It seems that it is not working as a reference document at all.Is there any BAPI or FM avaliable to create debit emo request with reference to sales orders.
Thanks and regards,
Meenakshi.
‎2009 May 11 3:45 AM
‎2009 May 11 5:25 AM
Hi,
When i used SD_SALESDOCUMENT_CREATE,then also i am facing the same problem.Debit memo request is getting created,but when i check reference sales doc in VA03,this request is not reflecting under it,which means that it is creating irrespective of reference sales doc.
i am passing following parameters:
Please let me know where i am going wrong,
Header:
REFDOCTYPE:ZCRU
DOC_TYPE:ZDR
SALES_ORG:1000
DISTR_CHNL:50
DIVISION:30
BILL_BLOCK:ZC
ORD_REASON:ZYF
SD_DOC_CAT:C
REF_DOC:(CRU SALES ORDER NO)
REF_DOC_CAT:C
Itemdata:
ITM_NUMBER:010
MATERIAL:SOME CORRESPONDING MATERIAL
TARGET_QTY:1
Partner data:
PARTNER ROLE:AG
PARTNER NUMBER:CORRESPONDING KUNNR
Thanks and regards,
Meenakshi
‎2009 May 11 5:26 AM
i forgot to mention that i am passing BUS2096 also in business object.
‎2009 Jul 13 1:25 PM
Hi,
Try passing the reference document also in ItemData -> BAPISDITM-REF_DOC = ...
BAPISDITMX-REF_DOC = 'X'.
Regards,
Viorel.