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,
Kiran

Hi 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

Similar Messages

  • BAPI Runtime Error DBIF_RSQL_INVALID_REQUEST with module "KONV_BEARBEITEN"

    Hi Experts
    I am trying to create a sales order using BAPI FM BAPI_SALESORDER_CREATEFROMDAT1. After executing the program it shows in output screen that the sales order created and also displays the newly created sales order number. But when I want to check the order from VA03 it shows Express document "Update was terminated" received by author AAA, where AAA is login name.
    I also analysis the sort dump for which the update process was terminated. I give the error details
    Runtime Errors         DBIF_RSQL_INVALID_REQUES
    Error analysis
        An invalid request was made to the SAP database interface in a statement
         in which the table "KONV " was accessed.
    Below are the module name and report from where the error is coming.
    Function Module name  RV_SALES_DOCUMENT_ADD
    Program Name  SAPLV45U
    Include  LV45UF0K
    Row  26
    Source code from Rruntime Error
      Line  SourceCde
    1 *****************************************************************
        2 *  Unterroutinen RV-Auftragsabwicklung alphabetisch sortiert:
        3 *  ----------------------------------------------------------
        4 *  Buchstabe K:
        5 *
        6 *****************************************************************
        7
        8 *----------------------------------------------------------------
        9 *       FORM KONV_BEARBEITEN
       10 *----------------------------------------------------------------
       11 FORM KONV_BEARBEITEN.
       12
       13   CHECK: FKONV_GEAENDERT NE SPACE OR
       14          VORGANG = CHARH.
       15
       16   IF VORGANG NE 'H'.
       17     DELETE FROM KONV WHERE KNUMV = VBAK-KNUMV.
       18 ENHANCEMENT-POINT KONV_BEARBEITEN_10 SPOTS ES_SAPLV45U.
       19   ENDIF.
       20
       21   LOOP AT FXKOMV.
       22     FXKOMV-MANDT = VBAK-MANDT.
       23     FXKOMV-KNUMV = VBAK-KNUMV.
       24     MODIFY FXKOMV.
       25   ENDLOOP.
    >>>>>   INSERT KONV FROM TABLE FXKOMV.
       27   IF SY-SUBRC NE 0.
       28     MESSAGE A100 WITH
       29   ENDIF.
       30
       31 ENHANCEMENT-POINT KONV
       32 ENDFORM.
       33 *eject
    Below is my source code.
    *& Report  Z_BAPI_SALESORDER
    REPORT  z_bapi_salesorder.
    * Sales document type
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text FOR FIELD p_auart.
    PARAMETERS: p_auart TYPE auart OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    * Sales organization
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text1 FOR FIELD p_vkorg.
    PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    * Distribution channel
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text2 FOR FIELD p_vtweg.
    PARAMETERS: p_vtweg TYPE vtweg OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    * Division.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text3 FOR FIELD p_spart.
    PARAMETERS: p_spart TYPE spart OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SKIP 1.
    * Sold-to
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text4 FOR FIELD p_sold.
    PARAMETERS: p_sold  TYPE kunnr OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    * Ship-to
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text5 FOR FIELD p_ship.
    PARAMETERS: p_ship  TYPE kunnr.
    SELECTION-SCREEN END OF LINE.
    SKIP 1.
    * Material
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text6 FOR FIELD p_matnr.
    PARAMETERS: p_matnr TYPE matnr   OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    * Quantity.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text7 FOR FIELD p_menge.
    PARAMETERS: p_menge TYPE dzmengc  OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    * Plant
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text9 FOR FIELD p_plant.
    PARAMETERS: p_plant TYPE werks_d OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    * Data declarations.
    DATA: v_vbeln            LIKE vbak-vbeln.
    DATA: header             LIKE bapisdhead.
    DATA: headerx            LIKE bapisdhead1x.
    DATA: item               LIKE bapiitemin  OCCURS 0 WITH HEADER LINE.
    DATA: itemx              LIKE bapisditemx OCCURS 0 WITH HEADER LINE.
    DATA: partner            LIKE bapipartnr  OCCURS 0 WITH HEADER LINE.
    DATA: return             LIKE bapireturn1    OCCURS 0 WITH HEADER LINE.
    DATA: lt_schedules_inx   TYPE STANDARD TABLE OF bapischdlx
                             WITH HEADER LINE.
    DATA: lt_schedules_in    TYPE STANDARD TABLE OF bapisdhedu
                             WITH HEADER LINE.
    * Initialization.
    INITIALIZATION.
      v_text   = 'Order type'.
      v_text1  = 'Sales Org'.
      v_text2  = 'Distribution channel'.
      v_text3  = 'Division'.
      v_text4  = 'Sold-to'.
      v_text5  = 'Ship-to'.
      v_text6  = 'Material'.
      v_text7  = 'Quantity'.
      v_text9  = 'Plant'.
    * Start-of-selection.
    START-OF-SELECTION.
    * Header data
    * Sales document type
      header-doc_type = p_auart.
      headerx-doc_type = 'X'.
    * Sales organization
      header-sales_org = p_vkorg.
      headerx-sales_org = 'X'.
    * Distribution channel
      header-distr_chan  = p_vtweg.
      headerx-distr_chan = 'X'.
    * Division
      header-division = p_spart.
      headerx-division = 'X'.
      headerx-updateflag = 'I'.
    * Partner data
    * Sold to
      partner-partn_role = 'AG'.
      partner-partn_numb = p_sold.
      APPEND partner.
    * Ship to
      partner-partn_role = 'WB'.
      partner-partn_numb = p_ship.
      APPEND partner.
    * ITEM DATA
      itemx-updateflag = 'I'.
    * Line item number.
      item-itm_number = '000010'.
      itemx-itm_number = 'X'.
    * Material
      item-material = p_matnr.
      itemx-material = 'X'.
    * Plant
      item-plant    = p_plant.
      itemx-plant   = 'X'.
    * Quantity
      item-target_qty = p_menge.
      itemx-target_qty = 'X'.
      APPEND item.
      APPEND itemx.
    *   Fill schedule lines
      lt_schedules_in-itm_number = '000010'.
      lt_schedules_in-sched_line = '0001'.
      lt_schedules_in-req_qty    = p_menge.
      APPEND lt_schedules_in.
    *   Fill schedule line flags
      lt_schedules_inx-itm_number  = '000010'.
      lt_schedules_inx-sched_line  = '0001'.
      lt_schedules_inx-updateflag  = 'X'.
      lt_schedules_inx-req_qty     = 'X'.
      APPEND lt_schedules_inx.
      CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
        EXPORTING
          order_header_in           = header
    *     WITHOUT_COMMIT            = ' '
    *     CONVERT_PARVW_AUART       = ' '
       IMPORTING
         salesdocument              = v_vbeln
    *     SOLD_TO_PARTY             =
    *     SHIP_TO_PARTY             =
    *     BILLING_PARTY             =
    *     RETURN                    =
        TABLES
          order_items_in            = item
          order_partners            = partner
    *     ORDER_ITEMS_OUT           =
    *     ORDER_CFGS_REF            =
    *     ORDER_CFGS_INST           =
    *     ORDER_CFGS_PART_OF        =
    *     ORDER_CFGS_VALUE          =
    *     ORDER_CCARD               =
    *     ORDER_CFGS_BLOB           =
         order_schedule_ex          = lt_schedules_in
    * Check the return table.
      IF v_vbeln <> space.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
        WRITE: / 'Document ', v_vbeln, ' created'.
      ELSE.
        WRITE: / 'Error in creating document'.
      ENDIF.
    I am unable to trace the exact reason. Please help and thanks in advance.
    Edited by: Joy Banerjee on Oct 12, 2009 7:47 AM

    Hi Prashant,
    Set the profile parameter abap/buffersize value to maximum.Get the virtual memory increased.
    If it doesn't work, see in transaction db02 if there is sufficient tablespace.
    Let me knoe the status of tablespaces.
    Regards,
    Sabita

  • Material Master Upload using Bapi getting error "****** not a valid unit of

    Hi Gurus,
    i am uploading material master using BAPI Material_master_save_data , where the volume and Unit of Volume is Blank, Still i am getting error as "****** not a valid unit of volume ".kindly help me to resolve the issue.Many Thanks In advance.

    Jurgen,
    I could able to solve the issue for invalid unit Error ....Now i am getting **** unit of measure is not defined , pls check your entry or else i am getting alternate unit of mesure is same as base unit of measure .
    I have used below logic for Purchase Order Unit and Base Unit of measure .
          if wa_upload-unmsr EQ wa_upload-ord_uom .
            bapi_mara1-base_uom = wa_upload-unmsr.
            bapi_mara1-po_unit = wa_upload-ord_uom .
          elseif wa_upload-unmsr NE wa_upload-ord_uom.
            wa_upload-ord_uom = wa_upload-alt_uom.
            bapi_mara1-po_unit = wa_upload-ord_uom.
          endif.
    Many Thanks for your help.

  • BAPI - BAPI_ACC_DOCUMENT_POST  Error due to Currency table.

    Hi Guys ,
    I am facing an error while posting documents using BAPI_ACC_DOCUMENT_POST.  The error occurs is in the tables parameters "currencyamount" .I am appending Amt in document currency, Amt in Local currency, Amount in 2nd Currency and Amount in 3rd Currency using Currency type (CURR_TYP)  00,10,30 and 60 respectively for every line item. All these 4 currency fields might have different values.The error in the "return" parameter says "Balance in currencies".
    Can anyone suggest an appropriate way to pass all the above 4  currency fields to the same line item ?
    Thanks,
    Venkat.

    Hi VG,
    while using this bapi...the total amount or net amount should be zero.
    Thru Txn we assign posting key  ..and system autiomatically take the sign on the basiss of Posting key..but in this bapi we dont have posting key field....so we have to give the amount with the sign...and total of all the line items should be zero ...
    Thnx
    RK

  • Sales Order Inquiry bapi uplaod Error

    Hi All..
    when iam trying to upload SO inquiry sample data through bapi iam getting these Errors :
    Material 1423 is not defined for sales org.1000, distr.chan.12,          language DE
    Error in SALES_ITEM_IN 000000
    Sales document was not changed.
    but i defined 1423 material in sales org.1000, distr.chan.12.
    after givivng Conversion-exit for material also it is not executing.
    here is my abap code.
    *& Report ZSAMPLE
    REPORT zsample.
    DATA:lt_header LIKE bapisdhd1 OCCURS 0 WITH HEADER LINE,
    lt_inquiry_items_in LIKE bapisditm OCCURS 0 WITH HEADER LINE,
    lt_inquiry_items_inx LIKE bapisditmx OCCURS 0 WITH HEADER LINE,
    lt_header_x LIKE bapisdhd1x OCCURS 0 WITH HEADER LINE,
    lt_partners LIKE bapiparnr OCCURS 0 WITH HEADER LINE,
    lt_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    lt_header-doc_type = 'ZSJ1'.
    lt_header-sales_org = '1000'.
    lt_header-distr_chan = '12'.
    lt_header-division = '00'.
    lt_header-purch_date = '20081121'.
    lt_header-purch_no_c = '7654321'.
    APPEND lt_header.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    input = lt_header-doc_type
    IMPORTING
    output = lt_header-doc_type.
    APPEND lt_header.
    lt_header_x-updateflag = 'U'.
    lt_header_x-doc_type = 'X'.
    lt_header_x-sales_org = 'X'.
    lt_header_x-distr_chan = 'X'.
    lt_header_x-division = 'X'.
    lt_header_x-purch_date = 'X'.
    lt_header_x-purch_no_c = 'X'.
    APPEND lt_header_x.
    *lt_inquiry_items_in-currency = 'USD'.
    *lt_inquiry_items_in-ITM_NUMBER = '0010'.
    *lt_inquiry_items_in-plant = '0001'.
    lt_inquiry_items_in-material = '000000000000001423'.
    lt_inquiry_items_in-itm_number = '000010'.
    *lt_inquiry_items_in-exchg_rate = '1000000'.
    APPEND lt_inquiry_items_in.
    lt_inquiry_items_inx-updateflag = 'U'.
    lt_inquiry_items_inx-ITM_NUMBER = 'X'.
    lt_inquiry_items_inx-PLANT = 'X'.
    lt_inquiry_items_inx-material = 'X'.
    lt_inquiry_items_inx-itm_number = 'X'.
    APPEND lt_inquiry_items_inx.
    lt_partners-partn_role = 'SH'.
    lt_partners-partn_numb = '0000000149'.
    APPEND lt_partners.
    CALL FUNCTION 'BAPI_INQUIRY_CREATEFROMDATA2'
    EXPORTING
    SALESDOCUMENTIN = ' '
    inquiry_header_in = lt_header
    inquiry_header_inx = lt_header_x
    SENDER =
    BINARY_RELATIONSHIPTYPE =
    INT_NUMBER_ASSIGNMENT =
    BEHAVE_WHEN_ERROR =
    LOGIC_SWITCH =
    TESTRUN =
    CONVERT = ' '
    IMPORTING
    SALESDOCUMENT =
    TABLES
    return = lt_return
    inquiry_items_in = lt_inquiry_items_in
    inquiry_items_inx = lt_inquiry_items_inx
    inquiry_partners = lt_partners
    INQUIRY_SCHEDULES_IN =
    INQUIRY_SCHEDULES_INX =
    INQUIRY_CONDITIONS_IN =
    INQUIRY_CONDITIONS_INX =
    INQUIRY_CFGS_REF =
    INQUIRY_CFGS_INST =
    INQUIRY_CFGS_PART_OF =
    INQUIRY_CFGS_VALUE =
    INQUIRY_CFGS_BLOB =
    INQUIRY_CFGS_VK =
    INQUIRY_CFGS_REFINST =
    INQUIRY_TEXT =
    INQUIRY_KEYS =
    EXTENSIONIN =
    PARTNERADDRESSES =
    READ TABLE lt_return WITH KEY type = 'E'.
    WRITE : /5 lt_return-type, 20 lt_return-id , 30 lt_return-number , 50 lt_return-message.
    IF sy-subrc NE 0.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT =
    IMPORTING
    RETURN =
    ENDIF.

    Hi Madhubabu,
    Specify an explicit commit after you had created the material.. And check in the Database tables whether
    the entries are there are not.
    Good luck
    Narin

  • 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.a

    hi 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

  • Regarding BAPI "BAPI_FUNCLOC_CHANGE" error

    Hi All,
    I have a requirement to update IFLOT table with new 3 custom fields which i have appened in the include CI_IFLOT.
    I have copied standard BAPI "BAPI_FUNCLOC_CHANGE" and created custom Function Module "Y_BAPI_FUNCLOC_CHANGE".
    Now when I activated the same, i got one error like "Type "ILOX_T_IFLOS" is unknown". I am not getting exactly why this error comes out, please tell me how to remove this error who have already worked on this.
    Thanks,
    Jay.

    hello,
    when you copied BAPI it did not copy global objects. Open BAPI via se37 choose attribute tab strip and double click on Program name SAPL( your BAPI's Function group name) you will find it on the right bottom corner and compare include in this program with the standard BAPI's program. Include missing data and you've got the solution.
    P.s. required structure is in top include-> type pool ILOX.
    best regards,
    dez_

  • BAP Log/Error Report in case of Background Job

    Hi Friends,
    I have to develop one program where I am creating purchase orders using BAPI. This Program would be scheduled in background
    hence the Error/log report can not be seen .I have been told to use SAP Application Log for getting the Error Report.
    How this can be achieved using SAP Application log functionality. Any Help would be appreciated.
    Thanks

    >
    TANGO18 wrote:
    > I have to develop one program where I am creating purchase orders using BAPI. This Program would be scheduled in
    > background hence the Error/log report can not be seen .
    Incorrect. How are you displaying your error / log report ?
    Even if you use simple WRITE statements to display the log, the details would be there in the corresponding spool generated.
    BR,
    Suhas

  • BAPI Search error

    Hi,
    Once after connecting to the portal and connecting to the mapped r3 system,i'm trying to search for BAPIs it was throwing the error
    Search returned an error.
    Fatal Error:
    com.sap.engine.lib.xml.parser.ParserException:
    XMLParser: Bad attribute list. Expected White Space,/ or >:(:main:, row:1,col:37)
    Whatz this error about..

    Hi friends,
    Think nobody faced such type of problem earlier... on go thru the several logs i got the below lines from the Visual Composer output console ... please somebody throw some light on my problem ....
    <b>0001> Portal Connector: try to connect to portal
    0002> Portal Connector: connect to portal
    0003> Portal Connector: before fire onConnectionStateChanged with value: connect
    0004> Portal Connector: invoke command name: discovery
         params:
         data: <Request type="getAllSystems"></Request>
    0005> Portal Connector: fetch command url: http://eztest/vcserver/bin/gm1669030.asp?d=Tue Dec 26 10:21:18 UTC+0530 2006
    0006> Portal Connector: fetch requestData: GUIMACHINE_COMMAND=%3Ccommand%20name%3D%22discovery%22%3E%3Cparameters%2F%3E%3Cdata%3E%26lt%3BRequest%20type%3D%26quot%3BgetAllSystems%26quot%3B%26gt%3B%26lt%3B%2FRequest%26gt%3B%3C%2Fdata%3E%3C%2Fcommand%3E
    0007> Portal Connector: result from fetch operation:
    <result><data>&lt;Response type='getAllSystems'&gt;&lt;Systems&gt;&lt;System alias='Exchange' system_type='null'/&gt;&lt;System alias='EzComSystem' system_type='null'/&gt;&lt;System alias='EzCommerce' system_type='null'/&gt;&lt;System alias='EzcExchangeApplication' system_type='null'/&gt;&lt;System alias='EzcLTSystem' system_type='null'/&gt;&lt;System alias='EzcPortalApplication' system_type='null'/&gt;&lt;System alias='EzcSalesPortal' system_type='null'/&gt;&lt;System alias='EzcWebAppSystem' system_type='null'/&gt;&lt;System alias='EzcWebAppTemplet' system_type='null'/&gt;&lt;System alias='KMWebDav_Outlook' system_type='null'/&gt;&lt;System alias='MySysAlias' system_type='null'/&gt;&lt;System alias='MySystem' system_type='SAPFactory'/&gt;&lt;System alias='MyYahooSys' system_type='null'/&gt;&lt;System alias='SAPQRY' system_type='SAP_BI_SAPQ'/&gt;&lt;System alias='SAP_BW' system_type='SAP_BW'/&gt;&lt;System alias='VTestSysAlias' system_type='null'/&gt;&lt;System alias='VWebAppAlias' system_type='null'/&gt;&lt;System alias='WebEx' system_type='null'/&gt;&lt;System alias='YahooMail' system_type='null'/&gt;&lt;System alias='ezIts' system_type='SAPFactory'/&gt;&lt;System alias='ezcidz' system_type='SAPFactory'/&gt;&lt;System alias='ezcsuitesys0' system_type='null'/&gt;&lt;System alias='ezmeddevices' system_type='SAPFactory'/&gt;&lt;System alias='iez' system_type='SAPFactory'/&gt;&lt;System alias='outllook' system_type='null'/&gt;&lt;/Systems&gt;&lt;/Response&gt;</data></result>
    0008> Portal Connector: after fire onConnectionStateChanged with value: connect
    0009> Portal Connector: connected to portal
    0010> Portal Connector: invoke command name: discovery
         params:
         data: <Request type="getFilteredFunctions" system="ezcidz" function="BAPISALE" group="*" start="" count=""></Request>
    0011> Portal Connector: fetch command url: http://eztest/vcserver/bin/gm1669030.asp?d=Tue Dec 26 10:21:30 UTC+0530 2006
    0012> Portal Connector: fetch requestData: GUIMACHINE_COMMAND=%3Ccommand%20name%3D%22discovery%22%3E%3Cparameters%2F%3E%3Cdata%3E%26lt%3BRequest%20type%3D%26quot%3BgetFilteredFunctions%26quot%3B%20system%3D%26quot%3Bezcidz%26quot%3B%20function%3D%26quot%3BBAPISALE%26quot%3B%20group%3D%26quot%3B*%26quot%3B%20start%3D%26quot%3B%26quot%3B%20count%3D%26quot%3B%26quot%3B%26gt%3B%26lt%3B%2FRequest%26gt%3B%3C%2Fdata%3E%3C%2Fcommand%3E
    0013> Portal Connector: result from fetch operation:
    <result><exception source="command-handler"><message>Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: Bad attribute list. Expected WhiteSpace, / or &gt;:(:main:, row:1, col:37)</message><severity value="NORMAL"/></exception></result>
    0014> Portal Connector: invoke command name: discovery
         params:
         data: <Request type="getFilteredFunctions" system="ezcidz" function="BAPISALE" group="*" start="" count=""></Request>
    0015> Portal Connector: fetch command url: http://eztest/vcserver/bin/gm1669030.asp?d=Tue Dec 26 10:39:42 UTC+0530 2006
    0016> Portal Connector: fetch requestData: GUIMACHINE_COMMAND=%3Ccommand%20name%3D%22discovery%22%3E%3Cparameters%2F%3E%3Cdata%3E%26lt%3BRequest%20type%3D%26quot%3BgetFilteredFunctions%26quot%3B%20system%3D%26quot%3Bezcidz%26quot%3B%20function%3D%26quot%3BBAPISALE%26quot%3B%20group%3D%26quot%3B*%26quot%3B%20start%3D%26quot%3B%26quot%3B%20count%3D%26quot%3B%26quot%3B%26gt%3B%26lt%3B%2FRequest%26gt%3B%3C%2Fdata%3E%3C%2Fcommand%3E
    0017> Portal Connector: result from fetch operation:
    <result><exception source="command-handler"><message>Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: Bad attribute list. Expected WhiteSpace, / or &gt;:(:main:, row:1, col:37)</message><severity value="NORMAL"/></exception></result></b>
    when i tried to access the asp file dirwctly from browser its throwing the error that there is some problem with the page ... is there anythinr to do with this ....

  • 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 giving error for a user of different language

    Hi all,
    I have a wd java application with internationalization done. It works fine except for Swedish.
    The scenario:
    I am calling a BAPI to generate an order no by sending customer no and not sending the language.
    When I execute BAPI in SE37, it works fine but when called from wd java it returns an error.
    This is happening only for one language users(Swedish).
    Anu pointers regarding this are most welcome.
    Thanks and Regards,
    Avinash

    hi
    can you provide the error stack , what error you are facing with .
    and other thing try to provide the external debugging with hard coding the language for the
    RFC and check , whether you are able to get the output .

  • While executing 'Z' BAPI Runtime error CALL_FUNCTION_NOT_FOUND has occurred

    Dear Friends,
    We Customized 'Z' BAPI but not transported to QA yet,
    Is it possible to test with QA by fetch QA data by giving RFC target sys: (QA RFC Destination Name)
    If I give RFC target sys: (QA RFC Destination), I am getting Runtime error CALL_FUNCTION_NOT_FOUND has occurred. 
    How to resole this....
    What is method to check this customized BAPI with different server...../
    It is working fine for Standard BAPI.
    Regards

    But you should be able to call it in the DEV system from QA. This will prove that the RFC part works.
    Rob

  • BAPI call Error - Inbound Interface to SAP

    Hi Experts,
    my middleware side  using IBM WebSphere Message Broker SAP Adapter request node ,
    Problem after the execution of the interface the adapter node failed and it in the log its giving the error message:
    "{[3442]Caught Throwable}.{[3450]throw a RecordNotFoundException}.{com.ibm.j2ca.sap.exception.SapBAPIException}."
    I had seen some post in forum as " Quantity field type should be assigned a DECIMAL in the ESQL code."
    so i checked in my bapi for quantity ( units per container field ) its assigend with decimals. So while checking in the middleware side..
    In the imported BAPI layout UnitsPerContainer appears in 2 locations:
    > SapTinContain : Here UnitsPerContainer is defined as decimal
    > SapTinRecord3: But here UnitsPerContainer is defined as string
    why is there a difference ? Its a connectivity Problem??
    Donu2019t know whether because of this difference am getting the " Record Not Found Exception ".
    Please help me .
    Thanks in Advance.
    Regards,
    Priya.

    How did you fixed the error i am getting this type of error only?

  • Bapi table error

    Hi,
    I imported the "Bapi_Delivery_Getlist_Input" while selecting output tables (any out put table in Bapi) it is showing following exception,but there no problem in selecting input parameters
    com.sap.dictionary.runtime.DdException: Incorrect amount type (not decimal): Service for units cannot be set up
        at com.sap.dictionary.runtime.DdBroker.getUnitService(DdBroker.java:215)
        at com.sap.dictionary.runtime.DdBroker.getUnitService(DdBroker.java:233)
        at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getUnitService(DataTypeBroker.java:337)
        at com.sap.tc.webdynpro.progmodel.context.DataAttributeInfo.initReferenceAttribute(DataAttributeInfo.java:346)
        at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initStructureType(NodeInfo.java:738)
    Any body could you please help me out,
    Thanks,
    Balaji

    Hi All,
    I have imported function module "Bapi_Delivery_Getlist" to create an adaptive RFC model in WebDynpro DC. The DC is used for callable object in GP process. This GP process and concerned callable object was tested and working fine on the NetWeaver 7.0 SP 15. The server has recently been updated to SP18. After this upgrade, the callable object has become error prone; when tested gives following error:(No development has happened since long on the DC before and after the upgrade. The JCOs are tested fine too.).
    Error Log:
    Unable to create web dynpro callable object implementation.
    com.sap.tc.webdynpro.progmodel.context.ContextConfigurationException: Incorrect amount type (no decimal): Unit service cannot be set up
    at com.sap.tc.webdynpro.progmodel.context.DataAttributeInfo.initReferenceAttribute(DataAttributeInfo.... [see details]
    Detailed error
    Unable to create web dynpro callable object implementation.
    com.sap.tc.webdynpro.progmodel.context.ContextConfigurationException: Incorrect amount type (no decimal): Unit service cannot be set up
    at com.sap.tc.webdynpro.progmodel.context.DataAttributeInfo.initReferenceAttribute(DataAttributeInfo.java:349)
    at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initStructureType(NodeInfo.java:738)
    at com.sap.tc.webdynpro.progmodel.context.DataNodeInfo.doInit(DataNodeInfo.java:239)
    at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:671)
    at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:674)
    at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:674)
    at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:674)
    at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
    at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
    at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
    at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:940)
    at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:177)
    at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponentInternal(ComponentUsage.java:149)
    Please help urgently if you have any clue on this issue. Quite a critical error.

  • BAPI Calling error

    Hi all,
    I am working on scenario Jdbc to SAP.In SAP ,I am using Z_BAPI_SORDER which internally calls the BAPI_SALES_OREDR_CREATEFROMDAT2 and BAPI_TRANSACTION_COMMIT. While sending the values it returns the following error message.
    "Please enter Ship-To-Party or Sold-To-Party".
    I am sending the following parameters..
    1.Doc Type=TA
    2.Sales organization =1000
    3.Partner_Role=SP
    4.Customer_number_1=1360
    5.Material=M-14
    Could anybody please help me.
    Thanks,
    Raghu.

    Hi,
    these are the mandatory entries for this bapi:
    <b>ORDER_HEADER_IN:</b>
    DOC_TYPE Sales document type
    SALES_ORG - Sales organization
    DISTR_CHAN - Distribution channel
    DIVISION - Division
    <b>ORDER_PARTNERS:</b>
    PARTN_ROLE Partner role, SP sold-to party
    PARTN_NUMB Customer number
    <b>ORDER_ITEMS_IN:</b>
    MATERIAL Material number
    so as you can see your there are
    DISTR_CHAN, DIVISION, PARTN_NUMB missing in your call
    try adding them and check the result
    Regards,
    michal

Maybe you are looking for