BAPI Return Error V4213
I have created a webservice for a SALES ORDER GETLIST BAPI.
and i have deployed it in my server and while executing it is returning an error V4213
But in R/3 it is working fine....
Xperts plz...
Check this thread,
Bapi in visual Composer
Regards
Juan
Similar Messages
-
Need Solution for BAPI return error: E M7 021 Deficit of PU GR quantity
Hi SAP Gurus,
Our client got error while executing <b>BAPI_GOODSMVT_CREATE</b>. can you please guide me under <b>which scenario</b> this BAPI will throw this kind error ...your help appreciated.....
regards
dinesh.ahi reich,
actually we are following the scenario called intial grn cancel in side of sap custom program where it will reverse the material docs which are created with 101 movement type...it should't do the 102 reversal.....
regards
dinesh -
Error in BAPI RETURN for Service Contract
Hi,
I get an error in the BAPI Return for the Uploading the Service Contracts by LSMW. The Error Message is E BS No status object is available for &.Also want to know can we upload multiple line of header text for a Contract by this BAPI. If so then how would I do this , as the BAPI structure BAPISDTEXT has textline upto 132 characters. And I am take only one file in LSMW where the header & details come alongwith text. Or could also tell me the file structure of for the data upload. The legacy system sends multiple text in the header for a Contract.For Eg.
Header1 Detail1 Text1
HEader1 Detail2 Text2
Header1 Detail3 Text3
So I would need this text1TEXT2text3 in the Header Text of the Contracts. Or do I need the change the file structure. Many thanks for your time and help.Thanks Nablan, I could do that for multiple header coming in file. But I have a question for you on BAdI ALM_ME_006_GOODSMVT. I have implemented this BAdI , and this BAdI is called by a function Module ALM_MEREP_006_CREATE. When I test this FM giving the Material , Orderid and Movement type entries, this BAdI is triggered when giving a breakpoint. I've given this code for changing the movement type to 961. Cause the stanadrd scenario does not maintain Movement type 961 in Mobile Asset Management. The Movement type 961 for unplanned Materials comes to SAP and changes to 261 as maiantained by TCOKO table. To bypass this & retain the movement type 961 in SAP I'm using this BAdI. Currently this is what I'm doing and am stuck in the method interface how do I call the method.
method IF_EX_ALM_ME_006_GOODSMVT~CREATE .
break-point.
*DATA : i_ce_goodsmovement TYPE REFERENCE
ALM_ME_CUSTOMER_ENHANCEMENT.
DATA : lr_badi_goods_movement TYPE REF TO if_ex_alm_me_006_goodsmvt.
DATA : ls_user_data TYPE ALM_ME_USER_DATA-USERID.
*DATA : goods_movement TYPE ALM_ME_MATERIAL_MOVEMENT.
CALL METHOD lr_badi_goods_movement->create
EXPORTING
ce_goodsmovement = ce_goodsmovement
IMPORTING
user_data = ls_user_data
custom_user_data = ls_ce_user_data
goods_movement = goods_movement
changing
return = return[].
CALL FUNCTION 'ALM_ME_COMMIT_OR_ROLLBACK'
TABLES
return = return.
endmethod.
Please help me to get the data in this method. How do I call this. -
How to create a log file for bapi return structure
Hi ppl,
I am using BAPI_PO_CHANGE to mark the delivery of POs as complete after many validations through a classic report now my concern is i have been asked to create a log file which details the errors in the POs which is in the bapi return structure.
I don't know how to do can any one help at the earliest.
Regards,
Bharathy.hi
pls see this thread...
it may help you...
/people/kamalkumar.ramakrishnan/blog/2007/01/10/a-primer-on-using-and-creating-sap-application-log
thx
pavan
*pls mark for helpful answers -
BAPI CommitWork error DCOM Connector
I have a VB program using BAPIs with the DCOM Connector. The BAPI object and session object are exported to an MTS
server machine. In the VB program I create a global oSession object and logon to R/3 at the form load event. In one function I instantiate the BAPI Object locally with Set oBO = oSession.CreateInstance("BOprogId"), and run some methods on the object that work fine and Set oBO = nothing at the end of the function.
In a followup function I instantiate the BO again locally with Set oBO = CreateInstance("BOprogid"), then do a change method on instance dependant object after doing oBO.InitKeys. The BAPI return is succesful, so I want to commit the change and issue an oSession.CommitWork. The DCOM connector monitor shows the last function is ABAP4_COMMIT_WORK but it remains in an active state there and the VB program gets a nonzero return: error> -2147023170, automation error The remote procedure call failed. I don't know why this happens.
If I use oBO.CommitWork I get an error also: -2147467259 Object created in Session, so I assume if you instantiate an object with oSession.CreateInstance you have to commit
changes using the Session object.
If I use Set oBO = CreateObject("BOprogId") and commit with oBO.Commit, it works without error. This is not practical since I need to enqueue the SAP object in the first function with oBO.Enqueue method before the user makes changes in the UI. When the user requests the update I invoke the change function, then oBO.Dequeue, then oSession.CommitWork.
Can you tell me why the commit fails, or what I may be doing wrong? Incedentanlly, the SAP object is sucessfully
changed. The change BAPI does not have a commit work, so my program must request it.
Please don't suggest using the dotNet Connector, this is not an option for this project.
Thank you.Dear Rhonda,
Which OS installed on your machine ? I fronted the same problem with windows 200 and windows server 2003.
On windows 2000 you have to register: msado15.dll and msado15r.dll.
On windows 2003 server you have to install MDAC 2.8 and the register those two files.
If you still have problem feel free to email me.
Good luck,
Shay E -
BAPI_OBJCL_CREATE returns error in ECC and not in 4.7 system.
Hi all,
In a custom program, BAPI_OBJCL_CREATE has been used. the program is working fine in SAP 4.7 system.
After the upgradation to ECC, the BAPI_OBJCL_CREATE is returning error.
But, when we debug in ECC, it is not returning error and results are fine ! So it is not possible to trace the error. If values are passed manually to execute only the BAPI, it does not return error.
If we execute the custom program without debugging, it is returning error.
It is surprising issue and unable to fix.
Could anybody know the probably solution/ reason for this in ECC.Please help me.
I have tried to search for this problem for OSS notes, but could not find any.Hi,
The BAPI is returning message of type "E".
Based on this, custom program is rasing user defined error message.
When we debug, no error is returned and transaction is successful. So could not find the error in detail.
Even if we try to run the BAPI using SE37, returns success message.
code is as follows.
CALL FUNCTION 'BAPI_OBJCL_CREATE'
EXPORTING
objectkeynew = gv_objectkeynew "value is 1000409757
objecttablenew = c_iflot "value is IFLOT
classnumnew = c_carac "value is CARAC_PCE_DISCO
classtypenew = c_003 "value is 003
TABLES
return = gt_return. .
LOOP AT gt_return WHERE type CA 'AE'. "means error / abort
EXIT.
ENDLOOP.
IF sy-subrc = 0.
PERFORM f004_write_message_log USING c_error 174 c_class '' '' '' '' gv_concat_e.
MOVE : c_flag TO gv_error.
RETURN.
ENDIF. -
Hi all,
I am working on an SOAP to RFC scenario:
I am able to execute the scenario. I am testing it using SOAP test tool.But i am facing a problem. when we give valid inputs to the BAPi, the BAPI return structure returns correct values, which is mapped to the response msg and the response is also fine, in the testing tool.
But when i give non-valid values to the BAPI, the BAPI returns an error msg like "partner does not exist" and for some reason i am not able to see this msg in my response msg, instead i get an "XI Exception error in my
testing tool display. How can i achieve, the BAPI return value to be displayed in my response msg for invalid values?
Thanks in advanceHi,
I had also faced the same problem in one of my scenarios. What you can do is, you can check the length of the parameter returned by BAPI. If it is zero, it means that non valid value has been passed to BAPI. In this case you have to map some constant to the target field during mapping.
If the length is not zero, you can map it as it is.
For finding the length of the field, you can use the standard text function: length. Hope this helps.
Regards,
Divija. -
Hi all,
I am having an issues, when the user enters the correct value into an input field then i am getting the output properly. But if he enters any wrong value a message is populated into the BAPI return table. So how do I check if the BAPI return table is empty or not. If it is empty then it has to open the output table and if it is not empty it has to show the error message as an pop-up or table format.
Please reply, points will be rewarded.
Thanks & Regards,
M.Ramana MurthyHi Ramana,
If you want to capture the message returning from the BAPI which you are using then do the following:
1.> Drag the line from the BAPI return port and link it to a form or to a table.
2.> Then go to the form/table click the UIelement and in properties of that assign the default value which you want to display. It may be a message coming out of the BAPI.Through this way you can capture the values coming out of the BAPI
Regards,
Nutan -
Multiline BAPI return structure and RFC Adapter
Since SP14 RFC Adapter check return structure of RFC function.
But how it works if BAPI returns multiline BAPIRET2?
Will adapter loop all elements and perfom commit only if <b>all</b> alements don't have errors.I'am about this:
<i>As of SP 14 support for commit handling for single BAPI calls was added to the RfcAdapter receiver channel. If activated in the receiver channel setting, the received XI message will be executed as synchronous RFC (sRFC) in the receiving system. This is also true for asynchronous (QoS EO) XI messages to receive and analyze the execution result by the RfcAdapter.
The received response is parsed by the RfcAdapter to get the BAPI return parameter with name "RETURN". This return parameter can be of BAPIRETURN, BAPIRET1 or BAPIRET2 types. The "RETURN" parameter is checked for the response status (field TYPE) which can take following values:
1. 'S' : Success
2. 'I' : Information
3. 'W' : Warning
4. '' : Empty String
5. 'A' : Abort
6. 'E' : Error
If the response contains one amongst the first four response status then it implies that the BAPI was successful. If the response contains one amongst the last two response then the BAPI failed. If the BAPI "RETURN" parameter is of not of type ABAP structure rather of type ABAP table, a empty table is also considered as successful execution result.
In case of a successful execution the BAPI function module "BAPI_TRANSACTION_COMMIT" is called within the same context to trigger the commit of the BAPI. In case of a failure the BAPI function module "BAPI_TRANSACTION_ROLLBACK" is executed by RFC Adapter which rolls back the changes.</i> -
BAPI - CSAI_BOM_CREATE error
Dear Experts.,
I created a report for uploading BOM equipments using BAPI - CSAI_BOM_CREATE . It is working fine in IDES System , but when I used the same in DEV System It is Giving Error.
below is my code.,
LOOP AT IT_FINAL INTO wa_final.
WA_FINAL1 = WA_FINAL.
at new equnr.
cLEAR wa_csin.
CLEAR: count, itm_no, cnt.
* wa_csin-aennr = '009900159470'.
wa_csin-datuv = sy-datum.
wa_csin-equnr = WA_FINAL1-equnr.
wa_csin-werks = WA_FINAL1-werks.
wa_csin-stlan = WA_FINAL1-stlan. " 4
wa_csin-stlty = 'E'.
*wa_csin-werks = '1000'.
CLEAR wa_stkob.
wa_stkob-stlty = 'E'.
CLEAR wa_stzub.
wa_stzub-stlty = 'E'.
cnt = 10.
ENDAT.
count = cnt.
IF cnt < 100.
CONCATENATE '00' count INTO itm_no.
ELSE.
CONCATENATE '0' count INTO itm_no.
ENDIF.
CLEAR wa_stpob.
wa_stpob-stlty = 'E'.
wa_stpob-idnrk = WA_FINAL1-idnrk.
wa_stpob-postp = 'I'.
wa_stpob-posnr = itm_no.
wa_stpob-menge = WA_FINAL1-menge.
wa_stpob-potx1 = WA_FINAL1-potx1.
wa_stpob-potx2 = WA_FINAL1-potx2.
wa_stpob-datuv = sy-datum.
APPEND wa_stpob TO tab_stpob.
CLEAR wa_stpob.
at END OF equnr.
CALL FUNCTION 'CSAI_BOM_CREATE'
EXPORTING
ecsin = wa_csin
estkob = wa_stkob
estzub = wa_stzub
IMPORTING
fl_warning = g_flwarning
astlnr = g_warn_stlnr
TABLES
t_stpob = tab_stpob
EXCEPTIONS
error = 1
OTHERS = 2.
IF sy-subrc NE 0. " here Sy-subrc is 1
* error msg
ENDIF.
the above code is working fine in IDES., not in DEV., sy-subrc returns 1.
I Debugged and checked in BAPI., the FM CS_DI_ITEM_CHECK is returning error. "{ Terminate if API log contains error "messages }
Please tell Why the error is occuring.!! what need to be changed..!!
Thanks,
Regards,
KiranHi Rob sir,
thanks for Updating me., I saw that report., this is what i used in my program., but difference is I am creating Equipment BOM.
Any other Suggestions...
And the Strange thing is ., It is working and BOM is creating in IDES., but while coming to DEV., sy-subrc = 1.
Thanks & regards,
Kiran -
Hello experts,
I would like a way to quickly handle the BAPI return table (TYPE TABLE OF bapiret2). I would like to pass the table into a function module or helper method to popup all the messages at once. This is the same way MIGO (and many other programs) do a popup of messages with little red, yellow, and green icons to the left. Currently I am using a series of calls to function module BAL_LOG_... and I feel there has to be a better way.
I tried searching for the answer to this question, but if the answer exists, it is buried within the noise of a million people saying use 'POPUP_TO_CONFIRM' and other function modules. To clarify: I do not want buttons to confirm. I want a popup of a list of messages with red, yellow, and green icons on the left.
Whoever answers my question correctly will henceforth be referred to by me as "the Magnificent."My 2 cents ...
IF_RECA_MESSAGE_LIST is the most convenient message handler i have used so far So i would use it in this way -
Get the instance using the factory class CF_RECA_MESSAGE_LIST=>CREATE( ).
Add the BAPI messages using the method ADD_FROM_BAPI( ).
Get the handle via GET_HANDLE( ) & display using function BAL_DSP_LOG_DISPLAY.
DATA(o_msg_list) = cf_reca_message_list=>create( ).
o_msg_list->add_from_bapi(
EXPORTING
it_bapiret = VALUE #( id = 'BC_IBF'
( type = 'I' number = '008' )
type = 'E' ( number = '050' message_v1 = 'AA')
( number = '051' message_v1 = 'BB')
( number = '055' message_v1 = 'CC')
DATA st_log_disp_prof TYPE bal_s_prof.
CALL FUNCTION 'BAL_DSP_PROFILE_POPUP_GET'
IMPORTING
e_s_display_profile = st_log_disp_prof.
st_log_disp_prof-use_grid = abap_true.
st_log_disp_prof-disvariant
= VALUE #( handle = o_msg_list->get_handle( )
report = sy-repid
CALL FUNCTION 'BAL_DSP_LOG_DISPLAY'
EXPORTING
i_s_display_profile = st_log_disp_prof
EXCEPTIONS
profile_inconsistent = 1
internal_error = 2
no_data_available = 3
no_authority = 4
OTHERS = 5.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
BR,
Suhas -
hi guys,
i was wondering if the bapi return table with the types, is it possible that the type 'E' and the type 'W' co-exist in the return table.
'cause my program now need to make a judging under the type 'W'.
thanks.Adamyam,
It is possible to get a Warning and Error for a single transaction.
Warnings are discarded and the transaction will go further, however when a Error happens processing is stoppped and is not taken further.
Regards,
Ravi
Note : Please reward points if this helps. -
Returning Errors from a webservice using XMLBeans
I have a webservice that accepts XML as input and output parameters, and I'm using XMLBeans to handle this. I'm trying to work out how I can return error information from the webservice, so I created an Exception.xsd schema and 'include' it in the output XML Schema, so an exception xml element is valid in the output schema. The problem is, the XMLBean class generated from the output XML schema has no methods that allow me to create an Exception element. Is there some other way of handling the return of exceptions from webservices using XML?
The answer is just throw a SoapFaultException and put the exception.xsd XMLBean in the FaultDetail section of the SoapFaultException.
-
Bug Report - DB toolkit returns error when calling the DefaultDatabase property with SQLite
There's an old bug in the DB toolkit where calling the DefaultDatabase property returns error -2147217887 if you're using certain DBs (such as SQLite or PostgreSQL and I believe MySQL as well).
The problem is that this property is called by a VI which is used in some of the commonly used VIs (such as the insert VI),
causing them to fail. Whoever wrote the code was aware of this issue,
since they added a comment about it, as you can see below.
The immediate fix for this is pretty easy - add code to ignore the error or don't call the property at all. It's not used anywhere in the toolkit and unless you're using the VI yourself to get the property, this won't break any code. The problem with this is that you need to do this in every PC.
NI already has a CAR for this (CAR 232063) and should hopefully fix it, so there's no need to take further action at the moment. This post is for people searching for this in the future.
Try to take over the world!Interesting. I have seen this before but it returned a different error code. (Error -2147352567)
=====================
LabVIEW 2012 -
After upgrading to Lion the bookmarks in Preview returns error message.
After upgrading to Lion the bookmarks in Preview returns error message : The File "****" couldn't be opened because you don't have permission to view it. To change the perimssion, select the item in finder and Choose File info. I have bookmarked plenty of files in Preview. How to overcome this error message???
Doesn't work Steve. I think it is an issue with Preview being sandboxed (check the sandbox column in Activity Monitor: Preview = Yes). Sandboxed apps restrict file access to those the user has explicitly selected. My theory is that this causes the unfortunate side effect of bookmarked or linked PDFs not working. A simple test: open a file with bookmarks, manually open the bookmarked file and then select the bookmark in the first file - it should open with no complaints about permissions (which leads to a weak workaround: open all the PDFs you intend to work with!).
Maybe you are looking for
-
All, We are on 12.0.2 / 10.2.0.2 (non-rac) in a split-tier architecture. Web/Forms on the Linux node and Concurrent Managers/Database on the Solaris node. We are now on a project to upgrade this environment to 12.1.1 on 11.1.0.7 db. (Non RAC,Non ASM)
-
How to change status in status profile at header level in background
Hi, I have customized the standard sales order screen with status profile at header level. In that, I have set the check boxes as created, delivered, approved and rejected. The requirement is, whenever the order is created through VA01, need to check
-
Hello, I have a problem in getting the event when adding a new row in ALV using OOP. Here's my requirement: I have an initial output, and I have a custom button, which when pressed, will make the fields editable. There is also a new set of toolbar sh
-
How can I access Icloud to see what's in it?
How can I access Icloud to see what's in it?
-
The update messed up my messaging and typing on my Phone. I want to get this off and put back on 6.0 how do I do it?