BAPI Error 462
We are working with MII 12.1 and attempting to backflush an order with bapi_repmanconf1_create_mto using a JCo interface in a BLS. The error seems focused on the posting date which is populated using the "datenow" xpath statement. I am getting an error 462 "Posting date and/or document date was/were not transferred".
I have tried to do a datefromxmlformat to another date time format but the JCo will not execute at all citing a date format string conversion error "Cannot convert a value of '03-01-2010' from type java.lang.String to DATE at field POSTDATE"
What could be the problem with the date format? Or is this a case where SAP has generated a totally anti-intuitive message and really wants something else entirely?
Thanks for your help.
Sparks,
I have found with other confirmation bapi's that if you put in a posting date, you also need to provide the document date. If you leave the posting date and document date empty, they will self populate with the current date and time.
Regards,
Mike
Similar Messages
-
Database Connection Error:BAPI Error #0
I have a problem when I preview a report in Crystal Reports 2008 using BW MDX Query I had recieved the following messages:
1.Failed to retrieve data from database
and then when I click ok
2.Database Connection Error:BAPI Error #0
Error occurred when starting the parser:timeout during allocate / CPIC-CALL'ThSAPCMRCV'
I copied the query of crystal report and I execute it inside the transaction of mdxtest
SELECT NON EMPTY EXCEPT([0CALMONTH].MEMBERS, {[0CALMONTH].[All]}) ON ROWS FROM [USD_SD_C0/RPT_1] SAP VARIABLES [!V000001] INCLUDING [0CALMONTH].[200401]
I found the debugger had stopped in the line Break when I click on F8
I recieve the following error
Error occurred when starting the parser: timeout
during allocate / CPIC-CALL: 'ThSAPCMRCV'
Please anybody can help meDear Ingo
I had read this note
I applied the following:
1.I didn't found the lrfc32.dll in the windows/system32 in my BW server so I asked my basis administrator to upgrade the kernel
2.after this step I didn't find it again so I had copied the file from the new kernel and copied it to system32 and sysWow
3.I register successfuly the lrfc32.dll using the commanf regsvr c:/windows/system32/lfrc32.dll
(note: this step didn't succeed until I had installed SAP GUI in BW server because as I observed that there is a need for C++ compiler which is installed by default when you install GUI)
after all of this I cannot run any crystal report based on any BW query
So Please anyboday can help -
Crystal reports and SAP BI--------BAPI error when executing the report
Hi All,
I am getting a problem accessing the data from the SAP BI system into the crystal reports.I created a report in CR2008 on a query built in SAP BI.When I execute this query,I am getting the following error.
Database Connection Error:'BAPI Error #:0
Error Occured when starting the parser:timeout during allocate / CPIC-CALL:'ThSAPCMRCV"
CAN ANYBODY HELP ME OUT Please.
Thanks,
Kumar
Edited by: Madan Koka on Dec 15, 2008 5:47 PMHi,
I have the same problem. I can create report in Crystal Reports on a query but can`t get data from BW.
Thx in advance for help
Jacek -
Hi,
i am working the fist time with Crystal Reports 2008 and i dont get data from SAP BW Queries. I can connect to the SAP-System and build a report on the Design screen. But on the Preview screen i get the message "BAPI Error #:0 Fehler beim Start des Parser: timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'". I dont know what to do.Hello Tim,
Please post this query to the [Integration Kits - SAP |BusinessObjects Integration Kits; forum:
That forum is monitored by qualified technicians and you will get a faster response there.
Also, all SAP queries remain in one place and thus can be easily searched in one place.
Thanks a lot,
Falk -
Hi,
i am working the fist time with Crystal Reports 2008 and i dont get data from SAP BW Queries. I can connect to the SAP-System and build a report on the Design screen. But on the Preview screen i get the message "BAPI Error #:0 Fehler beim Start des Parser: timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'". I dont know what to do.I had move this thread to the right forum. Sorry..
[CR2008 BAPI Error; -
Hi Group,
I am using BAPI ,How to display the BAPI Error Message (eg:BAPIRET1) which is returning by BAPIHI ,
ITS SIMPLE TRY THIS CODE
AWARD PTS
DATA: gt_ret TYPE TABLE OF bapiret2,
ls_ret TYPE bapiret2,
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = p_vbeln
order_header_in = gt_hdr
order_header_inx = gt_hdrx
TABLES
return = gt_ret -
>>>>.<b>IMPORTANT</b>
order_item_in = gt_itm
order_item_inx = gt_itmx
schedule_lines = gt_sched
schedule_linesx = gs_schedx
order_text = gs_stdtxt.
PARTNERS = gs_partner
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
LOOP AT gt_ret INTO ls_ret.
WRITE:/ ls_ret-type.
WRITE:/ ls_ret-message.
ENDLOOP. -
Getting error 462 - The remote server machine does not exist or is unavailable
I have several modules that read and write data to and from Excel 2010 worksheets. I am noticing that the Excel process does not end aven though Excel is not running on my PC. It is like an orphan process. If I try running the Access module again I get the
message "error 462 - The remote server machine does not exist or is unavailable". Here is the code I am running. When I click the Debug button on the message box the line "rowNum = objXLAppln.Range("A" & Rows.Count).End(xlUp).Row"
is highlighted.
Option Compare Database
Option Explicit
Function ImportImportanceScores()
Dim RecSet As DAO.Recordset
Dim objXLAppln As Excel.Application
Set objXLAppln = New Excel.Application
Dim objWBook As Excel.Workbook
Dim rowNum As Variant
Dim i As Integer
Dim j As Integer
Dim StrPathFile As String, strFile As String, strPath As String
Dim strBrowseMsg As String, strInitialDirectory As String, strFilter As String
'show dialogue box
strBrowseMsg = "Select the EXCEL file:"
'set directory to load files from
strInitialDirectory = "C:\Bridge_CIP_Part-A_B\"
'run strFilter function
strFilter = ahtAddFilterItem(strFilter, "Excel Files (*.xlsx)", "*.xlsx")
StrPathFile = ahtCommonFileOpenSave(InitialDir:=strInitialDirectory, _
Filter:=strFilter, OpenFile:=True, _
DialogTitle:=strBrowseMsg, _
Flags:=ahtOFN_HIDEREADONLY)
If StrPathFile = "" Then
MsgBox "No file was selected.", vbOK, "No Selection"
Exit Function
End If
'Set Excel application object. Critical for macro to run properly. Do not change.
'Open workbook and worksheet to load data.
With objXLAppln
Set objWBook = objXLAppln.Workbooks.Open(StrPathFile)
objXLAppln.Visible = True
End With
Set RecSet = CurrentDb.OpenRecordset("Importance_Scores")
'Copy data from Excel cells to Access fields
objXLAppln.Sheets("Importance_Scores").Select
rowNum = objXLAppln.Range("A" & Rows.Count).End(xlUp).Row
objXLAppln.Range("A6").Select
'Add records to table from Excel
With RecSet
For i = 0 To rowNum - 6
RecSet.AddNew
RecSet.Fields("CIP_ID").value = objXLAppln.ActiveCell.Offset(i, 0).value
RecSet.Fields("Target_Timeframe_for_Construction").value = objXLAppln.ActiveCell.Offset(i, 2).value
RecSet.Fields("ImportanceFactor_TI-1").value = objXLAppln.ActiveCell.Offset(i, 21).value
RecSet.Fields("ImportanceFactor_TI-2").value = objXLAppln.ActiveCell.Offset(i, 22).value
RecSet.Fields("ImportanceFactor_TI-3").value = objXLAppln.ActiveCell.Offset(i, 23).value
RecSet.Fields("ImportanceFactor_TI-4").value = objXLAppln.ActiveCell.Offset(i, 24).value
RecSet.Fields("ProjectRank").value = objXLAppln.ActiveCell.Offset(i, 33).value
RecSet.Update
Next i
End With
'Close everything
RecSet.Close
objWBook.Close SaveChanges:=False
objXLAppln.Quit
Set RecSet = Nothing
Set objWBook = Nothing
Set objXLAppln = Nothing
End FunctionIn the line
rowNum = objXLAppln.Range("A" & Rows.Count).End(xlUp).Row
Rows does not refer to objXLAppln or to objWBook. Change it to
rowNum = objXLAppln.Range("A" & objWBook.Sheets("Importance_Scores").Rows.Count).End(xlUp).Row
Regards, Hans Vogelaar (http://www.eileenslounge.com) -
Passing BAPI Error Messages to BDC Session.
Hi,
Can any one drive the idea how to convert rather passing BAPI error messages into BDC session.
regards.Naveen,
I am sure you already have the logic of "If the call transaction is errored out you create a BDC session for the same data".
Now, when your BAPI fails, irrespective of the error, you need to build the BDCDATA table and pass the data to the session. So, I don't you really need to know the errors and pass them to the BDC Session.
Check the RETURN table of the BAPI, if it has got E / A / X error types then you can build the BDCDATA table and create the session.
Regards.
Ravi
Note : Please mark the helpful answers and close the thread if the issue is resolved. -
BAPI Error: No account assignment exists for service line 0000000000
I am using BAPI : BAPI_PO_CREATE1 to create a PO.
I am getting this error while creating PO "No account assignment exists for service line 0000000000"
Please help.Yes...
for each item i am creating one parent service record and one child service record with REQUISITION_SERVICES.
the Package no for parent is the subpackage no for child.
also for each item, I fill REQUISITION_ACCOUNT_ASSIGNMENT and REQUISITION_SRV_ACCASS_VALUES
Still I get the Error.
Thanks to help me resolve. -
BAPI Error: No schedule lines due for delivery up to the selected date
Hi,
I have created a program to create delivery orders with reference to sales orders using BAPI - BAPI_OUTB_DELIVERY_CREATE_SLS.
After execution I get the error: No schedule lines due for delivery up to the selected date
Please help.
Thanks in advance!!!
Regards,
Sriramhi,
this is to inform you that,
please check the schedule line date in the sales order because the date is not matching here for the BAPI to upload.
here, for example the schedule line is 4 days after and you are running BAPI today. that will mismatch no.
the same thing is happening in uploading case also.
so please check the date.
because in teh sales order if teh schedule line date is today it will accept the uploading with out throwing any errors.
regards,
balajia -
Document Chekc in through BAPI Error
Dear all,
I am using bapi BAPI_DOCUMENT_CHECKIN2 to Check in Dcument into content server but i am getting error as
Error while checking in and storing: C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\DD.doc
message no is 253
Please guide me.
thanx
harish.hi,
i think u did not configure the defualt as Front end computer.
check, data carrier type....should be front end computer..
and then run Bapi
Benakaraj -
BAPI error for mvmt types 201 and 202
Hi all,
I'm using a bapi BAPI_GOODSMVT_CREATE for the movement type 201 and 202 with the gm_code = '03' for the transaction mb11- Goods movement. But it returns an error u201D Account 400000 requires an assignment to a CO object u201D...I'm unable to resolve this one....I have attached the code below. Please help me in fixing this issue...
if sy-subrc = 0.
loop at it_mchb into wa_mchb.
if wa_mchb-clabs gt 0.
clear wa_header.
wa_header-pstng_date = sy-datum. " fill header data
wa_header-doc_date = sy-datum.
wa_code-gm_code = '03'. "fill code data
clear wa_item.
wa_item-material = wa_mchb-matnr. " fillitem data
wa_item-plant = wa_mchb-werks.
wa_item-stge_loc = wa_mchb-lgort.
wa_item-batch = wa_mchb-charg.
wa_item-entry_qnt = wa_mchb-clabs.
wa_item-move_type = '201'.
wa_item-entry_uom = wa_mchb-meins.
append wa_item to it_item.
elseif wa_mchb-clabs lt 0.
clear wa_header.
wa_header-pstng_date = sy-datum. " fill header data
wa_header-doc_date = sy-datum.
wa_code-gm_code = '03'. "fill code data
clear wa_item.
wa_item-material = wa_mchb-matnr. " fillitem data
wa_item-plant = wa_mchb-werks.
wa_item-stge_loc = wa_mchb-lgort.
wa_item-batch = wa_mchb-charg.
wa_item-entry_qnt = wa_mchb-clabs.
wa_item-move_type = '202'.
wa_item-entry_uom = wa_mchb-meins.
append wa_item to it_item.
endif.
endloop.
clear lv_lin.
describe table it_item lines lv_lin.
if lv_lin = 0.
write : / 'No records found'.
endif.
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = wa_header
goodsmvt_code = wa_code
importing
materialdocument = lv_matdoc
tables
goodsmvt_item = it_item
return = it_return.
if it_return is initial. " if record created successfully
call function 'BAPI_TRANSACTION_COMMIT'. " commit work
write : / lv_matdoc, 'IS CREATED SUCCESSFULLY' color 5.
loop at it_item into wa_item.
write : / 'Mat :', wa_item-material,'bat :', wa_item-batch.
endloop.
else. " if record is not created successfylly
loop at it_return into wa_return.
write : / wa_return-message color 6.
endloop.
uline.
endif.
else.
write : / 'No Records found' color 7.
endif. " gt_s035 is not initial
Edited by: Arunmozhi_06 on May 30, 2011 12:48 PMHi,
Did you passing the leading 0's in the cost center field?
and check the below coding..
* Structures for BAPI
data: gm_header type bapi2017_gm_head_01.
data: gm_code type bapi2017_gm_code.
data: gm_headret type bapi2017_gm_head_ret.
data: gm_item type table of
bapi2017_gm_item_create with header line.
data: gm_return type bapiret2 occurs 0.
data: gm_retmtd type bapi2017_gm_head_ret-mat_doc.
clear: gm_return, gm_retmtd. refresh gm_return.
perform show_status using 'Scrapping(551) Material'.
* Setup BAPI header data.
gm_header-pstng_date = sy-datum.
gm_header-doc_date = sy-datum.
gm_code-gm_code = '06'. " MB11
* Write 551 movement to table
clear gm_item.
move '551' to gm_item-move_type .
move xresb-matnr to gm_item-material.
move p_bdmng to gm_item-entry_qnt.
move xresb-meins to gm_item-entry_uom.
move xresb-werks to gm_item-plant.
move xresb-lgort to gm_item-stge_loc.
move p_grund to gm_item-move_reas.
* Determine cost center per plant
case xresb-werks.
when '0004'.
move '0000041430' to gm_item-costcenter."pass leading zero's in the cost center field
when '0006'.
move '0000041630' to gm_item-costcenter.
when '0007'.
move '0000041731' to gm_item-costcenter.
when '0008'.
move '0000041830' to gm_item-costcenter.
endcase.
append gm_item.
* Call goods movement BAPI
call function 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = gm_header
goodsmvt_code = gm_code
IMPORTING
goodsmvt_headret = gm_headret
materialdocument = gm_retmtd
TABLES
goodsmvt_item = gm_item
return = gm_return.
Maybe there is some config missing for your cost center, or maybe something missing in your code. check above.
Regards,
Dhina,..
Edited by: Dhina DMD on May 31, 2011 8:02 AM -
Hi Experts
I am developing a BAPI to post the Vendor Invoice, I am not clear the parameters to be passed. Anyhow i have filled some parameters and am getting the following error, Can anyone suggest me about the error.
Error :
Enter a reference to a valid goods receipt (line 000010)
Coding :
data:it_head like bapi_incinv_create_header,
it_item like bapi_incinv_create_item occurs 0 with header line,
it_acct like bapi_incinv_create_account occurs 0 with header line,
it_gl like bapi_incinv_create_gl_account occurs 0 with header line,
it_mat like bapi_incinv_create_material occurs 0 with header line,
it_ven like bapi_incinv_create_vendorsplit occurs 0 with header line,
it_ret like bapiret2 occurs 0 with header line.
data: inv_doc like bapi_incinv_fld-inv_doc_no,
fisc_yr like bapi_incinv_fld-fisc_year.
data: zinvdoc(50) type c, zfiscyr(30) type c.
clear it_head.
move 'x' to it_head-invoice_ind.
move '1000' to it_head-comp_code.
move sy-datum to it_head-doc_date .
move sy-datum to it_head-pstng_date .
move '27-61725' to it_head-ref_doc_no .
move '200' to it_head-gross_amount .
move 'inr' to it_head-currency .
move '27-61725' to it_head-item_text .
move '1WEAVIN20' to it_head-diff_inv .
move 're' to it_head-doc_type .
move sy-datum to it_head-bline_date.
move '2' to it_head-pmtmthsupl.
move 'a' to it_head-pmnt_block.
move 'z' to it_head-pymt_meth.
move '0001' to it_head-pmnttrms.
clear it_item.
it_item-ref_doc = '123'.
it_item-REF_DOC_YEAR = '2008'.
it_item-REF_DOC_IT = '10'.
it_item-po_number = '4511007408'.
it_item-po_item = '10'.
it_item-invoice_doc_item = '00010'. " ( i don't know what this is for so i gave this no.)
it_item-item_amount
it_item-po_unit
it_item-freight_ve
append it_item.
break pp01.
call function 'BAPI_INCOMINGINVOICE_CREATE'
exporting
headerdata = it_head
addressdata
importing
invoicedocnumber = inv_doc
fiscalyear = fisc_yr
tables
itemdata = it_item
accountingdata
glaccountdata
materialdata
taxdata
withtaxdata
vendoritemsplitdata
return = it_ret.
Thanks in advance.
Regards
RajaramHi,
You have to fill the header and item check out 1,2 point in your code...
Fill in the item details
CNT = CNT + 1.
1. ITEMDATA-INVOICE_DOC_ITEM = CNT.
ITEMDATA-PO_NUMBER = WA_EKPO-EBELN.
ITEMDATA-PO_ITEM = WA_EKPO-EBELP.
ITEMDATA-TAX_CODE = <XX>.
ITEMDATA-ITEM_AMOUNT = WA_EKPO-NETWR.
ITEMDATA-QUANTITY = WA_EKPO-MENGE.
ITEMDATA-PO_UNIT = WA_EKPO-MEINS.
APPEND ITEMDATA.
CLEAR ITEMDATA.
Header Info
2. HEADERDATA-INVOICE_IND = 'X'.
HEADERDATA-DOC_DATE = EKKO-BEDAT.
HEADERDATA-BLINE_DATE = EKKO-BEDAT.
HEADERDATA-PSTNG_DATE = SY-DATUM.
HEADERDATA-COMP_CODE = EKKO-BUKRS.
HEADERDATA-CURRENCY = EKKO-WAERS.
HEADERDATA-GROSS_AMOUNT
HEADERDATA-CALC_TAX_IND = ' '.
HEADERDATA-PMNTTRMS = EKKO-ZTERM.
Regadrs,
Prabhu Rajesh -
i'm making P.O. calling BAPI.
please tell me how to remove this error from it_return
In case of evaluated receipt settlement, please enter tax codeHi Vivek,
While passing the data to tables of BAPI_PO_CREATE you need to pass the data related to tax or else you can consult with your functional people for the data that needs to be transfer while cretion of PO.
Its a simple error jst because of data insufficient.
<REMOVED BY MODERATOR>
Sachin
Edited by: Alvaro Tejada Galindo on Feb 21, 2008 4:23 PM -
Bapi error in BAPI_GOODSMVT_CREATE
HI friends ,
i am using BAPI_GOODSMVT_CREATE for migo using movement type 101 . but it is always throughing
same error 'Goods movement not possible with mvmt type 101' . i am unable to understand the actual cause of this error . what should i do shall we have to use any other bapi for this . plz help me regarding this .
Thanks ,
Amit RanjanHI FRIEND ,
thanks for your prompt reply . i have used goodsmvt_item-mvt_ind = 'B' but the error is still there .
i am sending u my whole program for better understanding .
*& Report ZBAP
REPORT ZBAP.
parameters: xpost like sy-datum default sy-datum.
data: begin of gmhead.
include structure bapi2017_gm_head_01.
data: end of gmhead.
data: begin of gmcode.
include structure bapi2017_gm_code.
data: end of gmcode.
data: begin of mthead.
include structure bapi2017_gm_head_ret.
data: end of mthead.
data: begin of itab occurs 100.
include structure bapi2017_gm_item_create.
data: end of itab.
data: begin of errmsg occurs 10.
include structure bapiret2.
data: end of errmsg.
data: wmenge like iseg-menge,
errflag.
data: begin of pcitab occurs 100,
ext_doc(10), "External Document Number
mvt_type(3), "Movement Type
doc_date(8), "Document Date
post_date(8), "Posting Date
plant(4), "Plant
material(18), "Material Number
qty(13), "Quantity
recv_loc(4), "Receiving Location
issue_loc(4), "Issuing Location
pur_doc(10), "Purchase Document No
po_item(3), "Purchase Document Item No
del_no(10), "Delivery Purchase Order Number
del_item(3), "Delivery Item
prod_doc(10), "Production Document No
scrap_reason(10), "Scrap Reason
upd_sta(1), "Update Status
end of pcitab.
call function 'WS_UPLOAD'
exporting
filename = 'c:\migo.txt'
filetype = 'DAT'
IMPORTING
FILELENGTH =
tables
data_tab = pcitab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
OTHERS = 6
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
exit.
endif.
gmhead-pstng_date = sy-datum.
gmhead-doc_date = sy-datum.
gmhead-pr_uname = sy-uname.
gmcode-gm_code = '01'. "01 - MB01 - Goods Receipts for Purchase Order
loop at pcitab.
itab-move_type = pcitab-mvt_type.
itab-mvt_ind = 'B'.
itab-plant = pcitab-plant.
itab-material = pcitab-material.
itab-entry_qnt = pcitab-qty.
itab-move_stloc = pcitab-recv_loc.
itab-stge_loc = pcitab-issue_loc.
itab-po_number = pcitab-pur_doc.
itab-po_item = pcitab-po_item.
concatenate pcitab-del_no pcitab-del_item into itab-item_text.
itab-move_reas = pcitab-scrap_reason.
append itab.
endloop.
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = gmhead
goodsmvt_code = '03'
TESTRUN = ' '
IMPORTING
goodsmvt_headret = mthead
MATERIALDOCUMENT =
MATDOCUMENTYEAR =
tables
goodsmvt_item = itab
GOODSMVT_SERIALNUMBER =
return = errmsg .
clear errflag.
loop at errmsg.
if errmsg-type eq 'E'.
write:/'Error in function', errmsg-message.
errflag = 'X'.
else.
write:/ errmsg-message.
endif.
endloop.
if errflag is initial.
commit work and wait.
if sy-subrc ne 0.
write:/ 'Error in updating'.
exit.
else.
write:/ mthead-mat_doc, mthead-doc_year.
endif.
endif.
PLZ check it and telll me where is the fault .
Thanks ,
Amit Ranjan
Maybe you are looking for
-
bought your Webcam Live Ultra and began the software installation. I read the entire EULA. During the installation, my security software set multiple alerts because your installer was attempting to modify my security settings and change my browser. T
-
Setting page layout in Reports 6i doesn't work, gap gets to big.
We are forced to use good old' Oracle Reports 6i because another application uses this to create its forms and reports. The problem is, that we want to print those reports on continuous paper with specific measures. In millimetres it would be 210 mm
-
We are using a G5 2.3 and a TiBook 800 MHz. Both machine are suffering from the a very slow finder as well in finder own actions, like opening a new window as well in open commands from other applications like Photoshop, AppleWorks, ... Both computer
-
NI Stepper Motor not putting out enough torque
So I have a motion control system with a P70360, UMI 7772, PXI 7332, and a NEMA 23 stepper motor with 380 oz-in. The purpose of the set up is to rotate horizontally a testing fixture and hold it in position (slowly). Previously the set up was using a
-
Repository based development vs non Repository
hi *, as in caps 6 it is possible to create projects outside the repository. one BIG question for me is when to choose repo based development and when not to choose repo based development. has anyone some thoughts to share about this topic? secondary