Currency outline is not updated
Hi,
I deployed new multicurrency application with all shared dimensions. In EPMA I can see that all the outlines have been loaded without errors or warnings. But when I try to create data form only local currency and default currency available.
Edited by: 858049 on 30.05.2011 0:48
Have you enabled "Reporting Currency" in the currency members properties.
Cheers
John
http://john-goodwin.blogspot.com/
Similar Messages
-
Hi,
Issue with few accounting documents were not updated with hard currency due to hard currency is not mapped at the time of posting and exchange rates is not updated accordingly.
Could you please let us know do we have any alternative option to post the hard currency which was not updated accounting documents with out reversal.
Regards
sangeethaHi,
Use t code F-05 . Enter the amount only in hard currency , in local currency & Group currency enter zero amount.
PK
Doc.Curr
Loc.curr
Hard.Curr
70
0.01
0.01
59.01
75
0.01
0.01
0.01 -
Amount in Local Currency not updating when using BAPI_INCOMINGINVOICE_PARK
Hi all,
I am using BAPI_INCOMINGINVOICE_PARK for parking a credit memo. Eventhough the credit memo is parked with amount in document currency, amount in local currency field is not updating.I am passing the amount to item_amount field in the item data table.
Can anyone tell me one solution for this.
Thanks
-SajithHello Chelsea,
I am not sure about your coding. If you are intrested you can try AC_DOCUMENT_DIRECT_INPUT FM it is having many many fields and also having local and global currency fields where you can pass the value.
Thanks,
Amit
Message was edited by: Amit Gupta -
Currency in Condition type not updating
Dear Team,
The currency in PO condition type is not updated when the defaulted currency in PO header is modified.
I want the system to automatically update the PO Condition type currency when the header currency is updated.
Apperciate ur immedaite assistance.
ZulfikarThe PO Curreny Can not be changed bcz of the below reasons.
As a basic rule, the currency cannot be changed if there has already been a goods receipt against a document.
If the document contains external service and/or limit items, or if an invoicing plan has been assigned to an item, the currency cannot be changed following the receipt of an invoice either.
If external service items exist, the currency also cannot be changed if services that have actually been performed have already been recorded or if the item in question has been assigned to a preventive maintenance (servicing) plan.
But for a New PO and no GRN is done , in that case once you change the Currency in the Delivery/invoice tab at PO Header ,
then the Currency for Conditions also changes.. -
In material master standerd cost value not updating in group currency
hi gurus
In material master accounting 1 tab, under price and values table. standerd price is not updating in group currency.
Can you sugest me how to resolve this issue
this hapend only for one material
can you sugest me to resolve this
regards
gangadharHi,
As per My Knowledge,Wht ever currency is assigned as company code currency , tht will only be updated in Material Master as Per standard.
Currect me if Iam worng.
Thanks
Goutam -
In material master standerd price field not updating in group currency
In material master accounting 1 tab, under price and values table. standerd price is not updating in group currency.
Can you sugest me how to resolve this issueHi,
As per My Knowledge,Wht ever currency is assigned as company code currency , tht will only be updated in Material Master as Per standard.
Thanks
Goutam -
PRCC Error - Currency HUF is not in table TCURR
Hi,
while running PRCC to update credit card charges i am receiving an error "Currency HUF is not in table TCURR". But if i check TCURR its updated. Is there any config in Travel which need to be done for this.
Regards,
Hariohi,
Please check the "exchange rate type" M, E, etc, if that´s the same using in TM in configuration
BR
Monica Ordaz -
Release value on contract not updated when PO reffered in different curr
Hi experts,
Please help if you know what to do...
I have created srm contract in euro currency.
I have created PO with reference to this contract (PO is in US currency)
When I go inside the contract I see PO in release order list, but release value is not updated (still 0). I have the same problem with other currencies. There is no problem when contract and PO have the same currency (release value is updated properly). What do you think what can be wrong. Does it mean that SRM does not handle the case when I try to refer PO with different currency to contract?
Regards
RafaDHi,
Please search for OSS notes and report a OSS for it. The standard should works for it.
Regards. -
Contract Release Value is not updated with Confirmation or Invoice value
The release value for a contract in SRM EBP shows the value of purchase orders created using that contract. It does not take into account confirmation and/or invoice values.
For example I create a PO for 10 items at £100/each using Contract ABC. The total value of the PO is £1000 and the release value contract ABC would be £1000. If I then only confirm and invoice 5 items (£500) for the PO, the release value of contract ABC stays at £1000 even though I would expect it to update to £500
Therefore the release value of the contract could be incorrectly overstated if purchase orders are created against the contract but not actually invoiced/confirmed for their total value.
Please could you confirm the correct functionality and how I could find out the the true invoice value of purchases made using a contract?Hi
<u>Which SRM and R/3 versions are you using ?</u>
<b>Meanwhile, please go through the following SAP OSS Notes, which will help in this case -></b>
Note 622045 Net value in release overview of contract is incorrect
Note 493519 Release quantities are not updated
Note 1108322 BBP_CONTRACT_CHECK wrong calculation of values
Note 1102886 Contracts: Lesser Field length for Target Value
Note 1082548 Check of Released quantity and released value in contract
Note 656181 Release synchronization of releases on services
Note 874920 Currency not allowed to be changed for a 'Released' Contract
Note 703771 Resetting release values during purchase order item deletion
Note 643823 BLAREL: Incorrect values in service segment
Note 519879 BBP_CTR_MAIN: No message when values in Contract are reset
Note 520734 Target value not converted if currency is changed
Note 528897 Documents not displayed in contract release order overview
Note 430373 BBP_CON_MNT: No releases available
Note 491993 Entry of contracts with target values
Note 437491 Purchase contract: Incorrect update of the call-off values
Note 406799 BBP_CON_MNT: Fields after contract release ready for input
Note 398168 Purchase contract: Target value is not changed
<b>Do let me know.</b>
Regards
- Atul -
Ekkn is not updated while creating PO
hi,
when i execute my ZRFC for PO creation i am getting this problem.
ekkn table is not get updated with tax code details but successfully PO created
i can able to get ADRC , ekko, EKPO details (header and itrem details)
this is my code
""Local Interface:
*" TABLES
*" LT_EKKO STRUCTURE ZPO_DATA_60 OPTIONAL
*" LT_EKPO STRUCTURE ZPO_ITEM_60 OPTIONAL
*" LT_EKET STRUCTURE ZPO_EKET_60 OPTIONAL
*" LT_ADRC STRUCTURE ZPO_ADRC_60 OPTIONAL
*" LT_EKKN STRUCTURE ZPO_EKKN_60 OPTIONAL
*" LT_EKBE STRUCTURE ZPO_EKBE_60 OPTIONAL
*" LT_SUCCESS_PO STRUCTURE ZPO_SUCCESS
*" LT_ERROR_PO STRUCTURE ZPO_ERROR_60
*data it_head type standard table of bapimepoheader.
DATA ls_head TYPE bapimepoheader.
DATA it_headx TYPE STANDARD TABLE OF bapimepoheaderx.
DATA ls_headx TYPE bapimepoheaderx.
DATA it_item TYPE STANDARD TABLE OF bapimepoitem.
DATA ls_item TYPE bapimepoitem.
DATA it_itemx TYPE STANDARD TABLE OF bapimepoitemx.
DATA ls_itemx TYPE bapimepoitemx.
DATA it_sch TYPE STANDARD TABLE OF bapimeposchedule .
DATA ls_sch TYPE bapimeposchedule.
DATA it_schx TYPE STANDARD TABLE OF bapimeposchedulx.
DATA ls_schx TYPE bapimeposchedulx.
DATA it_poact TYPE STANDARD TABLE OF bapimepoaccount.
DATA ls_poact TYPE bapimepoaccount.
DATA it_poactx TYPE STANDARD TABLE OF bapimepoaccountx.
DATA ls_poactx TYPE bapimepoaccountx.
DATA it_cond TYPE STANDARD TABLE OF bapimepocond.
DATA ls_cond TYPE bapimepocond.
DATA it_adrc TYPE STANDARD TABLE OF bapimepoaddrdelivery.
DATA st_adrc TYPE bapimepoaddrdelivery.
DATA it_condx TYPE STANDARD TABLE OF bapimepocondx.
DATA ls_condx TYPE bapimepocondx.
DATA it_popart TYPE STANDARD TABLE OF bapiekkop.
DATA ls_popart TYPE bapiekkop.
data : ret2 type bapiret2 occurs 0 with header line.
DATA ls_ekko TYPE zpo_data_60.
DATA st_ekko TYPE zpo_data_60.
DATA ls_ekpo TYPE zpo_item_60.
DATA st_ekpo TYPE zpo_item_60.
DATA: ls_adrc TYPE zpo_adrc_60,
ls_ekkn TYPE zpo_ekkn_60,
ls_eket TYPE zpo_eket_60,
ls_ekbe TYPE zpo_ekbe_60,
w_purchaseorder type BAPIMEPOHEADER-PO_NUMBER.
LOOP AT lt_ekpo INTO st_ekpo.
ls_ekpo = st_ekpo.
AT NEW ebeln.
READ TABLE lt_ekko WITH KEY ebeln = ls_ekpo-ebeln.
IF sy-subrc = 0.
ls_head-comp_code = lt_ekko-bukrs.
ls_head-doc_type = lt_ekko-bsart.
ls_head-vendor = lt_ekko-lifnr.
ls_head-purch_org = lt_ekko-ekorg.
ls_head-pur_group = lt_ekko-ekgrp.
ls_head-pmnttrms = lt_ekko-zterm.
ls_head-exch_rate = lt_ekko-wkurs.
ls_head-incoterms1 = lt_ekko-inco1.
ls_head-incoterms2 = lt_ekko-inco2.
ls_head-currency = lt_ekko-waers.
ls_head-PO_NUMBER = lt_ekko-ebeln.
*append ls_head to it_head.
*Parameter: POHEADERX
ls_headx-comp_code = 'X' .
ls_headx-doc_type = 'X' .
ls_headx-vendor = 'X' .
ls_headx-purch_org = 'X'.
ls_headx-pur_group = 'X' .
ls_headx-pmnttrms = 'X'.
ls_headx-currency = 'X'.
ls_headx-exch_rate = 'X'.
ls_headx-incoterms1 = 'X'.
ls_headx-incoterms2 = 'X'.
ls_headx-currency = 'X'.
ls_headx-PO_NUMBER = 'X'.
*append ls_headx to it_headx.
ENDIF.
ENDAT.
ls_item-po_unit = ls_ekpo-meins.
ls_item-po_item = ls_ekpo-ebelp.
ls_item-material = ls_ekpo-matnr.
ls_item-price_unit = ls_ekpo-peinh.
ls_item-orderpr_un = ls_ekpo-bprme.
ls_item-net_price = ls_ekpo-netpr.
ls_item-matl_group = ls_ekpo-matkl.
ls_item-short_text = ls_ekpo-txz01.
ls_item-plant = ls_ekpo-werks.
ls_item-stge_loc = ls_ekpo-lgort.
ls_item-quantity = ls_ekpo-menge.
ls_item-acctasscat = ls_ekpo-knttp.
ls_item-gr_basediv = ls_ekpo-webre.
ls_item-vend_mat = ls_ekpo-idnlf.
ls_item-no_more_gr = ls_ekpo-elikz.
ls_item-final_inv = ls_ekpo-erekz.
ls_item-gr_ind = ls_ekpo-wepos.
ls_item-gr_non_val = ls_ekpo-weunb.
ls_item-conv_num1 = ls_ekpo-bpumz.
ls_item-conv_den1 = ls_ekpo-bpumn.
ls_item-ir_ind = ls_ekpo-repos.
ls_item-unlimited_dlv = ls_ekpo-uebtk.
ls_item-reminder1 = ls_ekpo-mahn1.
ls_item-reminder2 = ls_ekpo-mahn2.
ls_item-reminder3 = ls_ekpo-mahn3.
ls_item-vend_mat = ls_ekpo-idnlf.
ls_item-no_more_gr = ls_ekpo-elikz.
ls_item-final_inv = ls_ekpo-erekz.
ls_item-gr_ind = ls_ekpo-wepos.
*Parameter: POITEMX
ls_itemx-po_unit = 'X'.
ls_itemx-po_item = ls_ekpo-ebelp.
ls_itemx-material = 'X'.
ls_itemx-price_unit = 'X'.
ls_itemx-orderpr_un = 'X'.
ls_itemx-net_price = 'X'.
ls_itemx-matl_group = 'X'.
ls_itemx-short_text = 'X'.
ls_itemx-plant = 'X'.
ls_itemx-stge_loc = 'X'.
ls_itemx-quantity = 'X'.
ls_itemx-acctasscat = 'X'.
ls_itemx-gr_basediv = 'X'.
ls_itemx-vend_mat = 'X'.
ls_itemx-no_more_gr = 'X'.
ls_itemx-final_inv = 'X'.
ls_itemx-gr_ind = 'X'.
ls_itemx-gr_non_val = 'X'.
ls_itemx-conv_num1 = 'X'.
ls_itemx-conv_den1 = 'X'.
ls_itemx-ir_ind = 'X'.
ls_itemx-unlimited_dlv = 'X'.
ls_itemx-reminder1 = 'X'.
ls_itemx-reminder2 = 'X'.
ls_itemx-reminder3 = 'X'.
ls_itemx-vend_mat = 'X'.
ls_itemx-no_more_gr = 'X'.
ls_itemx-final_inv = 'X'.
ls_itemx-gr_ind = 'X'.
APPEND ls_itemx TO it_itemx.
APPEND ls_item TO it_item.
READ TABLE lt_eket INTO ls_eket WITH KEY ebeln = ls_ekpo-ebeln
ebelp = ls_ekpo-ebelp.
IF sy-subrc = 0.
*Parameter: POSCHEDULE
ls_sch-po_item = ls_ekpo-ebelp.
ls_sch-sched_line = LS_EKET-ETENR.
ls_sch-delivery_date = ls_eket-eindt.
ls_sch-quantity = ls_ekpo-menge .
APPEND ls_sch TO it_sch.
ENDIF.
*Parameter: POSCHEDULEX
ls_schx-po_item = ls_ekpo-ebelp.
ls_schx-sched_line = LS_EKET-ETENR.
ls_schx-po_itemx = 'X' .
ls_schx-sched_linex = 'X'.
ls_schx-delivery_date = 'X'.
ls_schx-quantity = 'X' .
APPEND ls_schx TO it_schx.
read table lt_ekkn into ls_ekkn with key ebeln = ls_ekpo-ebeln
ebelp = ls_ekpo-ebelp.
*Parameter: POACCOUNT
ls_poact-po_item = ls_ekpo-ebelp.
ls_poact-serial_no = sy-tabix.
ls_poact-quantity = ls_ekpo-menge.
ls_poact-gl_account = ls_ekkn-sakto.
'0000400000'.
ls_poact-costcenter = ls_ekkn-KOSTL.
ls_poact-co_area = '1000'.
ls_poact-tax_code = ls_ekkn-mwskz.
APPEND ls_poact TO it_poact.
*Parameter: POACCOUNTX
ls_poactx-po_item = ls_ekpo-ebelp.
ls_poactx-serial_no = sy-tabix .
ls_poactx-quantity = ls_ekpo-menge.
ls_poactx-gl_account = ls_ekkn-sakto.
ls_poactx-costcenter = ls_ekkn-KOSTL.
ls_poactx-co_area = 'X' .
ls_poactx-tax_code = ls_ekkn-mwskz.
'X'.
APPEND ls_poactx TO it_poactx.
*Parameter: POCOND
ls_cond-itm_number = ls_ekpo-ebelp.
ls_cond-cond_st_no = '001' .
ls_cond-cond_type = 'PB00' .
ls_cond-cond_value = '79.900000000' .
ls_cond-currency = ls_ekko-waers.
ls_cond-currency_iso = 'USD'.
ls_cond-cond_unit = 'KG' .
ls_cond-cond_p_unt = '1' .
ls_cond-change_id = 'U' .
APPEND ls_cond TO it_cond.
*Parameter: POCONDX
ls_condx-itm_number = ls_ekpo-ebelp.
ls_condx-cond_st_no = '000' .
ls_condx-itm_numberx = 'X' .
ls_condx-cond_type = 'X' .
ls_condx-cond_value = 'X' .
ls_condx-currency = 'X' .
ls_condx-change_id = 'X' .
APPEND ls_condx TO it_condx.
*Parameter: POPARTNER,
ls_popart-partnerdesc = 'OA' .
ls_popart-langu = 'EN' .
ls_popart-buspartno = '0000001100' .
ls_popart-partnerdesc = 'GS' .
ls_popart-langu = 'EN' .
ls_popart-buspartno = '0000001200' .
ls_popart-partnerdesc = 'IP' .
ls_popart-langu = 'EN' .
ls_popart-buspartno = '0000001000'.
APPEND ls_popart TO it_popart.
Address data
READ TABLE lt_adrc INTO ls_adrc WITH KEY addrnumber = ls_ekko-adrnr.
IF sy-subrc = 0.
st_adrc-addr_no = ls_adrc-addrnumber.
st_adrc-name = ls_adrc-name1.
st_adrc-street = ls_adrc-street.
st_adrc-district = ls_adrc-city2.
st_adrc-postl_cod1 = ls_adrc-post_code1.
st_adrc-city = ls_adrc-city1.
st_adrc-country = ls_adrc-country.
st_adrc-region = ls_adrc-region.
APPEND st_adrc TO it_adrc.
ENDIF.
AT END OF ebeln.
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = ls_head
poheaderx = ls_headx
POADDRVENDOR =
TESTRUN =
MEMORY_UNCOMPLETE =
MEMORY_COMPLETE =
POEXPIMPHEADER =
POEXPIMPHEADERX =
VERSIONS =
NO_MESSAGING =
NO_MESSAGE_REQ =
NO_AUTHORITY =
NO_PRICE_FROM_PO =
IMPORTING
EXPPURCHASEORDER = w_purchaseorder
EXPHEADER =
EXPPOEXPIMPHEADER =
TABLES
return = ret2
poitem = it_item
poitemx = it_itemx
poaddrdelivery = it_adrc
poschedule = it_sch
poschedulex = it_schx
poaccount = it_poact
POACCOUNTPROFITSEGMENT =
poaccountx = it_poactx
POCONDHEADER =
POCONDHEADERX =
pocond = it_cond
pocondx = it_condx
POLIMITS =
POCONTRACTLIMITS =
POSERVICES =
POSRVACCESSVALUES =
POSERVICESTEXT =
EXTENSIONIN =
EXTENSIONOUT =
POEXPIMPITEM =
POEXPIMPITEMX =
POTEXTHEADER =
POTEXTITEM =
ALLVERSIONS =
popartner = it_popart
POCOMPONENTS =
POCOMPONENTSX =
POSHIPPING =
POSHIPPINGX =
POSHIPPINGEXP =
if w_purchaseorder is not initial.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
LOOP AT ret2 WHERE type = 'S'.
lt_success_po-ebeln = ret2-message_v2.
lt_success_po-type = ret2-type.
lt_success_po-message = ret2-message.
append lt_success_po.
clear : lt_success_po.
ENDLOOP.
else.
loop at ret2 where type = 'E'.
move-corresponding lt_ekko to lt_error_po.
move-corresponding ls_ekpo to lt_error_po.
move ret2-type to lt_error_po-type.
move ret2-message to lt_error_po-message.
append lt_error_po.
clear : lt_error_po.
endloop.
endif.
CLEAR : ls_ekko,
st_ekko,
ls_ekpo,
st_ekpo,
ls_ekkn,
ls_ekbe,
ls_eket.
ENDAT.
ENDLOOP.
ENDFUNCTION.
Thanks
Rubanhi,
I could able to get successful PO creation no.
but problem is with tax code(MWskz) not updated for that tax code in EKKN table for that successfully created PO.
Even though the value is passing into the standard BAPI bapi_PO_create1.
Thanks
Ruban -
Retention amount paid to vendor is not updated in PO history tab
Dear All,
I had activated business function 'LOG_MMFI_P2P'. As a result i am getting Payment processing tab in PO.
There i can define Down payment and Retention percentages. I had created a service purchase order and then service entry sheet.
After the acceptance of service entry sheet i did invoicing (MIRO). Here i get an option to clear down payment (an additional button becomes available to clear down payment). That scenario is working perfectly fine. System also proposes the retention amount. I can change retention amount/percentage or continue with same.After invoice is posted the retention amount is visible under PO history tab against Invoice number.
Now my problem is when i am doing payment of retention amount(after doing payment of services deducting down payment and retention) to vendor the 'Posted Retention in Document Currency' column in PO history tab is not updated.
Regards,
KamalDear Pankaj,
Thanks for quick Reply.
I think you did not understand my question. In PO history tab for down payment scenario (defined through PO and cleared in MIRO) proper lines are getting created. For retention new line will not be created. But the invoice row in PO history tab is having two columns -
1) Retention in Document Currency.
2) Posted Retention in Document Currency.
The first column is having value which is the retention amount. But second column is not having any value even after the payment (portion held as retention)is made.
I will add one more thing. If i run FK10N for the vendor- then Special G/L account for retention is updated properly.
Regards,
Kamal
Edited by: kamal.anandani1 on Apr 22, 2011 8:02 AM -
Error: Can't Add a New Sales Order: -10 Exchange rate not updated,
Hi,
I'm trying to add several Sales Orders contained in a XML document, whose root element corresponds to the Sales Person created that XML. Anyway, after I fill a Sales Order Document Object with the info in the XML and try to add it the following error appears: "Exchange rate not updated [RDR1.U_Desc4][line: 2] , 'USD'" Which is strange because this company handles most of its transactions in MXP Currency. I will post the piece of Code that fills the object hoping it helps:
For Each xndSalesOrder In xmlSalesOrder.Item("SalesMan").ChildNodes
oSalesOrder = Me.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
oSalesOrder.DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items
With xndSalesOrder.Item("HEADER")
oSalesOrder.CardCode = .Item("Deudor").InnerText
oSalesOrder.DocDate = DateTime.Parse(.Item("FechaCont").InnerText, Nothing)
oSalesOrder.DocDueDate = DateTime.Parse(.Item("FechaEnt").InnerText, Nothing)
oSalesOrder.Comments = .Item("Observaciones").InnerText
oSalesOrder.DocRate = 11
oSalesOrder.DocCurrency = "MXP"
'oSalesOrder.ContactPersonCode = .Item("Contacto").InnerText
'User Fields
oSalesOrder.UserFields.Fields.Item("U_RefOV").Value = _
xndSalesOrder.Attributes.Item(0).InnerText
oSalesOrder.UserFields.Fields.Item("U_Referencia2").Value = .Item("Referencia").InnerText
oSalesOrder.UserFields.Fields.Item("U_FechaReferencia").Value = _
DateTime.Parse(.Item("FechaReferencia").InnerText, Nothing)
End With
With xndSalesOrder.Item("LINEAS")
For Each xndLinea In .ChildNodes
If intContLineas >= 1 Then oSalesOrder.Lines.Add()
End If
oSalesOrder.Lines.ItemCode = xndLinea.Item("Articulo").InnerText
oSalesOrder.Lines.Quantity = CDbl(xndLinea.Item("Cantidad").InnerText)
oSalesOrder.Lines.Price = CDbl(xndLinea.Item("Precio").InnerText)
oSalesOrder.Lines.TaxCode = xndLinea.Item("Impuesto").InnerText
oSalesOrder.Lines.DiscountPercent = CDbl(xndLinea.Item("DescuentoTotal").InnerText)
oSalesOrder.Lines.SalesPersonCode = xmlSalesOrder.Item("SalesMan").Attributes.Item(0).InnerText
oSalesOrder.Lines.Currency = "MXP"
'User Fields
oSalesOrder.Lines.UserFields.Fields.Item("U_Promocion").Value = _
xndLinea.Item("AplicaProm").InnerText 'Valores posibles: Si, No
oSalesOrder.Lines.UserFields.Fields.Item("U_Desc1").Value = _
CInt(xndLinea.Item("Descuento1").InnerText)
oSalesOrder.Lines.UserFields.Fields.Item("U_Desc2").Value = _
CInt(xndLinea.Item("Descuento2").InnerText)
oSalesOrder.Lines.UserFields.Fields.Item("U_Desc3").Value = _
CInt(xndLinea.Item("Descuento3").InnerText)
'If xndLinea.Item("AplicaProm").InnerText = "Si" Then
oSalesOrder.Lines.UserFields.Fields.Item("U_Desc4").Value = _
CInt(xndLinea.Item("Descuento4").InnerText) 'This is the UDF that's giving me problems!!!
'End If
intContLineas += 1
Next
If oSalesOrder.Add() <> 0 Then
Me.Company.GetLastError(intErrorAdd, sErrMsgAdd)
If (0 <> intErrorAdd) Then
FillLog("Sales Order Error: " & CStr(intErrorAdd) & "," & sErrMsgAdd)
End If
xmlLogSalesOrder.Item
End If
End With
Next
If you look at the code I've even tried the solution of hardcoding the DocRate and the Currency as seen in a similar post about the DTW.
Sorry if code is in Spanglish, its quite late around here. I hope you can help me because it's kind of an urgent matter and I can't seem to find a solution for it.
Other useful data: SAP BO 2005 Patch 4.
Thanks in advance...
Alfredo GargariHi Alfredo,
Have you tried to add the same salesorder by hand, I think you wil first get a form with exchange rates.
I think you should add a check to your program to check for an update currency rate (the sbobob function GetCurrencyRate does this for you).
GetCurrencyRate MethodDescription
Returns a Recordset object that contains the currency rate for a specified date and currency code.
See Currency Bobs sample.
Syntax
Public Function GetCurrencyRate( _
ByVal Currency As String, _
ByVal Date As Date _
) As Recordset
Parameters
Currency
Specifies the currency code.
Date
Specifies the date for the currency exchange rate.
Return Type
A Recordset object that contains one field named CurrencyRate that holds the rate value.
SAP Business One returns 0 if the system cannot find the exchange rate.
Regards,
Ad -
hi alll
1. i have written below coding for vendor master update. i have two records in text file, in that first record not updated. while updating its shows error. but second record updated. how can i solve. plse help me
2. I want to show the error message or i want to print how can i do it
REPORT ZVENTESTBDC.
data : begin of it_xk01 occurs 0,
LIFNR(10) type c,
BUKRS(4) type c,
EKORG(4) type c,
KTOKK(4) type c,
NAME1(30) type c,
SORT1(10) type c,
LAND1(3) type c,
AKONT(10) type c,
FDGRV(10) type c,
WAERS(3) type c,
end of it_xk01.
DATA : IT_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE,
IT_BDCMSGCOLL LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'C:\Documents and Settings\entegall\Desktop\vendor.txt'
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE =
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = it_xk01.
loop at it_xk01.
refresh it_bdcdata.
perform open_group.
perform bdc_dynpro using 'SAPMF02K' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RF02K-REF_LIFNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RF02K-LIFNR'
it_xk01-lifnr.
perform bdc_field using 'RF02K-BUKRS'
IT_XK01-BUKRS.
perform bdc_field using 'RF02K-EKORG'
IT_XK01-EKORG.
perform bdc_field using 'RF02K-KTOKK'
IT_XK01-KTOKK.
perform bdc_dynpro using 'SAPMF02K' '0110'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-LAND1'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFA1-NAME1'
IT_XK01-NAME1.
perform bdc_field using 'LFA1-SORTL'
IT_XK01-SORT1.
perform bdc_field using 'LFA1-NAME2'
perform bdc_field using 'LFA1-LAND1'
IT_XK01-LAND1.
perform bdc_dynpro using 'SAPMF02K' '0120'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-KUNNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0130'.
perform bdc_field using 'BDC_CURSOR'
'LFBK-BANKS(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_dynpro using 'SAPMF02K' '0210'.
perform bdc_field using 'BDC_CURSOR'
'LFB1-FDGRV'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFB1-AKONT'
IT_XK01-AKONT.
perform bdc_field using 'LFB1-FDGRV'
IT_XK01-FDGRV.
perform bdc_dynpro using 'SAPMF02K' '0215'.
perform bdc_field using 'BDC_CURSOR'
'LFB1-ZTERM'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0220'.
perform bdc_field using 'BDC_CURSOR'
'LFB5-MAHNA'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0310'.
perform bdc_field using 'BDC_CURSOR'
'LFM1-WAERS'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFM1-WAERS'
IT_XK01-WAERS.
perform bdc_dynpro using 'SAPMF02K' '0320'.
perform bdc_field using 'BDC_CURSOR'
'RF02K-LIFNR'.
perform bdc_field using 'BDC_OKCODE'
'=UPDA'.
*perform bdc_transaction using 'XK01' using IT_BDCDATA mode 'A' UPDATE 'S'
CALL TRANSACTION 'XK01' USING IT_BDCDATA
MODE 'A'
UPDATE 'S' MESSAGES INTO IT_BDCMSGCOLL.
*perform close_group.
endloop.
FORM BDC_DYNPRO USING PROG SCR.
CLEAR IT_BDCDATA.
IT_BDCDATA-PROGRAM = PROG.
IT_BDCDATA-DYNPRO = SCR.
IT_BDCDATA-DYNBEGIN = 'X'.
APPEND IT_BDCDATA.
ENDFORM.
FORM BDC_FIELD USING FNAM FVAL.
CLEAR IT_BDCDATA.
IT_BDCDATA-FNAM = FNAM.
IT_BDCDATA-FVAL = FVAL.
APPEND IT_BDCDATA.
ENDFORM.go through this porgarm u will get the clear picture about down loading the error msg.
PROGRAM ID : ZSD_CONDREC_DISCOUNT_ZSWD
DESCRIPTION : BDC PROGRAM TO UPLOAD CONDITION RECORDS FOR Discount
TRANSACTION : VK11
CONDITION TYPE : ZSWD(Key combination 3)
VERSION : 1.0
Text Elements
001 : Select Options
002 : C:\SD\Error\Discount-ZSWD
003 : Error Download Path
004 : C:\SD\Error\Discount-ZSWD - DDMMYYYY HH:MM:SS.txt
REPORT ZSD_CONDREC_DISCOUNT_ZSWD
MESSAGE-ID 00.
*include bdcrecx1.
TABLES : t100.
Internal table declaration *
DATA : BEGIN OF it_price OCCURS 0,
index(4), "Index
kschl(4), "Condition type
vkorg(4), "Sales organization
vtweg(2), "distribution channel
spart(2), "Division
matnr(18), "Material no
kbetr(11), "Rate
konwa(5), "Rate unit (currency or percentage)
kmein(3), "Condition unit
krech(1), "Calculation type for condition
datab(10), "Validity start date
datbi(10), "Validity end date
er_message(100),
END OF it_price.
Internal table to get the error data *
DATA : it_error LIKE it_price OCCURS 0 WITH HEADER LINE.
DATA : bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
DATA : i_msgtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
Internal table to find the error from the legacy data *
DATA : BEGIN OF it_erfind OCCURS 0,
index(4), "Index
er_message(100), "For Error Message
END OF it_erfind.
Variables declaration *
DATA : g_message(200),
time(10),
date(10) ,
v_error_filename LIKE rlgrap-filename.
date = sy-datum.
time = sy-uzeit.
Initialization
INITIALIZATION.
Generating Error file name with date and time.
PERFORM make_file_name.
Selection Screen *
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETER: p_file LIKE ibipparms-path OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(30) text-003.
SELECTION-SCREEN COMMENT 33(79) text-004.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN:END OF BLOCK b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file .
PERFORM get_filename.
Start of selection
START-OF-SELECTION.
PERFORM upload_data.
PERFORM fill_data.
END-OF-SELECTION.
*& Form fill_data
text
FORM fill_data.
LOOP AT it_price.
*Start of Screen 1
PERFORM bdc_dynpro USING 'SAPMV13A' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RV13A-KSCHL'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ANTA'.
PERFORM bdc_field USING 'RV13A-KSCHL'
it_price-kschl.
Key Combination: Sales org / Dist. channel / Division / Material
PERFORM bdc_dynpro USING 'SAPLV14A' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RV130-SELKZ(03)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=WEIT'.
PERFORM bdc_field USING 'RV130-SELKZ(03)'
'X'.
*Start of Screen 2
PERFORM bdc_dynpro USING 'SAPMV13A' '1800'.
PERFORM bdc_field USING 'KOMG-VKORG'
it_price-vkorg.
PERFORM bdc_field USING 'KOMG-VTWEG'
it_price-vtweg.
PERFORM bdc_field USING 'KOMG-SPART'
it_price-spart.
PERFORM bdc_field USING 'KOMG-MATNR(01)'
it_price-matnr.
PERFORM bdc_field USING 'KONP-KBETR(01)'
it_price-kbetr.
PERFORM bdc_field USING 'KONP-KONWA(01)'
it_price-konwa.
PERFORM bdc_field USING 'KONP-KMEIN(01)'
it_price-kmein.
PERFORM bdc_field USING 'RV13A-KRECH(01)'
it_price-krech.
PERFORM bdc_field USING 'RV13A-DATAB(01)'
it_price-datab.
PERFORM bdc_field USING 'RV13A-DATBI(01)'
it_price-datbi.
perform bdc_dynpro using 'SAPMV13A' '1821'.
perform bdc_field using 'BDC_CURSOR'
'KOMG-MATNR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=SICH'. "Save the entry
PERFORM bdc_transaction TABLES i_msgtab USING 'VK11' 'N' 'L'.
*To fetch the error message from the standard error table
SELECT SINGLE * FROM t100 WHERE sprsl = 'E'
AND arbgb = sy-msgid
AND msgnr = sy-msgno.
g_message = t100-text.
*subroutine to change the error message for every document number
PERFORM replace_parameters USING sy-msgv1
sy-msgv2
sy-msgv3
sy-msgv4
CHANGING g_message.
WRITE: / 'System variables:'.
SKIP.
WRITE: / ' Sy-msgty:', sy-msgty.
WRITE: / ' Sy-msgid:', sy-msgid.
WRITE: / ' Sy-msgno:', sy-msgno.
WRITE: / ' Sy-msgv1:', sy-msgv1.
WRITE: / ' Sy-msgv2:', sy-msgv2.
WRITE: / ' Sy-msgv3:', sy-msgv3.
WRITE: / ' Sy-msgv4:', sy-msgv4.
SKIP.
WRITE: / 'Message:'.
SKIP.
WRITE: / sy-msgty, g_message.
*To find out the error in the legacy data if there is anything and pass
*the document no with error message to the seperate internal table
*called it_erfind
IF sy-msgty = 'E'.
it_erfind-index = it_price-index.
it_erfind-er_message = g_message.
APPEND it_erfind.
ENDIF.
*Finally we are segregating the error and downloading the error data.
AT LAST.
*To segregate the error
PERFORM segregate_error.
*To download the error from it_error internal table with err mesg
PERFORM error_download.
PERFORM display_message.
ENDAT.
ENDLOOP.
perform close_group.
CLEAR it_price.
ENDFORM. "fill_data
*Subrotine to replace the parameters
FORM replace_parameters USING p_par_1 p_par_2 p_par_3
p_par_4 CHANGING p_message.
erst mal pruefen, ob numerierte Parameter verwendet wurden
DO.
REPLACE '&1' WITH p_par_1 INTO p_message.
IF sy-subrc <> 0.
EXIT.
ENDIF.
ENDDO.
DO.
REPLACE '&2' WITH p_par_2 INTO p_message.
IF sy-subrc <> 0.
EXIT.
ENDIF.
ENDDO.
DO.
REPLACE '&3' WITH p_par_3 INTO p_message.
IF sy-subrc <> 0.
EXIT.
ENDIF.
ENDDO.
DO.
REPLACE '&4' WITH p_par_4 INTO p_message.
IF sy-subrc <> 0.
EXIT.
ENDIF.
ENDDO.
falls keine numerierten Parameter vorh., ersetzen wie gehabt
REPLACE '&' WITH p_par_1 INTO p_message.
CONDENSE p_message.
IF sy-subrc EQ 0.
REPLACE '&' WITH p_par_2 INTO p_message.
CONDENSE p_message.
IF sy-subrc EQ 0.
REPLACE '&' WITH p_par_3 INTO p_message.
CONDENSE p_message.
IF sy-subrc EQ 0.
REPLACE '&' WITH p_par_4 INTO p_message.
CONDENSE p_message.
ENDIF.
ENDIF.
ENDIF.
ENDFORM. "REPLACE_PARAMETERS
*Subroutine to segregate the error data from the legacy data
FORM segregate_error.
LOOP AT it_erfind.
LOOP AT it_price WHERE index = it_erfind-index.
MOVE-CORRESPONDING it_price TO it_error.
it_error-er_message = it_erfind-er_message.
APPEND it_error.
ENDLOOP.
ENDLOOP.
ENDFORM. "segregate_error
*Subroutine to download the error data from the it_error table.
FORM error_download.
IF it_error[] IS NOT INITIAL.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
codepage = 'IBM'
filename = v_error_filename
filetype = 'DAT'
TABLES
data_tab = it_error.
ENDIF.
ENDFORM. "error_download
Start new screen *
FORM bdc_dynpro USING program dynpro.
CLEAR bdcdata.
bdcdata-program = program.
bdcdata-dynpro = dynpro.
bdcdata-dynbegin = 'X'.
APPEND bdcdata.
ENDFORM. "BDC_DYNPRO
Insert field *
FORM bdc_field USING fnam fval.
IF FVAL <> NODATA.
CLEAR bdcdata.
bdcdata-fnam = fnam.
bdcdata-fval = fval.
APPEND bdcdata.
ENDIF.
ENDFORM. "BDC_FIELD
*& Form bdc_transaction
text
-->MESSTAB text
-->TCODE text
-->CTUMODE text
-->CUPDATE text
FORM bdc_transaction TABLES messtab USING tcode ctumode cupdate .
CALL TRANSACTION tcode USING bdcdata
MODE ctumode
UPDATE cupdate
MESSAGES INTO messtab.
REFRESH bdcdata.
CLEAR bdcdata.
ENDFORM. " bdc_transaction
Uploading data file to internal table. *
FORM upload_data.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = p_file
CODEPAGE = 'IBM '
filetype = 'DAT'
TABLES
data_tab = it_price
EXCEPTIONS
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
OTHERS = 7.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. "upload_data
*& Form display_message
FORM display_message .
IF it_error[] IS INITIAL.
MESSAGE i019(zmsg). "Success
ELSE.
MESSAGE e020(zmsg). "Failed
ENDIF.
ENDFORM. " display_message
*& Form get_filename
text
--> p1 text
<-- p2 text
FORM get_filename .
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
FIELD_NAME = p_file
IMPORTING
file_name = p_file .
IF sy-subrc NE 0 .
WRITE : / 'Enter File Name'.
ENDIF.
ENDFORM. " get_filename
*& Form make_file_name
FORM make_file_name .
WRITE sy-datum TO date MM/DD/YYYY.
WRITE sy-uzeit TO time USING EDIT MASK ' __ __ __'.
CONCATENATE text-002 date time '.txt'
INTO v_error_filename.
ENDFORM. " make_file_name
regards
prabhu -
Received notice to update ITunes. When downloading, got error message "ITunes has an invalid signature" and would not update. Never had an update issue until this download. How do i rectify this error?
Hi, bro2pro.
I would recommend a complete uninstall as outlined in the article below. Make sure to process the uninstall in the order specified.
Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
http://support.apple.com/kb/ht1925
Once uninstalled, download iTunes directly from here iTunes 11.0.4 or iTunes.com. Make sure to save the file to your desktop instead of selecting the run option. Locate the file on your desktop, right click and select run as administrator. This should allow the install.
Cheers,
Jason H. -
BAPI_ACC_DOCUMENT_POST - not updating in databse
Hi,
In my program code for outgoing payments(F-53) I am passing the following values for the BAPI_ACC_DOCUMENT_POST and getting the message in RETURN table as Document Successfully Posted( S RW 605) and I am able to see the document number in export parameter also. I am using BAPI_TRANSACTION_COMMIT after this. But the the document is not updated in database. Can you please suggest me that I have do any customization settings to update in databse or I am passing any wrong values for BAPI.My requirement is using BAPI, I have to update outgoing payments in SAP.
The values I am passing are as below.
DOCUMENTHEADER
BUS_ACT = RFBU
USERNAME = SY-UNAME
COMP_CODE = 3000
DOC_DATE = SY-DATUM
PSTNG_DATE = SY-DATUM
FISC_YEAR = 2008
FIS_PERIOD = 03
DOC_TYPE = KZ
TABLES
ACCOUNTGL
ITEMNO_ACC = 1
GL_ACCOUNT = 113100
DOC_TYPE = KZ
COMP_CODE =
FIS_PERIOD = 03
FISC_YEAR = 2008
PSTING_DATE = SY-DATUM
DE_CRE_IND = H
ACCOUNTPAYABLE
ITEMNO_ACC = 2
VENDOR_NO = 205203
COMP_CODE = 3000
PYMT_CUR = USD
PYMT_AMT = 100
CURRENCYAMOUNT
1ST LINE
ITEMNO_ACC = 1
CURRENCY = SGD
AMT_BASE = -100
2ND LINE
ITEMNO_ACC = 2
CURRENCY = SGD
AMT_BASE = 100
Thanks
Santhikumarhi,
i think it is very important to fill the following elements in the
DOCUMENTHEADER structure
OBJ_KEY
OBJ_SYS
BUS_ACT
please look at sap note 1045412 & 561175 for values
please award some points, if useful
regards
markus
Maybe you are looking for
-
Downloaded Update, now cannot access Music Store
We've been able to use the s/w without incident. Today, we were prompted to download your update. We did. Now when we attempt to access the Music Store, we get a popup with the following: iTunes could not connect to the Music Store. Make sure your ne
-
Is there any difference in oracle database and forms database
i want to know is there any difference in oracle database and forms 6i database ,if i import some file through oracle database then same data will exist in forms database or not thanks
-
5800 repeatedly connecting to internet
Hi, My 5800XM keeps connecting to the internet, at least once per day. I don't want it to do this because I'm on PAYG and would like to be in control of when I pay to connect to the internet There are no apps running and I've started uninstalling lot
-
How to set button disabled wile processing radio button request.
Hi, I have one panel gropu layout and inside that i am displaying radio buttons, select many check box and save button. Actually on change of radio button selection based on the value selected i am seltting some values selected in select many check b
-
Help Required to Implement Oracle AQ
I need to implement Oracle AQ in our project. We are getting XML messages through a Queue from an external source system . Parameters we have with us to access that External Queue are -Name of the Queue and JNDI Connection factory name . Now how shou