Credit Memo to Export Declaration
Hi,
For returns we use the billing document type of a credit memo, this is posing us a challenge when it's an export return becuase GTS programmed in filter logic that credit billing doc types will not get passed to compliance/customs management.
Specific doc types being filtered are O – Credit Memo, 4 – Credit memo list, 6 – Intercompany credit memo, S – Credit memo Cancelation.
Anyone have expereice/guidance on how to integrate? 2 current options being evaluated are enhancing the logic to allow a credit memeo to create an export declaration or introducing the pro-forma.
Thanks, Jeff
Hi Jeff,
Please explain why it would make sense to create an Export Declaration for a return - thanks.
Regards,
Dave
Similar Messages
-
Credit memo-PR00 should be editable.
Hi,
We have two sales cycles, one for domestic and another for export.
User wants the value of basic price condition (PR00) to be editable in credit memo.
This is working fine in domestic credit memo. But in credit memo for export the value field is grayed out.
I have checked copy control (VTAF) for both credit memos the values are same (the pricing type at item level is u201CDu201D).
Please guide me what may be the problem and also solution for that.
Thanx in advance.
AnupHi,
Thanx for your quick replies.
Ramesh: The value field is not checked, but amount/percent field is checked. so it should allow to change the amount.
Akasha: In pricing procedure manual entry is not checked but in V/06, the input is "C"-manual entry has priority (pricing procedure is same for both sales order and credit memo so I cant do that).
More ever the condition is same for both domestic and export credit memo requests. And it is working fine in domestic scenario.
Please suggest if any other problem.
Thanx & regards,
Anup
Edited by: anupam sharma on Mar 18, 2009 6:24 PM -
INTRASTAT / EXTRA - Credit memo not relevant for declaration
Hi all,
I have this problem with INTRASTAT declaration:
Transaction VE08 mark credit memo as not relevant for declaration with this description "No association to a goods movement was found".
Do you have any solutions?Hello,
check VE80, if you have an exclusion indicator on the item category.
If not try to run VE01 for your country and mark only credit memos. Use log type B. Check the message in the incompletion log. If your credit memos are not in the incompletion log, than run the transaction transaction VE08 you run before again. The credit memos should show up, otheriwse let me know what is the message in the incompletion log.
Check also if you need to show credit memo from legal point. From my point of view it should show only data related to deliveries.
Try and reply.
Edited by: SAPSD1000 on May 25, 2009 6:03 PM -
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 -
Creation of Credit memo Request using FM SD_SALESDOCUMENT_CREATE
Hi Guys,
I am using FM SD_SALESDOCUMENT_CREATE to create credit memo request from flat file.
we are using variant configuration and characteristic values for material are not being populated. Rest of the sales document is created but characteristic values are missing.
can any one help me if u have some information or some piece of code.
here is the code i am using.
LOCAL DATA DECLARATION
DATA: L_WA_ORDER_CFGS_VALUE TYPE BAPICUVAL,
L_WA_ORDER_CFGS_REF TYPE BAPICUCFG,
L_WA_ORDER_CFGS_INST TYPE BAPICUINS,
L_WA_ORDER_CFGS_PART_OF TYPE BAPICUPRT.
CONSTANTS: C_MARA TYPE CHAR10 VALUE 'MARA',
C_300 TYPE CHAR03 VALUE '300'.
IF FP_L_WA_CHAR-ITM_NUMBER <> FP_V_ITEM_OLD.
Build internal tables for material configuration
Configuration: Reference Data
L_WA_ORDER_CFGS_REF-POSEX = FP_L_WA_CHAR-ITM_NUMBER.
L_WA_ORDER_CFGS_REF-CONFIG_ID = FP_L_WA_CHAR-ITM_NUMBER.
L_WA_ORDER_CFGS_REF-ROOT_ID = FP_L_WA_CHAR-ITM_NUMBER.
APPEND L_WA_ORDER_CFGS_REF TO FP_I_ORDER_CFGS_REF.
Build internal table BAPICUINS
Configuration: Instances
L_WA_ORDER_CFGS_INST-CONFIG_ID = FP_L_WA_CHAR-ITM_NUMBER.
L_WA_ORDER_CFGS_INST-INST_ID = FP_L_WA_CHAR-ITM_NUMBER.
L_WA_ORDER_CFGS_INST-CLASS_TYPE = C_300.
L_WA_ORDER_CFGS_INST-OBJ_TYPE = C_MARA.
L_WA_ORDER_CFGS_INST-OBJ_KEY = FP_L_WA_CHAR-MATERIAL.
APPEND L_WA_ORDER_CFGS_INST TO FP_I_ORDER_CFGS_INST.
Configuration: Part-of Specifications
L_WA_ORDER_CFGS_PART_OF-OBJ_TYPE = C_MARA.
L_WA_ORDER_CFGS_PART_OF-CLASS_TYPE = C_300.
L_WA_ORDER_CFGS_PART_OF-OBJ_KEY = FP_L_WA_CHAR-MATERIAL.
APPEND L_WA_ORDER_CFGS_PART_OF TO FP_I_ORDER_CFGS_PART_OF.
FP_V_ITEM_OLD = FP_L_WA_CHAR-ITM_NUMBER.
ENDIF.
Configuration: Characteristic Values
Sales Document Item
L_WA_ORDER_CFGS_VALUE-CONFIG_ID = FP_L_WA_CHAR-ITM_NUMBER .
L_WA_ORDER_CFGS_VALUE-INST_ID = FP_L_WA_CHAR-ITM_NUMBER.
Characteristic Name
L_WA_ORDER_CFGS_VALUE-CHARC = FP_L_WA_CHAR-CHARC .
Characteristic Value
L_WA_ORDER_CFGS_VALUE-VALUE = FP_L_WA_CHAR-VALUE .
APPEND L_WA_ORDER_CFGS_VALUE TO FP_I_ORDER_CFGS_VALUE.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
CALL FUNCTION 'SD_SALESDOCUMENT_CREATE'
EXPORTING
SALES_HEADER_IN = FP_WA_ORDER_HEADER_IN
SALES_HEADER_INX = FP_WA_ORDER_HEADER_INX
BEHAVE_WHEN_ERROR = C_R
BUSINESS_OBJECT = 'BUS2094'
IMPORTING
SALESDOCUMENT_EX = L_SALESDOCUMENT
TABLES
RETURN = L_I_RETURN
SALES_ITEMS_IN = FP_I_ORDER_ITEMS_IN
SALES_ITEMS_INX = FP_I_ORDER_ITEMS_INX
SALES_PARTNERS = FP_I_ORDER_PARTNERS
SALES_SCHEDULES_IN = FP_I_ORDER_SCHEDULES
SALES_SCHEDULES_INX = FP_I_ORDER_SCHEDULESX
SALES_CONDITIONS_IN = FP_I_ORDER_CONDITIONS_IN
SALES_CONDITIONS_INX = FP_I_ORDER_CONDITIONS_INX
SALES_CFGS_REF = FP_I_ORDER_CFGS_REF
SALES_CFGS_INST = FP_I_ORDER_CFGS_INST
SALES_CFGS_PART_OF = FP_I_ORDER_CFGS_PART_OF
SALES_CFGS_VALUE = FP_I_ORDER_CFGS_VALUE
SALES_TEXT = FP_I_ORDER_TEXT.Hi, has your question be answered? What was the outcome / result?
-
Free goods sub item not geting generated in credit memo.
Dear All,
Example;
Sales order for free goods 10+1
Delivery 10+1
Invoice 10+1
Customer has not accepted the goods by some reason.
We have ceated credit memo request 10+1
Return Delivery 10+1
Credit memo with reference to return delivery ;Only 10 qunatity are copying in the billing document.Free goods quantity is not getting copied.Please guide what could be the reason.
Sap std says credit memo should be reference to credit memo request bu out client requrement is ,it should be on return delivery based.we have done all settings but free goods qty is not geting copied.
Regards,
deeptiHi
KIndly check the copy control configuration in the VTFL
Target Bill. Type RE From Delivery Type LR
Credit for Returns Returns Delivery
Copying requirements 003 Header/dlv.-related
Determ.export data
Allocation number
Reference number
Copy item number
Copying requirements 004 Deliv-related item Billing quantity B
Data VBRK/VBRP 000 Pos./neg. quantity +
Pricing type G
PricingExchRate type
Cumulate cost
Price source
REgards
Damu -
Material Cost is not coming in Credit Memo
Dear SAP gurus,
My Client is from Brazil & they created a cycle of Sales Order (Export Order) to Billing (with Nota Fiscal)
& with Reference to Invoice, they created the Return Order, Return Delivery (PGR) & finally generated Credit Memo.
The Problem is Material Cost (VPRS) is getting captured in Billing, but in case of Credit memo,
Material cost is not getting posted in G/L accounts.
What we analyzed till now:
* Pricing Procedure & found that there is no requirement/routine maintained for Cond Type VPRS.
* Copy Control related Settings (from Delivery to Billing).
* Item Category Related settings.
but we could not find anything specific.
For more clarity, I am providing the below details of Accouting Entries:
G/L account details after Billing:
1 99999S2L10 Industrias John Deer USD 122.102,07
2 50 1100200000 Venda Prod.Int-OUsC USD 38.131,66-
3 50 3651100000 Custo Frete Unid Dee USD 2.397,41-
4 50 3652100000 CustoManusFaturDeere USD 171,59-
5 50 6450000000 Inv. Prod.Acabado-Tr USD 35.534,11-
6 40 3400200000 CPV-Prod-Int-OUsC USD 35.534,11
G/L account details after Credit memo:
1 11 99999S2L10 Industrias John Deer USD 122.189,84-
2 40 1100200000 Venda Prod.Int-OUsC USD 38.159,09
3 40 3651100000 Custo Frete Unid Dee USD 2.399,12
4 40 3652100000 CustoManusFaturDeere USD 171,71
5 40 6450000000 Inv. Prod.Acabado-Tr USD 0,02
6 50 3400200000 CPV-Prod-Int-OUsC USD 0,02-
Please pay attention to 5th & 6th Lines.
Can anyone suggest where things have gone wrong. Do let me know if you need any other information.
Thank you in anticipation,
MAYANKHello Mayank,
If your VPRS is being captured in your billing document, but IS NOT being posted to a G/L account, then your problem is on account determination.
I suggest the following:
Step 1. Go to your billing document overview.
Step 2. Go to Environment>Account Determination Analysis>Revenue Accounts.
Step 3. Go to the VPRS condition of your material and based on the access sequence, check the problem. For example: "No G/L found in Account Determination Type KOFI" (if your account determination condition type is KOFI in your case)
Step 4. In Step 3, you will see the values for each field based on the fields in your access. Then go to VKOA and compare if you have a valid entry there corresponding to the revenue account determination analysis. Otherwise, if there is no matching entry then I suspect this is why your G/L is not being determined for your VPRS.
Step 5. If the VKOA entry is missing and it is REALLY NEEDED, then add the VKOA entry tied to the G/L account. Otherwise, review your master data and your VKOA.
Let me know if this solves your problem.
Hope this helps,
Eva -
Intrastat report Spain. Credit memos posted not appearing in report
Hi
I have a issue where the debit notes raised to vendor are not appearing in Intrastat declaration.
How this debit and credit notes must be taken by Intrastat ? This problem is there since the Intrastat report is being used.
Is there any specific configuration for this or
is there any period check because of which the debit notes are not picked?
The reason is po was created in Feb 2009 and continuous GR and invoice postings happened in subsequent months which are all captured in Intrastat report. A debit note was raised in Sep 2009 which does not appear in the report.
Request your expertise and help to resolve this issue.
Thank youcredit memos are not supported in SAP as you can read in docu:
http://help.sap.com/saphelp_sbo2005ao/helpdata/en/F3/4392579F5DC24E9FBE2FA84E9E7660/frameset.htm
Please read the local Intrastat guide, in many countries it just says that you have to file a correction per paper form to your statiscal office.
SAP explains this as well in OSS note 374682:
If a credit memo refers to a billing document which was already declared to authorities, proceed as follows:Here, you should create a written correction to the statistical office.Specify a data record to which the credit memo refers.
Check the documents of the statistical offices for information on when you have to declare the credit memo (limits for values and quantities).********************************************************************* -
Error while creating an Credit memo in AR + R12
Hi All,
I am trying to create a credit memo in AR, based on the transaction i.e., an invoice of AR.
But i am not able to create.
I am encounter the following error
"Your credit memo transaction can only credit an invoice or a debit memo line
Failure encountered in AR_CREDIT_MEMO_API_PUB.Create_request call to arw_cmreq_cover.ar_request_cm".
My code is as follows:
DECLARE
l_dummy varchar2(240);
l_customer_trx_id ra_customer_trx.customer_trx_id%type;
l_line_credits_flag ra_cm_requests.line_credits_flag%type;
l_line_amount number;
l_freight_amount number := 0;
l_cm_lines_tbl arw_cmreq_cover.cm_line_tbl_type_cover;
l_cm_reason_code varchar2(150);
l_comments varchar2(150);
l_msg_count number := 0;
l_msg_data varchar2(20000) := null;
l_return_status varchar2(1);
l_request_id NUMBER;
l_batch_source_name varchar2(150) default null;
cm_trx_id number;
BEGIN
fnd_global.apps_initialize(1018094,50559,222,0);
mo_global.set_policy_context('S',204);
arp_global.init_global;
l_customer_trx_id := 549724 ; --527689;
l_comments := 'Creation of Credit memo';
l_batch_source_name := 'Invoice';
l_cm_lines_tbl(1).customer_trx_line_id := 833940;
l_cm_lines_tbl(1).quantity_credited := -1;
l_cm_lines_tbl(1).price := 1000.00;
l_cm_lines_tbl(1).extended_amount := -1000.00;
l_cm_lines_tbl(2).customer_trx_line_id := 833941;
l_cm_lines_tbl(2).quantity_credited := -2;
l_cm_lines_tbl(2).price := 1000.00;
l_cm_lines_tbl(2).extended_amount := -2000.00;
AR_CREDIT_MEMO_API_PUB.CREATE_REQUEST(
P_API_VERSION => 1.0,
P_INIT_MSG_LIST => FND_API.G_TRUE,
P_COMMIT => FND_API.G_FALSE,
P_VALIDATION_LEVEL => FND_API.G_VALID_LEVEL_FULL,
P_CUSTOMER_TRX_ID => l_customer_trx_id,
P_LINE_CREDIT_FLAG => 'N',
P_CM_REASON_CODE => 'DAMAGED PRODUCT',
P_CM_LINE_TBL => l_cm_lines_tbl,
P_SKIP_WORKFLOW_FLAG => 'Y',
P_CREDIT_METHOD_INSTALLMENTS => null,
P_CREDIT_METHOD_RULES => null,
P_BATCH_SOURCE_NAME => l_batch_source_name,
P_ORG_ID => 204,
X_REQUEST_ID => l_request_id,
X_RETURN_STATUS => l_return_status,
X_MSG_COUNT => l_msg_count,
X_MSG_DATA => l_msg_data);
FND_MSG_PUB.count_and_get (
p_encoded => FND_API.g_false,
p_count => l_msg_count,
p_data => l_msg_data );
dbms_output.put_line('Return Status ==> '||l_return_status);
dbms_output.put_line('Credit Memo request_id ==> '||l_request_id);
dbms_output.put_line('l_msg_count ==> '||l_msg_count);
FOR I IN 1..L_MSG_COUNT LOOP
DBMS_OUTPUT.PUT_LINE(SUBSTR(FND_MSG_PUB.GET(P_MSG_INDEX => I, P_ENCODED => 'F'), 1, 254));
END LOOP;
IF l_return_status <> 'S' THEN
NULL;
ELSE
select cm_customer_trx_id
into cm_trx_id
from ra_cm_requests_all
where request_id = l_request_id;
dbms_output.put_line(' CM trx_id = '|| cm_trx_id );
END IF;
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('exception error!');
dbms_output.put_line(substr(sqlerrm, 1, 80));
fnd_message.retrieve(l_dummy);
dbms_output.put_line(l_dummy);
END;
Please advise me where i am wrong .... Thanks in Advance.
Regards,
Basha.
Edited by: zaheer on Aug 1, 2011 8:43 PMI am encounter the following error
"Your credit memo transaction can only credit an invoice or a debit memo line
Failure encountered in AR_CREDIT_MEMO_API_PUB.Create_request call to arw_cmreq_cover.ar_request_cm".Please see these docs.
Listing of AutoInvoice Error Messages and Troubleshooting Tips to Resolve each Error [ID 1138254.1]
Credit Memo Errors During Autoinvoice Process - Invalid reference line attribute value (REFERENCE_LINE_ATTRIBUTE1-15) [ID 405445.1]
Thanks,
Hussein -
Credit memo billing document is not flowing in the order
Dear all ,
I have a problem, i created a credit memo request based on the billing, i have a seperate order type for returns and i have done returns order and returns delivery, based on the actual export sales i have done. The process of everything is flowing in the actual export sales order done , except the credit memo process .
I want to know wheather the credit memo process will be captured in the document flow of the order. or it wont be appearing in the document flow..
My docuument flow is giving all the process right from order to billing and the returns order till returns delivery but the process of credit memo is not showing , when i did the credit memo processing based on the export sales invoice.
kindly guide me on this
anitcipating reply from all
thanks and regards
kumareshHi kumaresh,
Please note the following configuration for crating the Credit note with ref to Invoice :
1.Use T code VTAF:
Source Bill. Type ZF2
Target SalesDocTyp ZCR
DataT 053 Header bill
DataT 103
DataT 003
021 Billing header
Activate : Copy Itm No
For Item : example from TAN to G2N .
Every thing is SAP Std , activate Update Document Flow
Pricing type - D and Copying requirements 303
Please do the above settings and your peoblem will be solved
Veera -
'SAPSQL_ARRAY_INSERT_DUPREC' error while cancellation of credit memo.
Hi,
I'am cancelling a credit memo created through 'Sales Return'.When I save the document it gives the message that billing document is created, but just after sometime it shows 'Error info... 00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC. I've checked SAP notes:208627,154638 and 6080 regarding the mentioned error.
System behaves normally when I cancel an ordinary billing document(cancellation type S1) but when I cancel credit memo (Billing Cancellation type S2) it shows error.Part of the short dump is:
The termination occurred in the ABAP program "SAPLV60U" in "KONV_BEARBEITEN".
The main program was "RSM13000 ".
The termination occurred in line 28 of the source code of the (Include)
program "LV60UF0K"
of the source code of program "LV60UF0K" (when calling the editor 280).
The program "SAPLV60U" was started in the update system.
Processing was terminated because the exception "CX_SY_OPEN_SQL_DB" occurred in
the
procedure "KONV_BEARBEITEN" "(FORM)" but was not handled locally, not declared
in the
RAISING clause of the procedure.
The procedure is in the program "SAPLV60U ". Its source code starts in line 11
of the (Include) program "LV60UF0K ".
Source code extract
000010 ***********************************************************************
000020 * Unterroutinen RV-Fakturierung *
000030 * *
000040 * KONV_BEARBEITEN *
000050 ***********************************************************************
000060
000070
000080 * *
000090 * FORM KONV_BEARBEITEN *
000100 * *
000110 FORM KONV_BEARBEITEN.
000120
000130 CHECK: OHNE_KONV = SPACE.
000140 XVBRK_TABIX = 0.
000150 LOOP AT XVBRK WHERE UPDKZ NE UPDKZ_NEW.
000160 DELETE FROM KONV WHERE KNUMV = XVBRK-KNUMV.
000170 ENDLOOP.
000180
000190 LOOP AT XKOMV.
000200 KONV = XKOMV.
000210 BELEG = XKOMV-KNUMV.
000220 IF BELEG-ID = '$'.
000230 PERFORM VBRK_BELEGNUMMER_ERMITTELN.
000240 XKOMV-KNUMV = XVBRK-KNUMV.
000250 ENDIF.
000260 MODIFY XKOMV.
000270 ENDLOOP.
> INSERT KONV FROM TABLE XKOMV.
000290 IF SY-SUBRC NE 0.
000300 MESSAGE A100 WITH 'KONV' SY-SUBRC XKOMV-knumv.
000310 ENDIF.
000320
000330 ENDFORM.
000340 *eject
Please help.
Thanks with Regards.
ManojHI,
We have the same problem , can you please give me an update relating the way you solve it ?
Thanks in advance
Regards -
Creation of sales order(Credit memo request) w.r.t invoice
Hi want to create a Credit memo request (sales order) with respect to a invoice.
Can any body suggest me a bapi or Fm which will directly create a sales order with input as invoice number?
Also all mandatory import export parameters to be filled?
Thanks in Advance,
Rohan.You should be able to use one of these BAPIs (depending on your release - the ...2 one is the lates and greatest, it seems):
BAPI_SALESORDER_CREATEFROMDAT1
BAPI_SALESORDER_CREATEFROMDAT2
BAPI_SALESORDER_CREATEFROMDATA
You'll find a lot of information on them anywhere, please use search. There is also a decent documentation available for each one of them.
The invoice reference will have to be entered as follows (note that it's always at line level):
order_items_in-ref_doc = <invoice number = VBRK-VBELN>.
order_items_in-ref_doc_it = <<invoice line number = VBRP-POSNR.>.
order_items_in-ref_doc_ca = 'M'. " or whatever category is applicable
Keep in mind though that BAPIs do NOT always work the same way as VA01. If, for example, you have the requirements and copy routines (VOFM), they might get bypassed when creating an order with BAPI.
Any follow-up questions I'd suggest to post in ABAP forum. Good luck! -
Credit Memo Details in CRM_ORDER_READ
Hi All,
I have to read the credit memo details for a particular Opportunity. For this can anyone let me know through which export parameter of FM CRM_ORDER_READ, we can find the Creadit Memo details of an Opportunity.
Regards,
VinnyHi,
I think it wont be visible directly.
What you can do is read documetn flow (ET_DOC_FLOW) and then check if Credit Memo is in teh Documnet flow.
Kindly reward with points in case helpful.
Sharif. -
How to make net due date dependent on Payment Terms in credit memo FB75
Hi Experts,
In our system currently when we create credit memo using tcode FB75 system makes the invoive due immediately.
We wanted to make this net due date dependent on payment terms given by us. Please let me know how can I achieve this..
Please let me know if there is any user exit there or the configration path to achieve this...
Regards,
VidyaHi,
"vbdkr-zterm. is nothing but Payment terms
* Fetching Payment term details
SELECT SINGLE * FROM t052 INTO w_t052 WHERE zterm = vbdkr-zterm.
IF sy-subrc = 0.
CLEAR i_faede.
MOVE-CORRESPONDING w_t052 TO i_faede.
MOVE: w_t052-ztag1 TO i_faede-zbd1t,
w_t052-ztag2 TO i_faede-zbd2t,
w_t052-ztag3 TO i_faede-zbd3t.
i_faede-bldat = BKPF-budat. "this is Importnat posting date
i_faede-koart = 'D'.
* Fetching Due date using Function Module
CALL FUNCTION 'DETERMINE_DUE_DATE'
EXPORTING
i_faede = i_faede
IMPORTING
e_faede = e_faede
EXCEPTIONS
account_type_not_supported = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
w_invdate = e_faede-netdt. "this field contains Net due date...
ENDIF.
Prabhudas -
Credit memo request(SO) w.r.t Invoice
Hi want to create a Credit memo request (sales order) with respect to a invoice.
Can any body suggest me a bapi or Fm which will directly create a sales order with input as invoice number?
Also all mandatory import export parameters to be filled?
Thanks in Advance,
Rohan.Rohan,
SD_SALESDOCUMENT_CREATE
In that for with reference pass
REFOBJTYPE
REFOBJKEY
REFDOCTYPE
also check the BAPI's
BAPI_DRMCREDITMEMOREQ_CREATE
BAPI_DRMDEBITMEMOREQ_CREATE
Amit.
Maybe you are looking for
-
How can you tell if the line has errors?
I'll try and keep this as brief as possible. <background> For 2years (up to 6months ago) I was on BE ADSL and was very impressed with the quality of the service (low latency, decent bandwidth) on my line. However when I heard that FTTC was being rol
-
How do I convert an .mp4 h.264 file into a simple Mpeg 2 file...
I've had Quicktime for quitesometime now. I'been been through many QT versions but version 7 series, I think has problems. I've been dl'ing .mp4 files, with h.264 codecs. Quicktime plays them wonderfully but I'd like to put the movies on my media ser
-
My computer started doing this a week ago. It scrolls down on its own when I'm on the Web. It doesn't happen on pages or anything. The only things I've done differently are I started using VoiceOver Utility and Pocket Cloud. How do I end this?
-
Well trying to install CS three I get a message the installer database is corrupted please contact Adobe service if this problem continues
-
What cannot be and can be deployed in sharepoint sandbox solution
what cannot be and can be deployed in sharepoint sandbox solution