Error when Calling a BAPI in ALV custom button "could not ascertain code"

Hi,
I am getting the error "Could not ascertain code page" when i try to call my BAPI (to export to excel sheet) on click of a custom button in ALV.
I have done the creation and event handling etc for the custom button.
Kindly help if anybody knows this error.
Thanks
Roshan

I am creating a custom export button(after disabling the standard export button) to download the data into an excel sheet in my own format. I have created the new button. The code is given here.
data lr_buttonui2 type ref to cl_salv_wd_fe_button.
data input2 type ref to cl_salv_wd_function.
data: lr_column_settings type ref to   if_salv_wd_column_settings,
lr_input_field type ref to cl_salv_wd_uie_input_field.
create object lr_buttonui2.
call method lr_buttonui2->set_text
  exporting
    value  = 'Export'
  input2 = lo_value->if_salv_wd_function_settings~create_function( id = 'EXPORT' ).
  input2->set_editor( lr_buttonui2 ).
data lr_ref3 type ref to cl_salv_wd_fe.
  call method input2->get_editor
    receiving
      value  = lr_ref3
I have also created the event handler for my button and written the below code thr. I am caling a BAPI to download the data into my excel format. The problem is coming here only.
data: lt_return type table of bapiret2.
data lo_nd_methcode type ref to if_wd_context_node.
  data lo_el_methcode type ref to if_wd_context_element.
  data ls_methcode type wd_this->element_methcode.
  data lv_methcode like ls_methcode-methcode.
navigate from <CONTEXT> to <METHCODE> via lead selection
  lo_nd_methcode = wd_context->get_child_node( name = wd_this->wdctx_methcode ).
get element via lead selection
  lo_el_methcode = lo_nd_methcode->get_element(  ).
get single attribute
  lo_el_methcode->get_attribute(
    exporting
      name =  `METHCODE`
    importing
      value = lv_methcode ).
call function 'ZBAPI_EXCEL_DLOAD_METHODOLOGY'
  exporting
    i_methcode       = lv_methcode
  tables
    et_return        = lt_return
Plz give me a solution

Similar Messages

  • Get the following error when trying to sync itunes to Nano itunes could not coppy " Song"  to the ipod because unknown error occurred (-5000).  Any ideas?

    Get the following error when trying to sync itunes to Nano itunes could not coppy " Song"  to the ipod because unknown error occurred (-5000).  Any ideas?

    Try my script FindTracks. Select a few of the missing files to start with then run the script. Choose No at the first prompt so that you can check how it works track by track, then confirm or edit the location of the media folder where your files are. Once you are happy with how it behaves let it process larger numbers of tracks automatically.
    tt2

  • "Could not ascertain code page" Error.

    Hello,
    I have created an program for getting FI docs from BSEG table and downloading into excel file after doing some processing on the fetched data. The job, if run as a dialog process, works ok. But if scheduled to run in the background, gives the following error.(viewed through SM37).
    Job started                                                                         
    Step 001 started (program ZFI_BUSINESS_AREA, variant &0000000000003, user ID LSMW_FI)
    Could not ascertain code page                                                       
    Job cancelled after system exception ERROR_MESSAGE                                  
    Any help is appreciated.
    Thanks.
    N.K.Verma.

    It is soooooooooooooooooooooooooooooooo difficult to understand:
    SAP is a client-server-system. Online means that you can DOWNLOAD something from SAP server to client PC.
    There is no such thing like a background client PC.
    PERIOD.
    -EOF-

  • JRAProxy error when calling a BAPI

    Hi folks,
    We have deployed and configured the JRA connector to ECC. Everything was fine with the installation and the whole thing but when the developers try to call a BAPI the following error appears:
    JRAProxy error. Entry not found.
    I wish I could know which entry is that. What does it's trying to call?
    Please give me a hand guys. Thanks in advance.

    Hi pal,
    Look, Actually I'm just clicking on the "get list" button and it's supposed to bring any BAPI from ECC 6, but as it turns out instead I get this error "JRAProxy error. Entry (I believe that is BAPI) not found".
    Do you believe that maybe this could be a deployment or configuration error? How could I test whether the connection between MII and ECC is working fine?
    Best regards,

  • Sap mii JRA proxy error when calling a BAPI

    Hi everyone,
    I am trying to connect SAP Netweaver (MII JAVA Stack only) to ECC via JRA. Everything was right (deployment and configuration) but when developers try to call a BAPI the following error appears:
    JRAProxy error. Entry not found.
    Could you please help on that.
    Thanks in advance.

    Hi Herman
    I am also facing same issue if you have resolved above issue please reply me regarding same.
    Regards,
    Manoj Bilthare

  • What can be done to avoid getting the following error when trying to delete unused clips he operation could not be completed.  *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil

    what can be done to avoid getting the following error when trying to delete unused clips in Imovie 09 "the operation could not be completed.  *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil"  I use to get these type of error messages when trying to delete unsused clips from a large event 60 minutes or longer, but now I get this message when trying to reduce a 4 minute event.
    Also, does anyone know if there is a limit to the total amount of space that can be taken up by Projects in Imovie 09
    Thanks for any help

    Zachy,
    It goes something like this...
    Put your new drive in the enclosure. Use Disk Utility to format it, etc. I'd give it a slightly different name than the original. Let's say you have Old Disk and New Disk as your drive names. Use Carbon Copy Cloner to copy Old Disk to New Disk. Now you should have an exact copy, which you can test by rebooting and holding down the Option key. Choose New Disk from the list and let it boot, make sure all is well.
    Shut down and physically swap the drives. Take Old Disk and put it in the enclosure. Now your system has a new disk with a lot more space and you can reformat your old disk and just use it for large files or whatever.

  • Has anyone experienced this error when syncing your iphone..."iphone could not be synced b/c the connection the iphone was lost"????

    i have been trying to sync my iphone and keep getting the following error: iphone could not be synced as the connection to the iphone has been lost"....suggestions please.

    Try one or more of the following troubleshooting steps:
    Connect the phone directly to a USB port on the computer, not to a USB hub.
    Disconnect all other USB devices except the iPhone, keyboard and mouse.
    If it's a desktop or tower computer use a port on the back of the computer rather than the front.

  • HT4539 I keep receiving this error when trying to open the itunes store (We could not complete uour iTunes store request, an unknownerror occured (0x80092013).

    cant complete your itunes request unknown error occurred (0x80092013)

    cant complete your itunes request unknown error occurred (0x80092013)

  • ORA-03115 error when calling a Stored Procedure

    Hi All,
    I'm in the process of porting a Pro/C app from NT to Linux. I've installed 8.1.5 on our Linux box and patched it up to 8.1.5.02.
    It all kind of works ok, except that I'm sometimes getting ORA-03115 errors when the app calls a stored procedure. The call in question looks like this:
    EXEC SQL BEGIN DECLARE SECTION;
    VARCHAR resprows[50][3998];
    int numret = 0;
    int numrows= 50;
    int done= 0;
    unsigned long resp_id = 0;
    EXEC SQL END DECLARE SECTION;
    EXEC SQL AT DB_NAME EXECUTE
    BEGIN pkg_something.getdata(
    :resp_id, /* IN */
    :numrows, /* IN */
    :done, /* OUT */
    :resprows, /* OUT */
    :numret /* OUT */
    END;
    END-EXEC;
    The stored procedure basically uses the resp_id value to select rows from a table;
    in each row there is a VARCHAR2(4000) column which it copies into the hostarray resprows.
    There may be anything from 1 to numrows returned from the SP.
    Initially, the resprows rows were defined to be size [4000]. Unfortunately, this caused ORA-02005 errors - I then changed the size to [3998], which seemed to fix the 02005's (although I'm unclear as to the reasons why).
    Now I'm getting the 03115 errors when calling the SP. The oracle manual is not very helpful on what this error means.
    This all works chipper on NT.
    Any ideas?
    Thanks in advance,
    Nigel.
    PS: The database the app is talking to is still hosted on NT.
    null

    Histon FTM wrote:
    ORA-04063: package body "LAZARUS.LAZARUS" has errors Above, obviously conflicts with the statement that follows:
    >
    The procedure and package have both compiled without errors and the statement on its own works fine in SQL*Plus.I suggest you take a look in the USER_ERRORS view to see, what the errors are.
    And just checking:
    You have schema called LAZARUS, which holds a package named LAZARUS, which holds a procedure called POPULATEGRIDPOSITIONS?
    Edited by: Toon Koppelaars on Oct 1, 2009 5:55 PM

  • Error when call RFC Function module in R/3

    Dear All,
    We are trying to call RFC function module CBIF_GLM1_PROCESS_ORDER_READ (This is not a BAPI and also not released ) in R/3 from XI system.
    we are facing the error "Error while lookup Exception during processing the payload. Error when calling an adapter by using the communication channel CC_PPPI_MES_RFC_Rcvr (Party: , Service: WCD_320, Object ID: 16563889b449328eac76caa6a3bc592e) XI AF API call failed. Module exception: 'error while processing the request to rfc-client: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: failed to parse BAPI response due to: com.sap.aii.adapter.rfc.util.bapi.BapiException: Parameter with name RETURN not found.'. Cause Exception: 'com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: failed to parse BAPI response due to: com.sap.aii.adapter.rfc.util.bapi.BapiException: Parameter with name RETURN not found.'."
    This is the first time we are doing this configuration.
    Could you please let me know what woulbe the reason.

    read the original message
    We are trying to call RFC function module CBIF_GLM1_PROCESS_ORDER_READ (This is not a BAPI and also not released ) in R/3 from XI system.
    I am talking about the above Receiver RFC channel which you guys are using to call R/3 from XI. That where you need to change the commit parameter

  • Error when calling BAPI_ALM_ORDER_GET_DETAIL

    Hi,
    I have a problem a problem when calling this BAPI.
    First I call the BAPI_ALM_ORDERHEAD_GET_LIST where I search for orders entered by myself (with IW31 in the webgui, plant maintenance orders).
    This returns a response with 4 orders and their header data, so far so good.
    When I call the BAPI_ALM_ORDER_GET_DETAIL with the following XML
    <n:BAPI_ALM_ORDER_GET_DETAIL xmlns:n="urn:sap-com:document:sap:rfc:functions" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <NUMBER>000000815943</NUMBER>     
    </n:BAPI_ALM_ORDER_GET_DETAIL>
    Then I get this in the response:
         <RETURN>
              <item>
                   <TYPE>E</TYPE>
                   <ID>CO</ID>
                   <NUMBER>112</NUMBER>
                   <MESSAGE>Enter order number</MESSAGE>
                   <LOG_NO/>
                   <LOG_MSG_NO>000000</LOG_MSG_NO>
                   <MESSAGE_V1/>
                   <MESSAGE_V2/>
                   <MESSAGE_V3/>
                   <MESSAGE_V4/>
                   <PARAMETER/>
                   <ROW>0</ROW>
                   <FIELD/>
                   <SYSTEM>CF5CLNT800</SYSTEM>
              </item>
              <item>
                   <TYPE>E</TYPE>
                   <ID>IWO_BAPI</ID>
                   <NUMBER>121</NUMBER>
                   <MESSAGE>Error reading the order  in the document tables</MESSAGE>
                   <LOG_NO/>
                   <LOG_MSG_NO>000000</LOG_MSG_NO>
                   <MESSAGE_V1/>
                   <MESSAGE_V2/>
                   <MESSAGE_V3/>
                   <MESSAGE_V4/>
                   <PARAMETER/>
                   <ROW>0</ROW>
                   <FIELD/>
                   <SYSTEM>CF5CLNT800</SYSTEM>
              </item>
         </RETURN>
    If I search for that ID with the webgui then it is found and I can see the details. The ID is also one of the four orders returned by the BAPI_ALM_ORDERHEAD_GET_LIST call.
    Any ideas?
    Thanks
    /Anders
    Edited by: Anders Berglund on Oct 6, 2008 1:39 PM

    Ok, it works if i remove this: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    Looks like a bug but at least it works now..

  • IGS error (: Error When Calling Up IGS (ListenerRfc: unknown error))

    Hi,
      We have recently upgraded to NW04S.
      Most of our BW reports( SAP delivered or custom, web template or not ) work fine with the IGS, while some reports don't, We receive a message from the Enterprise Portal ( Error When Calling Up IGS (ListenerRfc: unknown error)). No other details are available
      We have checked and found out the related web templates are actually activates properly. From the same business content, we find some repports work and some don't, all however use web template.
      Has anybody expoerienced the same? Please help.
       Thanks
    Arunava

    Hi AHP,
       1> BW_IGS_ADMIN when executed showed me some charts with some statictics and status etc. However as mentioned the other report BW_IGS_CHART_TEST just shows me a blank screen.
        2> SM59 connection test for the IGS RFC  IGS_RFC_DEST is successful
        3> Ping on the Gateway Host( for the RFS dest) works fine as well.
        4> Also as I mentioned earlier, some of the reports using web teamplate works fine where some are not.
        5> when I do the RFC trace  ( since I get an "Error When Calling Up IGS (ListenerRfc: unknown error) ) via ST01 for the query , in the BI sysatem, I get an error 'Prog:CL_IGS_CHART==================CPRow:'.
       Please let me know how do I proceed further.
    Thanks
    Arunava

  • Getting Msg: Error when calling Credit Management: Technical Error

    Hi All,
    While creation of sales order in ECC, i am getting a message "Error when calling Credit Management: Technical Error"
    Can you help me in this case
    Regards,
    Satish

    Satish,
    Just so you know, this BADI "links" SD module to FSCM credit management. If you use the right code in this BADI, it copies over credit information on to the sales order such as Credit Account, Risk Class and Credit representative code.  (Later this risk class, order's credit control area and credit group is used to look up the appropriate line in OVA8 settings)
    Now you could be getting this error for any of the issues:
    1. If the business partner is not created for the customer for which you're trying create a sales order (The credit account (sales order header) should have a relevant BP already) Check if the BP is correctly created.
    2. Next if the credit data has been maintained for the BP in credit management.
    3. XI/PI connectivity issues etc
    Check if all this is maintained and you should be good. Cheers

  • Error when calling a Webservice's public method in Forms10g

    Hi,
    I'm getting the following error when calling a webservice's public method, i'm using Forms10g 10.1.2.3
    java.rmi.RemoteException; nested exception is: HTTP transport error javax.xml.soap.SOAPException
    java.security.PrivilegedActionException javax.xml.soap.SOAPException
    Message send failed javax.net.ssl.SSLException SSL handshake failed X509CertChI have added the Jar containing the client proxy in both Classpaths(system variable and default.env), the jar has been made with jdk 1.4
    I also have tested the client proxy from jDeveloper and it's working there, but in Forms i'm getting this error.
    I guess my problem might be that i'm calling a webservice that is secured since the url starts with https
    what should i do to fix this ??
    Regards
    Carlos

    I understand, so i have a doubt, why the webservice works on jDeveloper ??Not just JDeveloper even soapUI and Neatbeans have a way of working without a client certificate installed.
    I do not know how they achieve it. I know that they work without a client DC.
    Cheers,
    PS: See this http://stackoverflow.com/questions/8887434/webservices-ssl-https, it offers a clue.
    The java programs run unhindered when one-way authentication is being used. These products ship with a digital certificate that is in the path of most popular CAs.
    Corollary, if the Web Server is configured for mutual authentication then you need to install and configure the client certificate in the tools.
    Edited by: Prabodh on Dec 5, 2012 8:36 PM

  • ORA-28868 error when calling Web service over HTTPS from PL/SQL utl_http

    I am getting error message ORA-28868 error when calling Web service over HTTPS from PL/SQL utl_http PL/SQL package,
    when browsed through some of the messages they point to setting Oracle Wallet Manager.
    I am trying to connect
    Any idea on how to resolve this issue ?
    your input is appreciated.
    Thanks
    Ravi

    Duplicate post ... please ignore.

Maybe you are looking for

  • Base table is not getting updated

    Hi friends, am trying to update the attribute18 from the per_vacancies table by adding 1 to it when am running the concurrent program it is not updating the table what might be the reason this is my code CREATE OR REPLACE PACKAGE BODY apps.update_vac

  • Remote 2 no longer allows direct access to chapters?

    One of the coolest features of the original Remote app was how I could play a movie on my ATV, go to "now playing" on the iPhone, tap to flip the cover art over, and tap on a chapter title to jump the movie directly to that chapter. If I do the same

  • WebDynpro with embedded SAP GUI for HTML transaction

    Hello, I have been given a requirement for a WebDynpro application that will have some links and figures at the top and underneath that there will be a SAP GUI for HTML transaction visible. What is the best method for handling this type of scenario?

  • Unplanned delivery cost account assignment

    Dear Friends, I have configure the transaction key UPF in obyc. Here I have entered Inc/Dec account, but during the MIR7 Simulation, The Unplanned delivery cost is hitting Inventory Account of material. Can You please suggest, where the issue may be

  • Upload .txt file to database in coldfusion

    Hi i need to know how  to upload text file in to database using coldfusion and the file does not have any column names. Can anyone help me in this. The sample of data in file is: 00012009032216001111039289000005.9900100000000000000.00