External Operation Job Log

Hello all,
I can't seem to find additional information on this. I have written an exteranl operation in c# and I can run it from the portal without any issue. I know that standard error is supposed to be captured in the job log, however I can't seem to figure out how to write to standard error from a c# console application. Console.error doesn't seem to cut it.
I am using ALUI 6.0 sp1, but I dont' think this has changed much over the years. Has anybody written a c# external operation and been able to write to the job log?
Thanks,
Berney

You could just make it write to stdout and then redirect stdout to stderr like this: "dir 1>&2". I put that in a bat file in the scripts directory and then made the bat an external operation. It wrote to the job logs like this:
Mar 3, 2009 11:40:55 AM- Starting to run operations (1 total) for job 'stdout dir test ext op Job'. Will stop on errors.
Mar 3, 2009 11:40:55 AM- *** Job Operation #1 of 1: ExternalOperation [Run as owner 'Administrator']
Mar 3, 2009 11:40:55 AM- Java Version: 1.5.0_12 from BEA Systems, Inc.
Mar 3, 2009 11:40:55 AM- OS x86 Windows 2003 5.2 as SYSTEM
Mar 3, 2009 11:40:55 AM- External Operation Agent for stdout dir test External Operation is starting...
Mar 3, 2009 11:40:55 AM- Original Script is: "test.bat"
Mar 3, 2009 11:40:55 AM- Scripts home is: E:\bea\alui\ptportal\10.3.0\scripts
Mar 3, 2009 11:40:55 AM- Appending E:\bea\alui\ptportal\10.3.0\scripts to test.bat.
Mar 3, 2009 11:40:55 AM- Full Path to script is: E:\bea\alui\ptportal\10.3.0\scripts\test.bat.
Mar 3, 2009 11:40:55 AM- Operation has timeout of 0 ms.
Mar 3, 2009 11:40:55 AM- stdout>
Mar 3, 2009 11:40:55 AM- stdout>E:\bea\alui\ptportal\10.3.0\scripts>dir 1>&2
Mar 3, 2009 11:40:55 AM- stderr> Volume in drive E is New Volume
Mar 3, 2009 11:40:55 AM- stderr> Volume Serial Number is 4CFC-EB07
Mar 3, 2009 11:40:55 AM- stderr>
Mar 3, 2009 11:40:55 AM- stderr> Directory of E:\bea\alui\ptportal\10.3.0\scripts
Mar 3, 2009 11:40:55 AM- stderr>
Mar 3, 2009 11:40:55 AM- stderr>03/03/2009 11:37 AM <DIR> .
Mar 3, 2009 11:40:55 AM- stderr>03/03/2009 11:37 AM <DIR> ..
Mar 3, 2009 11:40:55 AM- stderr>12/18/2008 07:59 AM 5,049 AnalyticsRunJobs.bat
Mar 3, 2009 11:40:55 AM- stderr>10/08/2008 01:35 PM 2,034 BulkSubscriber.bat
Mar 3, 2009 11:40:55 AM- stderr>10/08/2008 01:35 PM 3,577 SavedSearchMailer.bat
Mar 3, 2009 11:40:55 AM- Total Memory = 33554432 bytes, Free Memory = 9573312 bytes, Used Memory = 23981120 bytes.
Mar 3, 2009 11:40:55 AM- stderr>03/03/2009 11:37 AM 8 test.bat
Mar 3, 2009 11:40:55 AM- stderr> 4 File(s) 10,668 bytes
Mar 3, 2009 11:40:55 AM- stderr> 2 Dir(s) 17,469,964,288 bytes free
Mar 3, 2009 11:40:55 AM- *** Job Operation #1 completed: Process completed successfully; Command line: ""test.bat"".(282609)
Mar 3, 2009 11:40:55 AM- Done with job operations.
I don't think much has changed with this in the portal 6.x world, but it looks like stderr is definitely captured in wci 10.3. If there's a problem with an older version, start a support ticket to investigate a possible bug.

Similar Messages

  • How to take the cron job log in HP UX?

    Hi,
    How to take the cron job log in HP UX
    I need to run a backup and other stuff everyday. How do I check and start cron service under HP-UX UNIX operating system? How do I write cron jobs?
    A. Cron service is required to run jobs and tasks such as backup.
    You must login as the root to run following commands. Each user that is using the cron service must have a cron configuration file in the /var/spool/cron/crontab directory. Also users are permitted if their name appeared in /var/adm/cron/cron.allow file
    Task: Find out if cron is running under HP-UX
    Type the following command at a shell prompt
    # ps -ef | grep cron
    Open /etc/rc.config.d/cron file
    vi /etc/rc.config.d/cron
    Set control variable to 1 to enable cron: CRON=1
    Set control variable to 0 to disable: CRON=0
    Close and save the file. To start or stop cron you can type the following command:
    # /sbin/init.d/cron start <-- start cron
    # /sbin/init.d/cron stop <-- stop cron
    Task: HP-UX Start cron service
    If cron is not running, simply type:
    # cron
    Task: Edit / create cron jobs
    Type the following command to submit a cron job:
    # crontab -e
    List your cron file:
    # crontab -l
    Backup all your cron jobs:
    # crontab -l > ~/backup.cron.jobs
    Remove ALL cron job:
    # crontab -r
    Task: Crontab file format
    Cron file format is as follows:
    MIN HOUR DATE MONTH DAY /PATH/TO/COMMAND
    0-59 0-23 1-31 1-12 0-6 /root/scripts/backup2tape.shEasy to remember crontab file format:
    * * * * * command to be executed
    | | | | |
    | | | | ----- Day of week (0 - 7) (Sunday=0 or 7)
    | | | ------- Month (1 - 12)
    | | --------- Day of month (1 - 31)
    | ----------- Hour (0 - 23)
    ------------- Minute (0 - 59)To run /root/script/backup at 23:00, every day, enter:
    # crontab -e
    Append following
    0 23 * * * /root/script/backupRun foo job very weekday (MON-Fri) at 6am, enter:
    0 6 * * 1-5 /root/script/backupFor more information refer to cron and crontab man pages.
    Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.
    Related Other Helpful FAQs:
    What is Cron?
    Linux Start and stop the cron or crond service
    Run crontab Every 10 Minutes
    Linux / UNIX Setup and run php script as a cron job
    Stop Ubuntu / Debian Linux From Deleting /tmp Files on Boot
    Discussion on This FAQDavid Says:
    January 15th, 2008 at 12:21 am
    You might note that all files normally found in /etc/init.d, /etc/rc*.d, and others are all in /sbin in HP-UX 10.20 and up.
    Note too that your formatting is off in the description of the /etc/rc.config.d/cron file. Also, if you run /usr/bin/cron instead of /sbin/init.d/cron start, the /etc/rc.config.d/cron file is not used.
    Regards,
    Satya

    I guess it would :)
    btw, how did this piece miss from the contents pasted by the OP ?
    The doc has given all details of CRON and missed where to see the logfiles. :)
    ****Added****
    I tried man crontab in windows, i dont see it.i overlook most of the things, i would have done the same ;)
    Edited by: Bobcatalog on Oct 23, 2008 9:40 AM

  • Error reading job logs of Apps server from Central Instance

    Dear Gurus,
    We have newly installed system with one CI ( cluster environment) and 2 application Instances.
    Systems are recently installed by other team. I am looking into support part after handover.
    We have noticed below error while reading failed background job logs from our CI. If suppose any job is failing, we can read respective job log from that application instance but it throws error while reading job log from CI to either of application instance.
    I checked /sapmnt/SID/global is shared among all 3 servers and i am successfully able to "Touch a" from applications instances.
    Even though i have given "777" permissions to all folders like  /sapmnt/SID , /sapmnt/SID/global , /sapmnt/SID/global/400JOB*
    I am not able to read job log from CI , for same failed job I can read job log from respective application instance.
    Error log :
    Error reading job log JOBLGX00080700X39290
    Message no. BT167
    Diagnosis
    The background processing system was unable to read the job log named in the message.
    This message suggests that there is a problem with the TEMSE storage system of the SAP system.  The TEMSE storage system is a repository for temporary objects, such as job logs and spool requests. Job logs are always stored in the TEMSE as operating system files.
    This error occurs if the TEMSE system is not able to find or access the file that contains the text of the job log that you requested. Possible causes for the loss or unavailability of the job log include the following:
    Someone deleted the required TEMSE file (from the operating system, not from within the SAP system).
    A CRON (or equivalent scheduler) job has deleted the TEMSE file.
    The file system in which the TEMSE stores its files is not mounted or is not accessible (NFS problem, disk failure, or similar problem).
    The TEMSE reorganize or consistency check functions were used within the SAP system and deleted the job log.
    SM21 logs :
    Error 2 for write/read access to a file. File = /usr/sap/SID/SYS/global
    BP_JOBLOG_SHOW: Failed to display jobs. Reason:
    > Error reading job log JOBLGX00080700X39290
    Strange this is I can check failed job log on one application instance frfom other application instance but not from CI.
    Kindly throw some lights where to check.
    Regards,

    Hi Shravan,
    I guess it is related to permission to /sapmnt/SID/global folder. Please ensure owner is sidadm:sapsys in all the systems viz CI, App servers etc.
    Check the mounting options are correctly set with read/write mode.
    Hope this helps.
    Regards,
    Deepak Kori

  • Write to AWS job log

    How can I write to the automation server job log file from my EDK AWS? This AWS does more then just return Groups and Users and I need to write to the log file the results of the additional operations.
    Please let me know how to implements this.

    Currently, the protocol between the portal and the remote web services only permits writing custom log messages from a crawler, but not from an authentication service or a profile service.
    We are considering this feature for future releases; in the meantime, you may want to follow the pattern we use for our own products, which use Log4N or Log4J to write a remote log file. In the case of a critical error that the administrator needs to know about, throw an exception with a message; in 5.0.1 this message did not get put in the job log, but in 5.0.2 it does.

  • Need to e-mail job log after job completes (SM37)

    Greetings!
    I need to export the results of the Job Log (run SM37, double-click a finished job and then click "Job Log" button at top - this is the list I need).  Obviously, the program has already terminated so it won't be able to initiate it.  Is there another way?
    The need is to have this log be e-mailed automatically after it's ran or, at the very least, have a second "step" (job?) that reads the previous one and e-mails it's log. 
    We'd like to keep it automated and not have someone in operations have to remember to do this.

    Hi,
    Debugging can be done as follows:
    1. Put a breakpoint at the beginning report CRM_MKTTGGRP_EXPORT_BATCH
    2. Select your previously executed job in transaction SM37
    3. Type 'jdbg' into the tcode field in the upper left area
    To analyze the results and messages of the campaign execution, you can also have a look into the application log, either in the campaign application or in transation SLG1. There you should find details why the BPs have not been contacted.
    Hope this helps,
    Frank

  • F110 Error 007 - Error in creating the payment document; read job log

    We have created a new SAP instance (vers 4.7) and testing if its working.
    The above error occurs at the payment proposal stage for payment methed C (Cheque), but is OK for E (BACS).
    I have been back through the config a couple of times checking FBZP and OBA7, and I can see anything obviously wrong.
    The job log says........
    10.03.2010 16:27:24 Job started -
                                                                       00           516          S    
    10.03.2010 16:27:24 Step 001 started (program SAPF110S, variant &0000000000007, user ID BPGB) -
         00           550          S    
    10.03.2010 16:27:24 Log for proposal run for payment on 10.03.2010, identification GB4  -
               FZ           402          S    
    10.03.2010 16:27:25                                                                              -
      ZT           004          S    
    10.03.2010 16:27:25 Information re. vendor 500007 / paying company code PS10 ...  -
                     FZ           305          S    
    10.03.2010 16:27:25 ... payment not possible because of reported error  -
                               FZ           311          S    
    10.03.2010 16:27:25 End of log  -
                                                                       FZ           398          S    
    10.03.2010 16:27:25 Job finished  -
                                                                     00           517          S    
    What appears to be the offending line in the log (Error ZT004) is blank, so gives me no clues as to the problem.  I'm at a loss what to check net, and I'm hoping somebody can help me.
    Any advise welcome.
    Thanks
    Graham

    Thanks Ji, that gives me a much better log to look through.
    I've been doing a lot more testing as a result, but ultimately still come up blank.  Heres why I am....
    1.  I have 2 payment methods...
    C-Cheque
    E=BACS
    2. I pay 2 types of vendors...
    Eternal (i.e. Invoices)
    Internal (i.e. Employees expenses)
    3. The payment proposal step is working fine for external suppliers on both payment methods, but fails for internal on both methods.
    4. I am using the same payment terms on everything (Immediate payment no discount)
    5.The only difference in the logs is (i.e. the line below does not appear on the external supplier logs).....
    Cash discount base amount not set!                                                              FZ           753
    6. The accounting documents look as I expect (External have an amount in the Cash Discount base, internal do not), this is how our current system behaves where we do not have any issues, and I cannot see any differences in the vendor document between the 2 systems
    7. Incase I have missed something that is the real cause of the problem, here is the full log.
    If you have any ideas what the problem still is, advice would be gratefully received, as I am pulling what little hair I have left out.
    Full log......
    Job started                                                                                00           516
    Step 001 started (program SAPF110S, variant &0000000000018, user ID BPGB)                          00           550
    Log for proposal run for payment on 10.03.2010, identification GB6                                 FZ           402
    >                                                                                FZ           693
    > Additional log for vendor 500008 company code PS10                                               FZ           691
    >                                                                                FZ           693
    >            Due date determination additional log                                                 FZ           799
    > Document 2100000002 line item 001 via GBP           53.04-                                       FZ           700
    > Terms of payment: 10.03.2010    0  0.000 %    0  0.000 %    0                                    FZ           701
    >  00 days grace period is being considered                                                        FZ           726
    >  Cash discount base amount not set!                                                              FZ           753
    >   Payment must take place before 10.03.2010; next payment on 12.03.2010                          FZ           728
    > Item is due with 0.000 % cash discount                                                           FZ           721
    >                                                                                FZ           693
    >            Payment method selection additional log                                               FZ           699
    > Payment method selection for items due now to the amount of GBP           53.04-                 FZ           601
    > Payment method "E" is being checked                                                              FZ           603
    > Bank details are being checked                                                                   FZ           640
    >    Customer/vendor bank details are being read                                                   FZ           644
    > Country GB / Bank number 404731 / Account 12457852 ...                                           FZ           645
    >     Customer/vendor bank details are being checked                                               FZ           665
    >   System reads house banks and checks if they are allowed                                        FZ           668
    > Our bank 1000 is being checked                                                                   FZ           648
    > For currency GBP and 001 days 9999,999,999.00 are planned                                        FZ           658
    > Available amount is enough, 9999,999,999.00 GBP still available,           53.04  necessary      FZ           657
    >   House bank is selected ...                                                                     FZ           673
    > Our bank details 1000 GBBK1 are being used                                                       FZ           641
    > Bank details of the partner with ctry GB bk no. 404731 acct 12457852 are being used              FZ           642
    > Payment method "E" is permitted                                                                  FZ           609
                                                                                    ZT           004
    Information re. vendor 500008 / paying company code PS10 ...                                       FZ           305
    ... payment not possible because of reported error                                                 FZ           311
    End of log                                                                                FZ           398
    Job finished                                                                                00           517
    Edited by: gbrandreth on Mar 11, 2010 11:35 AM

  • External Operations: which API?

    Hi all..
    I have a console application that uses the Server API and I'd like to run it as an external operation. However, as I look into it, it appears that the job must run on the automation server... will the server API still work? I'm guessing not... seems to just hang when attempting a Reconnect().
    OK, so maybe I can use the PRC... but what value do I use for the first argument in GetTokenContext()? the URI endpoint... ????
    What's the best reference for writing external operations? Can't seem to find anything via plumtree.com searching... :(Jesse

    Your post partially answered my question. I am looking into using the PRC Collab Java API (to add calendar tasks programmatically) and want to know if that could be called as an external operation. It would probably be possible if the latest version edk.jar with the Collaboration API was on the Automation Portal Server. We have Automation Portal 5.0.4 installed and it comes with ans older version of the EDK.jar.
    Any comments and recommendations on on the best method way to accomplish what I am trying to do?
    Thanks.
    Vanita------- HP SupportTeamLux wrote on 8/18/04 4:20 AM -------
    Hi Jesse,
    I'm also doing a console application that uses the PRC and is called as an external operation.
    For the URI endpoint, I specify a URL in the application.config file. It contains the URL to the Plumtree Web Services, usually like http://portalserver/ptapi/QueryInterfaceAPI.asmx. Forthe second parameter, the login token, I use what the external operation passes me as parameter (). Works nicely...
    HTH, Fred

  • Distribute System  - Error when run tcode DB13 - Job Log - Cancel

    i have two server and I installed SAP ERP 6.0 (Application ABAP) on two server base on Distribute System model
    Server A : I installed Global Host Preparation and Central Instance
    Server B : I installed Database Instance
    On server A, I exported /sapmnt, /usr/sap
    On server B, I mounted /samnt, /usr/sap from Server A
    Process Installation -> OK
    and finally , I logged in SAP through server A -> OK
    But when i run tcode DB13 to run Action Pad : Cleanup Logs, Check and Update Optimize Statistic ....etc -> Cancel
    -> with error in tab Job Log below
    20.01.2010     14:37:07     Job started
    20.01.2010     14:37:07     Step 001 started (program RSDBAJOB, variant &0000000000041, user ID BASIS)
    20.01.2010     14:37:07     No application server found on database host - rsh/gateway will be used
    20.01.2010     14:37:07     Execute logical command BRCONNECT On host sapree2
    20.01.2010     14:37:07     Parameters: -u / -jid CLNUP20100120143706 -c -f cleanup
    20.01.2010     14:37:29     SXPG_STEP_XPG_START: is_local_host: rc = 403
    20.01.2010     14:37:29     SXPG_STEP_XPG_START: host = sapree2
    20.01.2010     14:37:29     SXPG_STEP_XPG_START: is_local_r3_host: rc = 802
    20.01.2010     14:37:29     SXPG_STEP_XPG_START: RFC_TCPIP_CONNECTION_OPEN: rc = 1003
    20.01.2010     14:37:29     SXPG_STEP_COMMAND_START: SXPG_STEP_XPG_START returned: 1.003
    20.01.2010     14:37:29     SXPG_COMMAND_EXECUTE(LONG)
    20.01.2010     14:37:29     <timestamp> = 20100120143729
    20.01.2010     14:37:29     COMMANDNAME = BRCONNECT
    20.01.2010     14:37:29     ADDITIONAL_PARAMETERS = -u / -jid CLNUP20100120143706 -c -f cleanup
    20.01.2010     14:37:29     LONG_PARAMS
    20.01.2010     14:37:29     OPERATINGSYSTEM = ANYOS
    20.01.2010     14:37:29     TARGETSYSTEM = sapree2
    20.01.2010     14:37:29     DESTINATION
    20.01.2010     14:37:29     SY-SUBRC = 1003
    20.01.2010     14:37:29     SXPG_COMMAND_EXECUTE failed for BRCONNECT - Reason: program_start_error: For More Information, See SYS
    20.01.2010     14:37:29     Job cancelled after system exception ERROR_MESSAGE
    and then , I checked tcode SM59 -> TCP/IP Connection -> SAPXPG_DBDEST_SAPREE2 -> Test Connection -> not OK with error
    Logon     Connection Error
    Error Details     Error when opening an RFC connection
    Error Details     ERROR: timeout during allocate
    Error Details     LOCATION: SAP-Gateway on host sapree1.reecorp.com / sapgw00
    Error Details     DETAIL: no connect of TP sapxpg from host sapree2.reecorp.com after 20 sec
    Error Details     COMPONENT: SAP-Gateway
    Error Details     COUNTER: 22
    Error Details     MODULE: gwr3cpic.c
    Error Details     LINE: 1973
    Error Details     RETURN CODE: 242
    Error Details     SUBRC: 0
    Error Details     RELEASE: 701
    Error Details     TIME: Wed Jan 20 14:42:39 2010
    Error Details     VERSION: 2
    thanks for your advice

    Hi,
    For installation you can refer the standalone gateway installation guide available under http://service.sap.com/instguides
    For operating the standalone gateway you can use the below link
    http://help.sap.com/saphelp_nw04/helpdata/en/bb/9f13194b9b11d189750000e8322d00/content.htm
    Cheers.....,
    Raghu

  • Tidal Externally Defined job

                       In the TES console, for an acitve job under JOB ACTIVITY, what is the best definition of a Externally Defined job?

    I agree with Tracy
    The only other thing I can think of is:
    You could force a status of  Externally Defined by checking "Extrernal" in the tracking area like a manual checkpoint requiring operator intervention or external process to set status (maybe via SACMD) to Completed Normally *
    Otherwise as Tracy mention you can get this
    if there is no output to be evaluated or output is still being gathered/written or not available at the time the job ends
    Tidal Status defintion from help
    If the status of a job occurrence is Externally Defined then Scheduler is waiting for an external status update.
    We have also put emails on externally defined and this is what it comes up with (scan scenario):
    Job Output:
    Output for job XYZ [####] was not available to be scanned

  • Reading and writing a JOB LOG

    Hi
    How do we read the job log?
    How do we display it?
    Regards
    Nishant

    HI
    GOOD
    GO THROUGH THIS
    Use
    All message types issued by a program running in the background are stored in a job log, which you can display either to obtain information on a prematurely terminated program or to complete a detailed investigation of a particular background processing run. A separate log file is created for each job.
    Deleting Log Files
    You should never delete log files directly. If you want to clear the log directory, you must delete the jobs to which the logs belong. In the process, the logs are also deleted.
    Job logs are held in the TemSe temporary sequential objects storage facility. TemSe is configured to always store job logs as operating system files in the shared SAP directories. If you delete log files directly at the operating system level, you create inconsistencies in the TemSe database, which you'll then need to eliminate with the Consistency check function in Transaction SP12.
    Log Messages
    Log messages are generally output using ABAP keyword MESSAGE. With the exception of ABAP breakpoint statistics, no other data is normally output to the job log.
    ABAP Short Dumps
    If an ABAP program generated a dump when it terminated abnormally, you can display the dump by clicking on the Abend message.
    Batch Input Messages
    Messages output during batch input sessions are not recorded in the job log. These messages are output only to the batch input system.
    Procedure
           1.      Go to Select Background Jobs using Transaction SM37 or by choosing CCMS ® Jobs ® Maintenance.
           2.      Select the jobs you want to review in the job log by specifying conditions that identify the job or jobs, including job name, user name, job status, start condition, or contents of a job step. Execute this selection to see a list of jobs that match these criteria.
           3.      In the Job overview screen, select your desired job and choose Job log.
           4.      In the Job Log Entries for ).
           6.      For further information about a particular item in the job log, select the line and choose Long text. The resulting help screen can include further information about diagnosing the message, the system’s response to the message, and how the user should follow up.
    THANKS
    MRUTYUN

  • Display error message in batch job log

    Hello
    I have a batch job running and I have an error coming during some validation logic.
    The problem is I need to continue the batch job when this error message comes and it should not cancel the batch job as it is doing currently but display that error message in batch job log, there are more similar error messages coming in job log and job gets finished, but when my error message comes job gets cancelled.
    I cannot give it as info message as it will give wrong idea about message type.
    Is there any FM by which we can add message in job log?

    Sanjeev I have done that but problem is I do not want to give that as Information message but Error message only and continue processing.
    If you see in screenshot 3rd message is given by me as information and you can see error messages also 6th and 7th and job continued till it is finished
    Basically I want that 'I' to be displayed as 'E'.
    Display error message in batch job log 

  • How to display custom error message in Job log for batch processing

    Hi All,
    I am rexecuting one R/3 report in batch mode and i want to display all the custom error i have handled in job log when its executed from SM36,SM37. The custom error are like 'Delovery/Shipmet doe not exits' or others which we can display in online mode like message e100(ZFI) or any other way and accordingly we can handle the program control like come out of the program ro leave to transaction'Zxxx' or anything. But i want my program to be executed completely and accumulate all the error in job log of batch processing.
    Can anyone tell me how can i do so...
    Thanks,
    Amrita

    Hi,
    Thats what i have done from the begining. I have written message like this:
    Message i100(ZFI).
    I was hoping to see this message in the log. But i cant see. Can you help me pleae...

  • Message with IDOC number, created by LSMW, missing in job log in SM37

    Hi gurus,
    We have a temporary interface which uses LSMW to create IDOCs and update in SAP. It's used for materials, BOMs and document info records. In LSMW we have defined standard message types MATMAS_BAPI, BOMMAT and DOCUMENT_LOAD for the IDOCs. All these have the same problem.
    A background job runs and starts LSMW. In the job log in SM37 I want to see which IDOCs were created. For some reason this is different in my development system and my test system, and as far as I know all settings should be the same. In the test system LSMW creates more message lines in the job log, than it does in the dev system. Message number E0-097 is "IDOC XXXX added", and this is missing in the dev system.
    This is what it looks like in the dev system:
    Data transfer started for object 'MATMAS' (project 'X', subobject 'Y')             /SAPDMC/LSMW   501    I
    Import program executed successfully                                                             /SAPDMC/LSMW   509    I
    File 'XXX.lsmw.read' exists                                                                               /SAPDMC/LSMW   502    I
    Conversion program executed successfully                                                    /SAPDMC/LSMW   513    I
    Data transfer terminated for object 'MATMAS' (project 'X', subproject 'Y')       /SAPDMC/LSMW  516    I
    And this is what it looks like in the test system. More information, which is exactly what I want in dev system too:
    Data transfer started for object 'MATMAS' (project 'X', subobject 'Y')             /SAPDMC/LSMW   501    I
    Import program executed successfully                                                             /SAPDMC/LSMW  509    I
    File 'XXX.lsmw.read' exists                                                                               /SAPDMC/LSMW  502    I
    Conversion program executed successfully                                                    /SAPDMC/LSMW  513    I
    File 'XXX.lsmw.conv' exists                                                                              /SAPDMC/LSMW   502   I
    IDoc '0000000002489289' added                                                                      E0                         097   S
    File 'XXX.lsmw.conv' transferred for IDoc generation                                      /SAPDMC/LSMW   812   I
    Data transfer terminated for object 'MATMAS' (project 'X', subproject 'Y')      /SAPDMC/LSMW   516   I
    In both cases the IDOC is created and update works fine.
    My only issue is that I can't see the IDOC number in the dev system. I know I can get the IDOC number in WE02, but in this case we have program logic which reads the job log to be able to check IDOC status before sending OK message back to the other side of the interface.
    I hope any of you can have an idea how I can update somewhere to get message E0-097 with IDOC number into the log.
    Regards,
    Lisbeth

    Hi Arun,
    If you want to show your messages in the job log you have to use the MESSAGE statement. In case you use WRITE statements an output list be created which can be found in the spool (there is an icon to go to the spool directly).
    Regards,
    John.

  • Background Job Log - Interface error

    Hi,
    I am using a program in back ground which will transfer the data from one FTP server to another FTP server, the program is scheduled in back ground, the Job appears in green means sucessful but
    in Job log I get the following log, (an if there are 10 file to be sent, 8 files moves but 2 files fails).
    ftp> Interactive mode Off .#                                                   
    ftp> prompt                                                                    
    ftp> open primary-proxy                                                        
    Invalid command.#                                                              
    Invalid command.#                                                              
    ftp> sk74n2w9                                                                  
    Not connected.#                                                                
    ftp> ascii                                                                     
    Not connected.#                                                                
    Not connected.#                                                                
    ftp> close                                                                     
    quit Transfer Complete                                                         
    > ftp: connect :Connection refused                                             
    D:\usr\sap\PRD\D00\work>endlocal 
    Please give your valuable imputs.
    Regards,
    Prabhu

    Hi all,
    Please give some inputs on the above question. and any clarifications pls let me know.
    Regards,
    Prabhu
    Edited by: prabhu jayaraman on Dec 9, 2008 7:06 AM

  • Schedule lines for an external operation in a production order

    Hi All,
    I have an external operation defined in a production order and a scheduling agreement is assigned to it in the Routing operation details.  Now, i want to generate schedule lines when a production order created but the system always generating a purchase requisition.  Do we need something to be configured in the background?  Please help!
    The idea is to have the goods receipt done against the same agreement always.
    Regards,
    Sravan

    Hi Sravan,
    As per my view point, this is standard SAP behaviour. System will generate PR only in case of external operation.
    If you go to OPL8 (Order type dependent parameters) for your respective order type & plant combination you have option of maintaining setting related to PR only and there is no option of using scheduling agreement or generating schedule lines.
    I don't see any possibility to use scheduling agreement using to have schedule lines for external operation.
    Regards,
    Tejas

Maybe you are looking for

  • How to do addition of two columns cells in Matrix.

    Hi All, I tried following code on LostFocus event of Mtrix. I want to do addition of two columns cells of matrix and addtion display in third column. I tried the following code but in this I am getting the column value and when i enterd any value in

  • Script works in PowerGUI, not in ISE or from powershell.exe

    Hi, I am trying to integrate with the Manage Engine Password Manager PRO Rest API.. I have some code working on my desktop where I currently use PowerGUI this was all seemingly working correctly.. I have then gone to execute the code from a window on

  • Sync old iPod to new mac

    need help importing song from ipod shuffle that is synched with old computer.

  • No partner bank types exist

    My client has properly entered bank information for a customer using FD02 for 2 banks including the field Bank type. So while entering an invoice - say by FB70, it should display that information under Part. Bank type. But instead they get a message

  • Error(not code #) when I try to open a JPG file in PhotoshopCS3

    I get a program error(not code #) when I try to open a JPG file in PhotoshopCS3 containing smart objects. I am running OS 10.5 on Intel Mac. Appreciate any feedback