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
Similar Messages
-
Creating a master automatically when creating a detail row
Hi,
I'm using Jdev. 11.1.2.3.0
I have three tables (with their corresponding view objects) with a master/detail/detail relationship.
The first-level detail table contain a maximum of one row for each master row.
The ids of the first-level and second-level details are automatically generated with a groovy expression and a sequence.
The views are added on the page as table(master/)form(detail)/table(detail).
I have a case where a master record has no details and i need to create a row in the second-level detail table.
So is there a way to tell ADF to automatically create the first-level detail row (since the master is known) ? or i should manually check that such a row doesn't exists in the first-level detail table and thus create it before creating the row in the second-level detail table?
Thank you.So is there a way to tell ADF to automatically create the first-level detail row (since the master is known) ? or i should manually check that such a row doesn't exists in the first-level detail table and thus create it before creating the row in the second-level detail table?
Thank you.
No, there is no such option so you will need to manually create this row.
Dario -
How to create stored procedures automatically when creating new company
I need to create a method in our add-on Business One application that will create stored procedures at the time we install the add-on (when the new company is created). Where would I store the SQL scripts, and what SAP Business One commands do I need to use to build the stored procedures into the new company database? Can someone give me an example of how to do this? We are coding in C#, but an example in visual basic would also be helpful if no one out there in forum land uses C#
Thanks,
Nancy Walk
[email protected]Hi Nancy!
Of course are there people here that use C#
To solve your problem, create a routine in your add-on that checks at startup if the stored procedures are present. If they are not, create them. You can use the DI-API, or just add them directly to your database.
<i>Note: SAP does not like it when you play around directly in the SAP databases, and does not supply support for databases that are changed manually. You'd better use the DI-API...</i>
Hope it helps...
Grtz, Rowdy -
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 -
Delete credit memo work item created in VA01 when the user change value
Hi,
In T.code VA01 Credit memo request is creating, this document will automatically create work item. Based on Net value in credit memo request, the work item should go for 5 levels of approval. After 1st person is approved, the workflow initiator realized that the net value in created Credit Memo request is wrong; he is going to VA02 and correcting the net value. Again we have to create new work item for this and delete the already created work item. Client has clearly mentioned when ever there is change in 5 critical fields in VA02 then only create fresh work item otherwise no need to create SECOND TIME work item. Net value is one of the critical field in the list.
How to track already created credit memo request and how to delete the previously created work item. What is the feasibility of this requirement and how to handle this situation?
Regards
VijayHi,
Just put a Fork and put 1 out of 2 outcomes and in the first alternative, you put your witem that goes to user B. In the 2nd alternative, put a Wait for event "CHANGED". And after this, put a process control step with "Set workitems to Obsolete" or "Cancel workflow" etc., depending on your requirement.
Pl note that this will only take out old witems, but you need to send a new witem for which you need to trigger another instance of the workflow as well. pl put CHANGED event also as one of the triggering events and use condition editor to restrict the fields that triggers the workflow.
Also, look into the IMG config of the following path. This might be a fitting solution.
In SPRO, go to Financial Accounting (New)---> Financial Accounting Global settings(New) -
>Tools --->Workflow ---> Workflow for Document Parking -->Reset Release Approvals(Customers).
Here, you can list down the fields, the workflow should restart. But, then you need to give the workflow details etc., in the relevant config settings.
We have used this in restarting workflows for General Ledger(GL) documents' workflow when some important fields are changed.
For this config settings, look into the following help link.
http://help.sap.com/erp2005_ehp_02/helpdata/en/01/a9cdd8455711d182b40000e829fbfe/frameset.htm
Hope this helps.
venu -
Credit memo to be created with reference to return delivery
Dear Gurus,
We have a requirement for mapping return process
Credit memo to be created with reference to return delivery (instead of with reference to return order)
Following issue faced in mapping the same:
Billing document No. 1234 dated 25.03.2010 where there is 4% VAT.
when we are creating return order with reference to billing document 1234
4% VAT is calculated since the Service Rendered date is 25.03.2010 (Copied form Billing document)
return delivery is created today 08.04.2010. (VAT revised to 5%)
when credit memo is created with reference to delivery document
VAT is calculated 5% which is applicable from 01.04.2010
since the service rendered date is appearing in billing document
08.04.2010 (the date of Post Goods Receipt).
The VAT should be actually 4% in Credit Memo.
regards,
Rajesh TIn the copy controls from delivery to Invoice, at the item level try to use pricing type C and Pricing source Blank ( Blank is order).
If it doesnt work , then you might have to go for a requirement routine for this Tax , based on the document category that is being processed, read the tax from the originating order.Assign the routine to tax condition in the pricing procedure.
Regards
Sai -
Rebate processing and creating credit memo equest automatically
Hi all,
I execute the extented rebate process and when it's executed, B3E bill type is created automatically.
But, here i want the system create B3E sales order(credit memo request) create and manually create the bill when i intend to.
If you ask why, i want to use "order reason" in the sales order-the standart SAP usage.
Is it possible? I there any customizing for this to happen?
regards,
MaryFor creating credit memo request use business object BUS2094
You can also try the function module BS01_SALESDOCUMENT_CREATE -
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 to create credit note automatically after PGR?
Hello SD Gurus,
Client's Business Process: Return Order (ZRE, ZPOR, ZARE, and ZMTR) is created with reference to billing document number and item category used for this order type is REN or ZREN. After the order is created, they do PGR (Return Delivery Type is LR) and then credit memo is created "manually". So, the issue with this process is that it is very time consuming and a lot of manual intervention is required.
To-be Process: The requirement is to create credit note "automatically" after the PGR is done to reduce the manual intervention and expedite the process. If item category is REN, then credit note will be created with invoice value. If item category is ZREN, then credit note will be created with Zero Value.
How should I write code in the user exit MV50AFZ1?
Regards,
Mohammed AnwarHi
Apart from Lakshmipathi's suggestion you can share the below logic with your ABAPER. There are two BAPIs we use to create billing automatically. Check whether you can call these BAPIs in userexit you have mentioned in your post.
CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
* EXPORTING
* CREATORDATAIN =
* TESTRUN =
* POSTING =
TABLES
billingdatain = billingdatain
conditiondatain = conditiondatain
* CCARDDATAIN =
* TEXTDATAIN =
* ERRORS =
return = return3
success = success
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
READ TABLE return3 WITH KEY type = 'E'.
IF sy-subrc = 0.
record-inv_rem = return3-message.
ENDIF.
WAIT UP TO 2 SECONDS.
* READ TABLE return3 WITH KEY type = 'E'.
* IF return3-type = 'E'.
* WRITE:/ return3-message.
* ENDIF.
READ TABLE success INDEX 1.
CLEAR: vbeln_vf.
vbeln_vf = success-bill_doc.
ENDIF.
Thank$ -
how do you shuffle the image order when creating a new slideshow in apterture 3? i would like to do this automatically when creating a new slideshow. i see how you do it with presets when you just play a slideshow, but i don't see an option to randomly shuffle the slide order when you create a new slideshow. i know you can sort it by different fields, but i want it to be random. thanks.
If you want to rearrange images in random order you can try an AppleScript:
retrieve a list of selected images from Aperture
shuffe the list properly
create an album in Aperture and add the images from the list to the album (make sure that the album set to be orederd manually)
Here is a sample script that shuffles the selected images and displays them in random order in Full Screen Mode:
on removeItem(ims, i)
-- remove the item at position "i" from a list ims
if ims is {} then return {}
if (length of ims is 1) then return {}
if i < 2 then return rest of ims
if (i = length of ims) then return (items 1 thru (i - 1) of ims)
if i > (length of ims) then return ims -- should be error?
return (items 1 thru (i - 1) of ims) & (items (i + 1) thru (length of ims) of ims)
end removeItem
on shuffle_items(ims)
-- shuffle the items of the list "ims" randomly
local numitems, ims_shuffled, nextrest, nextpick, i
set numitems to length of ims
if length of ims < 2 then return ims
set ims_shuffled to {}
set nextrest to ims
repeat until nextrest is {}
set i to (random number (numitems - 1)) + 1
set nextpick to item i of nextrest
set beginning of ims_shuffled to nextpick
set numitems to numitems - 1
set nextrest to removeItem(nextrest, i)
end repeat
return ims_shuffled
end shuffle_items
on shuffleIms()
-- retrieve the selected images from Aperture
-- and display them in random order in full screen mode
local imageSel, shuffled, i
tell application "Aperture"
activate
set imageSel to (get selection)
set shuffled to my shuffle_items(imageSel)
set fullscreen to true
if imageSel is {} then error "Please select some images."
repeat with i from 1 to count of shuffled
reveal {item i of shuffled}
delay 3 -- chnage that to the time you want
end repeat
set fullscreen to false
return shuffled
end tell
end shuffleIms
shuffleIms()
Some more code snippets to go from here:
To create an album:
tell library 1
if not (exists album "shuffledAlbum") then
make new album with properties {name:"shuffledAlbum", image version:shuffled}
end if
end tell
And to add the images from the shuffled list to the album:
repeat with i from 1 to count of shuffled
duplicate item i of shuffled to album "shuffledAlbum"
end repeat
Regards
Léonie -
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 -
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 -
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 -
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 -
Hi,
AI is returning the below error for a credit memo
The document created must have a non-positive total amount because the creation sign for your transaction type is Negative.
The amount on the line is already having a negative value.
Can you please advise what could be the issue?
Regds,
JayaHi Octavio,
There is only 1 line for this CM with line type ='LINE'
We just saw that previous_customer_trx_id was null for this null. On populating this value manually, the credit memo was generated.
Not sure why this value was null initially.
Regds,
Jaya
Maybe you are looking for
-
Remote App Only Plays One Song At A Time
When using the Remote App on my iPhone or iPad to play music from my iTunes collection over Apple TV, only one song at a time will play. I can select the album I want to hear through the menu, select a track to play, but one that song ends the music
-
Can anybody help me, a layman in Apple, to input Chinese with iPad?
I notice there are a few options in keyboard setup...I chose Pinyin keyboard, but after that nothing happened. I typed pinyin through my keyboard but no Chinese charaters showed. What should I do next? or, Did I do something wrong?
-
Stored procedure - insert clob obj - error msg: ORA-01460: unimplemented
Hi all, I have a situation where I want to insert a clob object to my local table via a stored procedure. The clob object stores large amount of text. The clob data is populated from retrieving content in an external text file. When executing an inse
-
Ampersand in Title/Caption for Web Galleries
You probably all know this already, but I didn't... I've been getting to grips with the Sean's tip for formatting captions in web galleries, including Matthew's Slimbox gallery. As you'll see in the thread linked above, I had some trouble initially u
-
Sending a copy of submitted forms to submitters
Is there a way in forms central to ensure that those that submit forms get a copy of what they submitted to confirm they hav submitted - (along with form details). Lisa Jensen