Error file generation using BDC

Hi .. friends . This is Sudhir . I have  a scenario of loading 50 materials using BDC concept (generate session method) with tcode mm01. During loading if we have any faulty materials then they have to be written in a separate flat file (in the location which we specify in our pc). How can it be done?  Hope your answers will be helpful for me to proceed further. Expecting for your reply...
With Regards
Sudhir S

Hi  Sudhir,
            I had also similar requirement through Call Transaction method, Solution is
           We can store all messages occuring during exection of transaction (e.g MM01) in an internal table of type BDCMSGCOLL, so it contains message id, message no and not message description for that u have to  pass internal table to a function module  MESSAGE_TEXT_BUILD now u can get message description now store this in an internal table.
          Pass this internal table to a function module GUI_DOWNLOAD this will create flat file on ur PC based on the location u have given to this function module.
          For session method, session log contains the information u can check   INCLUDE program BDCRECX1 which will be created during recording, run this program in the debugger mode u will get idea.
Hope this will help u..............

Similar Messages

  • How do I overcome error "files in use Reader" when downloading 10.1.4?

    How do I overcome an error "files in use Reader *" when attempting to download Reader 10.1.4? Reader 8 not in use, but is installed.  All I want to do is upgrade to 10.1.4.  Why do I get sudn an error anyway?

    Make sure no AcroRd32.exe process is running when you run the installer.  Easiest way:
    download the cleaner tool http://labs.adobe.com/downloads/acrobatcleaner.html and save it to disk
    download the installer from http://get.adobe.com/reader/enterprise/ and save it to disk
    restart Windows, then run the cleaner tool, followed by the installer, before doing anything else
    P.S. the latest Reader X version is 10.1.8.

  • Yosemite 10.10.1 will not allow me to copy multiple files to a NAS -error file in use, but other OS OK.

    I am running Mac OS 10.10.1 on a Mac Mini with 16G.
    I have a Buffalo NAS and wanted to copy files from one folder on the NAS  to another on the NAS.
    Under Yosemite I can only copy them one at a time. If I try to copy more than one I get an error message that the file is in use.
    Under SNS 10.6.3 (running under Parallels) I can easily copy a large number of files.
    Again under 10.10.1 I get the same problem when copying from my desktop to the NAS.
    The files are definitely not in use elsewhere and in any case if they were I wouldn't be able to copy one at a time.
    When I try to copy multiple files the OS creates greyed out icons of all the files to copy and then aborts when it actually tries to copy the first file.
    Any clues please, my current work around is to compress all the files to move, move the archive, expand the archive. This is not going to work for very large numbers of files - l'll be at it all day.
    Tony

    I have been unable to drag and drop large files, even onto the Desktop, let alone onto my NAS - I get the dragged files freezing in the middle of the screen or I get the 'unable to copy / file in use' error.
    Talking to Apple Support, they had me set up a new User, and then within that new account, the trouble went away. This pointed to the StartUp items being run in the original troublesome account,
    I have deleted all of my 3rd Party programs and then installed them one by one until the problem came back, and in my case (Macbook Air 5,2 running 10.10.3 Yosemite) I found it was DropBox causing the conflict. I have DropBox running in the Menu Bar (top of screen) and disabling sync (bottom left corner) stopped the file copy problem. Try disabling DropBox sync is file copying is failing?

  • Error When I use BDC in my BSP Application

    Hi,
       I am creating a BSP application to create scheduling Aggrement, as BAPI is not suiting my req I am using BDC. This BDC is used with in a method of my application class. If I give all the data properly, I don't have any problem, it displays the output fine, but whenever some error occurs it immediatly terminates the BSP application, it does not give any option to handle the error.
       Anyone can help me to solve this problem?
    Regards,
    Sathish

    check these threads
    Re: BDC in BSP
    CNTR_ERROR While calling BDC from BSP
    Regards
    Raja

  • Reader 10.1.3 installation error file in use

    The file in use is identified as adobe reader 7.0.....As I understand, it thinks there is something open that uses reader 7.0.  But there are no open programs....that I am aware of.

    Could you please give more details on your problem? I don't seem to be following you...

  • Errors in Flat files while using BDC

    *Hey Experts,*
    *I have made a BDC program which uploads an excel file into the system.Check the coding below*
    *I tried to run the same data but i received the following error at the system  status.*
    *Excel file://c:\cannot be processed .on checking in details i received this*
    *Message no. UX893*
    *Diagnosis*
    *An error occurred while attempting to process Excel file FILE://C:\Users\Administrator\Desktop\jack abaper\.*
    *Check whether:*
    *the file exists*
    *you have authorization to process the file*
    *Excel is installed and can be run*
    *System Response*
    *Excel file FILE://C:\Users\Administrator\Desktop\jack abaper\ is not processed. The activity is terminated.*
    *Procedure*
    *When the error has been corrected, restart the program.*
    *is there a way for the program to check the exact cause of error,like for my case the same data i was uploading.*
    *if it could tell me which row of data in the file is bringing this error.Apart from that I am to run this program in background not foreground ,please note of that while forgering a solution.*
    *Does anyone have a solution for this,or a better way gladly accept?*
    *Thank you my fellow abapers*
    *all help is appreciated.*
    *regds*
    *Ja*
    *Below see program>>>*
    REPORT  z_uploadbdc NO STANDARD PAGE HEADING LINE-SIZE 255.
    TYPE-POOLS: truxs.
    SELECTION-SCREEN : BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
    PARAMETERS: p_file TYPE  rlgrap-filename OBLIGATORY DEFAULT 'C:\'.
    SELECTION-SCREEN : END OF BLOCK blk1.
    *&     Global Declarations
    TYPES: BEGIN OF t_datatab,
          col1(30)    TYPE c,
          col2(30)    TYPE c,
          col3(30)    TYPE c,
          END OF t_datatab.
    DATA: it_datatab TYPE STANDARD TABLE OF t_datatab,
          wa_datatab TYPE t_datatab.
    DATA: it_raw TYPE truxs_t_text_data.
    TYPES: BEGIN OF ty_material,
           matnr TYPE matnr,
           anzahl TYPE anzahl,
           eqtyp TYPE eqtyp,
           servon TYPE servon,
           serbis TYPE serbis,
           sernr TYPE serbis,
           END OF ty_material.
    DATA: it_material TYPE TABLE OF ty_material,
          wa_material TYPE ty_material,
          it_bdcdata TYPE TABLE OF bdcdata,
          wa_bdcdata TYPE bdcdata.
    Table for messages from call transaction.
    The table is automatically filled with messages from call transaction.
    DATA BEGIN OF messtab OCCURS 10.
            INCLUDE STRUCTURE bdcmsgcoll.
    DATA END OF messtab.
    DATA : WF_MESSAGE(100).
    REFRESH MESSTAB.
    *&   AT SELECTION SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          field_name = 'P_FILE'
        IMPORTING
          file_name  = p_file.
    *include bdcrecx1.
    *&   START-OF-SELECTION
    START-OF-SELECTION.
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
      I_FIELD_SEPERATOR          =
          i_line_header              = 'X'
          i_tab_raw_data             = it_raw
          i_filename                 = p_file
        TABLES
          i_tab_converted_data       = it_material
        EXCEPTIONS
          conversion_failed = 1
          OTHERS            = 2.
      IF sy-subrc NE  0.
        MESSAGE ID sy-msgid
              TYPE sy-msgty
              NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    *perform open_group.
      LOOP AT it_material INTO wa_material.
        PERFORM bdc_dynpro      USING 'SAPMIEQ0' '2000'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RISA0-SERNR(01)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      'BU'.
        PERFORM bdc_field       USING 'RISA0-MATNR'
                                      wa_material-matnr.
        PERFORM bdc_field       USING 'RISA0-ANZAHL'
                                      wa_material-anzahl.
        PERFORM bdc_field       USING 'EQUI-EQTYP'
                                      wa_material-eqtyp.
        PERFORM bdc_field       USING 'RISA0-SERVON'
                                      wa_material-servon.
        PERFORM bdc_field       USING 'RISA0-SERBIS'
                                      wa_material-serbis.
        PERFORM bdc_field       USING 'RISA0-SERNR(01)'
                                       wa_material-sernr.
    perform bdc_transaction using 'IQ04'.
        CALL TRANSACTION 'IQ04' USING it_bdcdata
                          MODE 'A' UPDATE 'S'
                          MESSAGES into messtab.
        REFRESH it_bdcdata.
    ENDLOOP.
    *&      Form  bdc_dynpro
          text
         -->PROGRAM    text
         -->DYNPRO     text
    FORM bdc_dynpro USING program dynpro.
      CLEAR wa_bdcdata.
      wa_bdcdata-program = program.
      wa_bdcdata-dynpro = dynpro.
      wa_bdcdata-dynbegin = 'X'.
      APPEND wa_bdcdata TO it_bdcdata.
    ENDFORM.                    "bdc_dynpro
    *&      Form  bdc_field
          text
         -->FNAM       text
         -->FVAL       text
    FORM bdc_field USING fnam fval.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = fnam.
      wa_bdcdata-fval = fval.
      APPEND wa_bdcdata TO it_bdcdata.
    ENDFORM.                    "bdc_field
    perform close_group.
    Edited by: JackAbaper on Feb 8, 2012 3:11 PM
    Edited by: JackAbaper on Feb 8, 2012 3:14 PM
    Edited by: JackAbaper on Feb 8, 2012 3:15 PM

    Hi ,
    This is what you can do.
    Upload the file from presentation server to the application server through CG3Z.
    Then you can fetch the file from Application server to your BDC  program (Which you want to run in background).
    Regards,
    Chandan.

  • Automatic file generation using system date and time

    Hi guys,
    Iam trying to generate a path for file creation automatically using System date and time. I am running into errors with respect to special characters in filename. I am trying to parse the string to get date and time without the '/' and ':' but have not been successful. is there a better way to do it? Please help! I am trying to avoid a dialog box for user to enter a filename.
    Thanks!
    V
    I may not be perfect, but I'm all I got!
    Solved!
    Go to Solution.

    here is a little experiment .... building the path out of %m (month) %d (day) %(year) type stuff might help.
    Attachments:
    putting time in path.vi ‏7 KB

  • Password protected Excel file generation using Java

    Hi,
    I want to create password protected excel file using Java. So when you manually open this file it should prompt for password.
    There are APIs but they are licensed and are for trial period. I want solution which is free.
    I need this solution urgently..
    :-)

    Swati.S wrote:
    Hi Administrator,
    Moderator. Administrators post with the Sun logo.
    I'm sorry I wasnt aware that we cannot have off forum communication. Can you please communicate how I can spread this message taht solution for this is available.If you like, you can post the code here or on [SDN Share|http://sdnshare.sun.com/]. Apart from that, there's no shortage of blog sites.

  • Trace file generation using oradebug

    DB version : 10.2.0.4.0
    OS : Solaris 5.10
    I am trying to trace a session started by a Java application.
    So, i've logged in as SYS. Got pid, spid from v$process. Then started the debug
    SYS@MN_PROD>oradebug setospid 2523
    SYS@MN_PROD>oradebug event 10046 trace name context forever, level 32and closed it using
    oradebug event 10046 trace name context offWhen i type
    ORADEBUG TRACEFILE_NAMEIt shows a filename in bdump directory. But i can't find this file in bdump or udump.
    Is there any init.ora setting i need to do to get this file generated?

    Decimal Binary Description
    1       0001   Emit statistics for parse, execute, fetch, commit, and rollback database calls (standard sql_trace)
    2       0010   Unknown
    4       0100   Emit values for SQL bind variables (also called “placeholders”)
    8       1000   Emit statistics for Oracle kernel internal function calls (also called “wait events”) listed in v$event_name
    These levels can be combined as if by a bitwise or function to produce combinations of data in an Oracle trace file.
    A value of 15 is just a combination of all 4 preceeding values

  • EPMA Ads File generation using excel

    Hi,
    We had a classic planning application at our client and now we have decided to move on to EPMA. I have used EPMA file generator to extract ads file from Planning application & uploaded it to the shared library successfully. Now I want to add a UDA to the accounts dimension members. HOwever I want to export this file in to spreadsheet so that I can update the UDA and reload it back to the planning application.
    However the moment i open in excel & make changes the formatting messes up and loads of unnecessary commas emerge.
    Has anyone tried a better way of doing it?
    Cheers,
    XXX

    Hi,
    There are two methods to do this task:-
    Excel -
    1. Copy all the contents of the ADS file to the Excel sheet
    2. Use text to columns feature and split the properties based on the pipe separator (|)
    3. Add the lines you want to
    4. Concatenate them with the pipe separator and paste it in ADS
    Notepad ++ (I agree with Todd Johnson)
    1. Open the file in Notepad++
    2. make add the lines without making mistakes (it has a lot of rich features that improve accuracy)
    3. save it and use it.
    Thanks.

  • XSD schema to xml file generation using C#

    Hi fellow developers,
    I need small help with my current scenario.
    I have 2 xsd schemas one is input and other is output.
    Now my requirement is based on those xsd template or structure, i need to write a C# code that takes the 1 xsd template as input in xml format and then do some mapping and then set that values to 2 xsd template in xml format.
    Can you please guide or assist in this regards ??
    It would be helpful if we have the flexibility of configuring the schema properties.

    Hi
    Venky_Ferrari.
    Based on your description, your case related to XMLXSD, SO I will move your thread to
    Data Platform Development > XML, System.Xml, MSXML and XmlLite      
    forum for better support.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error files at ftp server

    Hi,
    In the Idoc to File scenario,error file are also generated at ftp server which are just the prototypes of the idoc sent.How can I stop this error file generation??
    Thanks,
    Ratna

    <i>18:27>>FOUND: XML. Calling XML parser
    18:27>>Looking up FILENAME: PA, IDOCTYP: DELVRY03, MESTYP: DESADV 18:27>>NO APRF FOUND!
    18:27>>ERROR: ERROR: XML lookup not found ERROR: XML lookup not found
    18:27>>ERROR: Renaming remote file: PA20071104-192623-151.xml
    18:27>>ERROR: To remote file: PA20071104-192623-151.xml.ERROR
    ---> RNFR PA20071104-192623-151.xml
    350 File exists, ready for destination name
    ---> RNTO PA20071104-192623-151.xml.ERROR</i>
    >>>
    are you using the File adapter ?
    In that case please confirm the following;
    1. Is any adapter module attached to the file adapter ? (check the modules tab in the adapter)
    2. Also confirm the parameters used in the adapter.

  • ODI send email with latest error file attachment

    We have kick-out/error file with the format *err.txt. Whenever error occurs the same gets overwritten by the latest file. We are attaching this error file on the completion of the job. If error file generates, everything is fine. But, on the successful run, I mean when there are no error file generation, it attaches the previous run error file.
    Anyone of you help me how to handle this situation. Is there any way to validate the file generation date before attaching the file.
    Thanks in advance
    Edited by: user12958295 on Oct 30, 2012 7:42 AM

    Hi,
    Thanks for the response.
    As of now we are following that as a workaround. However our client wants to avoid the manual work of delete/move/renaming the error file.
    Is it possible to check the file generated date with sysdate for attaching the error file by odisendmail.
    Thanks!
    BRM

  • Capturing EPC error List into a local file using BDC

    Can anyone let me know the Code for downloading the EPC check Results into a local File using BDC...[<b></b>

    You can use the function module
    EXTENDED_PROGRAM_CHECK to get the errors and warnigs of a epc for a program.
    then you can download that internal table information using GUI_DOWNLOAD fm.
    Regards,
    Ravi

  • Error in XML file generation :240416

    Hi All,
    I am facing problem with XML file generation.
    Steps:
    1. Source-->Query Transform and maintained Nested Stucture
    2. Generated XML fomat from query transform
    3. Created XML format file
    4. Make XML format as target and given XML generate path
    source table-->Query(nested structure)-->XML Format
    when I validate the job no errors found.
    Note: XSD file is in Local mechine and XML file will be generated in SFTP.
    Prooblems:
    1. Getting below error
    The input XML refers to file which is not part of the definition of this XML Schema format. Check your schema and XML files,
    and check that the root element in the XML file corresponds to the root element in the XML Schema
    Validate your XML Schema using external schema validators (found at w3.org)
    Thanks,
    Deepa

    Hi,
    I think issue Because in your Query Transform output the Root element is Query and XML target is having some other root element. Make the Query trasform name similar to root element and try...

Maybe you are looking for

  • My List of Issues

    First off, i'd like to say I love my iPod touch and im not bashing it in any way. So, I got my iPod touch 3rd generation 32gb on May 18th and everything has been going great, until the iOS 4 update came along. My first problem is my iPod freezing whe

  • Iphoto won't let me import my photos because it has a problem downloading an image

    I need to backup my phone because i'm getting a new one, but it won't let me back it up because i've no space left so since i have over 3000 photos in my photo library, i was going to import it to iphotos, but once i try to import it, i get a notific

  • BUG WITH PHOTOSHOP CS5

    One thing I cannot stand with Photoshop CS5 is the snap on files.  I open 10 files and I have 10 tabs.  In order to manipulate them, I have to drag the tab out in order to drag and drop layers between files.  I had a great idea if you guys like to ha

  • How can a make sure my printer only prints in black

    with my mac I can't seem to print in black only whereas I could with a pc. I have a canon MP490

  • E-Recruiting Multiple Employment

    Hi all, I am about to start a project implementing e-recruiting with Enhancement Pack 4 and I was wondering if anyone knew if there are any improvements to the handling of multiple/concurrent employees? I have found a presentation from SAP which stat