Credit memo using BAPI
Hi,
In transaction VA01 we are able to create credit memo request (ZRCR order type) with order category K (credit memo). Is this possible to create this order using "BAPI_SALESORDER_CREATEFROMDAT2" and BAPI_SALESORDER_CREATEFROMDAT1 function module.?
If we try to excute using this function module, following return message is appearing. "Unpermitted combination of business object BUS2032 and sales doc. category K". Any one please give me solution.
Thanks in advance,
Murali
Hi,
Using below FM we can create SD.
BAPI_SALESDOCU_CREATEFROMDATA
BAPI_SALESORDER_CREATEFROMDAT1
BAPI_SALESORDER_CREATEFROMDAT2
BAPI_SALESORDER_CREATEFROMDATA
Regards
Md.MahaboobKhan
Similar Messages
-
How to change the Quantity in the Credit Memo using BAPI
Hi All,
I have a requirement in which i need to change the Quantity Value field available in the Credit Memo using BAPI.
Can anyone help me out to get any available BAPI to perform this action or any Solution to change the Quantity in the Credit Memo ?.
Regards,
Muruganand.KHi,
Try using BAPI_SALESORDER_CHANGE.
DATA: s_order_header_in LIKE bapisdh1.
DATA: s_order_header_inx LIKE bapisdh1x.
DATA: BEGIN OF i_order_item_in OCCURS 0.
INCLUDE STRUCTURE bapisditm.
DATA: END OF i_order_item_in.
DATA: BEGIN OF i_order_item_inx OCCURS 0.
INCLUDE STRUCTURE bapisditmx.
DATA: END OF i_order_item_inx.
DATA: BEGIN OF it_return OCCURS 0.
INCLUDE STRUCTURE bapiret2.
DATA: END OF it_return.
DATA: BEGIN OF i_sched OCCURS 10.
INCLUDE STRUCTURE bapischdl.
DATA: END OF i_sched.
DATA: BEGIN OF i_schedx OCCURS 10.
INCLUDE STRUCTURE bapischdlx.
DATA: END OF i_schedx.
s_order_header_inx-updateflag = 'U'.
i_order_item_in-itm_number = vbap-posnr.
i_order_item_in-TARGET_QTY = rv45a-zzqty.
i_order_item_inx-updateflag = 'U'.
i_order_item_inx-itm_number = vbap-posnr.
i_order_item_inx-TARGET_QTY = 'X'.
APPEND: i_order_item_in, i_order_item_inx.
i_sched-itm_number = vbap-posnr.
i_sched-sched_line = '0002'.
i_sched-req_qty = rv45a-zzqty.
APPEND i_sched.
i_schedx-itm_number = vbap-posnr.
i_schedx-sched_line = '0002'.
i_schedx-updateflag = 'U'.
i_schedx-req_qty = 'X'.
APPEND i_schedx.
IF sy-subrc = 0.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = xvbap-vbeln
order_header_in = s_order_header_in
order_header_inx = s_order_header_inx
behave_when_error = 'P'
TABLES
return = it_return
order_item_in = i_order_item_in
order_item_inx = i_order_item_inx
schedule_lines = i_sched
schedule_linesx = i_schedx.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.
Change the fields as per your logic before populating orders item and schedule line data.
You have to pass the quantity in schedule line items as well in case you want to change quanity in order.
KR Jaideep,
Edited by: Jaideep Sharma on Jun 22, 2009 7:35 PM -
Dear All,
I have to create credit memo using XL file.In XL file there are following fields:
1.order type
2.sales organization/division/distribution
3.sold to party
4.order refrence
5.Material code
6.Quantity
7.Price.
Is it possible to create Credit memo using BAPI?If yes then please reccomend any BAPI.
Regards,
AMARHi,
{ Changing the Object Status to Approve
CALL FUNCTION 'I_CHANGE_STATUS'
EXPORTING
objnr = is_vbakch-objnr
estat_inactive = c_e0001
estat_active = c_e0002
EXCEPTIONS
cannot_update = 1
OTHERS = 2.
IF sy-subrc EQ 0.
is_billing-salesorg = is_vbakch-vkorg.
is_billing-distr_chan = is_vbakch-vtweg.
is_billing-division = is_vbakch-spart.
is_billing-doc_type = is_vbakch-auart.
is_billing-ref_doc = is_vbakch-vbeln.
is_billing-bill_date = sy-datum.
is_billing-sold_to = is_vbakch-kunnr.
is_billing-ref_doc_ca = c_x.
APPEND is_billing TO it_billing.
ENDIF.
ENDLOOP.
BAPI To create Billing for the Credit Memo.
CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
TABLES
billingdatain = it_billing
return = it_returncg
success = it_bilsuccess.
Please use these for Credit memo creation using upload .. If u want i can send the coding also ..
Regards,
Srinivas. -
Creating Vendor Credit Memo Using BAPI BAPI_ACC_DOCUMENT_POST
Hi,
I want to create a vendor credit memo using the bapi BAPI_ACC_DOCUMENT_POST but with posting keys as 21 and 50.Is it possible to do so.I tested the bapi passing the data to the accountgl table.Do i have to pass data to another table ?hi Eric,
I even tried passing the data to the accounts receivable and accounts payable tables passing the GL account no in these tables.Still teh document get posted with keys 40 and 50.Also the credit entries should be assigned to COPA segment of sales order/item.
The vendor credit memo should look as follows look as follows:
Dr Vendor (PK = 21) $ 35,000
Cr Freight expense account (PK = 50) $ 10,000 .assigned to COPA segment of sales order/ item 20000397/10
Cr Freight expense account (PK = 50) $ 5,000 .assigned to COPA segment of sales order/ item 20000397/20
Cr Freight expense account (PK = 50) $ 20,000 .assigned to COPA segment of sales order/ item 20000398/10 -
TO CREATE A CREDIT MEMO USING CREDIT MEMO REQUEST
Hi,
I have a credit memo request 60000150 and I need to create a credit memo using the above credit memo request.Can anyone suggest a BAPI or some other method to do this and also the parameters to be passedHi,
I have a credit memo request 60000150 and I need to create a credit memo using the above credit memo request.Can anyone suggest a BAPI or some other method to do this and also the parameters to be passed -
Credit Memo using BAPI_SLSTRANSACT_CREATEMULTI
Hi All,
Is it possible to create a credit memo using FM BAPI_SLSTRANSACT_CREATEMULTI? If possible, please let me know which of the table parameters need to be populated.
Regards,
VinnyHi Vinay,
It is possible create a Credit memo using BAPI_SLSTRANSACT_CREATEMULTI.
Pleae look at the FM CMS_1O_CREATE_SINGLE_GEN which as used the above bapi to create a Credit Memo and also you can see which all paramters are required.
Best Regards,
Kiran -
Hello Experts,
Have anyone tried to create service Credit Memo using B1if when an AP Invoice is posted by a user for a specific vendor? or Any similar scenario?
I am new to B1if , looking into the recordings now. Can anyone advise steps or process to acheive this ?Hi,
Please refer below link where PO2SO is generate, same manner you can use CM2AP.
[https://sap.emea.pgiconnect.com/p26689556/]
Thanks
Kevin -
Hi
My organization is doing credit memo using MIRO for both stock and non stock materials.But P&L G/L account is not getting credited with this entry.
<b>Following are the flow of entries as per my knowledge-------</b>
<b>1.When we receive materials(MIGO)</b>
<b>Debit</b> -Stock(in case of stock materials) OR consumption account in case of non stock material
<b>Credit-</b> GR/IR Account
<b>2.When inv verification done(MIRO)</b>
<b>Debit</b> GR/IR Account
<b>Credi</b>t Vendor
<b>3.If I want to give normal credit memo I can use FV60 or MIRO</b>.
MIRO is used in case of quantity reduction .
If I used MIRO following is the entry happening.
<b>Debit</b>-Vendor
<b>Credit</b>-GR/IR Account
During the third step G/L consumption account or stock account is not getting credited.This is resulting with unnecessary credit in GR/IR account and G/L account is not getting reversed.
Can any one please advise whether this is the right procedure?If so why G/L account is not getting reversed?
OR
Do we need to post additional entry again debiting GR/IR account and crediting Stock or consumption account????
Please advise ASAP.
thanks
Henfi<b></b>Hi,
During credit memo, the G/L or consumption accont will not credited.
The concerned material doc has to be reversed through migo also in MM.
the steps is as under.
1. MIRO - Credit Memo
Entries
Dr. Vendor
Cr. GR/IR Clearing account
2. MIGO - Select return delivery.
Entries
Dr. GR/IR Clearing account
Cr. Inventory / consumption account.
The GR/IR account gets nullified and the inventory or consumption account will get reduced.
For any further queries, contact me on 9963233322
Regards,
Vinod S -
Is there a way to import AR credit memos using DTW? I can't find any templates in DTW for it.
Hi,
U will find the template in oCreditNotes>>Document and Document_Line template for importing AR credit note .
swap -
INVOICE or CREDIT MEMO in BAPI 'BAPI_ACC_INVOICE_RECEIPT_POST'
Hi,
I use BAPI 'BAPI_ACC_INVOICE_RECEIPT_POST'
I search the parameters field in the BAPI ' BAPI_ACC_INVOICE_RECEIPT_POST' to fill the type of document " INVOICE or CREDIT MEMO. "
best regardHi,
GOTO T-code VOFA and search for your valid document type,and give the suitable document type.
Please let me know if you still have any issues.
Thansk and regards,
Rajeshwar -
Credit memo uses base document total and not balance due?
Using SBO 2007 sp00 pl42 i have the problem that, having an AR invoice with a partial incoming payment, leaves an open balance of the invoice.
Later i use the "copy to" function, to the credit memo, but it uses the whole original amount, and not only the balance due, leaving the credit memo with an open balance equal to that payment value, and closing only the invoice and payment.
In SBO 2005 A sp01 the credit memo was copied with the original amount but it generated a discount matching the partial payment value, and this way automatically reconcile the 3 documents.
you can see the details in this document:
Thanks a lot for your help!
http://rapidshare.com/files/189998866/credit_memo_dont_use_the_balance_due_as_total.doc.htmlDear Carlos,
Please check note no 1301233 to get more information on this issue.
Regards
Vikas Rastogi
SAP Business One Forums Team -
BAPI for Vendor Invoice and Credit memo - FB60
Hi
Iam using BAPI_ACC_DOCUMENT_POST for creating Vendor invoice and Credit memo ..Could you please tell me which fields to be populated on the below structures?
what will be the value i should use for BAPIACHE09-BUS_ACT...RFBU or RMRP?
ACCOUNTPAYABLE ( BAPIACAP09)
ACCOUNTGL(BAPIACGL09)
CURRENCYAMOUNT( BAPIACCR09)
Only the fields which needs to be populated on these structures when we do FB60 invoice and credit memo using bapi..
Thanks in advance
GoviHi,
Populate in Document_header : (User name, Comp code, Doc DAte, Doc type, Ref Doc No)
Account GL : ItemNo_Acc, GL Accuont, REf Key1, Refkey2, Refkey3, Account Type = 'A', Doc Type, Comp code
Account_number, Cost_center
Account Payable: ItemNo_Acc, Vendor_No, Rey_key1, Ref_key2, Ref_key3
Currency Amount: Item No_Acc = 2, 1
Curr = USD, USD
Amt_Doccur
At last use commit bapi.
Thanks,
Krishna -
Error in Credit Memo Creation using BAPI
Hi,
While creating a Credit memo using the BAPI "BAPI_SALESDOCU_CREATEFROMDATA" , the following message is returned: "EVP 113Processing customer 9012041 terminated"
This occurs only for a particular customer, while for others the BAPI works fine.
I tried to create a Credit Memo using VA01 for the above customer. The Credit Memo got created there.
I am not able to find out a reason for the above. Can anyone help me with this.
Thanks in advance,
AmitHi,
Check the dump in SM14 and see where exactly it is throiwng error..Put a break-point before that and then debug the bapi and see if ur missing anything for this customer and what is the difference between this customer and other customer data.
Regards,
Nagaraj -
Creating credit memo with two positions using Bapi
Hi all, i are creating a credit memo using BAPI_BILLINGDOC_CREATEMULTIPLE with manual price condition for each position and have a problem.
All the positions use the last condition value of the CONDITIONDATAIN table.
Thes is an example code used.
t_billing-salesorg = 'SI01'.
t_billing-DISTR_CHAN = '05'.
t_billing-DIVISION = '01'.
t_billing-DOC_TYPE = p_dtype. " ZC07 o TA
t_billing-ORDBILLTYP = 'ZC06'. " ZC06 o FX
t_billing-SOLD_TO = p_clie. "'0000200002'.
t_billing-ITEM_CATEG = 'ZG2N'. " ZG2N o TAN
t_billing-PLANT = '1100'.
t_billing-BILL_TO = p_clie. "'0000200002'.
t_billing-PAYER = p_clie. "'0000200002'.
t_billing-SHIP_TO = p_clie. "'0000200002'.
t_billing-MATERIAL = '0000000000300003'.
t_billing-REQ_QTY = p_cant. "'1.000'.
t_billing-item = '1'.
APPEND t_billing.
t_conditions-DATA_INDEX = '1'.
t_conditions-COND_TYPE = 'ZCON'.
t_conditions-COND_VALUE = '12.0000'.
append t_conditions.
t_billing-salesorg = 'SI01'.
t_billing-DISTR_CHAN = '05'.
t_billing-DIVISION = '01'.
t_billing-DOC_TYPE = p_dtype. " ZC07 o TA
t_billing-ORDBILLTYP = 'ZC06'. " ZC06 o FX
t_billing-SOLD_TO = p_clie. "'0000200002'.
t_billing-ITEM_CATEG = 'ZG2N'. " ZG2N o TAN
t_billing-PLANT = '1100'.
t_billing-BILL_TO = p_clie. "'0000200002'.
t_billing-PAYER = p_clie. "'0000200002'.
t_billing-SHIP_TO = p_clie. "'0000200002'.
t_billing-MATERIAL = '0000000000300004'.
t_billing-REQ_QTY = p_cant. "'1.000'.
t_billing-item = '2'.
APPEND t_billing.
t_conditions-DATA_INDEX = '2'.
t_conditions-COND_TYPE = 'ZCON'.
t_conditions-COND_VALUE = '24.0000'.
append t_conditions.
CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
EXPORTING
CREATORDATAIN = t_creator
TABLES
billingdatain = t_billing
CONDITIONDATAIN = t_conditions
return = t_return
success = t_success.
In these example, the first position have a value of 12 and the seccond a value of 24.
The generated document have a value of 24 for the two positions.
Do you helpme??
Regards
Adrián Callejón
Message was edited by:
Adrian CallejonThank you Jack. That's exactly what I needed to know.
Now it works. As an example I attach some code that also uses the credit card functionality
pos-salesorg = 'EESP'.
pos-distr_chan = 'ES'.
pos-division = 'TI'.
pos-ref_doc = '1'.
pos-material = mat10.
pos-req_qty = 1.
pos-itm_number = 1.
pos-ref_item = 1.
APPEND pos TO billdata.
pos-material = mat11.
pos-req_qty = 1.
pos-itm_number = 2.
pos-ref_item = 2.
APPEND pos TO billdata.
lincond-data_index = '1'.
lincond-cond_type = 'PR01'.
lincond-cond_value = '1.85'.
lincond-cond_curr = 'EUR'.
APPEND lincond TO conddata.
lincond-data_index = '2'.
lincond-cond_type = 'PR01'.
lincond-cond_value = '1.70'.
lincond-cond_curr = 'EUR'.
APPEND lincond TO conddata.
lincard-cc_type = 'VISA'.
lincard-cc_number = '4560000000000038'.
lincard-cc_valid_t = sy-datum + 90.
lincard-cc_name = 'Pedro Pérez'.
lincard-authamount = '1.85'.
lincard-currency = 'EUR'.
lincard-auth_flag = 'X'.
lincard-auth_date = sy-datum.
lincard-cc_auth_no = 'autno10'.
lincard-bill_value = '1.85'.
APPEND lincard TO carddata.
CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
* EXPORTING
* CREATORDATAIN =
* TESTRUN =
* POSTING =
TABLES
BILLINGDATAIN = billdata
CONDITIONDATAIN = conddata
CCARDDATAIN = carddata
* TEXTDATAIN =
ERRORS = t_errores
RETURN = t_bapiret
SUCCESS = t_success. -
BAPI to create credit memeo with respect to credit memo requset number
Hi Experts,
I am making a credit memo request using t.code VA01. after that a document number is generated. then I make a credit memo using VF01 wrt to doc generated in VA01.
To do it automatically i want to use BAPI for that.But unfortunately i can't able to get the appropriate BAPI for that.
If anybody know the name of the BAPI then please let me know.
Thanks and regards
PratikHi,
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
Maybe you are looking for
-
How to change the default "no data found"
Hi, Is there a way to change the default "no data found" message of the "When No Data Found Message" in the Report Attributes? I would like to change that message for a French message. I know that I can change it manually in every section, but I woul
-
Go to this page: http://thedecoartist.com/ARCHERwebsite/CAT_USinteriorDetails.html In Dreamweaver I cannot select any text in the far right two columns of the table with the text cursor. The only way I can either edit or enter text into those two col
-
Hi All, This is a repost but this time Ill be specific. How do I select from a table into a hashed table faster without using "select distinct"? my primary concern is the speed of the select statement, and im afraid I cannot get rid of the hashed tab
-
Where's the dark mode for dreamweaver in CC 2014?
The updates for 2014 are great except... where is the long awaited dark theme for code??
-
Transport for SCAL 'factory calender' or administer SCAL in prod system?
Hi togehther, we could change the factory calender in the development system and afterwords transport this changes by using a transport request and STMS. But our Consultants recommend not to transport these changes. They recommend to open the prod Sy