RSEINB00

Hello,
I want to execute the report RSEINB00 to create inbound Idocs from a file, but I want to execute this program in batch mode to read all files in a system folder. How can I do this with a standard tool???
Thanks.

Hello,
but if I want to put only the folder path.  I don't want to execute this program for every file in the folder...
Thanks.

Similar Messages

  • Error While executing the Standard Program RSEINB00

    Hi,
    I am trying to execute the Standard Program RSEINB00.
    The input parameters for this program are
    1. File path along with name
    2. Port.
    File path I am giving the application server directory along with the filename.
    For port. i have created a port in WE21.
    For both outbound parametes I selected the Physical directory and gave directory name and file name in both tabs and saved the port definition.
    Now I am passing the port to the RSEINB00 program.
    it is giving an error File cannot be opened.
    Can any one help me on this. Can someone guide me how to use RSEINB00 to read file from application server.
    thanks

    Hi,
    I think,you missed out some steps while creating Port.so please follow the below steps to resolve the issue.
    we21->click on your port number->outbound file tab->function module: EDI_PATH_CREATE_MESTYP_DOCNUM.
    outbound file: give file name .txt.
    and give the physical directory : /usr/sap/.......................................txt and save.
    and click on 'ACESS TEST' button and check any error is coming.
    go to outbound trigger tab-> give RFC destination name which we have created under a port in SM59.
    and one more important thing is check your unicode status is active or not.
    .Please get back me .if any issues.
    Kiran J

  • How to read dynamic file names in RSEINB00?

    Hi, ABAP Gurus,
    actually I'm a PI Consultant. Now I have a scenario to use the report RSEINB00.
    In the Applicaton Server i put ASCII IDocs with the following name convension: <static name>+<time stemple>:
    SAPIDOC20111127-224128-952.txt
    SAPIDOC20111127-224129-115.txt
    I created a new port in WE21 and the Outbound file and Inbound fiel tabs haben the same configration:
    physical directory: /ABC/DEV100/inbound/
    Function module: EDI_PATH_CREATE_DATE_TIME
    Inbound file: SAPIDOC.txt
    To execute the report RSEINB00 I must give the complete file name and port. It is not convenient.
    My target is, with a job to run RSEINB00 once daily to read all files with name "SAPIDOC + <time stemple>" full automatically.
    Is it possible? how to figure it out?
    thanks a lot in advance! <removed by moderator>.
    Regards
    Rene
    Edited by: Thomas Zloch on Nov 29, 2011 5:23 PM

    with the extension of the standard report RSEINB00 i solved this problem. here is some code:
    DATA:
      dir_name  LIKE  epsf-epsdirnam,
      file_mask LIKE  epsf-epsfilnam,
      g_message_fields LIKE edimessage.
    DATA:
      filename LIKE  edi_path-pthnam,
      filename2 LIKE edi_path-pthnam,
      myport TYPE EDIPO-PORT.
    DATA: h_EDIDC     LIKE EDIDC.
    DATA:
      wa TYPE file_table.
    DATA:
      t_dir_list TYPE STANDARD TABLE OF epsfili WITH HEADER LINE,
      itab TYPE table of file_table WITH HEADER LINE.
    *The directoy, where the Markant ASCII IDocs are droped by XI.
    dir_name = '<.../inbound>'.
    *File mask of ASCII IDocs.
    file_mask = 'XYIDOC.'.
    *File port.
    myport = '<Portname>'.
    CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
      EXPORTING
        dir_name               = dir_name
        file_mask              = file_mask
      TABLES
        dir_list               = t_dir_list
      EXCEPTIONS
        invalid_eps_subdir     = 1
        sapgparam_failed       = 2
        build_directory_failed = 3
        no_authorization       = 4
        read_directory_failed  = 5
        too_many_read_errors   = 6
        empty_directory_list   = 7
        OTHERS                 = 8.
    IF sy-subrc <> 0.
      MESSAGE e600(fr) WITH 'No ASCII IDoc exits'.
    ENDIF.
    "BREAK-POINT.
    *The old ASCII IDocs are stored in a dataset and copied with new file name sent_<original name>
    LOOP AT t_dir_list.
      CONCATENATE dir_name '/' t_dir_list-name INTO filename.
      CONCATENATE dir_name '/sent_' t_dir_list-name INTO filename2.
    open dataset filename for input in text mode.
    open dataset filename2 for output in text mode.
    if sy-subrc = 0.
      do.
        read dataset filename into wa.
          if sy-subrc <> 0.
           exit.
          endif.
      transfer wa to filename2.
         append wa to itab.
           enddo.
    endif.
    close dataset filename.
    *loop at itab into wa.
    transfer wa to filename2.
    *endloop.
    close dataset filename2.
      PERFORM inbound_processing USING filename.
    ENDLOOP.
    *&      Form  inbound_processing
    FORM inbound_processing USING filename TYPE edi_path-pthnam.
    do inbound processing from file
      CALL FUNCTION 'IDOC_INBOUND_FROM_FILE'
        EXPORTING
          file_name            = filename
          port                 = myport
        EXCEPTIONS
          file_open_failed     = 1
          marker_to_be_deleted = 2
          read_file_failed     = 3
          idoc_not_stored      = 4
          file_delete_failed   = 5
          marker_modify_failed = 6
          event_create_failed  = 7
          first_record_invalid = 8
          invalid_record       = 9
          OTHERS               = 10.
      IF sy-subrc <> 0.
    fill message fields for exception handling from system fields
        MOVE-CORRESPONDING sy TO g_message_fields.
    error handling using the 3.0 business workflow
        CALL FUNCTION 'IDOC_ERROR_WORKFLOW_START'
          EXPORTING
            docnum                  = 0
            eventcode               = 'EDIM'
            mess                    = g_message_fields
          EXCEPTIONS
            no_entry_in_tede5       = 0
            error_in_start_workflow = 0
            OTHERS                  = 0.
    do not care for exceptions here
        COMMIT WORK.
    append message for RFC
        MESSAGE ID     g_message_fields-msgid
                TYPE   'A'
                NUMBER g_message_fields-msgno
                WITH   g_message_fields-msgv1 g_message_fields-msgv2
                       g_message_fields-msgv3 g_message_fields-msgv4.
      ENDIF.
    ENDFORM.                    "inbound_processing

  • Non-English characters File issue with RSEINB00 Program

    Hi,
    We use RESEINB00 program to process IDoc files - to create Master data such as Material Master. Our IDoc file has some special characters - like crème. This letter 'è' would be treated as 'e#' and the Program terminates.
    Inside the program RSEINB00, they used READ DATASET . Had they used 'IN TEXT MODE', this issue would not have come, I guess.
    One option, the least preferred, is that to copy this program and change that line of code. But, is there any other option for this? Please advise.
    Thanks in advance,
    Ram.

    I am n't sure what SAP version you are using , check for OSS notes & update accordingly
    The code below is the latest code..
    clear l_rc.
    if l_unicode = c_true.
        catch system-exceptions convt_codepage_init = 9.
        open dataset l_filename for input in text mode encoding utf-8
           replacement character l_repchar message l_os_message.
        l_rc = sy-subrc.
        endcatch.
      else.
        catch system-exceptions convt_codepage_init = 9.
        open dataset l_filename for input in text mode encoding non-unicode
          replacement character l_repchar message l_os_message.
        l_rc = sy-subrc.
        endcatch.
      endif.
      if sy-subrc = 9.
        l_rc = sy-subrc.
      endif.

  • How to Pass Flat file to RSEINB00 Standard Program

    Hi,
    I have file placed in Application server,
    Can Any body suggest me the steps to follow,
    So that I can pass the flat file to the Standard SAP Program RSEINB00.
    Thanks
    Edited by: rakhnil21 on Oct 21, 2009 11:35 AM

    Hi Rakhnil,
       Check out the transaction WE21, also i would suggest you go through the below link to get you more info on how to set up IDoc processing:
    Link: [IDocs|http://documentation.softwareag.com/webmethods/sap231/pages/sapdist.htm#d0e14627]
    Regards,
    Himanshu

  • RSEINB00 flat file to idoc uploading in XI

    Hi,
    I've searched a lot of posts here in SDN on how to use RSEINB00 to upload flat file idocs, and i tend to get lost as there are conflicting answers...
    can anyone give me a clear/consolidated answer on how to use RSEINB00 in XI?
    correct me if i'm wrong but the process is basically to upload a flat file idoc (residing in the XI application server) using RSEINB00, then after successful upload you're supposed to see your idoc in SXMB_MONI (the idoc flat file will be converted to idoc xml using the meta data loaded automatically in IDX2 and be passed to the xi pipeline)
    is it needed to finish first all the setup in Integration Builder to enable the automatic loading of the metadata in IDX2?
    Also what is the difference between executing RSEINB00 in a 4.5B to 4.5B  system, and a 4.5B to XI system?  (because rseinb00 is existing even before xi).  is it the idoc xml convertion? if it is then definitely the importing of the idoc type in XI Integration Builder Design is necessary right?
    Hope someone can explain clearly
    I'll be more than willing to give points to the answer that will completely explain the concept..
    Thanks in advance

    Hi HJ,
    Report RSEINB00 is no dedicated XI Report. You will NOT see the IDOC in SXMB_MONI.
    Report RSEINB00 just calls a function module:
    IDOC_INBOUND_FROM_FILE
    This is the documentation of IDOC_INBOUND_FROM_FILE unfortunately just in german language available:
    +Der Funktionsbaustein führt die IDoc-Eingangsverarbeitung von
    IDocs aus, die sich in der übergebenen Datei (Dataset) befinden.
    Die IDocs werden aus der Ddatei ausgelesen und auf der IDoc-Datenbank
    abgelegt. IDocs, die weiterverarbeitbar sind, werden asynchron an die Anwendung weitergegeben. Die zeitliche Entkopplung zwischen Auslesen und Abspeichern auf der einen Seite und der Verarbeitung durch die Anwendung auf der anderen Seite wird durch Erzeugen eines Workflow-Ereignisses bewerkstelligt. Der Ereignis-Container nimmt i.a. mehr als nur eine IDoc-Nummer auf. Die Aufgabe, die durch das Ereignis ausgelöst wird, reicht alle IDocs and die Anwendung weiter.
    Ein COMMIT wird nicht nach Verarbeitung jedes einzelnen IDocs abgesetzt, sondern durch einen Datensatzzähler gesteuert, ausgelöst.+
    Normally IDOCs are posted to a R/3 System and will processed automatically.
    If you have a IDOC lying in the file system of your R/3 you can upload this file and trigger the automatic processing. Your R/3 knows what to do with every single IDOC type. IDOCs point to
    a) function modules or
    b) workflows
    Hope that helps
    Regards Mario

  • #'s coming up in IDOC when IDOC flatfile processed with RSEINB00

    Hi,
    We have given IDOCs in flatfile structure which are needed to be loaded in backend SAP R/3 through XI and it needs some transformation,so we are using XI for mapping in between,otherwise we would have processed directly into R3.
    Basically we are placing IDOC Flatfile in a folder and we are running RSEINB00 program on XI through a file port in XI and IDOCS are getting created in Backend SAP R/3.
    When we place IDOC flatfile in Windows folder and process the file we are getting #s in IDOC fileds(many fields) ,but we don't see any #s when we process the IDOC flatfile when placing IDOC flatfile on UNIX .Our XI/PI is running on UNIX.
    please help,what causing the problem?
    Thank you,
    Regards,
    Sathish

    Hi Ravi kanth,
    I see them (#s)in IDOC fields in backend SAP R/3 once the IDOC flatfile got processed.
    as we are running RSEINB00 report on XI ,we noticed that empty tags are coming (from Windows OS Folder)in SXMB_MONI even before my mapping execution ,I think they are being populated as # in IDOC.but dont see this problem when IDOC file processed from UNIX folder.
    You think ,if we save file in UTF-8 format or Binary might help rather than ANSI format and process it.
    Thank you,
    Sathish

  • Loading flat idoc via report RSEINB00 into integration server fails

    Hi,
    we have PI/700.
    We get idocs (in flat format NOT XML) via filesystem from an external partner.
    Now I try to load these idocs with the report RSEINB00 into my integration server.
    My problem is, that the report says that the sender port + client(of the idoc control segment) is not a service in the integration directory.
    E.g.: SAPWR3 and client 550 (this WR3 is the system + client of the external partner who exports the idocs to filesystem).
    For testing I changed the idoc control segment and inserted an existing business system + a correct client (of our SAP-System) instead of the SAP-port used by the external partner.
    --> It worked!!!
    Do I have to enter the SAP-System of the external partner in my SLD?
    If yes - as a SAP-System (including client,...) or a third party system or...?
    Any ideas?
    Thanks for your help!
    Regards
    Wolfgang

    HI,
    Regd. Party config etc , you can refer this-
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b0b355ae-0501-0010-3b83-8f2bb566fa47
    /people/sravya.talanki2/blog/2005/08/17/outbound-idocs--work-around-using-party
    More -
    http://help.sap.com/saphelp_nw04/helpdata/en/81/104bb1fbab254c8644877c7f856bbf/content.htm
    <i>When I enter the sender-system of the external idocs into my SLD, do I have do insert it as a third party system or a SAP System?</i>
    >>SAP system.
    Hope this helps,
    Regards,
    Moorthy

  • Suggestion on RSEINB00 ( file to idoc)

    Hi,
        What is the use of port in program RSEINB00. How does the program identifies to which idoc it has to convert the flat file.
        Should we maintain any control record in the header of the flat file.If yes can anybody give me the format of the file which RSEINB00 identifies.
        Will  I be maintain a remote location for flat file in program RSEINB00 through FTP connection or the file has to from application server itself.
    Thanks & Regards,
    Karthik.k

    Hi Krishnan,
    You need to pass the control record.
    Std code checks whether the first record is a control record and then on tries to fetch the other details.
    I suggest one debug of IDOC_INBOUND_FROM_FILE or the main program RSEINB00 would help a lot.
    Rgds,
    HR

  • RSEINB00 - Getting Error File cannot be Open - 1st Rec isn't IDOC contr rec

    Hi,
    I am trying to execute the Standard program for inbound IDoc Processing RSEINB00.
    A flat file has been placed in the application server.
    I have confirgured the port details for executing this program.
    the program giving an exception that  file cannot be opened.
    When I went into the program and tried to find out the Error number it is Saying " File cannot be opened as the first record in the file is not an IDoc control record".
    Can anybody suggest me what will be the structure or format of the IDoc Control record to execute this Program.
    Can any body please provide me a sample file to execute this program.
    please through some light for this requireme

    Hi gaurav,
    thanks for you reply.
    Can you give an example
    thanks & regards

  • Acknowledgements being requested - when running rseinb00 in XI IS

    We are running program rseinb00 in XI integration server - to convert idoc text files to xmls - the convertion to xml is working fine - except that the idoc-xml message sent by the above program is requesting an acknowledgement - which we do not want it to -
    I tried running report IDX_NOALE on the XI integration server - setting the flag to 'Do not request acknowledgement' for the sender port and client I setup on IDX1 to receive the incoming idocs.
    But when the idoc-xml on the integration server is seen on sxmb_moni- I still see - acknowledgement requests on this message
    Is there any other program/configuration option - wherein the acknowledgement request can be switched off - when running the program rseinb00
    Thanks for your pointers, suggestions - correct answers will be rewarded rightaway.

    Hi
        Anybody out there - not experienced this behaviour with running RSEINB00 on XI IS - please help !!!!! This is a time-critical issue we are having at the 11th hour...

  • Parallel Processing (RSEINB00)

    Hi,
    I am trying to achieve parrallel processing for the below scenario:
    I am trying to create a child job for processing each file. 
    Suppose if i have 5 files, in this case i will have one Main Job & 5 child Jobs. Apprecaite if anyone has come across such scenario.
    Each file can have two types of data. One set of data for trasferring to application server & another set for posting idocs.
    LOOP AT t_files_to_proc INTO wl_files_to_proc.
    *-- This perform builds two sets of data  [  Data Set-1 for transferring file onto App Server
    *--                                                                 Data Set-2 for posting idocs using RSEINB00     ]
       PERFORM build_table_data.
    *-- Data Set-1 for transferring file onto App Server
    PERFORM transfer_data_to_appserver.   
    *-- Data Set-2 for posting idocs using RSEINB00    
    PERFORM submit_rseinb00.
    ENDLOOP.

    Hi rao,
    here is a sample, adapt to your needs:
    [Easily implement parallel processing in online and batch processing |https://wiki.sdn.sap.com/wiki/display/Snippets/Easilyimplementparallelprocessinginonlineandbatchprocessing]
    Regards,
    Clemens

  • Write the Error log from background Job to the Spool request

    Hi ,
    I have a situation where in i need to capture the error log of a Z program which runs as a background job and write that log into the spool request. My Z program calls runs RSEINB00 program using the SUBMIT statement. When this Job fails the error log can be seen in SM37. But i need this error log to be sent in to a spool.
    I can read the error log using the BP_JOBLOG_READ FM and can also create a spool using the RSPO_SPOOL_OPEN FM.
    The problem is, when the Submit statement executes, due to internal valdation in the RSEINB00 program the program terminates. Due to this it is not able to perform the SY-SUBRC Check and thus doesn't read the log.
    Can anybody suggest me how to overcome this problem. I am attaching the code for your refernece.
    SUBMIT RSEINB00
           USING SELECTION-SET 'TEST2'
                           TO SAP-SPOOL
                           LIST NAME 'LOCL'
                           IMMEDIATELY space
                           KEEP IN SPOOL 'X'
           AND RETURN.
    <b>If sy-subrc <> 0.</b>           
                 CALL FUNCTION 'BP_JOBLOG_READ'
                  EXPORTING
                    CLIENT                      = SY-MANDT
                    JOBCOUNT                    = i_tbtco-jobcount
                    JOBLOG                      = i_tbtco-joblog
                    JOBNAME                     = i_tbtco-jobname
                   TABLES
                     JOBLOGTBL                   = l_joblog
                 IF SY-SUBRC <> 0.
                 else.
                    message i002 with l_joblog-msgv1.
                 ENDIF.
    <b>
    ENDIF.</b>
    Rgds,
    Kewal
    P.S. : any other approach to solve this problem will be appreciated too and the points will be rewarded suitably.

    If I select a job in SM37 and I click on "spool" I get a list with separate spool entries for each of the steps, e. g.
    Programmname/Kommand   Programmtyp   Spoolliste
    Z_MM_STAT_UPDATE_WERK  ABAP             1707445
    ZSLEEP                 Ext. Kommando
    Z_MM_STAT_UPDATE_WERK  ABAP             1707459
    ZSLEEP                 Ext. Kommando
    Z_MM_STAT_UPDATE_MARA  ABAP             1721423
    ZSLEEP                 Ext. Kommando
    Z_MM_STAT_UPDATE_WERK  ABAP             1721437
    Z_MM_STAT_UPDATE_MARA  ABAP             1721446
    Z_MM_STAT_UPDATE_WERK  ABAP             1721447
    Z_MM_STAT_UPDATE_VKORG ABAP             1721471
    ZSLEEP                 Ext. Kommando
    Z_MM_STAT_UPDATE_VKORG ABAP             1721521
    ZSLEEP                 Ext. Kommando
    Z_MM_STAT_UPDATE_VKORG ABAP             1721816
    It's in German but I'm sure you get the idea. For each Z_MM_STAT_UPDATE and variant I have a separate spool list that I can display.
    Markus

  • Error in ALE-IDOC related to HR data posting in ECC 6.0

    Hello People,
    Upgradation done from 4.6B to ECC 6.0.
    Here the data comes from the 3rd part s/w and then gets posted through a Z program which in tern calls SAP standard program " RSEINB00" and FM "IDOC_INBOUND_FROM_FILE" is used in this std program to post the data to the corresponding HR tables through IDOC postings.
    ALE-IDOC Z program works fine in 4.6B but gives error in ECC 6.0.
    Error in subroutine read_namtb for structure of infotype Message no. 5-109 Diagnosis An error has occurred in subroutine read_namtb for structure of infotype .
    Procedure
    Check the entry for infotype in table T777D (structure, IDoc segment, expanded structure) and the corresponding structures.
    As per the error message it seems that some table () needs to be maintained with some values, but this was working fine with the 4.6 B with current settings.
    Is this error due to version change to ECC 6.0? What extra settings need to be done with respect to IDOC so that the posting program works fine without giving the stated error. Kindly let me know.
    Thanks and regards,
    Gaurav Joshi.

    Please keep in mind ECC 6.0 is an UniCode based system.
    as 4.6C was not,
    did the Z-program have been tested before in the current environment?
    Some special functions (keywords hints ...) are no longer supported after the upgrade.,
    this was shown during the upgrade in the unicode migration tools
    For sure all the own programms needs to be verfied, after an upgrade.
    commonly this should be done
    in the quality assurance test to avoid touble in production.

  • Processing Inbound IDOC's from FTP.

    Hi,
             I have an issue where IDOC's (WPUBON01 & DEBMAS01) are being saved in ftp folder and once these IDOC's are saved, we have to process it in SAP System, i would like to know the simple way of having these IDOC's processed in Unix based SAP system as the IDOC's will be coming in at Real time evey minutes or Seconds.
             is there a way to do it with out ABAP process i mean just by using the Unix Scripts or by triggering the SAP background job.
    Thanks in Advance.

    Hi,
    for testing purposes you can trigger inbound IDoc processing in transaction WE16. Otherwise you can schedule program RSEINB00 to periodically import IDoc into system. You can make a copy of that program and made changes if you need to add some extra logic.
    Cheers

Maybe you are looking for

  • Conditions in delivery

    Dear MM consultants, I am craeting STO between plants. I craeted fright condition and assigned to vendor in delivery stage. After GR in receiving plant when i try to do MIRO for fright vendor system show no planned cost in PO. My reqt is supply plant

  • Aperture won't launch a second time... must restart Mac

    I have a huge amount of photos; so many that I had to break the library down into several smaller ones. Until yesterday, everything worked fine. I could open Aperture by double clicking on any library or switch between them with ease. Today, however,

  • Oracle RDF and Oracle Business Rules & Protege

    A couple of questions: 1.) Has anyone used Protege to create frame-based ontologies which can somehow be used with Oracle Business Rules? 2.) Has anyone used Protege along with the RDF storage functionality in Oracle? Thanks.

  • White Balance not working

    I'm using Aperture 3.2.2 and when I use the white balance 'pipette' tool to select neutral grey area no changes are applied.  I think I know how this tool works as I have used it in the past.  The image I am trying to adjust I also know needs adjusti

  • Stock in alternative unit

    Hello, Is there a way in SAP to maintain stock in alternative unit at plant level? Would appreciate your input. UV