cancel
Showing results for 
Search instead for 
Did you mean: 

Linking Sales order and a credit memo Request

Former Member
0 Kudos

Hello All,

I am creating a credit memo request using the function module SD_SALESDOCUMENT_CREATE.

I want to link the sales order to the newly created credit memo request.

Is it the right way to use BINARY_RELATION_CREATE for it or is there any other method for it.

Accepted Solutions (0)

Answers (1)

Answers (1)

Jelena
Active Contributor

Use BAPIs, not FM.

What are you trying to achieve exactly? Credit memo request is usually created with reference to a billing document. The referenced document # can be passed to BAPI. This is standard functionality.

The users can navigate to the sales order referenced by the billing document through the standard document flow. Or you could use a document flow BADI (SAP note 2449464) and add other items to the document flow, as needed. It'd seem redundant to me in this case though.

Former Member
0 Kudos

Hello Jelena,

Thank you for your reply.

I am trying to create a credit memo request in reference to a contract.

We Can not create a credit memo request using the BAPI BAPI_SALESDOCU_CREATEFROMDATA1 , I am using the function module SD_SALESDOCUMENT_CREATE.

This function module SD_SALESDOCUMENT_CREATE is called inside the BAPI BAPI_SALESDOCU_CREATEFROMDATA1.

I have tried passing the reference document number, but there was an error in creating Credit memo request itself.

So I searched and found the function module BINARY_RELATION_CREATE to link.

But I am not sure whether this will work or not.

Jelena
Active Contributor
0 Kudos

Please request an SD consultant to clarify the specification for you. BINARY... FM has nothing to do with creating documents with reference. And creating credit memos with reference to a sales document (either order or contract) would be a very odd process. I suspect there was some misunderstanding of the requirements.