IDOC-FILE - If IDOC is not triggered, need to genarate file with constants

Hi Friends,
I have a scenario like this.
IDOC to FILE scenario.
1. IDOC will get triggerd everyday and flat file will be genatated at specified location.
2. If IDOC is not genarated for the day, need to genarate falt file with some constants.
Can anyone help me on this.
Thanks in advance.

Hi Vivek,
   I assume that Idocs are being triggred from a different system say SAP r/3 system to XI server. Since you do not have any messages to verify whether idoc has been triggred for the day or not, you have to keep a log in the SAP r/3 system in form of a table. This table (say Z_IDOC_TIME) will contain one entry having date and time when last idoc has been sent to PI system. Now one ABAP code is required which will continuously read the contents of last entry in the ZIDOC_TIME and compare with current server time. If the difference between the time is found to be more or equal to 24 hours then emails can be triggred to a fixed set of recipients. The set of recipients may be made dynamic by storing them in a table say ZEMAILID. So the ABAP program will take contents from both Z_IDOC_TIME and ZEMAILID. The flat file with constants can be attached with the emails.
In case you do not want emails to be sent then you would require batch jobs which will run in background. This batch job will check at a particular time if iodcs were sent for the day or not. If they not been sent then it will call ABAP code to trigger iodcs with a different data set than what is expected by PI in normal conditions (may be you can populate the idoc with the constants you would like in the file). When such an idoc is received in PI then you can easily generate an flat file with required constants.
regards
Anupam

Similar Messages

  • Service to checkin file if it does not exist, else version the file

    Hi All,
    From java layer I use WEBDAV and use PUT command and this command creates a new file if it does not exist, and if the file exists it versions the existing file.
    I have developed a java component to unzip a folder and checkin all individual files and folders into UCM whenever a zip file is checked in.I would like similar feature in my UCM component.i.e whenever files are unzipped they should always be versioned if they exist.I use the below code,but it always creates a new file(even if file with same name exists in the same folder)
    m_binder.setEnvironment(SharedObjects.getEnvironment());
    m_binder.putLocal("dDocName","");
    m_binder.putLocal("IsAutoNumber", "true");
    m_binder.putLocal("AutoNumberPrefix", "olm_");
    m_binder.putLocal("IdcService","CHECKIN_NEW");
    m_binder.putLocal("dDocTitle",entityName);
    m_binder.putLocal("xCollectionID",parentId);
    m_binder.putLocal("dDocType", "Document");
    m_binder.putLocal("dSecurityGroup","Public");
    m_binder.putLocal("dDocAuthor","sysadmin");
    m_binder.putLocal("dCreateDate","");
    m_binder.putLocal("primaryFile", entryName);
    executeService(ws, m_binder,"sysadmin",true);
    So, I would like to know, if there is a service to achieve the same or is there a parameter I can add in m_binder.putLocal to achieve the same? OR am I suppose to query the UCM Database to check for existence of the file and if it exists I need to manually check out and check it in?
    Thanks,
    Shwetha

    Thanks Fabian and Ryan for your feedback.
    So I queried db to retrieve the ddocName and if no rows are returned my code checks in new file. But if rows are returned I checkout the file using CHECKOUT_BY_NAME and then checkin using CHECKIN_UNIVERSAL using same ddocName.
    Creating/checking in new file is successful.
    For existing files the checkout is successful.I also confirmed the file is checked out by querying documenthistory and ensuring a new row is created with dction = 'Check out'
    But post checkout when i try to re-check using CHECKIN_UNIVERSAL command, I receive the below exception
    intradoc.common.ServiceException: !csUnableToCheckIn,OLM_002103!csCheckinItemExists
    at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2115)
    at intradoc.server.Service.buildServiceException(Service.java:2326)
    at intradoc.server.Service.createServiceExceptionEx(Service.java:2320)
    at intradoc.server.Service.createServiceException(Service.java:2315)
    What am I missing here?
    Code snippet:
    m_binder.setEnvironment(SharedObjects.getEnvironment());
    m_binder.putLocal("IsAutoNumber", "true");
    m_binder.putLocal("AutoNumberPrefix", "olm_");
    String docName = getDocname(ws, parentId, entityName);
    if(docName != null && docName.equals("FILENOTFOUND")) {
    System.out.println("Creating new file");
    System.out.println("parentId is "+ parentId);
    m_binder.putLocal("IdcService","CHECKIN_UNIVERSAL");
    m_binder.putLocal("dDocName","");
    m_binder.putLocal("dDocTitle",entityName);
    m_binder.putLocal("xCollectionID",parentId);
    m_binder.putLocal("dDocType", "Document");
    m_binder.putLocal("dSecurityGroup","Public");
    m_binder.putLocal("dDocAuthor","sysadmin");
    m_binder.putLocal ("doFileCopy", "1");
    m_binder.putLocal("dCreateDate","");
    m_binder.putLocal("primaryFile", entryName);
    executeService(ws, m_binder,"sysadmin",true);
    System.out.println("Created file successfully");
    }else{
    System.out.println("Check out file");
    System.out.println("parentId is "+ parentId);
    m_binder.putLocal("IdcService","CHECKOUT_BY_NAME");
    m_binder.putLocal("dDocName",docName);
    executeService(ws, m_binder,"sysadmin",true);
    System.out.println("File checked out successfully");
    System.out.println("Check in file");
    m_binder.putLocal("IdcService","CHECKIN_UNIVERSAL");
    m_binder.putLocal("dDocName",docName);
    m_binder.putLocal("dDocTitle",entityName);
    m_binder.putLocal("xCollectionID",parentId);
    m_binder.putLocal("dDocType", "Document");
    m_binder.putLocal("dSecurityGroup","Public");
    m_binder.putLocal("dDocAuthor","sysadmin");
    m_binder.putLocal ("doFileCopy", "1");
    m_binder.putLocal("dCreateDate","");
    m_binder.putLocal("primaryFile", entryName);
    executeService(ws, m_binder,"sysadmin",true);
    System.out.println("Checked in file successfully");
    public String getDocname(Workspace ws, String folderId, String originalName)
    throws DataException,ServiceException
    System.out.println("Entered getDocname");
    String val = new String("FILENOTFOUND");
    String sql = "select a.ddocname from documenthistory a, docmeta b, documents d " +
    "where a.did = b.did and a.did = d.did and d.DORIGINALNAME = '" + originalName +
    "' and b.xcollectionid = '" + folderId + "'";
    System.out.println("sql query is : " + sql);
    ResultSet rs = ws.createResultSetSQL(sql);
    if(rs == null) {
    System.out.println("Resultset for getDocname is empty");
    throw new ServiceException("Resultset for getDocname is empty");
    DataResultSet result = new DataResultSet();
    result.copy(rs);
    if(result.getNumRows() >= 1) {
    result.first();
    val = result.getStringValue(0);
    System.out.println("ddocname is :" + val);
    return val;
    else {
    System.out.println("FILENOTFOUND");
    return val;
    Thanks,
    Shwetha

  • Initially I had downloaded Document 2 (Free) application to view my doc, ppt and xls files. I was not able to edit the files so there was an option for upgrade the Document-2 free to paid version. I have upgraded the Document 2 application.

    Initially I had downloaded Document 2 (Free) application to view my doc, ppt and xls files. I was not able to edit the files so there was an option for upgrade the Document-2 free to paid version. I have upgraded the Document 2 application. But on my iPad now there are to application present Docemnt-2 (Free) and Document-2. I am not able to open any existing document using the upgraded version of application. How do I connect all the existing txt,PPT,XLS doccument to the new upgraded Document-2 application and then to edit it on my iPad.

    As suggested I had deleted the free application and did a hard restart the iPad. I have again copied the document using iTunes. But I am not able to edit any document using this app. Document 2 (paid version) supports editing features of the txt/ xls /ppt files. Is there any problem while loading the Document 2 app. If I reload then do I need to purchase again?

  • Saving a PDF file when printing is not supported. Instead, choose File Save.

    I am using Mountain Lion (10.8.2) and I was using Adobe Reader version 9. In the past, I've always been able to print to file using the File -> Print dialogue but all of a sudden it stopped working. I read somewhere that installing the latest version of Adobe Reader (version 11) would remove the old printer, so I did so. It took me about an hour on version 11 to even find the pdf print to file option, but I am getting the same message. For what it's worth, when I try print to file from Microsoft Word, I have no problem. I have no idea why things changed all of a sudden, but does anyone have any idea how I can get this working again?

    I checked with Adobe.  No luck. 
    Allow me to clarify my problem: 
    I have Adobe Reader XI. I also use a Mac--imac and a MacBook Pro.   My adobe was updated on 12/24.  Prior to that point, I could open my print dialogue box and there was a PDF tab on the bottom left.  In the drop down menu there were many choices, including but not limited to Open in PDF Preview, Print PDF, Save PDF, email PDF.  If I selected one page of 30 pages from a document saved in Adobe, I could extract just that one page and save it or email it, without having to send the entire document.   After the update, when I open a PDF file using ADOBE READER XI, and then open the print dialogue box, and follow those same steps, I get the message "Saving a PDF file when printing is not supported. Instead, choose File > Save."   My question is why is this feature now unavailable and is there a way to fix it? 
    The answer I got from Adobe was that Adobe never had this function, so it must have been via my print or preview programs..which are apple.  Does anyone have any thoughts?
    Thank you.
    https://forums.adobe.com/message/7124567 

  • Our Windows PC crashed with all our music on it.  There are copies of both purchased (thru iTunes store) and from our own CDs on another HD in a backup file.  They are not linked to a Media file.  Is there any way I can put this music on my new computer?

    Our Windows PC crashed with all our music on it.  There are copies of both purchased (thru iTunes store) and from our own CDs on an external HD in a backup file.  They are not linked to a Media file.  Is there any way I can put this music on my new computer?

    The syncing of music is one way, computer to phone. See this helpful document from a fellow user. Credit goes to the author.
    https://discussions.apple.com/docs/DOC-3141

  • Message error: "Saving a PDF file when printing is not supported. Instead, choose File Save."

    I have 2 problems creating a .ps file.
    As i know, there are 2 ways of creating a Postcript file from a PDF.
    The first is from the Print monitor. I go through menu File/Page Setup i give the exact dimensions from my spreaded pages and after that i go to Print and when this window opens,
    i go down and left and i open the pop-up menu on"PDF" and i choose "Save PDF as Postscript"
    There is where i get the above error message :
    "Saving a PDF file when printing is not supported. Instead, choose File > Save."
    And the second scenario, i get an equal problem.
    If i go to Page setup and give the right dimensions of my spreaded document, after that i go to the File/Save as command, there is choose from the bottom pop-up menu, the option at Format: Postscript
    If i do that i get the following message:
    "The document could not be saved. An internal error occured."
    What is wrong with all this?
    Can anyone help me out?
    System preferences.
    Mac OS X 10.4.11
    Acrobat professional 8.1.2
    Thank you

    Jon Bessant asked:
    "Does this occur on every PDF file? The internal error message that is ..."
    Yes, it happens on every PDF

  • Pdf file is too big (7MB). Need a pdf file with max size 4MB. How to minimize the size of a pdf file?

    pdf file is too big (7MB). Need a pdf file with max size 4MB. How to minimize the size of a pdf file?

    The other alternative is the Save As Other>Reduce File Size. The PDF Optimizer gives you more control. You might also use the audit feature in the PDF Optimizer to see where the size problem is coming from. You might find that in the WORD file you can select and image and then go to the FORMAT (pictures) menu and select compress for all of the bitmaps in the file. That will typically use 150 dpi by default that is adequate for most needs.

  • Rel. strategy is not triggered while creation of PR with cost centr

    Hi Gurus,
    While creation of PR release strategy is not getting triggered with cost centre BCWSV870. But release strategy of PR triggered for cost centre BCWSV852 (In PR changed only cost centre as BCWSV852 instead of BCWSV870). Both cost centres are similar and the both cost centres are exist in characteristics value in CL20N for the same release strategy.
    My question is why for one cost centre triggers release strategy triggers and for other cost centre release strategy is not triggered. Can you please tell how come this and rewarded for answer this.
    With regards,
    C. Sundar Rajan

    Hi,
    In regard to problematic PR with cost center BCWSV870, was your PR maintained with only one line item? or multiple line items?.  In additions, when defining cost center as part of the release strategy structure, did you enter all cost centers with leading zeros?  Tak a further look into OSS Note 365604 for your further investigation.
    Cheers,
    HT

  • Sender File(FTP protocol) Adapter not able to pick multiple files(eg *.xml)

    Dear Experts,
    I have SAP PI 7.0 installed on HP-UX. I installed Guild FTP on my Windows Vista machine.Configured File to File scenario. Sender File adapter(FTP Transport Protocol)is able to process the 'input.xml' file placed in FTP INBOX folder.
    I want to process all/multiple XML files. For this I have changed File Access Parameters in Sender Communication channel as:
    Source Directory -   /INBOX
    File Name          -   *.xml
    Immediately Sender Communication status went into red with error log messages :
    Error occurred while connecting to the FTP server "172.XX.XX.XX:21": java.lang.NullPointerException
    Please let me know what is the issue. Thanks in Advance.

    Hi
    It should work with *.xml
    Check with the connectivity as well.
    If this is still unable to process files then check with the FTP server compatibility.
    J2EE File adapter is based on RFC 959 and if GUILD FTP is non compatible to RFC format then exclusion mask may not work.
    Thanks
    Gaurav

  • JBoss 4.2.0 does not contain need folders and files inside default server

    Dear,
    In the Virtual Appliance you provided, you will find under the /home/livecycle/jboss-4.2.0/server/default ONLY: log folder and tmp folder.
    When you start jboss like:
    ~jboss4.2.0/bin>./run.sh -c default
    It will give this error:
    Failed to boot JBoss:
    org.jboss.deployment.DeploymentException: url file:/home/livecycle/jboss-4.2.0/server/default/conf/jboss-service.xml could not be opened, does it exist?
    The answer is NO as i explain before. But why? is there a problem in the Virtual Appliance when you prepare the jboss server on it?
    Please let me know

    JBoss in the Virtual Appliance does not have a "default" configuration.  You should not start it with the command "./run.sh -c default".
    Please read the readme.pdf before you use it:
    http://d2x45prcet210j.cloudfront.net/readme.pdf

  • File copy in KM not working from a par file.

    Hi Experts,
                      We created a par file which will copy a file from a folder and copy this onto a seperate folder under the same parent folder. This applications works well on testing system, but is not working when deployed to the portal server where it supposed to work.
    Please give your thoughts and your valuable suggestions on this issue.
    Thanks in advace
    Sateesh

    Hi Raghu,
                   What is CM system and where it needs to be added.
    I am copying the code please check and give your valuable inputs.
    import java.util.Properties;
    import com.sap.tc.logging.FileLog;
    import com.sap.tc.logging.Severity;
    import com.sap.tc.logging.TraceFormatter;
    import com.sapportals.wcm.repository.CopyParameter;
    import com.sapportals.wcm.repository.ICollection;
    import com.sapportals.wcm.repository.ICopyParameter;
    import com.sapportals.wcm.repository.IResourceList;
    import com.sapportals.wcm.repository.ResourceContext;
    import com.sapportals.wcm.repository.ResourceFactory;
    import com.sapportals.wcm.service.scheduler.ISchedulerTask;
    import com.sapportals.wcm.util.uri.RID;
    import com.sapportals.wcm.util.usermanagement.WPUMFactory;
    public class archiveContent implements ISchedulerTask {
         private static final com.sap.tc.logging.Location logger =
              com.sap.tc.logging.Location.getLocation("KMScheduler");
      public void run( String id, Properties properties ) {
         // implement the tasks to be scheduled
         logger.setEffectiveSeverity(Severity.ALL);
         FileLog mFile1 = new FileLog("/usr/sap/EPD/JC00/j2ee/cluster/server0/log/KMScheduler/reportArchiver.log",10485760,5,new TraceFormatter("%d %m"));
         logger.addLog(mFile1);
         String Filename=null;
         int flag=0;
         logger.infoT("Entering Archive Application try block");
         try{
         com.sapportals.portal.security.usermanagement.IUser epUser = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
         ResourceContext ctx = new ResourceContext(epUser);
    //     Get the path of the bi-broadcast (start) folder and create a resource
         //RID birid = RID.getRID("/bi-broadcast");
         RID birid = RID.getRID("/documents/KMScheduler_test");
    //     Create resource holding the contents of the bi-broadcast/top level folder
         com.sapportals.wcm.repository.IResource bires= ResourceFactory.getInstance().getResource(birid,ctx);
         if(bires!=null)
    //          Create a collection of the bi-broadcast resource and get the child resources i.e. Categories
              ICollection categorycollection=(ICollection)bires;
              IResourceList categorylst= categorycollection.getChildren();                                             
              com.sapportals.wcm.repository.IResource categoryres = null;
              if(categorylst!=null)
                   for(int i=0;i<categorylst.size();i++)
                        categoryres = categorylst.get(i);
    //                    Check if the Category is Template. if it is do not enter the loop
                        //if(!categoryres.getName().equalsIgnoreCase("Template"))          
    //                         Get the path of the Category folder
                             //RID categoryrid = RID.getRID("/bi-broadcast/"+categoryres.getName());
                             //RID categoryrid = RID.getRID("/documents/KMScheduler_test/bi_reports/"+categoryres.getName());
                             //logger.infoT("Folder ""\"/documents/KMScheduler_test/bi_reports/"categoryres.getName()+"\" detected");
                             if(categoryres!=null)
    //                              Create a collection of the Category resource and get the child resources i.e. Area      
                                  ICollection areacollection=(ICollection)categoryres;
                                  IResourceList arealst= areacollection.getChildren();                                                            
                                  com.sapportals.wcm.repository.IResource areares = null;     
                                  if(arealst!=null)
                                       for(int j=0;j<arealst.size();j++)
                                            areares=arealst.get(j);
                                            Filename=areares.getName();                              
    //                                        Get the path of the Area folder
                                            RID arearid = RID.getRID("/documents/KMScheduler_test/"categoryres.getName()"/"+areares.getName());
                                            logger.infoT("Folder ""\"/documents/KMScheduler_test/"categoryres.getName()"/"areares.getName()+"\" detected");
                                            if(areares!=null)
    //                                             Create a collection of the Area resource and get the child resources i.e. Region
                                                 ICollection regioncollection=(ICollection)areares;
                                                 IResourceList regionlst= regioncollection.getChildren();                                        
                                                 com.sapportals.wcm.repository.IResource regionres = null;     
                                                 if(regionlst!=null)
                                                      for(int k=0;k<regionlst.size();k++)
                                                           regionres=regionlst.get(k);
                                                           Filename=regionres.getName();
    //                                                       Get the path of the Region folder
                                                           RID regionrid = RID.getRID("/documents/KMScheduler_test/"categoryres.getName()"/"areares.getName()"/"+regionres.getName());
                                                           logger.infoT("Folder ""\"/documents/KMScheduler_test/"categoryres.getName()"/"areares.getName()"/"regionres.getName()+"\" detected");
                                                           if(regionres!=null)
    //                                                       Create a collection of the Region resource and get the child resources i.e. File
                                                                ICollection filecollection=(ICollection)regionres;
                                                                IResourceList filelst= filecollection.getChildren();                                             
                                                                com.sapportals.wcm.repository.IResource fileres = null;     
                                                                if(filelst!=null)
                                                                     for(int l=0;l<filelst.size();l++)
                                                                          fileres=filelst.get(l);
    //                                                                      Check if the file is Archive or Special. if it is don not move it to Archive
                                                                          if(!fileres.getName().equalsIgnoreCase("Archive"))
                                                                               if(!fileres.getName().equalsIgnoreCase("Special"))
                                                                                    flag=1;
    //                                                                                Get the path of the File in the region folder
                                                                                    RID filerid = RID.getRID("/documents/KMScheduler_test/"categoryres.getName()"/"areares.getName()"/"regionres.getName()"/Archive/"+fileres.getName());
                                                                                    logger.infoT("File ""\"/documents/KMScheduler_test/"categoryres.getName()"/"areares.getName()"/"regionres.getName()"/Archive/"fileres.getName()+"\" detected");                                                                                                              
    //                                                                                Move one child at a time to the Archive folder
                                                                                    ICopyParameter cp=new CopyParameter(true);
                                                                                    fileres.move(filerid,cp);
                                                                                    logger.infoT("Archiving file \""fileres.getName()" from folder /documents/KMScheduler_test/"categoryres.getName()"/"areares.getName()"/"regionres.getName()"\"");
                                                                               else if(fileres.getName().equalsIgnoreCase("Special"))
                                                                                    RID ar_analysisrid=RID.getRID("/documents/KMScheduler_test/"categoryres.getName()"/"areares.getName()"/"regionres.getName()"/Special");
                                                                                    ICollection aranaylsiscollection=(ICollection)fileres;
                                                                                    IResourceList aranalysislst= aranaylsiscollection.getChildren();                                             
                                                                                    com.sapportals.wcm.repository.IResource aranalysisres = null;
                                                                                    if(aranalysislst!=null)
                                                                                         for(int m=0;m<aranalysislst.size();m++)
                                                                                              aranalysisres=aranalysislst.get(m);
                                                                                              if(!aranalysisres.getName().equalsIgnoreCase("Archive"))
                                                                                                        flag=1;
    //                                                                                                    Get the path of the File in the region folder
                                                                                                        RID arfilerid = RID.getRID("/documents/KMScheduler_test/"categoryres.getName()"/"areares.getName()"/"regionres.getName()"/Special/Archive/"+aranalysisres.getName());
                                                                                                        logger.infoT("File ""\"/documents/KMScheduler_test/"categoryres.getName()"/"areares.getName()"/"regionres.getName()"/Special/Archive/"aranalysisres.getName()+"\" detected in Special folder");
    //                                                                                                    Move one child at a time to the Archive folder
                                                                                                        ICopyParameter cp=new CopyParameter(true);
                                                                                                        aranalysisres.move(arfilerid,cp);
                                                                                                        logger.infoT("Archiving file \""fileres.getName()" from folder /documents/KMScheduler_test/"categoryres.getName()"/"areares.getName()"/"regionres.getName()"/Special/Archive/"aranalysisres.getName()"\"");
    Edited by: Jabi123 on Jan 17, 2011 7:13 AM

  • Business Event not triggering the SOA BPEL Process with OA Adapter

    Hello Gurus,
    I am working on Business event "oracle.apps.per.api.employee.create_employee" and the event is getting triggered when creating an employee from EBS.
    The message has come till WF_BPEL_QTAB(I could seeit) and in "READY" status.We have a SOA BPEL Process that is subscribed to the event "oracle.apps.per.api.employee.create_employee" using OA Adapter.
    The issue is that the SOA BPEL process is not getting triggered and it is not dequeing the message from WF_BPEL_Q.
    Please let me know if I have missed any steps on SOA BPEL side.
    Note: Agent Listener is up and running.
    Thanks,
    Sunil

    Ofcourse, I subscribed to the business event using BPEL. Ideally the instances should be created and I should be able to receive the standard payload.
    Yes the JNDIs are correct. We have other business events working in the same fashion and we are using same JNDI.

  • I use web mail from lotus notes and need Firefox to connect with my MacBook Pro. Since updating to version four I no longer have the ability to see or open attachements. What I am doing wrong?

    I updated my MacBook Pro with version 4 yesterday. I access my company's lotus notes with this browser. I can access the web site, but cannot open attachments. The message I received is that I have removed the attachment. I haven't. The text that states the name of the attachment is there. I can click on it but it won't open and there is nothing in the attachment box in Web Mail.

    Try the "light mode". Surprise :)

  • File to Idoc - File not picked up

    Hi experts,
                   In the file to idoc scenario when i post a file in the file server it is not picked up by the file adapter. But in the communication channel monotoring it reports <b>'Process finished sucessfully'</b>.
    Help me out in this issue.
    Regards
    Santhosh Kumar V

    HI Santhosh
    if you are using NW latest version.check in Communication channel monitoring
    otherwise in Adapter monitoring.
    Check u r Sender Communication channel working or not... in RWB->Component monitoring->Communication channel monitoring..
    in which color it is displaying u r Sender Communication channel?? If it is in RED color then u r sender cc is error one.
    Check the following:
    1. Name of the input file and the filename in communication channel should match.
    2. The communcation channel is activated
    3. The folder path is correct.
    4. The Processing mode is "Delete"
    5. XI server is up when u try the scenario
    6. The adapter has status green in RWB Adapter Monitoring
    7. Sender Agreement is properly configured
    As explained above
    See ,,
    --Check the FTP server details
    --Check the User.pwd and authorisations -- to read file,
    --Check the File name sapecified in sender CC, and check the file i spicked by CC or not in RWB channelmonitorservlet
    by http://host:port/mdt/channelmonitorservlet
    --Also see the below links
    /people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
    OS Command on FTP
    OS command line script - Need help
    FTP - Run OS Command before file processing
    /people/sravya.talanki2/blog/2005/08/23/sender-xi-ftp-adapter-with-regular-path-expression-150-abap - Sender XI FTP Adapter with Regular Path Expression – ABAP
    Cheers..
    Vasu
    <i>** Reward Points if found useful **</i>

  • IDOC message type LOIPLO not triggering

    Hi Friends
    Our client want to send firmed planned orders to External system through outbound IDOC LOIPLO
    So we are using MF50 to firm the planned orders.
    The idoc message type LOIPLO is not triggering.
    How to trigger IDOC message type   LOIPLO . What are the settings we have to do.
    Regards,
    Srihari.M

    dear friend,
    Message Type :  LOIPLO
    Basic Type :        LOIPLO01
    You need not create any custom IDOC type as we are having a standard IDOC type available within SAP, but you need to write a custom function module to read the data from the IDOC segments and then call the below BAPI to post the Planned Order.
    Check the input parameters of BAPI and gothrough the documentation of the Basic Type in WE60 transactions, whether all the necessary input parameters of the BAPI are covered in the standard IDOC type, if not then we need to customize the standard basic type to meet the requirements.
    Bapi which needs to be used is BAPI_PLANNEDORDER_CREATE
    good luck!

Maybe you are looking for