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 to create credit/debit memo request with and without reference

Former Member
0 Likes
7,375

Hi..

Can anyone tell me what bapi's i can use for creating credit memo request/credit memo request with reference and debit memo request/debit memo request with reference.

Thanks and appreciate ur help.

will reward helpful answers.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,759

Hi

check the BAPI's

<b>BAPI_DRMCREDITMEMOREQ_CREATE

BAPI_DRMDEBITMEMOREQ_CREATE</b>

Reward points if useful

Regards

Anji

Hi..

Can anyone tell me what bapi's i can use for creating credit memo request/credit memo request with reference and debit memo request/debit memo request with reference.

Thanks and appreciate ur help.

will reward helpful answers.

10 REPLIES 10
Read only

Former Member
0 Likes
3,759

Hi,

You can use the FM SD_SALESDOCUMENT_CREATE

In that for with reference pass

REFOBJTYPE

REFOBJKEY

REFDOCTYPE

Thanks,

Naren

Read only

Former Member
0 Likes
3,760

Hi

check the BAPI's

<b>BAPI_DRMCREDITMEMOREQ_CREATE

BAPI_DRMDEBITMEMOREQ_CREATE</b>

Reward points if useful

Regards

Anji

Read only

0 Likes
3,759

Thanks for the reply. Can you please let me know how i can pass net value (netwr) at the header level and line item level. Also i need to pass the field vbak-knuma at the header level, and order item reason at the line item level (vbap-zzreason1(order item reason code).

Appreciate if you can let me know in what strucutures i can pass those data..

Thanks.

Read only

0 Likes
3,759

any help..

Read only

Former Member
0 Likes
3,759

Hi,

The net value is determined based on the conditions..

Pass the corresponding condition types..which will determine the net value..

Thanks,

Naren

Read only

0 Likes
3,759

Thanks for the reply..

I have two more fields vbak-knuma (agreement) at the header level, and order item reason (custom field) at the line item level (vbap-zzreason1(order item reason code).

Can you please let me know in what structures of the bapi, i can pass those two fields.. Also i need to upload the textid too..

Appreciate your help..

Read only

Former Member
0 Likes
3,759

Hi,

For updating custom fields check the function module for

bapi BAPI_SALESORDER_CREATEFROMDAT2

In that click on the EXTENSIONIN link to know how exactly to pass the values to the EXTENSIONIN internal table..

Thanks,

Naren

Read only

0 Likes
3,759

Hi Naren..

Thanks for the reply. Apart from the custom field iam left with one more field (VBAK-KNUMA) Rebate Agreement field. Any idea in which structure field i can pass this field.. I explored all the structures available but could not find one for this..

Any idea how to proceed..

Thanks

Read only

Former Member
0 Likes
3,759

Hi,

I believe It's not there in any of the importing parameters / tables parameters..

But it is there in the exporting parameter SALES_HEADER_OUT.

VALUE(SALES_HEADER_OUT) LIKE BAPISDHD

It is of no use having it in the exporting parameters..

Thanks,

Naren

Read only

0 Likes
3,759

Yes Naren..

I do see that its available only in the export parameters. So what is the best way to populate this field along with other fields to create sales order/credit memo request. Can we use orders05 and create idoc to create the sales order.

Any idea what approach to be followed to create the credit and debit memo request based on the flat file data..

Thanks and appreciate your reply.