BDC INPUT FILE ISSUE

hI! ALL...
when i am trying toe xecute the BDC program ive wirtten , i am getting the foll. error for two of the fields..
input value is longer than the screen field.
other fields are getting populated correct.
please let me know what i have to change?
thanks.
karthi.

Hi
The best way to transfer the data to BDC structure is to try to transfer them in the same format you would use if you run your transaction on-line.
You can usually to do that using WRITE command.
You should know the unit and currency of field quan and curr so:
WRITE T_FILE-MENGE UNIT <UNIT> TO BDCDATA-VALUE.
and
WRITE T_FILE-LPREIS CURRENCY <CURRENCY>
                                    TO BDCDATA-VALUE.
If you don't know these data you can find out them from master data table:
<UNIT> = MARA-MEINS.
<CURRENCY> is probably the currency of the country of your company.
is the symbol to indicate the end of record of file.
You shouldn't see it.
How do you open your file?
Max

Similar Messages

  • Open dataset fails...says "error opening input file"

    Hi,
    I am trying to open a file in my BDC program and get the following error "error opening input file". Its a text file with continuous data. No delimiters and hence character count will be used to parse the data.
    I am using the following statement to open it..
    OPEN DATASET p_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    but sy-subrc is set to 8 !!
    what could be the problem ??
    thanks

    This is pretty confusing !!I would explain to you my exact issue !!
    I have a program in which there is no GUI_UPLOAD call but just a direct open dataset statement !!
    This program runs fine for my collegue who has the file in a server (not the application server). She gives the full path name as
    servername\foldername\filename.
    I tried doing the same but as I did not have access to that server, it failed. So I received that file from her and stored it in my local system. So on program execution, i gave the path as c:\filename and I got the error message "Error opening the file"
    Find below some code extracts..
    PARAMETERS : p_sname TYPE d0100_mapn ,
                 p_file(136) TYPE c ,
    FORM open_file .
    *open file in textmode
      OPEN DATASET p_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      IF  sy-subrc = 0.
        DO.
        Read the file data and tranfer to workarea to internal table
          READ DATASET p_file  INTO  x_legacy_rec.
    Please help in debugging this issue !!
    thanks

  • Need Help-SOA 11g File Adapter unable to delete input file and its crashing

    Hi All
    Please find the details below:
    1. We have created a simple SOA composite to Read file from an input directory, archive the file in an archive directory using Inbound File Adapter Read
    and then use Outbound File Adapter Write to move the file to a output directory.
    2. File Adapter needs to delete the file after successful read/retrieval.
    3. We are using the "Use Trigger File" for invoking the file adapter. This is a new feature in SOA 11g
    4. Also we are using the option of reading the file as an attachment as we are not doing any transformation in the composite
    Issue Details_
    1. When the trigger file is put in the input directory for the first time, the File Adapter reads the file, archives it and moves it to the output directory
    2. However it does not delete the input file from the input directory and raises Fatal Exception mentioned below:
    [*2011-01-12T16:55:48.639+05:30] [soa_server1] [WARNING] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@19c243d]*
    [userId: <anonymous>] [ecid: 0000IptyLrL9_aY5TrL6ic1DBOS_000009,0] [APP: soa-infra] File Adapter FileAdapterTriggerFilePOC PostProcessor::
    Delete failed, the operation will be retried for max of [0] times
    [2011-01-12T16:55:48.639+05:30] [soa_server1] [WARNING] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@19c243d]
    [userId: <anonymous>] [ecid: 0000IptyLrL9_aY5TrL6ic1DBOS_000009,0] [APP: soa-infra] File Adapter FileAdapterTriggerFilePOC [[
    BINDING.JCA-11042
    File deletion failed.
    File deletion failed.
    File : C:\Dibya\AttachmentTest\InputDir\TestFile3.txt could not be deleted.
    Delete the file and restart server. Contact oracle support if error is not fixable.
    If any one has faced similar issues, kindly provide pointers on how to resolve it.
    Regards,
    Dibya

    Hi,
    Using the file adapter, you can poll from multilple locations...
    Keep the following property in your .jca file
    <property name="DirectorySeparator" value="," />
    While giving the path in File Adapter configuration, keep comma and give the next location....then the file will be picked up from the locations you gave....
    Hope this helps...
    Thanks,
    N

  • How to execute an SSIS package on a scheduled basis from remote server and pass in input files

    I have an application server and a db server.  My db server has all things SQL Server stored on it (DBMS, SSRS, SSIS, etc.)  I have several nightly batch process SSIS packages (dtsx files currently) that will pickup an input file and import them
    into the database.  I would like to execute all batch processes from my application server as I have quite a few other ones as well that do other stuff outside of SQL Server via powershell.  My question is how to do this?  Is there away to execute
    them remotely via DTexec.exe, should I set them up as Agent jobs and somehow pass in the file names\location (how?), create and SSIS catalog, etc.?  
    I need to easily be able to see if the packages execute successfully or not and if not capture the detailed information of why they failed from the remote server so I can use that to drive my process flow logic in the batch processes.

    Hi Jason,
    According to your description, you want to execute a package on a schedule and receive notification when package ends with error in the job.
    After testing the issue in my environment, we can directly add the package in a step of a job, then add a schedule and set the Alert and Notification property in the job to achieve your requirement. For more details, please see:
    Create a Database Mail in the SSMS.
    Right-click the SQL Server Agent services to Enable mail profile, then select the appropriate Mail profile.
    Under the Operators folder, create an operator with the correct E-mail name.
    Right-click the Jobs folder to add a new job.
    In the Steps pane, New a step with SQL Server Integration Services Package Type to run the package.
    In the Schedules pane, New a schedule for the job.
    In the Alerts pane, New an alert with SQL Server event alert, then enable Notify operators option with an operator in the Response pane.
    In the Notifications pane, enable Email option with same operator and When the job fails selection.
    Then when the package fails, the job would be failed and we can receive the error message in the mailbox.
    Besides, please make sure the account that execute the job has correct permissions for the file, for the folder that contains the file, and for the database.
    References:
    Configure Database Mail – Send Email From SQL Database
    How to setup SQL Server alerts and email operator notifications
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • In ABAP How to locate an Input file  from a Directory during run time

    I'm loading data from a flat file(text file) into SAP thru BDC programs. All my input files are present in Application server.How to locate an Input file in a directory during run time to process BDC programs programmatically. Are there any in-built functions?Provided me some sample code or any method of doing the same.

    Hello Murali,
    you should ask this question in the ABAP forum.
    Regards
    Gregor

  • Input file should be deleted only after the output file is successful.

    Hi Experts,
    Could you pleas solve the below issue.
                           In  a file to file scenario, the input file will be picked from a directory location and after processing output file will be placed in the output directory location specified in the receiver communication channel.
    In the sender communication channel for the scenario mentioned above, if the processing mode is given as delete, the input file will be delete as soon as the file was successfully read by the adapter, but this will not ensure that the file processing is complete and the output file is being created.
    If we have a scenario in such as way that the input file should be deleted from the input folder only if the complete process is successful and the output is generated. how can we achieve this functionality?.
    And one more thing if we got the successful output the output file should be placed in one folder. and the if the output file is having errors it should be placed in other folder.

    Hi,
    In Receiver communication channel I have used the below command in Run Operating System
    .And I have kept the processing mode of sender communication channel as test.
    cmd.exe: /C "del /Leela/test.xml"
    You are running the comman line program configured in the receiver File Adapter,but in command line you mentioned the Sender File Folder , So i guess it's not getting processed.
    Try this:
    Try to run the command line in the Sender File Adapter Side
    "Place this in " --> Run OS Command After Message Processing.
    Hope this would work and get in parrallel with u r requirement.
    regards
    Srini

  • Input file size limition in File Reader Adapter

    Hi,
    We have a File Read Activity(using File Reader Adapter) which works on a Polling model. Whenever a input file is found in a designated directory it invokes our BPEL web service. During load testing we found out that if input file size exceeds 7 MB then we get "insufficient heap space" error. We found a reference to this size limitation in http://download.oracle.com/docs/cd/E11036_01/integrate.1013/b28994.pdf which has below lines..
    "Files that are 7MB or larger in size cannot be delivered. As an alternative, you can debatch large files (if they have multiple messages), and publish these files in messages of size less than 7 MB. This alternative is applicable only to structured files (comma-delimited or fixed position), which contain more than one message. It is not applicable to binary or XML files."
    Our customer will have the data in XML format and the size of the files will be pretty huge(running into 49, 69 MBs). Do we have any workaround here or we are left with no option but to ask the customer to split the files and load it? The later option is currently difficult one for the customer since when split there is a possibility of XML becoming invalid. Any pointers in this issue is appreciated.
    Thanks!
    Balaji

    Hi,
    BPEL can not process more than 7 MB size xml structred file. but,debatching will work for xml files also provided if the file has repeated multiple structures (means multiple repeated root elements).
    Regards,
    Dhanumjay

  • How to retain input file name in b2b

    Hi,
    I have requirement in the project where I need to flollow below steps
    1) pick up file -> transform into binary format -> push into JMS queue
    2) b2b channel listen to JMS queue -> transforms into text format -> creates .text file format.
    Every thing is working as expected however the issue is b2b is able to generate the file name is didn't match with the input file name though I have mentioned preserve file name option in b2b target channel.
    How can b2b generate/retain the file name which is same as picked up input file name by FTP adapter.
    Regards,
    Anjana

    Hi,
    Thanks. this issue has been resolved. If we set below proprties in bpel, b2b can retain same input file name.
    <copy>
    <from>concat("contentType:application/octet-stream;filename:",$varFileName )</from>
    <to>$varActionName</to>
    </copy>
    <bpelx:toProperty name="jca.jms.JMSProperty.ACTION_NAME"
    variable="varActionName"/>
    Regards,
    Anjana

  • Input File Repository Server not running

    When I try to access reports I get the following error
    Server Error in '/v2' Application.
    File Repository Server Input is down.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Runtime.InteropServices.COMException: File Repository Server Input is down.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
    Stack Trace:
    [COMException (0x80004005): File Repository Server Input is down.]
       CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +77
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +218
    [Exception: Load report failed.]
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +272
       CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +875
       CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +52
       CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(InfoObject infoObject, EnterpriseSession enterpriseSession) +87
       ProjectVillage.ReportView.ViewReport()
       ProjectVillage.ReportView.Page_Load(Object sender, EventArgs e)
       System.Web.UI.Control.OnLoad(EventArgs e) +67
       System.Web.UI.Control.LoadRecursive() +35
       System.Web.UI.Page.ProcessRequestMain() +750
    I have gone to the Central Configuration Manger and it all of the servers running except for input file repository server and output file repository server. When I start those two servers it goes right back to stopped. Now I checked the event viewer for errors and these to errors show up.
    Event Type:     Error
    Event Source:     BusinessObjects_inputfileserver
    Event Category:     Startup
    Event ID:     35602
    Date:          4/8/2011
    Time:          10:04:59 AM
    User:          N/A
    Computer:     PVWEB3
    Description:
    Fail to register with the nameserver.  Please check for name duplication and validness of name used: Input.PVWEB3
    and
    Event Type:     Error
    Event Source:     BusinessObjects_inputfileserver
    Event Category:     Services
    Event ID:     34200
    Date:          4/8/2011
    Time:          10:04:59 AM
    User:          N/A
    Computer:     PVWEB3
    Description:
    Failed to register with the name server. Reason: The server name being registered is invalid. There might be another server registered using the same name. Choose another name or delete the corresponding server entry in the CMC.
    Now to give a bit of a back story as to what happened before this. We were having a issue logging into the domain on this machine. The only way to get passed this was to unjoin and rejoin it to the domain then this happened.  When I try to go to the CMC using the admin launch page I get the following error.
    Server Error in '/businessobjects/Enterprise115/WebTools' Application.
    The resource cannot be found.
    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
    Requested Url: /businessobjects/enterprise115/WebTools/relativeredirect.aspx
    I'm a bit new to business objects software as this system was setup way before I started working for this company and noone that put this system in place has worked here for a while now. So I'm hoping some of you can help me out a bit or atleast point me in the right direction.

    Disregard that last post. I have gotten into Central Management Console.  My next question is, where in the CMC do I got to fix the following 2 errors I was getting?  I figure that are both talking about the samething but since this is my first time I've been in the CMC I am not sure where to go to fix it.
    Event Type:     Error
    Event Source:     BusinessObjects_inputfileserver
    Event Category:     Startup
    Event ID:     35602
    Date:      4/8/2011
    Time:      10:04:59 AM
    User:      N/A
    Computer:     PVWEB3
    Description:
    Fail to register with the nameserver. Please check for name duplication and validness of name used: Input.PVWEB3
    and
    Event Type:     Error
    Event Source:     BusinessObjects_inputfileserver
    Event Category:     Services
    Event ID:     34200
    Date:      4/8/2011
    Time:      10:04:59 AM
    User:      N/A
    Computer:     PVWEB3
    Description:
    Failed to register with the name server. Reason: The server name being registered is invalid. There might be another server registered using the same name. Choose another name or delete the corresponding server entry in the CMC.

  • How to attach input file in the Test Script in SECATT in ECC6 ?

    Hi ,
    How to attach input file in the Test Script in ECC6  in Tcode SECATT ?
    For Testing in SECATT in ECC6, how to attach input file which contains multiple records ?
    Best Regards,
    Padhy

    Hi and Welcome to the Community!
    Since you have balance, and the issue is in your Work domain, you need to work with your server admins, as it's possible they are forbidding (via IT Policy) the ability to do as you desire.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • SQLJ: unable to find input file null   (Error while building EJB.jar file)

    Hi,
    I am working on open SQL/SQLJ with the following details
    Name:Employee application(adding an employee to MAXDB through SQLJ connection)
    FRONT-END:JSP/SERVLET
    Middle:Stateless bean with DAO(DB connection) coming from SQLJ
    Back-end:MAXDB
    I have following in abc.sqlj file
    #sql public context Connx with (dataSource = "java:comp/env/jdbc/SAPTSTDB")
    and creating instance and adding to DB in another say xyz.sqlj file
              Connx con = null;
              try{
                   con = new Connx();
                        #sql [con] {insert into TMP_DB1(EMPLOYEE_ID, FIRST_NAME, LAST_NAME, EMAIL)
                        values(:(employeeDTO.getEmployeeId()),
                                 :(employeeDTO.getFirstName()),
                                 :(employeeDTO.getLastName()),
                                 :(employeeDTO.getEmail()))};
    My build has no errors..but while building EJB archive with above sqlj files, am getting following error
    "SQLJ: unable to find input file null" for both sqlj files.
    Anybody faced this kind of issue, pls reply back.
    Thanks
    parveen

    Hi,
    I am working on open SQL/SQLJ with the following details
    Name:Employee application(adding an employee to MAXDB through SQLJ connection)
    FRONT-END:JSP/SERVLET
    Middle:Stateless bean with DAO(DB connection) coming from SQLJ
    Back-end:MAXDB
    I have following in abc.sqlj file
    #sql public context Connx with (dataSource = "java:comp/env/jdbc/SAPTSTDB")
    and creating instance and adding to DB in another say xyz.sqlj file
              Connx con = null;
              try{
                   con = new Connx();
                        #sql [con] {insert into TMP_DB1(EMPLOYEE_ID, FIRST_NAME, LAST_NAME, EMAIL)
                        values(:(employeeDTO.getEmployeeId()),
                                 :(employeeDTO.getFirstName()),
                                 :(employeeDTO.getLastName()),
                                 :(employeeDTO.getEmail()))};
    My build has no errors..but while building EJB archive with above sqlj files, am getting following error
    "SQLJ: unable to find input file null" for both sqlj files.
    Anybody faced this kind of issue, pls reply back.
    Thanks
    parveen

  • What is an input file

    trying to access peace fm manchester and keep getting message no input file specified can anyone tell me how i do this

    Hi @mariejoe ,
    Thank you for visiting the HP Support Forums and Welcome. I have read about your HP Notebook displaying No input file specified while trying to get to Peace Fm Radio. Here is a link that might work.
    Looks like there is a plugin that is needed.
    Are you able to play a CD?
    I would be happy to assist if needed as there are many models of HP Notebooks, I would need the model number.
    How Do I Find My Model Number or Product Number?
    Please respond with which Operating System you are running:
    Which Windows Operating System am I running?
    Please let me know.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Input File Question

    Hi, all!
    I have an input file (InputFileA) that is sent to me from a third party.  I have to load the file into a Table (TableA) and also include, with each row that is loaded, the name of the file from which it came.
    EXAMPLE:
    InputFileA looks like this:
    Number  Amount
    000001  1200.00
    000002  2400.00
    TableA (columns: NUMBER, AMOUNT, FILENAME) should have the following inserts done:
    NUMBER: 000001
    AMOUNT: 1200.00
    FILENAME: InputFileA
    NUMBER: 000002
    AMOUNT: 2400.00
    FILENAME: InputFileA
    Can anyone offer any advice as to how I can extract the filename and then insert it into the Table for each row that is inserted from InputFileA?
    I'm new to SQL Server (originally a DB2 guy) and I don't have much of a programming background, so I'm kind of stuck on this one.
    Thanks in advance and hi to everyone!
    Don

    Assuming you're using SSIS for transfer you can set it up as below
    1. Add a ForEachLoop with file enumerator pointing to file location. Use a variable inside to fetch filename of files found (@[User::FileName]).
    2. Add a data flow task inside loop with flat file source pointing to your file and set an expression for connection string to point to your dynamic file. For this select connection manager,  right click and select properties. Expand expression and
    set an expression for connectionstring property to  point to @[User::FileName] variable.
    3. Add a derived column task, add expression as @[User::FileName] and choose add as a new column option and give it name FILENAME
    4. Add OLEDB Destination to point to your table and map columns from source file to table columns and FILENAME column created above to FILENAME column of the table
    Execute it and you'll get your desired output.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Create two identical idocs from one input file with BPM

    Hello all .
    My issue is the following.
    I have a scenario where an input file is mapped to an IDOC .
    The problem is that i need to create a second - almost identical - mapping to the same IDOC type and when the input file is receive both of them should be sent .
    I suppose that BPM is needed for this scenario, but are there any examples or tips i should follow?
    Thank you all in advance .

    Rucinski and Sarvesh, thank you both for your answers , they are very helpful.
    I have started trying Rucinski's method, because I would better avoid redoing the mapping on the second IDOC (it is pretty hard and critical) . But I have a problem.
    When i run the senario, the system replies (for the second IDOC)
    "Unable to interpret IDoc interface NEW_IDOC_MI"
    The reason for this is that in the Interface Determination i have two entries for the inbound interface,
    Orders.orders05 and
    NEW_IDOC_MI,
    which is wrong. I should be using the original  Orders.orders05. But this can't be done, because in tha case the Interface Determination, requests a Condition to be entered. Any suggestions on this ?
    Sarvesh, is there any way to duplicate the IDOC, keeping the mapping that is allready done ?

  • Structure of the input file for RMDATIND (standard material update program)

    Hi all !
    I need to find the structure of the input file used by the RMDATIND standard program. Is there only one structure for this file ? what should it contains ?
    Thanks a lot
    Regards,
    --Yohann

    Hi Yohann,
    Check this link...
    [RMDATIND Document|http://www.iconet-ltd.co.uk/mm.doc]
    Hope this would solve your issue.
    Regards
    Narin Nandivada

Maybe you are looking for

  • Pn-begda and pn-endda

    Hi all. I am developing a hr report with logical database pnp and screen 900 i.e the payroll screen. I wan to access the start date of payroll and hence m using pn-begda and pn-ennda but to my surprise both of them are null. i also tried payroll-evp-

  • IPhoto 6 install randomly destroyed iPhoto 5 images

    Before upgrading from iLife05 to iLife06 I made a backup copy of my iPictures library and put it on the desktop. In the installation iPhoto 6 "recovered" 57 photos out of 271, with no discernible logic, and made a new file in iPhoto called "Recovered

  • Background rendering when iMac is in standby mode

    After I  have imported a video file from my Sony HDR Z1 FCP X starts to render in background mode, when I am using the iMac all is fine but if I leave it overnight and the iMac "goes" to sleep" the rendering also stops. Is there a way to stop this so

  • When adding pages, keeping size the same

    It seemed so easy but, NO. How does one attach pages from a file and keep the pages the same size?

  • Quicktime Player no buttons no longer see any surface

    Hello, I use the newest QuickTime Player 7.7.4 instaled. For some time, there are no buttons on the player when playing clips to see. I have the software several times uninstalled and installed What can I do? Sorry for my english(German)