Create Credit Memo (VA01) - Problem of checking a field before saving
Hello!
In tcode VA01, why a field (ex. Customer Group) is checked to be filled before saving in case of a Standard order (type OR, or for us is ZOR), but not in case of a Credit Memo (type CR, or for us is ZCR) ? Is this Config problem? If yes, do you know how to config? If not, do you know any User-Exits I should use? I've tried some but didn't work.
Please help if you can. Thanks!!
Hi Timmy,
Please go to include MV45AFZZ and try the user exits
USEREXIT_SAVR_DOCUMENT
in here VBAK values are present in XVBAK and VBAP values in table XVBAP....
Write the required code here and see if it solves our problem
Every time user clicks the 'SAVE' button it has to go through this exit
Regards
Byju
Similar Messages
-
Check mandatory fields before saving
Hello,
In my Z-program, how can I check all mandatory fields in a dynpro before saving?
Is there any function to do that?
Thanks!!!Hi alberto,
1. If the fields are mandatory (as set in the field attributes while designing the screen),
2. then we don't have to write any additional logic for the same.
The system will AUTOMATICALLY check for it, and issue appropriate message.
regards,
amit m. -
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 -
Not able to Create Credit Memo During Return Sales Order
Hi Guru's,
Need your help in the below problem:-
While Creating Return Sales Order it give us Order No with delivery no. and then finally I am able to do VL02N where I did Post Good Return sucessfully and also check using MB51 that goods got return.
But when we try to create Credit Memo using VF01 I got the below message in log.
Error Log
0060000799 000000 "Create billing document" not allowed (User Status LKD, object VB0060000799000000)
LongText
Technical data ))))))))
I have checked all copy control including Iteam Category etc etc all are in place.
Looking for your help.
Thanks
Best Regards
Bidhan KonarThanks Krishna,
Thanks for the solution. Find below the steps which i follow:-
Go to Tcode VA02, Use the sale order reference and execute. From top menu bar, click on "Goto -- Header -- Status. Then again click on "Object Status" and when check I find that lock is there:- A radio button checked at -- 10 LKD Locked and change it to
--20 REL Released and SAVE. Finally working.
Thanks
BR
Bidhan
Edited by: Bidhan Konar on Jun 3, 2010 8:35 PM -
In Invoice created credit memo to Customer which causing below error
Dear Experts,
A PO was raised with GR Done completely. and Invoice was also posted with wrong value. again to correct that invoice user created credit memo to the vendor . .
Then we are running MR11 then we are ending up this Error in Routine DMENG_DETERMINE, RE_BPMNG<0 could you please let me know how to solve this problem
Thanks in Advance
ChandraHi Expert,
Please refer the below link..
Try this before referring the link...
Please check
If FI document has been cleared already or not.
You should take the clearing FI document back (or reverse it) using FI - T-Code:FB08
Transactions if the follow on FI doc has been cleared.
INVOICE REVERSED TWICE.
Regards,
GK
SAP -
Creating credit memo request - V1 498 / missing order quantity
Hi Experts,
could any of You pls help me with a credit memo creation issue?
I credit memo needed to be created based on invoice, so configuration and copy control is done as usual, but I have a failure during CR order creation referring to an invoice F2.
I got an error message: V1 498 - Credit already exist for item... - and no qty is transferred to new document
I have gone thought the threads on Forum, but none of the suggested solution was appropriate to solve the issue:
- the document flow is updated in copy control ,
- I can no remove the schedule line flag at VOV7 - the order qty will be missed but target qty is used, and end up incompletition (VU 019 error messge), so billing is faile
- completition control set as B at VOV7,
Still have the problem
Could any of You pls help me - answers will be appreciated.V1 498 - Credit already exist for item...
What the above message means is that lines items have already been used as reference for the creation of credit memo request(s).
Create a new sales order, delivery and billing document. Then create credit memo request with reference to this new billing document and test.
In VTAF copy control, at item level, field "Pos./neg. quantity" dictates how the quantity in the source document is affected by copy control.
PS - I tried to create credit memo with reference to billing document (F2), there were no issues there. Therefore I am taking that the issue is with credit memo request (copied with ref to billing document F2) -
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 -
Invoice Tax left after create credit memo (Receivable)
Hi All,
I have problem after creating Credit Memo(CM) in Receivable. The invoice line become 0 but invoice tax still appear.
It's caused the tax in CM is 0, even the line value have match value.
Can anyone help me?
Best regards,
ErieAnyone help?
-
Credit memo request problem using
Dear All,
I am creating credit memo request using SD_SALESDOCUMENT_CREATE, I am facing problems in this
1> Quatity field is empty in the SO(TARGET_QTY)
2> The credit memo is always being created with negative value, which should not be the case
Note: I am passing manual condition type in condition type where calculation type is B(fixed value).
Can anyone suggest me why is it creating Credit memo request with (-)ve value always.
Thanks and regards,
Kapil Shiavaji SonavaneNaren,
1> I have already used that, see the following code.
for SALES_ITEMS_INX
LOOP AT T_BAPISDITM1.
T_BAPISDITMX-ITM_NUMBER = T_BAPISDITM1-ITM_NUMBER.
T_BAPISDITMX-UPDATEFLAG = 'X'.
T_BAPISDITMX-TARGET_QTY = 'X'.
T_BAPISDITMX-TARGET_QU = 'X'.
APPEND T_BAPISDITMX.
ENDLOOP.
But still Quantity is blank.
2> Created Credit memo request is coming in (-)ve value this is major problem for me. -
Create Credit Memo referenced to Billing Document - Condition Types
Hello,
I need help on this particular situation, your help would be greatly appriciated.
I try to create a Credit Memo(VA01) with reference to the Billing Document, but I don't want to see on my Credit Memo a particular Condition Type from the Billing Document. Configuration solution or ABAP solution? and how?
What the system does now is, it copies all the Condition Types from the Billing Document to the newly created Credit Memo.
Thank you allHi,
Create a new pricing procedure without the condition type you donot wish to appear in the credit note. create/ use a different document pricing procedure for the credit note, do the required assignments.. this will meet the requirements
Regards,
Ajit -
Procedure for creating credit memo for sales return
Dear Gurus,
Please let me know the procedure creating a credit memo for sales returns.
I am able to cancel the invoice using vf11. create a return sales order using vao1. create a retrun delivery using vl01n, transfer the stock from returns to blocked to unrestricted use using mb1b and movement types 459 and 343.
Pls let me know the procedure for creating the credit memo for the goods receipt of sales return.Dear,
I am not geeting your question but well i explain in my company scenarion,
1) We create the Sales Order : VA01 ( Order type : ZREW : Return without invoice, ZRES : Return with Invoice)
Here, ZREW is our own created order type and it is maintain in config.
ZRES is use for Return with invoice. In that we enter the bill number in return sales order which sales.
2) In Delivery : VL01N : That is base on Return Sales order.
3) In Billing : VF01 : Create credit memo with resp. to delivery number.
Credit memo type : Same as sales order,
ZREW : Crd Return (W/O Inv)
ZRES : Credit For Returns.
Hope it will help you.
Regards,
Sandip -
How can we create credit memo with reference to INV
Hi,
Pls tell how can we post credit memo with reference to Invoice which is posted through SD.
Is there any use with reference to field in T.Code FB75.
Thanks in advance,
PadmajaHi Vijay,
I could not found any field for Inv. reference in the Payment Tab of T.Code FB75.
Is there any facility in SAP to create Credit Memo for a particular customer with reference to Invoice. All the details of that Invoice should get updated in the credit memo automatically.
Thanks in advance,
Padmaja -
Billing Status C in Sales Ord not getting reversed on creating Credit Memo?
Dear SD Guru's
I have a small query, i have such a scenario.
I create sales order for a saleable service material from (01.02.08 to 29.02.08) through order type (ZOOH)
Raise invoice in advance for 30 days on 01.02.08 through billing type (ZOIN) say 100 rupees.
Now on 15th client says he doesnt want the service and i issue a credit memo request (ZOCR) against my invoice type (ZOIN) and change the contract dates from 16.02.08 to 29.02.08 for value 50 rupees.
Now i create credit memo (ZOCM) for 16.02.08 to 29.02.08.
Now once i do that i want the billing status to be reversed in my original document (ZOOH) for period 16.02.08 to 29.02.08
How can we achieve this?
Please its urgent. Points will be suitably rewarded
Regards
RaviHi Krishna,
Your inputs have been valuable, but could you please tell me why doesnt it automatically edit the billing plan row against which i have raised my credit memo. I have to go and do it manually in my original sales document and edit the period.
Cant it happen automatically?
Kind Regards
Ravi -
Idocs to create credit memo and debit memo
Hi,
I need your expertise in creating credit memos and debit memos in sap using idocs.
I am working on integration between third party system and sap using web methods.
My requirement is to create credit memos and debit memos in sap using idocs.
Could you please help me with the message types for the credit and debit memos.
Thanks
RajuHi VJ,
thank you very much.
Is it possible to create credit memo without any reference to document in SAP.Because the third party system only sends very small amount of data
(customer number, amount, paymentmethod, date).
Can i be able to create the credit memo with the above information
Please help me..
Thanks
Raju -
Create credit memo automatically when creating returns to vendor...
How can i create create "Credit Memo" automatically upon creating
returns to vendor (Movement Type 122) considering right calculation of
the sales tax & withholding tax.Hi,
There is a special display variant in the item list for invoice reduction. You enter
the invoice quantities or values that differ to the quantities or values suggested by
the system separately into the item list. (You can only enter data in these fields
when you have flagged the item as Vendor error: reduce invoice).
When you post a reduced invoice, the system creates two accounting documents.
The first document contains the invoice postings with the actual quantities and
values. The second document contains a credit memo for the difference between
the actual quantities and values and the default quantities and values.
Therefore, with invoice reduction, you do not actually reduce an invoice. Instead,
you also post a credit memo for the amount of the reduction. The amount payable
to the vendor is the value of the invoice reduced by the credit memo amount.
The PO history is updated with the unchanged default values.
When you post an invoice reduction, the system creates a message record. You
can use this to send a letter of complaint (notification of credit memo posting)
to the vendor.
Regards
Ankur
Maybe you are looking for
-
I have a problem with the sound of the fb app. Whenever i receive a message i get a "click" sound. Sounds for the app are turned off so as notifications. I restarted, logged out but no results. Even when the ipad is on mute a get a sound when i get a
-
The following 2 queries gives me different result on running.. can anyone tell me the reason behind it.. is it a oracle error. Case statement gives me a additional unknown value..its not a null or a blank..why is it so? 1) select DISTINCT case when X
-
Edited photos not showing up later
When I edit photos and then go back to them they don't open. I can see the thumbnail, but if I click on it the image is just black. I know how to get the original photos back but I'd like to be able to edit photos still. Does anyone know how to fix t
-
PE9 prints photos with noticable shift to red
When I print a photo from Windows Explorer to my Canon i9900, the colors and values seem to be right on. But if I print the same photo from PhotoShop Elements 9 to the same printer (same settings), the colors definately shift towards red or magenta.
-
How do I dim the screen in ibooks
I used to get an option in iBooks to dim the screen - it disappeared a few updates ago - is there a new way of doing this now or has it been removed altogether, if so does anyone know why?