BAPI Credit Memo Request w/r billing doc
Hi everyone,
I need to create credit memo request via VA01 with reference to billing document.
Is there any BAPI or FM available?
Thanks in advance.
With BAPI_SALESDOCU_CREATEFROMDATA1, I can able to create credit memo with sales doc type and sales area data.
But not able to create it with reference to billing doc.
I tried the BAPI_SALESDOCU_CREATEFROMDATA1 with
SALES_HEADER_IN
REFOBJECTTYPE = Billing doc
REFDOCTYPE = Billing doc type
DOC_TYPE = sales doc type
SALES_PARTNERS
PARTN_ROLE = sold-to
PARTN_NUMB = sold-to number
But it gives an error message 'No pricing procedure determined'. Can you pl help to sort out the issue?
Similar Messages
-
Error while creating Credit Memo Request for Milestone billing invoice
Hi All,
I have a scenario where i have Milestone billing(% based) at header level in Contracts. I create Invoice for that and then try to create Credit Memo Request with reference to the Invoice.
Problem comes when we try to change the qty in the credit memo request. we are able to change the qty but the value is not changing. It remains the same constant value of that milestone.
In my copy control from Invoice to Credit memo request for the item category i have maintained the pricing type as "C" because i want to copy and manual conditions.
So kindly let me know which config setting should be done so that whenever i change the qty the value should also be changed.
Please Note : This is happening only when my billing plan is at header level. For Billing plan at Item level its working fine.....
Thanks.....Hiiii.....
Can anyone please advise on the below issue of mine.....
Thanks alot for the help.......in advance -
Credit Memo more value than Bill Doc?
Can i raise a credit memo which has more value than the billing document.
1. Is this possible
2. If possible, where and what are the config settings
Thanks
Regards,
MaheHi,
Your Credit Memo Request has to be Equal or Less than the original Billing document, First place why you want to have such a facility.
You requirement is possible in SAP.
System will give you a WARNING message when you try to do so. Message number is V4 - 229 in transaction OVAH.
If you set it to E, then you cannot refer more than what is available in Billing.
So as per your requirement, keep it as W or BLANK.
Best regards,
Anupa -
Automatic billing document creation upon saving credit memo request.
Hi,
I have a requirment where in :
When a Credit Memo Request is created(va01) and upon saving the credit memo request an automatic billing document needs to be genereated i.e Credit Memo.
How can this be achieved.
ThanksHi Keni
If a Credit Memo Request is created and after saving the Credit Memo Request , automatic billing should happen means you should maintain a new sub-routine and assign in the copy control VTFA . In that sub-routine maintain a logic that once the Credit Memo Request is saved automatic billing should happen
Regards
Srinath -
Is it possible to change 'billing status' after making credit memo request?
Hi. This is Kwangkyun Choi from Samsung SDS in Korea as a SD system operator.
Our system can make billing documents from contract without making sales order and outbound delevey.
And the contract can use milstone billing.
When we make billing document using contract,
one of the milestone billing item's 'billing status' has been changed from A (Not yet processed) to C (Completely processed).
And also when we cancel the billing, the status has been changed from C to A.
BUT,
When I make CREDIT MEMO request referenced the billing document,
at that time the 'billing status' doesn't changed.
It was still 'C (Completely processed)'.
I want to change that value 'A'.
Is there any methods to solve this problem?
I couln't find any solution using customising IMG setting.
PLZ help to solve this problem.
Best Regards.
Edited by: Kwang-Kyun Choi on Oct 13, 2009 10:45 AMHello,
Let me clear my thought on this issue related to Billing Status of the Billing Docoument. You want to change the billing status of billing document to not yet processed after you have created a credit memo request. If this is the case then my explanation would be as :
when billing document is generated and then Accounting document is also generated, the billing status is fully completed. Nothing is rejected here nor nothing is left over. When you are creating a credit memo request, which is of course created with reference to Billing document then the billing status under no circumstances can change to "not yet processed" as the billing process is completed. Morever you are creating the credit memo request to adjust payment for the cusotmer.
Hope this helps to understand !!
Regards,
Sarthak -
Creation of Credit Memo request from the contract invoice
Hi all,
I would like to know the relationship between the contract invoice (billing document type, ZULG) and the associated credit memo requests. I have the billing document no, and need to know all the associated credit memo requests.
It is possible to find the reference billing document from the credit memo request, as it is created with respect to a billing document, but is it possible to find the credit memo requests from the billing document?
Any info on this relationship would be really appreciated.
Many thanks,
SruthyHi!
If the credit memo is created as a follow on order with respect to the contract, it is possibel to find the credit memo request through the doc flow.
Thanks & Regards
Birlabose -
Diff bet credit memo and credit memo request
Hi
Can any one tell the difference between Credit Memo and Credit Memo Request
Thanks in advanceHi,
Below is the information on crdit memo request.
Definition: A credit memo request is a sales document used in complaints processing to request credit for a customer.
Use: If the price calculated for the customer was too high (for example, with the wrong scaled prices or because a discount was forgotten), you can create a credit memo request. The credit memo request can be automatically blocked for checking. Once it has been approved, you can remove the block.The system uses the credit memo request to create a credit memo.
Structure: A credit memo request is another type of sales document like a standard order. For more information on sales documents, see Working with Sales Documents.A credit memo request starts the billing process.
=============================================
Below mentioned is the information on Credit Memo.
Definition: The term credit memo always refers to a credit memo from the vendor. Therefore, posting a credit memo always leads to a debit posting on the vendor account.
Use: As in the case of invoices, credit memos refer to purchase orders or goods receipts. They are used to correct the purchase order history if the quantity invoiced was too high, for example, if an invoice was too high or if part of the quantity was returned.
When you post a credit memo, the total quantity in the purchase order history is reduced by the credit memo quantity.
If you do not want the total quantity invoiced to be reduced, you must post the credit memo as a subsequent credit.
Hope this helps. Please let me know if you need more information and please assign points.
Rgds
Manish -
Credit Memo Request Validation
Hello.
I want apply a standard validation process when i create a Credit Memo Request
from a Billing Document.
The Net Value on the Credit Memo Request can't exceed the net value of the Billing
Document.
Is there a standard way of doing this?
Thanks for your answers.Hi,
Please check with copy control settings in VTAF from invoice to order...
there have a look into complete reference field at header level and pricing type field at item level..
This may help you some what....
Regards
sankar -
Credit memo request from Billing Doc.
Hi All,
I am creating Credit memo request from Billing Doc.(both having Same Pricing procedure)
Now i dont want JVAT condiion in Credit emo Request.I have created one user exit.
But now, JVAT is mandatory condition in Pricing Procedure, which is giving error of incompletion.
How to Proceed.
Regards,
Antaa21Hi Ajit,
I have assigned new pricing procedure for Credit memo request,which is not getting determined when you create credit memo request with reference to Billing doc.
Reg,
Amol -
Mass change of pricing date and billing date in credit memo request
Hi,
Can i change the billing date pricing date on credit memo request docs using MASS transaction?
If i enter the regular sales order number it prompts me to change the value but if i enter the credit memo request doc number,the message "No data meets the selection criteria" is displayed.I also checked with IDES ,message is the same
Is there any different way to do mass change for credit memo requests or am i missing something here.
Please Suggest
Thanks
Abhilash NayakHi,
Go to the transaction code MASS and enter the OBJECT TYPE as BUS2032 and enter
It will lead you to the next screen where you can find the Table and Field TABS
Select the SALES ORDER HEADER DATA and choose the fields data and choose the fields PRICING DATE and BILLING DATE and execute
In the subsequent screen you can see the selection screen where you can enter all the Sales documents for which you want to change
Key in all the documents and execute
Now change the date as per your requirement and check the effect
regards,
santosh -
BAPI to create a credit memo request
Is there a standard BAPI that can create a credit memo request?
If not, then can we copy a standard BAPI to a Z-version and amend that?
Sample code appreciated.
Thanks,
JohnThe suggestion to use SD_SALESDOCUMENT_CREATE proved fruitful.
For creating with reference to an invoice:
Setting ref_doc and ref_doc_ca for each line-item in sales_item_in seems necessary for the creation of the document flow. Maybe it also brought through other data from the invoice?
Setting ref_doc and refdoc_cat for sales_header_in caused header text (and maybe other stuff?) to be brought through from the invoice.
It looks like it will do bills of materials - there's hg_lv_item in sales_items_in - but I've yet to try that.
Here's the code of a demo program for a one-line CMR.
REPORT YJNM_CREATE_CMR5 .
Uses SD_SALESDOCUMENT_CREATE
parameters:
p_vgbel like vbrk-vbeln default '90175587', "reference invoice
p_fkdat like vbkd-fkdat default sy-datum, "billing date
p_auart like tvak-auart default 'Z002', "sales document type
p_vkorg like tvko-vkorg default '3', "sales org.
p_vtweg like tvtw-vtweg default '01', "distr. chan.
p_spart like tspa-spart default '06', "division
p_vkbur like tvbur-vkbur default '034', "sales office
p_kunnr like kna1-kunnr default '16797', "sold-to
p_bstnk like vbak-bstnk default 'pono00000017',
"PO number
p_bname like vbak-bname default 'Bartholomew Snodgrass',
"name of orderer
p_augru like tvau-augru default '002'. "order reason
selection-screen skip.
selection-screen begin of block i1 with frame title text-001.
parameters:
p_matnr like mara-matnr default '27585', "material number
p_zmeng type dzmengc default '65', "target quantity
p_netwr like vbap-netwr default '1.20', "net amount
p_arktx like vbap-arktx default 'Afternoon tea',
"short text
p_fbuda like vbkd-fbuda default '20060109'."service-rendered date
selection-screen end of block i1.
data:
return like bapiret2,
returns like table of return,
salesdocument_ex like bapivbeln-vbeln,
sales_header_in like bapisdhd1,
sales_item_in like bapisditm,
sales_items_in like table of sales_item_in,
sales_condition_in like bapicond,
sales_conditions_in like table of sales_condition_in,
sales_partner like bapiparnr,
sales_partners like table of sales_partner,
incomplete_log like bapiincomp,
incomplete_logs like table of incomplete_log.
perform:
fill_sales_header_in,
fill_sales_items_in,
fill_sales_partners,
fill_sales_conditions_in,
call_bapi.
FORM call_bapi .
CALL FUNCTION 'SD_SALESDOCUMENT_CREATE'
EXPORTING
SALESDOCUMENT =
SALES_HEADER_IN = sales_header_in
SALES_HEADER_INX =
SENDER =
BINARY_RELATIONSHIPTYPE = ' '
INT_NUMBER_ASSIGNMENT = ' '
BEHAVE_WHEN_ERROR = ' '
LOGIC_SWITCH = ' '
BUSINESS_OBJECT = 'BUS2094' "cred. mem. req.
TESTRUN =
CONVERT_PARVW_AUART = ' '
STATUS_BUFFER_REFRESH = 'X'
IMPORTING
SALESDOCUMENT_EX = salesdocument_ex
SALES_HEADER_OUT =
SALES_HEADER_STATUS =
TABLES
RETURN = returns
SALES_ITEMS_IN = sales_items_in
SALES_ITEMS_INX =
SALES_PARTNERS = sales_partners
SALES_SCHEDULES_IN =
SALES_SCHEDULES_INX =
SALES_CONDITIONS_IN = sales_conditions_in
SALES_CONDITIONS_INX =
SALES_CFGS_REF =
SALES_CFGS_INST =
SALES_CFGS_PART_OF =
SALES_CFGS_VALUE =
SALES_CFGS_BLOB =
SALES_CFGS_VK =
SALES_CFGS_REFINST =
SALES_CCARD =
SALES_TEXT =
SALES_KEYS =
SALES_CONTRACT_IN =
SALES_CONTRACT_INX =
EXTENSIONIN =
PARTNERADDRESSES =
SALES_SCHED_CONF_IN =
ITEMS_EX =
SCHEDULE_EX =
BUSINESS_EX =
INCOMPLETE_LOG = incomplete_logs
EXTENSIONEX =
CONDITIONS_EX =
PARTNERS_EX =
TEXTHEADERS_EX =
TEXTLINES_EX =
BATCH_CHARC =
perform imcompletion_log.
loop at returns into return where type ne 'S'.
message id return-id type 'I' number return-number
with
return-message_v1
return-message_v2
return-message_v3
return-message_v4.
endloop.
if salesdocument_ex is initial.
write: / 'Document not created'.
else.
commit work.
write: / 'Sales document number:', salesdocument_ex.
endif.
ENDFORM. " call_bapi
FORM fill_sales_header_in .
clear sales_header_in.
move:
p_fkdat to sales_header_in-bill_date,
p_vgbel to sales_header_in-ref_doc, "invoice number
'M' to sales_header_in-refdoc_cat, "invoice
p_auart to sales_header_in-doc_type,
p_vkorg to sales_header_in-sales_org,
p_vtweg to sales_header_in-distr_chan,
p_spart to sales_header_in-division,
p_vkbur to sales_header_in-sales_off,
p_bstnk to sales_header_in-purch_no_c,
p_bname to sales_header_in-name,
p_augru to sales_header_in-ord_reason.
ENDFORM. " fill_sales_header_in
FORM fill_sales_partners .
clear sales_partner.
sales_partner-partn_role = 'AG'.
sales_partner-partn_numb = p_kunnr.
append sales_partner to sales_partners.
ENDFORM. " fill_sales_partners
FORM fill_sales_items_in .
perform one_item_in using:
10
p_matnr
p_zmeng
p_netwr
'GBP'
p_arktx
p_fbuda.
ENDFORM. " fill_sales_items_in
FORM one_item_in using value(p_itm_number)
value(p_p_matnr)
value(p_p_zmeng)
value(p_p_netwr)
value(p_p_waerk)
value(p_p_arktx)
value(p_p_fbuda).
clear sales_item_in.
move:
p_itm_number to sales_item_in-itm_number,
p_fkdat to sales_item_in-bill_date,
p_vgbel to sales_item_in-ref_doc, "invoice number
'M' to sales_item_in-ref_doc_ca, "invoice
p_p_matnr to sales_item_in-material,
p_p_zmeng to sales_item_in-target_qty,
p_p_netwr to sales_item_in-target_val,
p_p_waerk to sales_item_in-currency,
p_p_arktx to sales_item_in-short_text,
p_p_fbuda to sales_item_in-serv_date.
append sales_item_in to sales_items_in.
ENDFORM. " one_item_in
FORM fill_sales_conditions_in .
refresh sales_conditions_in.
perform one_sales_condition_in using:
10
p_netwr
'GBP'.
ENDFORM. " fill_sales_conditions_in
FORM one_sales_condition_in using value(p_itm_number)
value(p_p_netwr)
value(p_p_waerk).
clear sales_condition_in.
move:
p_itm_number to sales_condition_in-itm_number,
'PR00' to sales_condition_in-cond_type,
p_p_netwr to sales_condition_in-cond_value,
p_p_waerk to sales_condition_in-currency.
append sales_condition_in to sales_conditions_in.
ENDFORM. " one_sales_condition_in
FORM imcompletion_log .
loop at incomplete_logs into incomplete_log.
write: / incomplete_log-itm_number,
incomplete_log-field_text,
incomplete_log-table_name,
incomplete_log-field_name.
endloop.
ENDFORM. " imcompletion_log -
BAPI to create credit memo requests in SAP
Hi All,
I have a requirement to create Credit memo request in SAP SD. I'm trying to use the BAPI which is used for Sales order creation - BAPI_SALESORDER_CREATEFROMDAT2 since credit memos are also sales orders of diff. sales document type. However, the BAPI throws an error as follows
"Unpermitted combination of business object BUS2032 and sales doc. category K".
Does this mean that the business object BUS2032 does not support creation of cerdit memo request ? If yes, can anyone suggest an alternate BAPI to be used to address this requirement ?
Thanks,
Venkat.Hi Venkatesh,
Thanks you for your post, your post has helped me a ton in my work, Infact I was working on BAPI to
Create Credit Memo request i.e BAPI_SALESORDER_CREATEFROMDAT2 as expected i got the same error as "Unpermitted combination of business object BUS2032 and sales doc. category K" and i tried on other BAPI it worked, Just i need to know BUS2032 doesn't support Credit Memo Request, How we can find it
to what Sales document it support? -
Setting up multiple billing blocks for a CMR - Credit Memo Request
I am trying to set a billing block for a credit memo request. The item category in VOV7 configuration only allows you to set one. I need to be able to set any of them and for it to block. If we do not use one; the system allows the credit memo to get created. If we choose the one that we configured in VOV7 it allows us to only use that one. The client needs to be able to select any billing block from the drop down when creating a credit memo request in VA01 instead of just one specific one. Is this possible? If so, where would I do this?
Surprising! when a billing block is applied in the sales document, then the system will NOT allow to create the billing document(in your case credit memo). Can you check in t.code OVV3, the billing blocks are assigned to billing types? After assigning, create a new document and test. The path is SPRO->Sales and distribution -> billing->billing documents ->define blocking reasons for billing->assign blocking reasons to billing types.
Regards, -
Problem while creating credit memo request using BAPI
HI,
I am trying to create credit memo request using the BAPI_SALESDOCU_CREATEFROMDATA1..
I am getting the error as " No customer master data is available for the customer". But the customer exists in the KNA1 table. What is the mistake i hv done.. this s my code..
REPORT ZSV_CREDITMEMO_TEST1.
Data declarations.
DATA: v_vbeln LIKE vbak-vbeln.
DATA: header LIKE bapisdhead1.
DATA: headerx LIKE bapisdhead1x.
DATA: item LIKE bapisditem OCCURS 0 WITH HEADER LINE.
DATA: itemx LIKE bapisditemx OCCURS 0 WITH HEADER LINE.
DATA: partner LIKE bapipartnr OCCURS 0 WITH HEADER LINE.
DATA: return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
DATA: lt_schedules_inx TYPE STANDARD TABLE OF bapischdlx
WITH HEADER LINE.
DATA: lt_schedules_in TYPE STANDARD TABLE OF bapischdl
WITH HEADER LINE.
DATA: lt_schedules_ink TYPE STANDARD TABLE OF bapisdhead1
WITH HEADER LINE.
START-OF-SELECTION.
Header data
Sales document type
header-doc_type = 'G2'.
headerx-doc_type = 'X'.
Sales organization
header-sales_org = '0001'.
headerx-sales_org = 'X'.
Distribution channel
header-distr_chan = ''.
headerx-distr_chan = 'X'.
Division
header-division = ''.
headerx-division = 'X'.
headerx-updateflag = 'I'.
*Complete delivery
header-COMPL_DLV = ''.
header-COMPL_DLV = 'X'.
Partner data
Sold to
partner-partn_role = 'AG'.
partner-partn_numb = '0000C10130'.
APPEND partner.
Ship to
partner-partn_role = 'WE'.
partner-partn_numb = ''.
APPEND partner.
ITEM DATA
itemx-updateflag = 'I'.
Line item number.
item-itm_number = '000010'.
itemx-itm_number = 'X'.
Material
item-material = 'C20011'.
itemx-material = 'X'.
Plant
item-plant = ''.
itemx-plant = 'X'.
Quantity
item-target_qty = '10000'.
itemx-target_qty = 'X'.
item category
itemx-ITEM_CATEG = 'X'.
APPEND item.
APPEND itemx.
Fill schedule lines
lt_schedules_in-itm_number = '000010'.
lt_schedules_in-sched_line = '0001'.
lt_schedules_in-req_qty = '10000'.
APPEND lt_schedules_in.
Fill schedule line flags
lt_schedules_inx-itm_number = '000010'.
lt_schedules_inx-sched_line = '0001'.
lt_schedules_inx-updateflag = 'X'.
lt_schedules_inx-req_qty = 'X'.
APPEND lt_schedules_inx.
Call the BAPI to create the sales order.
CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA1'
EXPORTING
sales_header_in = header
sales_header_inx = headerx
IMPORTING
salesdocument_ex = v_vbeln
TABLES
return = return
sales_items_in = item
sales_items_inx = itemx
sales_schedules_in = lt_schedules_in
sales_schedules_inx = lt_schedules_inx
sales_partners = partner.
Check the return table.
LOOP AT return WHERE type = 'E' OR type = 'A'.
EXIT.
ENDLOOP.
IF sy-subrc = 0.
WRITE: / 'Error in creating document'.
ELSE.
Commit the work.
COMMIT WORK AND WAIT.
WRITE: / 'Document ', v_vbeln, ' created'.
ENDIF.
can anyone tell what the error is.?Hi
please look at code below code this succefully creating credit memo may some help to you
header-doc_type = 'ZS4'.
PERFORM get_plant.
headerx-doc_type = 'X'.
header-sales_org = wa_temp1-vkorg.
headerx-sales_org = 'X'.
header-purch_no = wa_temp1-bstnk.
header-distr_chan = wa_temp1-vtweg.
headerx-distr_chan = 'X'.
header-division = wa_temp1-spart.
header-purch_no_s = wa_temp1-bstnk.
headerx-division = 'X'.
wa_partner-partn_role = 'AG'.
wa_partner-partn_numb = wa_temp1-kunnr.
APPEND wa_partner TO it_partner.
wa_partner-partn_role = 'WE'.
wa_partner-partn_numb = wa_temp1-kunnr.
APPEND wa_partner TO it_partner.
CLEAR: wa_partner.
LOOP AT lt_temp2 INTO wa_temp2 WHERE kunnr = wa_temp1-kunnr.
"AND matnr = wa_temp1-matnr.
*wa_item-itm_number = wa_temp2-posnr .
wa_item-material = wa_temp2-matnr.
wa_item-plant = wa_temp2-werks.
wa_item-req_qty = wa_temp2-fkimg * 1000.
wa_item-target_qty = wa_temp2-fkimg * 1000.
APPEND wa_item TO it_item.
ENDLOOP.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
EXPORTING
order_header_in = header
* WITHOUT_COMMIT = ' '
* CONVERT_PARVW_AUART = ' '
IMPORTING
salesdocument = v_vbeln
* SOLD_TO_PARTY =
* SHIP_TO_PARTY =
* BILLING_PARTY =
return = return
TABLES
order_items_in = it_item
order_partners = it_partner.
IF v_vbeln <> space.
wa_vbeln-vbeln = v_vbeln.
APPEND wa_vbeln TO lt_vbeln.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
HIDE wa_vbeln-vbeln.
CLEAR: wa_partner,header,v_vbeln, wa_temp2.
REFRESH: it_partner,it_item.
ELSE.
* LOOP AT return .
it_error-srno = idx.
it_error-err_msg = return-message.
APPEND it_error.
* ENDLOOP.
ENDIF.
idx = idx + 1.
ENDLOOP.
Regards -
Credit Memo request with reference to Billing Document number via IDoc
Hi,
I want to create credit memo request with reference to billing document number via IDocs.
I have tried through ORDERS05, but when I process I saw that it is only processing with reference to contract number or quotation.
So is any other way of creating credit memo request creation with reference to Billing document number via IDocs?
Thank you in advance.
Regards,
SanthiPlease Help... it is Urgent... Thank you
Maybe you are looking for
-
How to transfer SLD data from PI 7.1 to Solman 7.0
Hi . I Have a Landscape with Solman 7.0 (Central SLD) and PI 7.0 (DEV, QLT,PRD)-- Local SLD's, now customer wants to update from PI 7.0 to PI 7.1. PI Local SLD's are pointing to Central SLD of Solman through SLD data Bridge. But if i upgrade PI from
-
Only LiveCycle Data Services 2.6 and higher are supported.???
not sure if this is the right forum but I have flash builder with sdk 4.1 and I recently installed blazeDS turnkey and tried to set uo a new flex project with a J2EE server type. However I get this message and am unsure what to do. Only LiveCycle Dat
-
I am having problems setting the default view settings for Acrobat Pro 8. I have read some other posts and the view always defaults to something other than the settings I have chosen. I have: Chosen to not remember view settings of previously opened
-
I'm trying to find the best way to zip a file from a Cocoa app. I have found a lot of information using NSData, but do not actually want to ready in the text file first. I'm trying to use execlp, but am also trying to understand forking at the same t
-
Why I get this exception in an applet?
I run the JMF Diagnostics Applet in my IE5.0, while in the applet area,there's only the message: Exception:java.security.AccessControlException:access denied(java.net.SocketPermission samples resolve). The target of this applet is just using the meth