RFC to pull the Idoc's from FTP

Hey,
     Is there any standard RFC to pull the IDOCs from an FTP server into the R3.
Please help.

>          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.
You can use a simple Unix script with "startrfc" and calling EDI_DATA_INCOMING as user <sid>adm (excerpt - not the full script):
#! /bin/ksh
DEST=<SID>
SYSTEMID=<SID>
USER=<SU01-USERNAME>
PASSWORD=<PASSWORD>
CLIENT=<CLIENT>
LANG=<LANGUAGE>
MSGSERVER=<MESSAGESERVER>
SYSTEM=<SYSTEMNUMER>
GATEWAY=<GATEWAYHOST>
GWSERV=<GATEWAYSERVICE>
FUNCTION=EDI_DATA_INCOMING
PROGRAM=/usr/sap/<SID>/SYS/exe/run/startrfc
LOGONGROUP=<LOGONGROUP>
for i in `ls <directory>`
do
        $PROGRAM -balanced -3 -d $DEST -u $USER -p $PASSWORD -c $CLIENT \
            -I $LANG -s $DEST -F $FUNCTION -g $LOGONGROUP \
            -h $MSGSERVER -E PATHNAME=$i -E PORT=<WE20-PORT>
done;
You can schedule that using cron to run every minute.
You have to take care of:
- not trying to import not-yet-completely-transferred files (we use a certain naming convention such as uploading with a prefixed "tmp" and after the upload is complete renaming the file. This must be done on the FTP sender side however)
- not try to import the same file twice. You may avoid that by setting a lock (tempfile) and check for it each time the script runs. If it exists, exit the script.
Markus

Similar Messages

  • Inter company PO is not pulling the valuation price from Material Master

    Hi Experts,
    We have a scenario, Inter-company PO with pricing procedure which pulls Material Price from Material Master (Std Price), similar to intra company PO
    Even after maintaining the std price in the supplying plant , system is not pulling the Valuation price from Material master only for a particular Material
    I checked the Plant level attributes ( for ex: Plant Mat status, client level status and everything looks fine )
    Could you guys please mention what would be the issue ?
    Thanks in advance
    Illayaraja

    Hi,
    Is there a routine which pulls the value? then you need debug with ABAP help for that routine where its failing to pull
    Thanks
    Diwakar

  • Phone works great but when on a call proximity sensor kicks in turns off the screen. When I pull the phone away from my head screen is still blank. The force hangup/lock is the only way to bring the screen back on

    hi,
    phone works great but when on a call proximity sensor kicks in turns off the screen. When I pull the phone away from my head screen is still blank. The force hangup/lock is the only way to bring the screen back on.
    I purchaged it before one month onl. So i wont understand how it comes. Please help me. I am waiting for you reply.

    "Your face is so ugly, it broke your phone!" Ha ha. Get it? How I was joking there? About your iPhone not working correctly after... <sigh>
    But seriously, you said the situation only happens when you have been on a long call, so maybe the iPhone is just autolockng?

  • How to change the IDOC Status from 30 to 03

    Hi Friends,
    In the Partner Profiles Collect IDOCS option is Selected and the Output mode is 4.
    In my Custom Program i am Using the Function Module MASTER_IDOC_DISTRIBUTE to generate the IDOCs
    I am getting the IDOCs of Status 30.
    then in my Custom Program, I am Submitting the IDOCs to RSEOUT00 program.
    to change the IDOC status from 30 to 03.
      SUBMIT rseout00 USING SELECTION-SCREEN '1000'
                   WITH docnum  IN  gt_range_idocs
                   WITH p_compl EQ 'Y'
                   AND RETURN.
    but still i am not getting the IDOCs of changed status.
    I need to get the Changed IDOC status and if the IDOC status is not changed then I need to generate an Error file for the IDOCs data and send that data to customers as a mail.
    so my requirment is to call the RSEOUT00 in the Custom Program and Change the IDOCs Status to 03.
      When i am Executing the RSEOUT00 Indidually by giving the IDOCs numbers, then the IDOCs Status is going to change to 03 from 30.
    Kindly Guide me how to proceed furthur
    Thanks in Advance,
    Ganesh

    Thanks Shrishit,
    RC1_IDOC_SET_STATUS changing the Status from 30 to 03.
    Its fine, But my Question is will IDOC Data will be reached to XI Server or not.??
    means is the functionality of this Program is same as the RSEOUT00.
    MY job is to change Status from 30 to 03 only
    and then Check the Status of those IDOCs, and if the IDOC is not sended to XI  i.e.;03 status, then I need to send the Details of IDOC (i.e.; data in filed IDOC) to Customer Mail ID through an Attachement.
    I hope you Understood my AIM, why I need to change the Status in my Custom Program only, by submitting IDOCs to this report .
    Kindly waiting for your reply,
    Thanks in Advance,
    Ganesh

  • ALE Configuration to Download the IDOC to a FTP Location

    Hello SDN,
    I need to generate the IDOCs and save them in text format onto an FTP Location specified by the client.
    I understand, I need to setup the an TCP/IP RFC Destination and Create a FIle Port Specifying the FTP directory path.
    Please suggest the necessary setup/configuration for the same along with checkpoints.
    Thanks,
    Manu
    Moderator message: duplicate post locked.
    Edited by: Thomas Zloch on Apr 7, 2011 9:49 AM

    Hi,
    Guess it looks like the output is getting proposed but its not getting processed. Check the output type configuration. Check the TIme Settings in the output type configuration.
    It is possible to set the Time when the output must be processed. Is it on SAVE or is it set to other settings. If its set to via background job then the background job must be run to process the output types.
    Check and let me know if all is fine at the output type configuration.
    Cheers
    VJ

  • Issue in  pulling  the execution plan from awrsqrpt report.

    Hi All,
    In my production database , recently we faced some performance issue in daily job and i like to pull the old execution plan of that particular job from awrsqrpt.sql report but i got below error.
    Interesting information is i can able to generate the addm reports & awr reports between the same SNAP id's Why not AWRSQRPT report ???.
    Version : Oracle 11gR2
    Error :
    +++++++++
    Specify the SQL Id
    ~~~~~~~~~~~~~~~~~~
    Enter value for sql_id: b9shw6uakgbdt
    SQL ID specified: b9shw6uakgbdt
    declare
    ERROR at line 1:
    ORA-20025: SQL ID b9shw6uakgbdt does not exist for this database/instance
    ORA-06512: at line 22
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    Old history of SQL id :
    ++++++++++++++++++++
    SQL> select distinct SNAP_ID,SESSION_ID,SESSION_SERIAL#,USER_ID, SQL_EXEC_START from dba_hist_active_sess_history where sql_id='b9shw6uakgbdt' order by SQL_EXEC_START;
    SNAP_ID SESSION_ID SESSION_SERIAL# USER_ID SQL_EXEC_
    13095 1026 23869 86 29-AUG-12
    13096 1026 23869 86 29-AUG-12
    13118 582 14603 95 30-AUG-12
    13119 582 14603 95 30-AUG-12
    13139 708 51763 95 30-AUG-12
    13140 708 51763 95 30-AUG-12
    13142 900 2897 86 31-AUG-12
    13143 900 2897 86 31-AUG-12
    13215 1285 62559 86 03-SEP-12
    13216 1285 62559 86 03-SEP-12
    13238 1283 9057 86 04-SEP-12
    13239 1283 9057 86 04-SEP-12
    Thanks

    Hi,
    Are you using a cluster database (RAC), and running this report on the wrong instance?
    This report validates the SQL ID you specify against the dba_hist_sqlstat view, so check there if you have that SQL ID:
    select dbid, instance_number, snap_id
    from dba_hist_sqlstat
    where sql_id='b9shw6uakgbdt';Regards.
    Nelson

  • 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

  • How to check the Idocs sent from SAP system

    How to check the outbound Idocs sent from SAP system to target systems.
    How to know the message types and target systems.

    Hi,
    In Addition with the above mentioned transaction code(WE02), u can check out idocs in these table - EDIDC, EDID4, EDIDS.  Depending on different status you can differentiate them as Inbound or Outbound Idocs...
    Cheers...
    Santosh.
    <i><b>Mark All Usefull Answers...</b></i>

  • IdocReceiver not processing all the idocs produced from PFAL in OrgModeler

    Dear experts,
    We are on below Nakisa version.
    Name Nakisa OrgModeler
    Version 4.0 SP1
    Build 0910021700
    I ran the initial load for the OrgModeler and it produced around 500 idocs. When I followed the command line interface, it processed around 56 idocs. The idoc status becomes 03 (Data Processed to Port OK) at the R/3 end for all the idocs. However idocreceiver is skipping many idocs in between and processing only few. I checked the database for HRP1000 and HRP1001 and the records loaded are not even 20% of the records in R/3 for the objects and relationships(HRP1000 obj types C, O, Q,S and HRP1001 002/003/007/008/011/012 etc) we filter at the distribution model.
    I think  the issue might not be an authorzation problem as its fetching the records from SAP R/3 and loading few records in the database.
    I checked with my Basis consultant about another reciever running and grabing the missing records. He confirmed that only one idocreceiver running at nakisa end. I even happened to check the SAP gateway server(SMGW) and with TP Name NAKIDOC and symbollic destination NAK_RFC_DEST I can see only one record which is appearing on and off. When the record appear on the gatway server, the corresponding idoc being processed at command line interface. Till the other record appears on the sap gateway server, the idocs are missing at the command line interface.
    Below is the screen shot from idocreceiver. (After the idoc 1695358 it processed 1695366 then 1695372 etc)
    Any suggestions would be a great help.

    Dear All,
    My Basis guy finally realised that he started a Jco provider at the netweaver end and causing the issue. He stopped it and all the idocs processed successfully.
    I learned the below points and might useful for few folks.
    1.No idoc being processed and all the idocs failing with 'Bean IDOC_INBOUND_ASYNCHRONOUS not found on host'. It should be an authorization error and assigning the Authorization Object: S_IDOCDEFT (EDI_TCD = "WE30"; ACTVT = "03") will resolve the issue.
    2. Few idocs are being processed at idoc receiver end.
    i. Check for multiple idoc receivers which might be active and running.
    ii. Check the number of connections and timeout parameters and set them to the maximum.
    Thanks,
    Manohar

  • Pulling the latest records from the datasource to BW

    Hi,
    I need to pull the most recent records from a custom table on R/3 side. I make use of infoset query to retrieve data from two different tables. One custom table and the other SAP table MAKT. I created a transaction data... Datasource make use of infoset to extract the data on R/3 side.
    Is there a place where I can write code to play around with the data... is there any user exit to write the code for this purpose.
    Need help...

    Trx CMOD:
    1. Enter the Project name; if you dont have an existing project and u have to create one.
    Select a good name for a project..say ZBIW..and then enter the name and click on create button.It will take u to new screen.There give short text for project name.
    Above u will see 'enhancement assignments' button.Click it and in the new screen add enhancement RSAP0001.
    Save and remember to activate project too..
    (save in appropriate transport request)
    2. go to components select the required function module.
    EXIT_SAPLRSAP_001 for Transactional DS
    EXIT_SAPLRSAP_002 for Master DS
    Hope it helps.
    Regards

  • Figuring out the IDOC reference from XI

    Hi All,
    Is there anyway where we can get the reference of the IDOC that is posted from R/3 to XI, in some tables..like we have for R/3.
    I want to find out with the this Identifier...what happened to it, when it reached XI..
    Basically the status of the IDOC...can be got from the MONI..but if it is 15,000 records..i Guess i would need some table rather than a log.

    Hi,
    It depends on a number of factors.
    1.Are all these 1000 Idoc's hitting XI at the same .
    2. Are you using a BPM?
    We faced a smilar problem once when the SAP system was sending us around 5 k Idoc's at the same time. We had to avoid a BPM as 5 K idocs hitting XI would mean 5 k BPM instances running parrallely which ofcourse would have lead to  memory and Queue issues/
    We also had SAP fine tune our prod and pre prod systems to take such high load and after that never faced this issue.
    Likewise, if you are on dev, i guess the hardware etc would not have been quicksized and configured for ideal perfromance. But , as you move into higher environments, if all settings are done fine, you are not going to face this issue in an ideal situation!
    Regards
    Bhavesh

  • Why is iTunes pulling the podcast info from my blog? Conflicting info.

    Hi there. iTunes is pulling the title and description of my blog and listing it as the info for my podcast, instead of the podcast info I have in my feedburner account.
    My feedburner feed is:http://feeds.feedburner.com/pleasefeedrichamooi
    My blog is:http://www.richamooi.com/
    Do you know why? Your help is greatly appreciated.

    Your iTunes Store page is at
    http://itunes.apple.com/gb/podcast/rich-amooi/id526262280
    This is showing the info in the Feedburner feed: for example the 'Podcast Description' shows the contents of the 'itunes:summary' field:
    'Romantic Comedies, Parodies, and Absurdities. All 100% Gluten-free.'
    and similarly, for the only episodes, the 'itunes:subtitle' and 'itunes:summary' tags both read
    'This was a radio commercial I wrote and voiced for Michael's Construction.'
    and this is what shows in iTunes for the episode. The title, 'Rich Amooi', is the same in the feed and in iTunes, so I'm not clear what it is that you are seeing as wrong.

  • RFC to exchange the tax data from r3 to srm

    Hi Gurus,
    We are using SRM ECS and our backend is connected to TAXWARE. Currently tax code in backend is determined using condition technique, can you please let me know how can we implement this in SRM. or is there any  RFC/BAPI that can be used to trigger the condition schema to determine tax code in r3 and transfer it to SRM. any suggestions would be appreciated.
    Regards
    Deepu

    Hi
    Yes its true that we have to select the option "tax calculation occurs in R/3" to populate the tax amount in SRM from R/3 connected to TAXWARE, is it not true.
    You use the Business Add-In BBP_TAX_MAP_BADI to change or supplement entries in the tables that are used for tax calculation:
    Several systems are provided for tax calculation. The Enterprise Buyer data is mapped to the structures of the selected system just before calculation. The BAdI is also called at this point so that you are able to add and change the data. Dependent on the system you select for tax calculation ( Define System for Tax Calculation), use the following methods and their parameters:
    MAP_STRUCTURE_R3 (Mapping of the EBP Structures for R/3)
    Import
    IS_BBP_HEADER (Interface header data of procurement document)
    IT_BBP_ITEM (Item data)
    IT_BBP_TAX (Taxes)
    IT_BBP_ACC (Account assignment)
    IT_BBP_PARTNER (Business partner)
    IT_R3_ITEM (Import for calculation in R/3)
    Export
    ET_R3_ITEM (Export for calculation in R/3)
    Regards
    Virender Singh

  • Do we have a way to pull the license key from each Oracle Instance?

    Dear all Oracle Experts,
    I don't remember having to put the license key whenever I create the oracle instance. But is there away to pull it from the instance?

    The difference between oracle software and other software such as microsoft, is that you don't need a license key to use the software, it is already open and fully functional. Oracle assumes customers will use the software they are allowed to use according to the license agreement. Customers would not be happy to have a lawsuit on their desktops due to improperly using copyrighted material.
    ~ Madrid
    http://hrivera99.blogspot.com/

  • Quick pull the best applications from black app world

    you can find quick pull in black app world
    Unlike the red power button on your phone which merely reloads your device, QuickPull will actually refresh the device, freeing up memory and increasing performance!
    QuickPull Free has more than 1,000,000 users to date.
    Schedule to run a QuickPull at a certain time each DAY, or multiple times each WEEK with NEW convenient scheduling features to keep your memory and performance running at its best.
    You can even set a MEMORY threshold that will allow QuickPull™ to alert you when your available memory drops too low. If the memory drops, memory monitoring will prompt you to run a QuickPull™
    QuickPull is extremely easy and convenient to use.
    FEATURES
        * FREE
        * Simulates a "battery pull" equivalent reset.
        * Integrates with AutoStandby.
        * Ability to schedule to run daily.
        * Automatically accepts reset dialog.
        * Advanced scheduling, run a QuickPull daily or on certain days each week.
        * Memory monitoring.
        * Set your own memory threshold.
        * Prompted automatic reboots if your memory is less than your set threshold, with the ability to cancel a reboot.
        * Scheduled QuickPulls will wait until phone calls are complete.
        * Receive automatic notifications on missed resets due to a locked or holstered device.
        * 5 second warning notice can cancel pending QuickPull runs to keep from interfering with other tasks.
        * New and enhanced, user-friendly interface.
        * Toggle schedule on or off without losing any settings.
        * No technical support
        * (for technical support and no ads, please consider QuickPull Pro)
    Don't forget to CLICK that BLACK or GRAY Kudos square if some one was helpful.
    Also please mark it as a solution if your problem is solved.

    Do you use Quick pull free or the full version?  I used to have quick pull lite until my Tour broke and the replacement would only download the newer quickpull lite.  I don't like the screen that pops up and lets you know your phone was reset.  Quick pull lite didn't have that.  It just restarted and was there ready to be used.
    I was wondering if the full version has that pop up too.

Maybe you are looking for

  • BOM Data after explosion

    Hi Gurus, I am working on to get BOM information in BI and using a FM which is calling Function  CS_BOM_EXPL_MAT_V2. Here is the entire FM. FUNCTION ybwpp_bom_exp_itm_3rd_lvl. ""Local Interface: *"  IMPORTING *"     REFERENCE(I_REQUNR) TYPE  SRSC_S_I

  • Default price list

    Hello On stock transactions the default price list is last purchase price and we do not want this we want the last calculated price to appear and be the default price list as it is the one used for journal booking. Please tell me how to do it Thank y

  • Dispatching Event in ItemRenderer Component?

    Am I going about this the right way? Here's my situation: I have a custom itemRenderer for a List. This itemRenderer consists mainly of a checkbox and label, but has a few additional details in it (which is why I'm not using a drop-in itemRenderer).

  • WRT54GS v.7 - Internet browsing gradually slows down when assigned an IP address.

    After assigning an IP address to a PC connected via wire to WRT54GS v.7, internet browsing gradually goes to a crawl and practically stop working. When the address is assigned by DHCP, there are no issues. Is this a known issue with the router? Are t

  • ILLUSTRATOR/PHOTOSHOP onscreen image sizes differ.

    Why does an image appear larger in Photoshop cs3 than in Illustrator cs3. The document has the same resolution and is at the same magnification in both programs