Will BAPI write to Spool by itself?

Hi,
I am calling a BAPI in a program to create a sales order and writing all the BAPI return messages to the output of the program. When I schedule and run the program in the background, I can see more BAPI relevent error messages in the job log than the ones written to the program output. Could anyone please write me whether, when the BAPI is called will it write some messages to the spool by itself from within the BAPI?
Any help is really appreciated..
Swetha

As per my understanding Bapi(standard) will not write anything to the spool. The bapi will only return all the messages in the bapi return table. the program has to loop in the bapi return table and write the messages to the spool.

Similar Messages

  • Maxl Script will not write to error file for data laod.

    Sorry Glenn here is the new thread. I re ran without the semi colon after data 3 and the same error came up without anything being written to the error file.
    I purposely removed a member from the orginal outline that is included in the data loaded but yet the error file is not written to. I tried doing the load manually but executing it in the background, error file is to be created on my local HD but it does not write it there. Checked the output and it is written to a directory located on the server. Although i think this is normal.
    Could it be that it will not write to a local drive? I am going to try specifying a spot on the server to see if it runs there.
    thanks
    Original post below.
    Hello,
    I am also having this issue.
    I will include my script below but will state some details before
    We are on Essbase 11.1.1.3
    I am running Admin Console from my client PC that connects to the server in the script and I read that in this set up the error file will not get written to. This documentation was for v 9.1.3
    Here is my script (i changed some of the names)
    login 'user' 'password' on server';
    create application 'Money1' as 'Money2';
    spool stderr on to 'errorfile';
    import database 'Money1'.'Main' data
    from local text data_file 'Money1_Data.txt'
    using server rules_file 'Data3'
    on error append to 'dataload.err';
    execute calculation 'CALC ALL;' on 'Money1'.'Main';
    logout;
    spool off;
    exit;
    here is the error output i get:
    code line: on error append to 'dataload.err';
    Statement executed with warnings.
    (3) Syntax error near ['$']
    I don't see a dollar sign anywhere in my code and the error file does not get produced.
    Also do error files get written too if the actins are executed in the background?
    Thanks!
    Alex

    This works for me in a MaxL script run through essmsh.exe:
    import database appname.dbname data from local text data_file "d:\\datafilename.txt" using server rules_file "rulename"
         on error write to "d:\\errorfilename.err" ;Sometimes EAS (I think you are running it through that) does weird things to MaxL. I eschew MaxL in EAS as much as possible (like 100% of the time).
    NB -- the datafilename and errorfilename and their drive letters are local to wherever you're running this process through the MaxL shell. I don't know how that works when you're running EAS -- are drives local to your session, local to the EAS server? Dunno. Leave EAS behind, buy TextPad (no I am not the author of that fine product) and download the MaxL syntax library, and be happy. :)
    Regards,
    Cameron Lackpour
    Edited by: CL on Oct 7, 2010 7:12 AM
    Put the MaxL into a code block to get it to display correctly.

  • If i already have a data carrier setting in my iphone 4, and i want a upgrade for the setting via itunes, will it write over my existing settings?

    If i already have a data carrier setting in my iphone 4, and i want a upgrade for the setting via itunes, will it write over my existing settings?

    You can set up more than one device on your computer, and iTunes will remember the settings for each of them:
    How to use multiple iPods, iPads, or iPhones with one computer
    But you'll have to use your Apple ID to sync bought media to her device. Disable all other things you don't want to sync like photos, contacts, etc.

  • IPhoto 9.2 photo descriptions will not write - after a few letters words self erase!

    iPhoto 9.2 photo descriptions will not write - after a few letters words self erase! Program update downloaded earlier today, 24.10.11. Fine on my laptop, but my desktop is having problems.

    Rebuild the main library.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • Code will not write to text

    Hello to all:
    Can someone give advice to why the code below will not write to the text that I save. In other words, when I write a text file then save it then open the text file again, all of the words that I have written are not seen.
         private File workingFile = null;
      private JTextArea jta;
    private void saveFile()
                   if (workingFile != null)
                        try
             FileOutputStream fos = new FileOutputStream(workingFile);
                             fos.write(jta.getText().getBytes());
                             fos.close();
                                            //write the file out through FileWriter
                   PrintWriter outFile = new PrintWriter(new FileWriter(workingFile));
                   outFile.print(area.getText());
                   outFile.close();//close the text file
                        catch (IOException e) { e.printStackTrace();
                   else
           JFileChooser jfc = new JFileChooser();
                   jfc.setDialogTitle("Save Document");
                   int option = jfc.showSaveDialog(null);
                   if (option == JFileChooser.APPROVE_OPTION)
                   try
              FileOutputStream fos = new FileOutputStream(jfc.getSelectedFile());
                             workingFile = jfc.getSelectedFile();
                             fos.write(jta.getText().getBytes());
                             fos.close();
                        catch (IOException e) { e.printStackTrace();
              }

    ok, I found the line that is causing the exception. Line333 which is in
    the second if statement , the following:fos.write(jta.getText().getBytes());
    Now how would I fix that besides deleting itCan you post the first few lines of that stacktrace? Either jta or fos
    (or both) are null; the stacktrace shows you which one caused the
    NullPointerException.
    Of course you can add a few debug prints just before that line:System.out.println("jta: "+jta);
    System.out.println("fos: "+fos);kind regards,
    Jos

  • My Mac OS X 10.4.11 will not write DVDs and gets error code 0x80020022, what is wrong?

    My Mac OS X 10.4.11 will not write DVDs and gets error code 0x80020022, what is wrong?

    That code is not really useful since it just means it can't write DVD's (or probably CD's).  The only thing you can do is first to try a different brand of DVD's, higher quality.  You could also try burning at a slower speed.
    Based on the fact that you are using an OSX that's no long supported, there's probably not much you can do to correct this issue if it is software related.  You may also have a failing Super Drive, another consequence of an older Mac.

  • OPC will not write to AB L32E - Will Read

    OPC will not write to AB L32E - Will Read.
    I have been able to set up a OPC Server using the NI OPC Server, using the ControlLogix Ethernet driver for the AB 1769-L32E PLC.
    All of the tags can be seen. The Lookout 6.7.1 will see real time data, but anything I write too, never shows up in the PLC.
    Using the OPCclient in Lookout. Their is No alarm's, other than a value has been adjusted by direct user input..
    Their is no comm errors.
    I just purchased this software last month.
    The NI OPC Server, Events, no errors.
    Thanks.
    Dave
    Solved!
    Go to Solution.

    Thanks for your posts because I knew this should be possible.  Here is what I found.  Check step 4 of your channel in case your value updating is wrong or Step 11 of  device is set to do not create on startup.
    Thanks to the folks at Kepware. I was able to get this working for CompactLogix L32E.
    Step 1: In NI OPC Server Create a new Channel. Channel Name can be whatever you want.
    Step 2: Device driver will be ControlLogix Ethernet.  You can also enable diagnostics if you want.
    Step 3: Network adapter. I used default setting.
    Step 4: Write only latest values.  Duty at 10. ( These are default settings and are recommended.)
    Step 5: Finish new Channel setup
    Step 6: Click on Icon to create new device
    Step 7: Device Name can be whatever you chose.
    Step 8: Select Device Model in this case CompactLogix 5300
    Step 9: Device ID For me was IP Address XXX.XXX.XXX.XXX,1,0    (Note the 1 directs path to backplane. The 0 to the slot where processor is)
    Step 9: Device timing.  Leave at defaults.
    Step 10: Auto demotion leave unchecked.
    Step 11: Leave at defaults Do not generate on startup Delete on create and allow subgroups
    Step 12: Port and watchdogs at default settings
    Step 13: Project options leave at default. (In my case I changed to short as that is what most of my tags were)
    Step 14: Create tagname from device.
    Step 14: Finish Device setup.
    You now have two options. 
    Option 1: Start creating tags as you need them. (This is what I did)
    Option 2: Right Click newly created device and select properities.  Then select database creation and click auto create.
    Go To Lookout  and create new driver. 
    Select OPC Client
    Server name will be from dropdown menu. National Instruments:NIOPCServers
    Click okay
    You should be done and smiling. 

  • I have a partition on my IMac disk and Windows 7 loaded on one partition.  I tried to open and W7 will not open and cannot repair itself.  Is there a diagnostic/disk repair from Apple that I can try before reloading W7?

    I have a partition on my IMac disk and Windows 7 loaded on one partition.  I tried to open and W7 will not open and cannot repair itself.  Is there a diagnostic/disk repair from Apple that I can try before reloading W7?

    Csound1 What Ive been trying to explain is that I have been running bootcamp, I open the app where the first screen is the introduction, i hit continue, the first time I select "download the latest windows support software fromm Apple" then I return and instead select "Install Windows 7." Then hit continue. The third screen is where I "Create a Partition for Windows" I set Windows to 80 gigs then hit INSTALL. As stated before Bootcamp cannot find the install drivers saying "The installer disc could not be found." My windows software is on a USB drive not a disc, I tried using a virtual disc reader to make it appear that the windows software was running on a disc, still no luck. What I would like to know is how to install windows on bootcamp.

  • Help to restore my iphone and it will not write error 1002

    help to restore my iphone 3gs and it will not write error 1002

    Click 1002 >  iOS: Resolving update and restore alert messages

  • Cookie will not write using weblogic 5.1 and Apache

              Hi,
              I'm having problems having my application write cookies under the UNIX environment. It works fine under
              the NT environment. Could this be a problem with the Apache plugin and weblogic 5.1???
              Under the UNIX environment, it will not write to the cookies at all. Is it because I have weblogic and apache
              on two sperate machines?? Any advice would be much appreciated.
              Thanks,
              Wayne
              

    There is no apache 2.x plugin for WLS 5.1.
    Sorry,
    Eric
    "sridhar" <[email protected]> wrote in message
    news:[email protected]..
    Hi
    I am trying to use the webservices of apache 2.x server. I am usingweblogic 5.1 application server. Can you give the details of installation
    and configuration of plugins which is compatable for the version as i said
    above? As far as i search on BEA site i didnt get the solution for the
    version i mentioned. An early reply is expected.
    >
    Thanks a lot
    sridhar

  • When will we write Technical Specifications ?

    I am new to ABAP and i would like to know about technical specifications....i:e when will we write Technical Specifications that is before Developing the Object or After developing the object. And what is in it ?
    Regards
    Moved to a more appropriate forum.
    Edited by: kishan P on Feb 15, 2012 10:46 AM

    Actually agree with Lukas.
    A good functional spec should be written up front and should not normally change.  The initial technical specs will often change and need to be updated after full testing and acceptance.
    The problem is many folks think the functional spec should be written to the level of a technical spec.  In some places they become, (or are), one and the same.
    The functional spec should represent the goal.  While the technical spec should be the actual steps or plan used to accomplish that.  There are often many ways to reach the same goal, some better than others.
    FF

  • Tethered 30D will not write to CF card

    When tethered to Lightroom 3.3 my Canon 30D will not write to the CF card although the tether functions ok.
    I understand I can go through Eos Utility but I would rather not use it due to problems caused by cable unplugs etc.
    Anyone solved this problem yet ?

    Hi Pete,
    Thanks for your quick response. But the 30d has only a setting to shoot with or without card, either setting are with the same result only writing the files to the computer.
    B.M.

  • Meta Data Will Not Write! I've tried everything...

    So, I love LR very much, except for the fact it WILL NOT write metadata. I've done numerous tests with Picasa, IrfanView, and other applications and while other applications successfully write to the IPTC header of the jpg or sidecar, I cannot get LR to write any of the metadata for the life of me. I've turned on and off the "Write XMP" checkbox in the options.
    I've waited a substantial amount of time, then checked the file in a reader app and never see any kind of change to the file.
    Why won't Lightroom write the metadata through to the file? It reads it in fine, but I cannot get it to update the file.
    Thanks for your thoughts.

    There's another issue here. Depending on what you're looking at it with, the programs cache. I was going crazy thinking they were not being written by looking with exifer and several other programs. Someone said try Bridge, which I'd never used, and voila, they were there. Bridge ALSO caches, but there is an option to empty the cache for this folder and you have to do that every time you want to check if Lightroom has written something. If you're on Windows, Microsoft Photo Info does display some metadata fields and does not have the caching problem.
    In my case, I'm checking dates I'm writing in exifer for Lightroom, since Lightroom can't write capture and digitize dates.

  • Write to spool even when job abends?

    There's got to be a way to do this, but I can't seem to find it.  I have several background jobs, each of which writes some diagnostic information to the spool.  That diagnostic information would be most useful in cases where the job terminates unsuccessfully.  But, in those cases, the spool is never saved, and all that information is lost.
    I know I can write to the job log instead of the spool, but is there a way other than the log to obtain\show that information?  Assume that my program is robust enough to capture all error conditions before terminating.

    Hello Chris,
    I'm sure you might be knowing this, but shall post it here anyways, just in case it skipped your mind.
    When you run a background job, the job will abend when either of the following types of message are issued in the program:
    1. Warning Message ( Type W )
    2. Error Message ( Type E )
    3. Abend Message ( Type A )
    4. Short Dump Message ( Type X )
    In case of either an Abend Message or a Short Dump Message, the entire spool list is erased and thereafter unavailable.
    However, in case of either an error message or a warning message, the contents of the spool till the point where the message has occurred are retained.
    So, in your case, I suspect that there are some abend messages in the program, issued upon erroneous conditions. If you could change them to ERROR messages (or WARNING messages as you deem appropriate), the spool list is not destroyed.
    For your further understanding, I have included the following code snippet.
    =======================================================
    do 10 times.
    write : / sy-index.
    case sy-index.
    when 3.
    message s702(bctrain).
    when 5.
    message i702(bctrain).
    when 7.
    message w702(bctrain). " or message e702(bctrain).
    endcase.
    enddo.
    =======================================================
    The above program, when scheduled as a background job will get abended, but will retail the spool list :
    1
    2
    3
    4
    5
    6
    7
    After 7, the warning message abends the job and no other numbers are printed.
    Hope this explanation would help you overcome your problem.
    Regards,
    Anand Mandalika.

  • BAPI Write-up of an Asset (ABZU)

    In asset write-ups Tcode ABZU. i want to change ordinary depreciation for area 50.
    Is there any BAPI available for my thing.

    Hi Priyanka,
    Use transaction OAXE.
    Limit transactions type for depreciation area.
    Give the transaction type which you are using there.
    <b>Rewards point for useful answer.....</b>
    Regards...
    Abhay SIngh

Maybe you are looking for

  • Emac wont boot from cd or hard drive & display qeustion mark ?

    Hello, if someone can please help me. I have an emac which is purchased in 2003, it has ran OSX 10.4 for around a year. Recently i clean installed the hard drive, but the installation kept failing. When I restarted the computer a flashing qeustion ma

  • Rank calculation in Oracle iSourcing.

    Hi All, I am facing a problem as users are not satisfied with the ranking shown for the bidders by the system. Here the ranking is calculated based on price only. Can some one help me out finding the process/procedure used by Oracle to calculate the

  • Delivery costs to be loaded on material cost

    Hi, Our client wants the delivery costs (Freight/ Octroi/ Delivery Charges.etc) to be loaded on material. But mean time they want system to calculate taxes on net value of the PO, not on Material value plus delivery costs. Request to guide me to map

  • Can't get rid of Reading List side pane

    I turned my computer on and brought up Safari. I didn't realize that the wifi wasn't turned on. It said that I could click on Reading Lists to read pages without being connected. I clicked on it just for fun and the Reading List Side Panel came up on

  • Dreamweaver CS6 glitch - HTML tag pop up pops up and stays

    I'm in code view typing code. Sometimes the HTML tag pop up will pop up and instead of being helpful, it just stays there and the auto-complete HTML tag functions stop working. It is quite annoying on two levels. I cannot consistently recreate the is