Skip to Content
0

Linking Sales order and a credit memo Request

Nov 03, 2017 at 12:12 PM

79

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Jelena Perfiljeva
Nov 03, 2017 at 05:02 PM
1

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.

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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.

0

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.

0