Executing commands before modules are loaded?

Hi!
I'm searching for a way to execute some commands before the modules are loaded.
I have a Thinkpad 600E and I need to activate my soundcard via
# echo 'activate' > /sys/devices/pnp0/00:06/resources
# echo 'activate' > /sys/devices/pnp0/00:07/resources
as it won't get activated via BIOS.
This needs to be done before the modules get loaded, else the snd-cs4236 won't see the card.

This seems like a good idea. I posted the info for install below so you don't have to look it up:
install modulename command...
This is the most powerful primitive in modprobe.conf: it tells
modprobe to run your command instead of inserting the module in
the kernel as normal. The command can be any shell command:
this allows you to do any kind of complex processing you might
wish. For example, if the module "fred" worked better with the
module "barney" already installed (but it didn't depend on it,
so modprobe won't automatically load it), you could say "install
fred /sbin/modprobe barney; /sbin/modprobe --ignore-install
fred", which would do what you wanted. Note the --ignore-
install, which stops the second modprobe from re-running the
same install command. See also remove below.
You can also use install to make up modules which don't other-
wise exist. For example: "install probe-ethernet /sbin/modprobe
e100 || /sbin/modprobe eepro100", which will try first the e100
driver, then the eepro100 driver, when you do "modprobe probe-
ethernet".
If you use the string "$CMDLINE_OPTS" in the command, it will be
replaced by any options specified on the modprobe command line.
This can be useful because users expect "modprobe fred opt=1" to
pass the "opt=1" arg to the module, even if there's an install
command in the configuration file. So our above example becomes
"install fred /sbin/modprobe barney; /sbin/modprobe --ignore-
install fred $CMDLINE_OPTS"

Similar Messages

  • Webcam modules automatically loading?

    I made a package that puts the quickcam drivers in /lib/modules/2.6.6/kernel/drivers/usb/misc/.  Everytime I boot, the modules are loaded.  There not in modprobe.conf, modules.conf, rc.conf, or in rc.local.  How are they getting loaded?   When i lsmod, they're at the bottom of the list, before vfat and ntfs... Why?

    Hi,
    Just a quick thought:
    If the webcam is plugged in the computer on boot up, the kernel finds it and load the driver, so just unplug the cam...
    Of course it's not plugged in, it does sound a bit weird...

  • Executing Commands Title

    Hi everyone,
    When I open a VI file, I see an additional title "Executing commands" before the title of the VI in the windows title bar. However, not all of the files show the same thing. What does it mean? How to remove this?
    thx
    Solved!
    Go to Solution.

    Hai,
    If you would like to change the title bar heading got to  File>>VI Properties>>Window appearence>>
     You have something called "Window title".  When the text is changed there it reflects in the window title bar.
    Hope this helps.  Revert back for any queries.
    With regards,
    JK
    (Certified LabVIEW Developer)
    Give Kudos for Good Answers, and Mark it a solution if your problem is solved.

  • [SOLVED] Many modules are not loaded in the Arch USB key installation.

    Hello!
    I installed Arch Linux on my USB key. I did it few months ago and it worked, I had portable arch.
    Yesterday I decided to make a fresh installation. Unfortunately after booting it from my USB key
    most of the modules were not loaded. Because of that I couldn't start the X server and connect to
    the internet (ethernet card was not detected).
    Even after loading the module which corresponds to my ethernet card manually (modprobe e1000e) it was not
    displayed in the lsmod list.
    I though "maybe I screwed something up during the installation?". To find out I used GParted to copy
    my OS partition (perfectly working Arch Linux installed on the hard drive) to the USB key. Of course I changed the UUID of the USB partition.
    After booting it I was suprised because the situation did not change - modules that are loaded on my main system for some
    reason were not loaded on it's exact copy placed on the USB key.
    I have no idea why my portable OS is acting like this.
    Commands below were executed on another PC so don't look for the e1000e module.
    $ lsmod
    Module Size Used by
    ext4 474699 2
    crc16 1367 1 ext4
    mbcache 6082 1 ext4
    jbd2 83440 1 ext4
    usb_storage 48007 2
    ata_generic 3378 0
    pata_acpi 3395 0
    hid_generic 1161 0
    usbhid 40577 0
    hid 90742 2 hid_generic,usbhid
    sr_mod 14898 0
    cdrom 34848 1 sr_mod
    sd_mod 30821 3
    pata_atiixp 4819 0
    ehci_pci 4000 0
    ohci_pci 4040 0
    ohci_hcd 23905 1 ohci_pci
    ehci_hcd 59252 1 ehci_pci
    usbcore 180104 6 usb_storage,ohci_hcd,ohci_pci,ehci_hcd,ehci_pci,usbhid
    ahci 23056 0
    libahci 21642 1 ahci
    usb_common 1656 1 usbcore
    libata 171112 5 ahci,pata_acpi,libahci,ata_generic,pata_atiixp
    scsi_mod 130669 4 usb_storage,libata,sd_mod,sr_mod
    nouveau 904702 0
    button 4677 1 nouveau
    video 11196 1 nouveau
    mxm_wmi 1475 1 nouveau
    wmi 8419 2 mxm_wmi,nouveau
    i2c_algo_bit 5399 1 nouveau
    drm_kms_helper 36254 1 nouveau
    ttm 63507 1 nouveau
    drm 238238 3 ttm,drm_kms_helper,nouveau
    i2c_core 24164 4 drm,drm_kms_helper,i2c_algo_bit,nouveau
    $ ip link
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    $ lspci #Just a fragment
    02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03)
    Subsystem: Gigabyte Technology Co., Ltd Motherboard
    Flags: bus master, fast devsel, latency 0, IRQ 10
    I/O ports at de00 [size=256]
    Memory at fdaff000 (64-bit, prefetchable) [size=4K]
    Memory at fdaf8000 (64-bit, prefetchable) [size=16K]
    [virtual] Expansion ROM at fda00000 [disabled] [size=128K]
    Capabilities: [40] Power Management version 3
    Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
    Capabilities: [70] Express Endpoint, MSI 01
    Capabilities: [ac] MSI-X: Enable- Count=4 Masked-
    Capabilities: [cc] Vital Product Data
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [140] Virtual Channel
    Capabilities: [160] Device Serial Number 07-00-00-00-68-4c-e0-00
    $ cat /etc/X11/xorg.conf
    # nvidia-xconfig: X configuration file generated by nvidia-xconfig
    # nvidia-xconfig: version 331.38 (buildmeister@swio-display-x64-rhel04-15) Wed Jan 8 19:53:14 PST 2014
    Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0" 0 0
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
    EndSection
    Section "Files"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Keyboard0"
    Driver "kbd"
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "Unknown"
    HorizSync 28.0 - 33.0
    VertRefresh 43.0 - 72.0
    Option "DPMS"
    EndSection
    Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    EndSubSection
    EndSection
    $ cat /var/log/Xorg.0.log
    [ 59.424]
    X.Org X Server 1.15.0
    Release Date: 2013-12-27
    [ 59.424] X Protocol Version 11, Revision 0
    [ 59.424] Build Operating System: Linux 3.12.5-1-ARCH x86_64
    [ 59.424] Current Operating System: Linux sanguine 3.12.7-2-ARCH #1 SMP PREEMPT Sun Jan 12 13:09:09 CET 2014 x86_64
    [ 59.425] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=2c39c1f9-de3e-4907-93dc-8b77422a07a1 rw
    [ 59.425] Build Date: 09 January 2014 08:47:24AM
    [ 59.425]
    [ 59.425] Current version of pixman: 0.32.4
    [ 59.425] Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    [ 59.425] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [ 59.425] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Feb 13 12:55:56 2014
    [ 59.433] (==) Using config file: "/etc/X11/xorg.conf"
    [ 59.433] (==) Using config directory: "/etc/X11/xorg.conf.d"
    [ 59.437] (==) ServerLayout "Layout0"
    [ 59.437] (**) |-->Screen "Screen0" (0)
    [ 59.437] (**) | |-->Monitor "Monitor0"
    [ 59.441] (**) | |-->Device "Device0"
    [ 59.441] (**) |-->Input Device "Keyboard0"
    [ 59.441] (**) |-->Input Device "Mouse0"
    [ 59.441] (==) Automatically adding devices
    [ 59.441] (==) Automatically enabling devices
    [ 59.441] (==) Automatically adding GPU devices
    [ 59.456] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
    [ 59.456] Entry deleted from font path.
    [ 59.456] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
    [ 59.456] Entry deleted from font path.
    [ 59.457] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
    [ 59.457] Entry deleted from font path.
    [ 59.457] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
    [ 59.457] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
    [ 59.457] Entry deleted from font path.
    [ 59.457] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
    [ 59.457] (==) FontPath set to:
    /usr/share/fonts/misc/,
    /usr/share/fonts/TTF/
    [ 59.457] (==) ModulePath set to "/usr/lib/xorg/modules"
    [ 59.457] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
    [ 59.457] (WW) Disabling Keyboard0
    [ 59.457] (WW) Disabling Mouse0
    [ 59.457] (II) Loader magic: 0x804c80
    [ 59.457] (II) Module ABI versions:
    [ 59.457] X.Org ANSI C Emulation: 0.4
    [ 59.457] X.Org Video Driver: 15.0
    [ 59.457] X.Org XInput driver : 20.0
    [ 59.457] X.Org Server Extension : 8.0
    [ 59.459] (--) PCI:*(0:1:5:0) 1002:796e:1458:d000 rev 0, Mem @ 0xd8000000/134217728, 0xfdfe0000/65536, 0xfde00000/1048576, I/O @ 0x0000ee00/256
    [ 59.459] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
    [ 59.460] Initializing built-in extension Generic Event Extension
    [ 59.460] Initializing built-in extension SHAPE
    [ 59.460] Initializing built-in extension MIT-SHM
    [ 59.460] Initializing built-in extension XInputExtension
    [ 59.461] Initializing built-in extension XTEST
    [ 59.461] Initializing built-in extension BIG-REQUESTS
    [ 59.461] Initializing built-in extension SYNC
    [ 59.461] Initializing built-in extension XKEYBOARD
    [ 59.461] Initializing built-in extension XC-MISC
    [ 59.461] Initializing built-in extension SECURITY
    [ 59.461] Initializing built-in extension XINERAMA
    [ 59.461] Initializing built-in extension XFIXES
    [ 59.461] Initializing built-in extension RENDER
    [ 59.461] Initializing built-in extension RANDR
    [ 59.463] Initializing built-in extension COMPOSITE
    [ 59.466] Initializing built-in extension DAMAGE
    [ 59.468] Initializing built-in extension MIT-SCREEN-SAVER
    [ 59.470] Initializing built-in extension DOUBLE-BUFFER
    [ 59.472] Initializing built-in extension RECORD
    [ 59.475] Initializing built-in extension DPMS
    [ 59.477] Initializing built-in extension Present
    [ 59.479] Initializing built-in extension DRI3
    [ 59.481] Initializing built-in extension X-Resource
    [ 59.483] Initializing built-in extension XVideo
    [ 59.485] Initializing built-in extension XVideo-MotionCompensation
    [ 59.487] Initializing built-in extension XFree86-VidModeExtension
    [ 59.490] Initializing built-in extension XFree86-DGA
    [ 59.492] Initializing built-in extension XFree86-DRI
    [ 59.494] Initializing built-in extension DRI2
    [ 59.494] (II) LoadModule: "glx"
    [ 59.502] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [ 60.382] (II) Module glx: vendor="NVIDIA Corporation"
    [ 60.388] compiled for 4.0.2, module version = 1.0.0
    [ 60.388] Module class: X.Org Server Extension
    [ 60.388] (II) NVIDIA GLX Module 331.38 Wed Jan 8 19:10:17 PST 2014
    [ 60.401] Loading extension GLX
    [ 60.401] (II) LoadModule: "nvidia"
    [ 60.401] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
    [ 60.455] (II) Module nvidia: vendor="NVIDIA Corporation"
    [ 60.455] compiled for 4.0.2, module version = 1.0.0
    [ 60.455] Module class: X.Org Video Driver
    [ 60.462] (II) NVIDIA dlloader X Driver 331.38 Wed Jan 8 18:51:00 PST 2014
    [ 60.462] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
    [ 60.464] (++) using VT number 1
    [ 60.464] (EE) No devices detected.
    [ 60.464] (EE)
    Fatal server error:
    [ 60.464] (EE) no screens found(EE)
    [ 60.464] (EE)
    Please consult the The X.Org Foundation support
    at http://wiki.x.org
    for help.
    [ 60.464] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
    [ 60.465] (EE)
    Last edited by Skitter (2014-02-16 20:57:21)

    Please post the output of:
    dmesg -c
    modprobe e1000e
    dmesg

  • PS not letting me edit some random commands before executing them...

    PS not letting me edit some random commands before executing them, including Duplicate, Fill, Print Preview, Stroke...possibly others I haven't discovered.  When I click the dropdown choice, an edit window used to let me tailor pixel widths, color, etc. (I know, [it's what] 'edit' means). Now, the little eyedropper icon replaces my cursor, all top menus are grey except 'View' and 'Window', I get that awful 'doont!' sound, and my only option is to just hit 'Enter' and it executes the command with whatever preferences I last set before this problem, usually of no present use to me. I have relaunched PS, restarted the computer with no other tasks and relaunched, and impotently shaken my fist at the screen to no avail. Please help me, and if you'd be so kind, just email me the answer 'proteus19m (at) yahoo (dot) com'. Thank you very much.

    Try resetting your preferences.  Start PS and hold down crtl alt shift keys (cmd option shirft on mac) immediately.  If fast enough you will get a reset window.

  • Blacklisted modules are still loaded

    I can't blacklist battery and nouveau modules, they always show in mkinitcpio -M.
    I put
    blacklist battery
    blacklist nouveau
    in /etc/modprobe.d/modprobe.conf and then put this file in FILES section in /etc/mkinitcpio.conf, run sudo mkinitcpio -p linux, restart, but the modules are there...
    Any help please?
    Last edited by hariskar (2014-05-20 15:09:06)

    skottish wrote:Why are you adding them to the files section in mkinitcpio.conf? Blacklisting them should be enough.
    Besides this, there is not the modconf hook which will add these files automagically.
    I have no idea about blacklisting these particular modules, but I am fairly certain that blacklisting modules will not entirely prevent them from being loaded.  If they are called directly from the command line they can be loaded, but also if they are a dependency of another module that is loaded by udev they will be pulled in as well.  If you really want it to not be able to load under any circumstances, you need to use the 'install' option:
    install nouveau /bin/false

  • Error while executing "" command Error type ACCESS VIOLATION Error Address: 0006898E Module name:gfsdesk.DLL

    Hi All,
    I'm using diadem from .net Program. While on the run I'm getting the following error.
    Error While executing "" Command
    Error type ACCESS VIOLATION
    Error Address: 0006898E
    Module name:gfsdesk.DLL
    Anyone have any idea why this is happening?
    regards,
    Swaroop

    Hi Swaroop,
    It would be helpful to better understand what your code really does. The information that you called DIAdem from your enviroenment is not yet sufficient to understand what the problem might be.
    Andreas

  • ASDM error - you do not have sufficient privileges to execute commands required to load asdm

    I am getting below error to log in via ASDM for ASA firewall.
    Please help.

    Hello Gurujaj,
    You are running AAA on your network and you are running authorization,
    The user you are using does not have the command authorization set to load the ASDM,
    The ones need it are:
    Commands required to log ASDM
    privilege show level 3 mode exec command logging
    privilege show level 3 mode exec command blocks
    Regards,
    Julio Carvajal

  • TS3408 why will some websites which loaded fine before now not load - when other favourites load fine, and new searches are fine?  This only affects 2 websites, both of which were bookmarked.  I have removed them as bookmarks and this makes no difference.

    why will some websites which loaded fine before now not load - when other favourites load fine, and new searches are fine?  This only affects 2 websites, both of which were bookmarked.  I have removed them as bookmarks and this makes no difference.

    From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.

  • Windows Image Deployment - WinPE - Execute Command After Server Image Deployment but Before WinPE Reboot

    Simplified version: Execute command in WinPE after server image deployment but before WinPE reboots.
    I have a custom ISO with a boot.wim and install.wim for deploying Windows Server to our environment. Our environment does not allow DHCP and we have no static IPs available at build time so this will all be done with no internet connection during all phases
    of deployment.
    We have a custom HTA form that generates an XML file based on user input and stores it on the RAMDisk during WinPE. How can we move this XML file from the RAMDisk to the deployed Windows Server image?
    Thanks in advance, Tim

    I believe you should be able to do this during the offlineServicing configuration pass.  You would just need to add into your answer file a command or script to copy from the XML file over to the newly created C:\ drive.  
    I don't have System Image Manager installed on the computer I'm using but if I recall there is a spot during the offlineServicing pass to execute custom commands. You would just add your script path there, the WinPE system drive letter is
    X:\ , and I think the target drive letter Windows is installed to might change depending on how many devices you have hooked up so do a test install and hit SHIFT-F10 , from there you can run diskpart > list volume to see where the new Windows
    install is located. 
    Another alternative could be using a USB drive as your install media, then you can run a script during offlineServicing to copy that XML over to the USB drive.

  • Multiboot kernel must be loaded before modules

    Hello,
    Does anybody knows what is the problem here.
    kernel /I86PC.Solaris_10-1/multiboot kernel/unix - install dhcp -B console=ttya
    ,install_config=10.203.68.40:/opt/SUN/InstallServer/jumpstart,sysid_config=10.2
    03.68.40:/opt/SUN/InstallServer/config/svr101,install_media=10.203.68.40:/opt/S
    UN/InstallServer/sol10_8_07_x86,install_boot=::1:/opt/SUN/InstallServer/sol10_8
    _07_x86/boot
    module /I86PC.Solaris_10-1/x86.miniroot
    Error 20: Multiboot kernel must be loaded before modules
    It's jumpstart installation.
    Thanks
    Mario

    I am getting similar error after upgrading my jumpserver form solaris 10 u2 to solaris 10 u6.
    kernel /I86PC.Solaris_10-3/multiboot kernel/unix -B console=ttya,install_config
    =10.2.11.240:/jumpserver/jumpstart,sysid_config=10.2.11.240:/jumpserver/Sysidcf
    g/5.10u6/x86,install_media=10.2.11.240:/jumpserver/install/5.10u6/x86,install_b
    oot=10.2.11.240:/jumpserver/boot/5.10u6/x86/Solaris_10/Tools/Boot
    module /I86PC.Solaris_10-3/x86.miniroot
    Error 20: Multiboot kernel must be loaded before modules
    Press any key to continue..
    ANY Suggestsion ?
    Thanks,
    W

  • Migrated to systemd, modules are not loading [solved]

    Hi;
    I got around to migrating to systemd, but now modules are not loading. I got this setup (i gave full permissions thought it would help):
    $ ls /etc/modules-load.d/
    -rwxrwxrwx  1 root root   20 Dec  2 22:34 vbox*
    $ cat /etc/modules-load.d/vbox
    #vbox
    vboxdrv
    loop
    Any methods of debugging why this doesnt work?
    Thanks.
    Last edited by daf666 (2012-12-03 21:01:26)

    the files have to end with ".conf". And -x permissions are certainly not necessary.
    man modules-load.d

  • How many types of function modules are there

    hi gurus,
    how many types of function modules are there...
    what type of function module bapi  is....
    i don't know much about that...
    pls help me...
    regards,
    praveen

    hi
    hope it will help you.
    <REMOVED BY MODERATOR>
    Function Modules Used in Script:
    In the Driver Program we must use all or some of the function modules that are listed below to transfer the data.
    • Open_Form
    • Close_Form
    • Start_Form
    • Write_Form
    • Write_Form_Lines
    • End_Form
    • Control_Form
    • Read_Form_elements
    • Read_Form_Lines
    Any driver program must contain Open_Form, Close_Form and Write_Form. Other function modules are optional.
    OPEN_FORM: This function module opens layout set printing. One must call this function module before he uses any of other layout set function modules like Write_Form, Start_Form, Control_Form etc., You need specify a layout set name in the export parameters of this function module. If nothing is passed to Open_Form then one should use Start_Form function module to open layout set before starting the output. The layout set opened by Open_Form should be closed by Close_Form function module, other wise output doesn’t appear. We can use any number of Open_Form, Close_Form functions in one single program. But Close_Form must be there for every Open_Form in the program.
    Some of the important export parameters we have to pass to Open_Form function module.
    Form: Enter the Layout set name here, which then controls the output formatting. If nothing is specified then we must use Start_Form for opening layout set.
    Language: Layout sets are Language dependent. Enter the desired language here. If the entered layout set is not in that language, then the function tries to open the Form entered in its original language. The default value is SY-LANGU.
    Device: SAP Script can format a text on different device types. The device can be ‘PRINTER’ or ‘TELEX’, ‘TELEFAX’, ’ABAP’ and ‘SCREEN’.
    Dialog: Use parameter DIALOG to determine whether to display a dialog box before printing, in which the user can set several spool parameters for print formatting. Possible values: SPACE displays no print parameter screen. 'X' display print parameter screen. Default value: 'X'
    Options: Use parameter OPTIONS to set several options for print formatting. The parameter has the structure ITCPO. The user can change some of the defined settings on the print control screen. The default value for Options is ‘ ‘. We will discuss about ITCPO structure in detail later.
    Other Export, Import and Exceptions are self-explanatory.
    Close_Form: The function module closes the layout set opened using OPEN_FORM. The system executes any terminating processing steps for the last opened layout set. No Export parameters for this Function Module.
    Start_Form: In-between the function modules OPEN_FORM and CLOSE_FORM, we can use different layout sets. This allows us to combine several different layout sets into one print output. However, we can combine only those layout sets that have the same page format. To switch layout sets, use the function module START_FORM. If another layout set is still open, we must close it first using END_FORM. If we specify no layout set name when calling START_FORM, the system restarts the last open layout set. If after OPEN_FORM no layout set was activated yet, the system leaves the function module with the exception UNUSED. Some of the important export parameters for this function module are
    Form: The parameter contains the name of the layout set you want to use for printing. If you specify no layout set here, the system restarts the last active layout set.
    Language: Layout sets are language-dependent. Enter the desired language here. If the layout set does not exist in this language, the system tries to call the layout set in its original language. If the parameter LANGUAGE is empty, the system uses the language of the last active layout set.
    Startpage: Usually, SAP script starts with the page specified as start page in the layout set definition. If we want to start output with another layout set page, enter the name of the desired layout set page here. If the desired page is not defined, the system uses the start page defined in the layout set.
    Program: To replace program symbols, SAP script must know which active program contains the work areas for the values to be passed. If we omit the parameter, the system searches for the field values in the program that was specified in the parameter OPTIONS (field TDPROGRAM) of OPEN_FORM. If we enter a program name, the system replaces the program symbols with the values from this program up to the next END_FORM.
    Exceptions and other Export, Import parameters are self-explanatory.
    Write_Form: The system outputs the layout set element specified in parameter ELEMENT into the currently opened layout set. In the parameter WINDOW we can specify the name of a window for the output. Remember that the layout set element must be defined in this window. The parameter FUNCTION specifies how to merge the text lines to be output with any existing contents in the window. In this case, there are differences between the different window types or areas. Some of the important export parameters used in Write_Form.
    Element: Specify the name of the text element you want to output into the layout set window specified in the parameter WINDOW. The element must be defined in that layout set window. If you specify no element, the system uses the default element, if one is defined in the layout set.
    Window: Specify the name of the window into which you want to output the layout set element specified in the parameter ELEMENT. Default value for Window is ‘MAIN’.
    Function: The parameter determines how to output the text element into the respective window. The output type depends on the window type and area:
    Window Type: MAIN Area: BODY
    SET/APPEND: Appends to previous output.
    Window Type: Main Area: Top/Bottom and
    Window Type: Other than Main and all areas
    SET : Delete the old element contents and prints the new elements
    APPEND: Appends the new content to existing elements.
    Type: The system interprets this parameter only for output to the main window. The parameter determines the area of the main window into which we want to output the element. Possible values: 'TOP' header area
    'BODY' main area
    'BOTTOM' footer area
    Default value: 'BODY'
    Write_Form_Lines: This function module outputs the text lines in table LINES into the specified layout set window. The text lines must have the SAP script ITF format. From the data in the text header, the system uses only the field TDSTYLE to apply the formatting attributes defined in the specified style for this text. If the field is empty, the system uses the identically named formatting attributes (character and paragraph formats) of the layout set.
    Use parameter WINDOW to specify into which of the windows defined in the layout set we want to output the text. We can specify any window used in the layout set. The parameter FUNCTION determines how to merge the text lines to be output with any existing contents in the window. There are differences between the different window types or areas.
    Header: This parameter contains the header of the text module we want to output in the current layout set. For the formatting process, the system uses only the entries in the header fields TDSTYLE and TDFORM. Structure: THEAD
    WINDOW: Enter the name of the window into which we want to output the layout set element specified in parameter ELEMENT. Default value: 'MAIN'
    FUNCTION: This parameter determines how to output the text element into the respective window. The output type depends on the window type and area: Window type MAIN, area BODY: 'SET' append to previous output 'APPEND' same as SET. DELETE' no effect. Window type MAIN, areas TOP and BOTTOM; all other windows: 'SET' delete old window or area contents and output the element 'APPEND' append the element to the existing elements 'DELETE' no effect Default value: 'SET'
    TYPE: The system interprets this parameter only for output to the main window. The parameter determines the area of the main window into which you want to output the element. Possible values: 'TOP' header area 'BODY' main area 'BOTTOM' footer area Default value: 'BODY'
    END_FORM: END_FORM ends the currently open layout set and executes the required termination processing. After calling this function module, no more layout set is active. For further output, we must start a new layout set using START_FORM. No Export parameters.
    CONTROL_FORM: Use this function module to pass SAP Script Control Commands to the layout set. The Control command is passed through the export parameter ‘COMMAND’ in quotes.
    READ_FORM_ELEMENTS: This function module fills a table with all text elements that appear in one layout set. If we specify no layout set name, the system includes all elements of the currently open layout set. If we specify a layout set, the system uses the information about the active version of the layout set, retrieved from the database. Here we have two export parameters, Form and Language and a table parameter Elements.
    READ_FORM_LINES: Use this function module to transfer the lines of a layout set element into an internal table. If we specify no layout set name, the system transfers the text lines of the currently open layout set. If we specify a layout set, the system uses the text lines of the active version of the layout set from the database. The Export parameters are Form, Language, Window and Element. If we pass these 4 parameters the function module returns a table with the lines from layout set.
    Function modules are one element. There are no types. However sometimes an RFC enabled function module is referred to as RFC Function module, but really it is just a function module. Also BAPIs are function modules, but are usually referred to as just BAPI as opposed to BAPI Function module.
    There is no different function module types , but calling the function module will be different.
    check this function calls syntax
    1. Calls a function module:
    CALL FUNCTION func.
    2. Call a function module in a different mode (asynchronous Remote Function Call):
    CALL FUNCTION func STARTING NEW TASK taskname.
    3. Call a function module in the update task:
    CALL FUNCTION func IN UPDATE TASK.
    4. Call a function module in a remote system (Remote Function Call, RFC ):
    CALL FUNCTION func DESTINATION dest.
    5. Asynchronous call to a function module with transactional processing (transactional Remote Function Call):
    CALL FUNCTION func IN BACKGROUND TASK.
    qRFC with output queue
    6. Call a function module that can be activated in the context of enhancements:
    CALL CUSTOMER-FUNCTION func.
    Cheers,
    Chandru
    Edited by: Alvaro Tejada Galindo on Feb 27, 2008 11:53 AM

  • Powershell error while importing module and executing function from module

    powershell error while importing module and executing function from module
    Function called in uncertain order..
    VERBOSE: The 'Function1' command in the MyModule module was imported, but because its name does not include an approved verb, it might be difficult to find. The
    suggested alternative verbs are "Clear, Install, Publish, Unlock".
    VERBOSE: Importing function 'Function1'.
    VERBOSE: The 'Function2' command in the MyModule' module was imported, but because its name does not include an approved verb, it might be difficult to fin
    d. For a list of approved verbs, type Get-Verb.
    VERBOSE: Importing function 'Function2'.

    First of all those errors look more related to HBR, though if it worked before I would restart services then log into the planning app and then try again.
    Have you tried a different form as well one without an ampersand &.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Parallel port printer modules not loading autmatically

    According to the wiki entry for CUPS, either the kernel or or a small configuration file in /etc/modules-load (not /etc/modules-load.d) is supposed to automatically load these modules on boot. When I run lsmod I'm finding none of the printer modules (lp, parport, parport_pc) are getting loaded even though the printer is attached and powered up. Any idea why these modules are not loading? They load perfectly well manually with the modprobe command.
    As the wiki specifies, I do have a configuration file in place at /etc/modules-load/printing.conf with the following contents:
    lp
    parport
    parport_pc

    Commenting out the INSTALL lines in modprobe.conf worked perfectly.
    Before that i tried the stock kernel form current and am now using the one from testing. Neither worked with sound while the INSTALL lines were ther.
    What changed?

Maybe you are looking for

  • The section height is not valid

    Post Author: rbadis CA Forum: General Hi, I'm running and exporting a crystal report to PDF using C#.net on Crystal report Version 10.0 , and I'm handling the TextBoxes on my Crystal programmatically using this bit of code and it's working fine for 4

  • View Planner 3.5 - Unable to generate PDF report.

    I'm running into a problem where the run completes successfully and data is downloaded but generation of the PDF report fails.  I was able to successfully generate a PDF for a single VM local mode run but it is failing for a multi-VM local mode run. 

  • Wma conversion to use iTunes for Mac

    Does anyone know of freeware I can download to comletely convert my wma music files to mp3 so that I can use it in iTunes for mac? ( Switched from PC to mac, now i'm just struggling with my wma files i transferred from my PC - tried the new Windows M

  • ORA-06502: PL/SQL: numeric or value error ORA-06512: at "package.proc

    Hi, I'm getting the following error , when calling a procedure. Any input appreciated please ORA-06502: PL/SQL: numeric or value error ORA-06512: at "package.procedure ", line 513 ORA-06512: at line 26 v_counter     NUMBER; v_counter := 0; -- line nu

  • Dual internal hardrive problems in MacBook pro

    I installed a second hardrive in my 2011 17" macbook pro, When I had my events and projects on the second drive all was well.  When I installed an OS I can't see the events and projects on the second internal drive.  Why is is that I FCP won't see th