2007 May 15 6:31 PM
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.
2007 May 15 6:39 PM
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.
2007 May 15 6:35 PM
Hi,
You can use the FM SD_SALESDOCUMENT_CREATE
In that for with reference pass
REFOBJTYPE
REFOBJKEY
REFDOCTYPE
Thanks,
Naren
2007 May 15 6:39 PM
Hi
check the BAPI's
<b>BAPI_DRMCREDITMEMOREQ_CREATE
BAPI_DRMDEBITMEMOREQ_CREATE</b>
Reward points if useful
Regards
Anji
2007 May 15 7:55 PM
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.
2007 May 16 12:00 AM
2007 May 16 12:02 AM
Hi,
The net value is determined based on the conditions..
Pass the corresponding condition types..which will determine the net value..
Thanks,
Naren
2007 May 16 4:00 PM
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..
2007 May 16 4:27 PM
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
2007 May 16 11:15 PM
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
2007 May 16 11:22 PM
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
2007 May 17 3:18 PM
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.