Application Development and Automation 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: 
Read only

BAPI_SALESDOCU_CREATEFROMDATA not working

Former Member
0 Likes
758

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.

4 REPLIES 4
Read only

Former Member
0 Likes
586

Hi,

Check Code in Below Link.

Salil.....

Read only

0 Likes
586

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

Read only

0 Likes
586

i forgot to mention that i am passing BUS2096 also in business object.

Read only

0 Likes
586

Hi,

Try passing the reference document also in ItemData -> BAPISDITM-REF_DOC = ...

BAPISDITMX-REF_DOC = 'X'.

Regards,

Viorel.