on 11-03-2017 12:12 PM - last edited on 02-04-2024 2:08 AM by postmig_api_4
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.