Ajustar valores de un control

Hola
Necesito saber si es posible modificar el valor por default de un control en una aplicacion.exe espero me puedan ayudar la version que estoy manejando es LabVIEW 8.2

Hola Zeakiller!
El valor por default de un control se puede modificar tanto en el VI como en la aplicación como en un ejecutable. La forma de hacerlo en el VI es muy sencilla pues solo seleccionas la opción "Make current value default" y listo!
Lo complicado comienza al hacerlo en el ejecutable, existen dos formas de hacerlo:
1.- A través de VI's de configuracióm que te crean un archivo .ini que carga los valores que tu decidas cada vez que la aplicación se ejecuta de nuevo
2.- Por medio de un archivo de texto que pasa los valores necesarios.
A continuación te anexo una liga que te indica como lograr lo anterior y te da un ejemplo para cada uno de los métodos que te comento:
http://digital.ni.com/public.nsf/websearch/86256F0E001DA9FE86256CE8006FED7A?OpenDocument
Espero esto resuleva tu problema, si tienes alguna otra pregunta no dudes en consultar de nuevo!
Te deseo un buen día
Oswald Branford

Similar Messages

  • Como se es esto

    Hola
    Tengo InDesign CS, pero nunca lo he usado --o casi nunca-- y siento que debería de aprender. Bueno, mi primera pregunta por hoy es: Si voy a hacer un libro de 10 paginas y InDesign me dice que la primera pagina a la izquierda es la numero 1 y la derecha es la 2, y asi susesivamente, entonces, cual es la portada? La pagina 2 o la pagina 1 ?
    Gracias y perdonen mi escritura
    Daniel Ulysses

    Hola Daniel...
    Yo no uso Indesign, prefiero Quark, pero te voy a hablar sobre las ventajas de usar programas de maquetación (Indesign, Pagemaker, Quark, ect) sobre otras aplicaciones.
    1) Control total sobre el texto, puedes crear estilos, ajustar valores de trapping, ajustar condiciones de parrafo y caracter a tus estilos, (cosas que no hace, freehand, Ill o Photoshop).
    2) Compatibilidad con los estilos creados en MS Word, te permite importar un archivo de word sin perder las caracteristicas de los estilos creados en word.
    3) Capacidad de crear pagina maestras
    4) En el caso de Indesign, compatibilidad entre Ill y Photoshop.
    Para que conozcas mas sobre los programas de maquetacion o diagramacion puedes revisar http://www.adobe.es/products/indesign/overview.html (esta en español, si te es mas comodo busca la misma informacion en la parte de ingles)
    Estos programas te permiten trabajar con muchas paginas a la vez, creando un documento flexible, de bajo tamaño, y con compatibilidad con los otros programas, ademas tienen funciones automaticas parecidas a las de word, crear indices, tablas, numeraciones automaticas, pies de paginas, ect., cosas que no hace photoshop. Ademas estos programas estan preparados para desarrollar imposiciones y hacer el montaje de tu trabajo en los pliegos de impresion, tomando en cuenta de como va a ser impreso, ademas del tipo de encuadernacion que se va a utilizar.
    CUIDADO AL UTILIZAR PHOTOSHOP AL TRABAJAR CON LA "TRIPA" DEL BROCHURE...
    Acuerdate que photoshop es un programa de edición de mapas de bits y no de vectores, de ese modo los textos quedaran como mapas e bits, y puedes obtener resultados no deseados al momento de imprimir tu trabajo. Ademas usando Indesign permites que tu proveedor de pre prensa pueda ajustar los valores de trapping, sobre impresion y colores directos, cosas que no se puede hacer en photoshop.
    Bueno disculpa lo extenso, espero que te ayude a aclarar tus dudas...

  • Mouse down? filter no funciona correctamente

    Tengo una estructura de eventos, en esta está un filtro de mouse down?, tengo un string control en el panel. Cuando esta activada la propiedad key focus del string control, quiero filtrar todos los click en la vi, el problema es cuando se le da click a alguna casilla de texto como un indicador, array etc. Antes de ejecutar el filtro primero le quita el key focus del string control luego genera  el evento del filtro, por lo que no puedo filtrar ese click.  Anexo una vi demostrando el problema.
    O en su defecto como puedo mantener siempre el key focus de una string control hasta que presione una tecla? Sin importar lo que se haga en la pantalla (filtrar absolutamente todos los click para que otras aplicaciones de Windows cambios de ventanas etc. no interfieran en esta vi)  
    Gracias y espero su respuesta
    Solved!
    Go to Solution.
    Attachments:
    MouseDown.vi ‏15 KB

    Lo que necesito es filtrar los mouse down que se hagan en la vi mientras se tiene el key focus=true en el string control, para que no se pierda y se genere un evento de value change. la f solo es para salir de la string control.
    En pocas palabras que cuando se presione el mouse en cualquier parte de mi vi siga seleccionado el string control. 
    Si te fijas en la vi de ejemplo cuando se introducen valores en el string control y luego das un click en cualquier parte de la pantalla que no sea otra casilla de texto, el click del mouse se filtra y no genera ningún evento de value change, pero cuando le das un click a alguna casilla de texto como la del array o el indicador, el string control deja de estar seleccionado y genera un evento de value change. Esto pasa porque antes de filtrar el click con el evento mouse down?  primero quita el key focus del string control, luego genera el evento de mouse down?.
    Modifique un poco la vi para demostrar un poco mejor el problema, le agregue que todos los click del mouse se filtren, y que inicie con el key focus en true del string control, pero aun así si dan clck una casilla de texto se pierde el key focus del string control y si se cambiaron los valores del string control se genera un evento de value change.
    Attachments:
    MouseDown.vi ‏16 KB

  • How to use the CallInstrument function?

    Hello!,
    Related to the message "How To Use Exported Function CallInstrument of LabView.exe? <http://forums.ni.com/ni/board/message?board.id=170&message.id=118159>", can anybody show me a minimal C source example of how to generate the correct definition of the control/indicators parameters?. In other words, I need the definition of the typedef array for the datatype and the pointer to the unflat data of the controls/indicators to be passed to the CallInstrument function.
    At the moment, I have just only used this función without any controls/indicadors parameters.
    MgErr __cdecl CallInstrument( Path path, Bool32 modal, int32 nInputs, int32 nOutputs, ... );
    MgErr MyCallInstrument( char szPath[] ) {
         Path path = NULL;
     MgErr err;
     FTextToPath( szPath, strlen(szPath), &path );
     return CallInstrument( path, TRUE, 0, 0 );
    System: WinXP, LV7.1.1
    Thanks !!!
    Jesus Valero
    Plataforma Solar de Almeria <http://www.psa.es>.

    Hola Javier,
    Lo primero darte las gracias por contestar y lo segundo disculparme por no haberte contestado antes, pero en honor a la verdad acabo de ser padre del hijo más guapo de todo el mundo, por lo que no he podido hacerlo hasta hoy.
    Pues bien, mi intención es crear un control ActiveX que pueda ser integrado en el panel frontal de un archivo VI para que pueda interactuar directamente con este mismo VI. También me gustaría que indirectamente pudiera ejecutar otros Sub-VI's, estableciento los valores de sus controles y leyendo sus indicadores.
    En realidad ya expuse esto mismo en el foro
    http://forums.ni.com/ni/board/message?board.id=170&message.id=150060#M150060
    Pero me encontré con el problema que allí detallo, y como nadie me contestó tuve que investigar por mi cuenta llegando como último paso a la función interna CallInstrument. Y aqui estamos.
    Muchas gracias de antemano.

  • Unable to access apex console

    Hello guys,
    Database: Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Beta
    Apex: Application Express 4.1.0.00.29
    I was able to login to the development console without any problem. But now
    1. When I try to access a workspace with the correct password, the page reload with a different session number.
    2. When I try to access a workspace with the INcorrect password, apex shows this: Error     notification message checksum content error: : 034C2C073CF7B0047B968794060F93C
    I can't access as administrator either. I used the apxchpwd.sql script to change the admin password.
    3. Now when I try to access as admin apex shows a page to change my password always getting the following error:
    Error de total de control para el identificador de elemento oculto y protegido (12371025948321672), valor (), total de control enviado (1A1C3A021FC47DC16809AF812720127C), total de control esperado (********************************), index_i (4), index_j (1), index_m (1);
    I can access directly to the database and to my applications which use database credentials.
    Thanks a lot for any clue

    In addition,
    * I have tried in different browsers (IE, Chrome, Safari) and machines.
    * I have stopped and started again the database.
    * I have cleared browser cache.
    Is there a way to delete apex sessions in sqlplus?
    How can I debug my error?
    Alejo

  • Como hacer que labview envie un mensaje de error si no se cumple una condicion

    como hacer que labview envie un mensaje de error si no se cumple una determinada condicion

    Hola,
    Aquí anexo un VI de ejemplo en el cual, cuando se cumple cierta condición booleana (que el valor de un control numérico sea mayor a 3) se genera un error personalizado. Puedes correr el programa e ir aumentando el control hasta que aparezca el error.
    Hay una forma de añadir códigos de error personalizados de manera permanente a LabVIEW. Los códigos 5000 al 9999 están reservados para errores personalizados de usuario. Estos se pueden crear en LabVIEW en el menú de Tools >> Advanced >> Edit Error Codes...  Los códigos de error con sus descripciones personalizadas se quedarán guardados en el archivo :   C:\Program Files\National Instruments\LabVIEW X\user.lib\errors\-errors.txt
    Asi ya guardado puedes utilizar simplemente el VI de Simple Error Handler en lugar del General Error Handler, y no tienes que definir cada vez el código de error y la descripción.
    Espero que esta información te sea útil. Que tengas muy buen día.
    Pablo Bernal | NI México
    Adjuntos:
    Custom error.vi ‏16 KB

  • Añadir fila a array autoindexing for loop

    Hola a todos,
    Quería saber como puedo hacer para añadir una fila automaticamente a un array cada vez que se produce un cambio en mi array "Introducir datos". Creo que la solución es el tema de crear un bucle for y el autoindexing. Para que me entendais mejor he puesto en el vi adjunto un bloque que hace lo mismo que pretendo conseguir, pero teniendo que pulsar un botón.
    Muchas gracias
    Adjuntos:
    (Ejemplo).vi ‏8 KB

    Hola Davidll,
    Te adjunto un VI que añade una fila a una array cuando se cumple una condición. En este caso la condición es presionar un boton booleano.
    Fijate que hemos usado una variable local para escribir sobre la matriz que ya existe y simplemente con la función "Build array" añadimos una fila nueva con los valores de nuestro control "Fila a insertar" que noes más que una array de una dimension.
    Si tienes algún otro problema con arrays recuerda que dispones de una gran cantidad de ejemplos básicos en la pestaña Help/Find examples.. 
    Son bastante útlies y explicativos.
    PD:El boton esta configurado como "Latch when pressed" en la "Mechanical Action" para que solo produzca un pulo a nivel alto y velva a estado bajo. Sino produciria pulsos constantemente y se añadirian infinitas filas a nuestra array.
    Que pases buen día!
    Adjuntos:
    AddRowtoArray.vi ‏12 KB

  • ¿Es necesario Adobe Lightroom?

    Pues, esa es la pregunta, ¿porque usarlo?, ¿porque es diferente al Mini Bridge?
    Aparte, de sus funciones de ordenacion, el resto de funciones ¿no las usamos ya en Photoshop?
    Intento despejar las dudas, para desvelar, si es necesaria y util su instalacion.
    Uun saludo

    Lightroom es una aplicación bastante completa y más compleja de lo que parace, es muy versatil y flexible para catalogar y procesar muchas fotos de forma rápida y ordenada.
    Su manejo y el tipo de controles que ofrece esta orientado a los fotográfos en primer lugar.
    La forma de ajustar una imagen, con controles intuitivos y precisos, se integra muy bien con las técnicas que utilizan los fotógrafos.
    Las opciones de revelado o tratamiento de imágenes es parecido a lo que ofrece Camera Raw, no tanto a los ajustes de Photoshop.
    MiniBridge es un acceso a una serie, limitada, de funciones de Adobe Bridge, dentro de Photoshop. Las opciones que ofrece no son comparables a las de Lightroom.
    Muchos usuarios, fotógrafos en general, preferirán y usarán y sacrán un gran partido a Lightroom, muchos diseñadores o artistas gráficos preferirán Photoshop, y tambien habrá muchos que serán capaces de combinar ambas aplicaciones.
    Si ya conoces Photoshop puedes leer en las páginas de Lightroom muchos más detalles e incluso probar a instalar la demo de 30 días para conocerlo en la práctica.
    Lightroom por ejemplo no trabaja con capas, pero todos los cambios son editables, muy intuitivos, incluso se pueden aplicar inmediatamente a otra imagen o grupo de imágenes. Efectivamente, muchas funciones se solapan, otras ofrecen alternativas más o menos equivalentes, pero para acabar si ers o tu trabajo es próximo al del fotógrafo, prueba a conocer Lightroom, si no es al caso quizás encuentres alguna forma práctica de combinar ambos con éxito.

  • Configure "ini" file

    Hi
    I have an application that uses the serial commnication. I'm running
    this application in 2 PCs and they use diffrent serial ports. Can I
    set the serial port that I want to use in the "ini" file? How can I
    set the initial valor of a control before run the application?
    thanks

    try to use Configuration File VIs under File I/O menu.
    Create a standart ini file stg like
    [COMM] ; section name
    PORT = 1 ; key
    read this file using Configuration File VIs.
    then initialize your control with that key.
    ozan...
    "Cheech" wrote in message
    news:[email protected]..
    > Hi
    >
    > I have an application that uses the serial commnication. I'm running
    > this application in 2 PCs and they use diffrent serial ports. Can I
    > set the serial port that I want to use in the "ini" file? How can I
    > set the initial valor of a control before run the application?
    >
    > thanks

  • Como hago que con el control de aumentar y disminuir se camnie el valor de los numeros complejos, tanto a la parte real como a la imaginaria

    como hago que con el control de aumentar y disminuir se camnie el valor de los numeros complejos,  tanto a la parte real como a la imaginaria

    Hola Pepppo,
    Te mando 2 soluciones a tu problema. Yo me imaginaría que un control para un número complejo debería ser algo así como un punto que pudieras mover en un plano. Voy a pasar esa sugerencia para proximas versiones de LV.
    Saludos y gracias por usar los foros de NI.
    Arturo Vargas
    National Instruments de México
    Adjuntos:
    EjemploComplex.vi ‏11 KB

  • Como controlar los NUMERIC CONTROL con las teclas del computador

    Hola A todos:
    Spoiler (Highlight to read)
    Estoy aprendiendo a crear interfaces graficas de usuario de control en Lab VIEW 2009 ,  cuando uno hace clic derecho en un bloque de Numeric Control (Dial, Slide o Knob) y va ajustar las propiedades de key navigation en  "increment", "decrement" y "focus"  para asignar mandos del teclado del computador para controlar los valores y .existen unas teclas  y conbinaciones preestablecidas para dicha funcion,  Mi pregunta es la siguiente:
    Cómo se pueden asignar teclas de mando los controles numericos diferentes a las preestablecidas.?
    Gracias..

    ¡Hola!
    Puede seleccionar las teclas para cambiar los valores de control.
    Haga clic derecho sobre el control, seleccione Properties -> Key Navigation
    Se puede elegir teclas para controlar el incremento o decremento de la perilla por ejemplo.
    Por favor ver las fotos adjunta!
    Si usted tiene alguna duda, ¡háznoslo saber!
    Un cordial saludo,
    Barbara Pracek
    Engenharia de Aplicações
    National Instruments Brasil
    Attachments:
    1.png ‏44 KB
    2.png ‏33 KB

  • Validação de campos em um Table Control

    Boa tarde.
    Gostaria de pedir um auxilio .
    Tenho uma duvida, na seguinte situação. Estou construindo um programa de Module Pool
    Neste programa vai ter um tabstrip, para atualizar duas tabelas Z
    Na primeira u201CABAu201D, serão  inseridos os registros da tabela pai e na segunda u201CABAu201D, os registros da tabela
    Filho a relação será de 1 para N.
    Na tabela filho os campos  chaves serão um identificador próprio , mais o registro chave da tabela pai.
    Na segunda a aba para inserir os registros da tabela filho, terei que usar um table Control.
    O meu problema é que ao inserir os registros na tabela filho, terei que de forma automática preencher o campo que corresponde a chave da tabela pai. Ou seja o usuário na primeira u201Cabau201D digamos digite o código da tabela pai como 10 ao inserir na table Control um registro o campo correspondente a chave  da tabela pai devera ser preenchido com o valor 10 e não permitir ao usuário efetuar qualquer manutenção neste campo.
    Como eu faço isso???
    Alguém tem algum exemplo????
    Obrigado a todos

    Olá, bom dia!
    Este é um dessenvolvimento bem específico, talvez por isso ninguem lhe respondeu ainda. Voce já deu uma olhada na seção de Wiki, buscando algum código de exemplo?
    Vai alguns links que encontrei:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1499ec90-0201-0010-769f-860989655f7e?QuickLink=index&overridelayout=true
    http://wiki.sdn.sap.com/wiki/display/sandbox/ModulePoolProgramming
    O primeiro link traz um exemplo de como torna um campo ineditavel via codigo. Espero que possa ajudar.
    Abraços,
    Rodrigo Paisante

  • How to generate controls dynamically based on value stored in database using mvc4?

    In my database, i have a field called control_ids corresponding to  text box, dropdownlist, radiobuttonlist etc. My goal is to
    create controls dynamically based on value of control_id-field in table. Anybody please help me how to create the controls dynamically in MVC 4 for this scenario.

    In your view you could do something like that:
    foreach (var field in Model.FormStruture.fields)
    <div class="editor-label">
    <label for="@field.Name">@field.Descricao</label>
    </div>
    <div class="editor-field">
    <input class="text-box single-line" id="@field.Name" name="@field.Name" type="text" value="@field.Valor" data-rules-required="@field.Mandatory.ToString().ToLower()" data-rule-number="@field.Tipo.Equals(SiB.OCR.Documentos.Modelo.TipofieldDocumento.Numerico).ToString().ToLower()" title="@field.Descricao" />
    </div>
    if (!String.IsNullOrEmpty(field.Format))
    @:<script type="text/javascript">$("[email protected]").mask("@field.Format");</script>

  • PolicyUtil error when clicking on Grid Control database

    Hi. I installed Grid Control 10.2.0.4 using a new database (didn't upgrade after installation, so DB is 10.2.0.2). When I click on the repository database under 'Database' (the only one that appears listed since I haven't installed Agent on any other machines), I get some Internal Error message. Here's the content of the file sysman\log\emoms.log:
    2008-10-20 09:24:08,843 [EMUI_09_24_06_/console/database/instance/sitemap] ERROR svlt.PageHandler handleRequest.639 - java.lang.NoClassDefFoundError: oracle/sysman/eml/ecm/policy/util/PolicyUtil
    java.lang.NoClassDefFoundError: oracle/sysman/eml/ecm/policy/util/PolicyUtil
         at oracle.sysman.db.adm.inst.SitemapController.setOverviewPage(SitemapController.java:1381)
         at oracle.sysman.db.adm.inst.SitemapController.setRequestAttributes(SitemapController.java:989)
         at oracle.sysman.db.adm.BaseController.handleEvent(BaseController.java:1026)
         at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:577)
         at oracle.sysman.db.adm.RootController.handleRequest(RootController.java:170)
         at oracle.sysman.db.adm.DBControllerResolver.handleRequest(DBControllerResolver.java:114)
         at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:784)
         at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:340)
         at oracle.sysman.eml.app.Console.doGet(Console.java:319)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:190)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at oracle.sysman.eml.app.BrowserVersionFilter.doFilter(BrowserVersionFilter.java:122)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
         at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:102)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
         at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:353)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    Any ideas of what's happening? How to fix it?
    Thanks

    The file is 2 Mb in size, so I copied just some warnings and a fragment of the end of the file:
    ADVERTENCIA: {oracle.sysman.emCfg.core.CfmAggregateRef ref to oracle.sysman.top.agent:null:LATEST(unresolved_version):common} was marked unavailable: There are no loaded aggregates for oracle.sysman.top.agent:common
    Oc4jDeploy tool completed successfully!
    INFO: oracle.sysman.top.oms:PerformSecureCommand:runCmd:Command Output stderr:
    INFO: oracle.sysman.top.oms:Oms deploying
    INFO: oracle.sysman.top.oms:OmsPlugIn:Requested Configuration Step 1 have been completed with status=true
    INFO: oracle.sysman.top.oms:OmsPlugIn:Requested Configuration Step 2 have been completed with status=true
    INFO: oracle.sysman.top.oms:OmsPlugIn:Requested Configuration Step 3 have been completed with status=true
    INFO: oracle.sysman.top.oms:EmcpPlug:invoke:Completed EmcpPlug invoke method on an aggregate=oracle.sysman.top.oms for Action=patchsetConfiguration in step=2:microstep=0
    INFO: oracle.sysman.top.oms:El plugin OMS Patch Configuration se ha realizado correctamente
    INFO: oracle.sysman.top.oms:About to execute plug-in Deploy Provision Application
    INFO: oracle.sysman.top.oms:El plugin Deploy Provision Application se está ejecutando
    INFO: oracle.sysman.top.oms:Internal PlugIn Class: oracle.sysman.emcp.aggregates.ConfigPlugIn
    INFO: oracle.sysman.top.oms:Classpath = C:\OracleHomes\oms10g\sysman\jlib\aggPlug.jar;C:\OracleHomes\oms10g\sysman\jlib\omsPlug.jar;C:\OracleHomes\oms10g\jlib\emConfigInstall.jar;C:\OracleHomes\oms10g\sysman\jlib\emCORE.jar;C:\OracleHomes\oms10g\sysman\jlib\emagentSDK.jar;C:\OracleHomes\oms10g\sysman\jlib\log4j-core.jar;C:\OracleHomes\oms10g\jdbc\lib\classes12.jar
    ADVERTENCIA: oracle.sysman.top.oms:Before reading the ConfigTool
    INFO: oracle.sysman.top.oms:El comando es: cmd /c C:\OracleHomes\oms10g/bin/PARDeploy -action deploy -parDir C:\OracleHomes\oms10g/sysman/prov/paf -force
    INFO: oracle.sysman.top.oms:El valor de salida es = 0
    INFO: oracle.sysman.top.oms:STDERR=
    STDOUT=
    ERROR !
    Software Library has not been setup !
    Please configure Software Library and try again.
    INFO: oracle.sysman.top.oms:El comando es: cmd /c C:\OracleHomes\oms10g/perl/5.6.1/bin/MSWin32-x86/perl C:\OracleHomes\oms10g/sysman/plugins/connector/install_remedycntr.pl C:\OracleHomes\oms10g RemedyDeploy.xml CONSOLAORACLE 1521 emrep
    INFO: oracle.sysman.top.oms:El valor de salida es = 0
    INFO: oracle.sysman.top.oms:STDERR=
    "stty" no se reconoce como un comando interno o externo,
    programa o archivo por lotes ejecutable.
    "stty" no se reconoce como un comando interno o externo,
    programa o archivo por lotes ejecutable.
    STDOUT=
    Oracle Enterprise Manager 10g Release 4 Grid Control
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    C:\OracleHomes\oms10g
    Destination directory: C:\OracleHomes\oms10g\sysman\connector\Remedy_Connector
    Creating directory C:\OracleHomes\oms10g\sysman\connector\Remedy_Connector ...
    Done
    Extracting META-INF/MANIFEST.MF
    Extracting templates/Remedy_DefaultCategory_HighPriority_AutoClose_w_Wlog.xsl
    Extracting templates/Remedy_DefaultCategory_HighPriority_AutoClose.xsl
    Extracting templates/Remedy_DefaultCategory_HighPriority_w_Wlog.xsl
    Extracting templates/Remedy_DefaultCategory_HighPriority.xsl
    Extracting templates/Remedy_DefaultCategory_LowPriority_AutoClose_w_Wlog.xsl
    Extracting templates/Remedy_DefaultCategory_LowPriority_AutoClose.xsl
    Extracting templates/Remedy_DefaultCategory_LowPriority_w_Wlog.xsl
    Extracting templates/Remedy_DefaultCategory_LowPriority.xsl
    Extracting templates/Remedy_DefaultCategory_MediumPriority_AutoClose_w_Wlog.xsl
    Extracting templates/Remedy_DefaultCategory_MediumPriority_AutoClose.xsl
    Extracting templates/Remedy_DefaultCategory_MediumPriority_w_Wlog.xsl
    Extracting templates/Remedy_DefaultCategory_MediumPriority.xsl
    Extracting templates/Remedy_DefaultCategory_UrgentPriority_AutoClose_w_Wlog.xsl
    Extracting templates/Remedy_DefaultCategory_UrgentPriority_AutoClose.xsl
    Extracting templates/Remedy_DefaultCategory_UrgentPriority_w_Wlog.xsl
    Extracting templates/Remedy_DefaultCategory_UrgentPriority.xsl
    Extracting createTicketResponse.xsl
    Extracting getTicket_request.xsl
    Extracting getTicket_response.xsl
    Extracting RemedyDeploy.xml
    Extracting EMEventModel.xml
    Extracting RemedyDeploy_w_Worklog.xml
    Extracting HelpDesk_Modify_Service_w_Worklog.def
    Extracting HelpDesk_Query_Service_By_Case_ID.def
    Please enter the SYSMAN password:
    Oracle Enterprise Manager 10g Release 4 Grid Control
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    Connector type 4c10d5d7f74044008281a7d38f45c845 registered.
    Oracle Enterprise Manager 10g Release 4 Grid Control
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    Connector type is Remedy Connector
    The connector type guid is 4C10D5D7F74044008281A7D38F45C845
    Oracle Enterprise Manager 10g Release 4 Grid Control
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    Connector type is Remedy Connector
    The connector type guid is 4C10D5D7F74044008281A7D38F45C845
    Oracle Enterprise Manager 10g Release 4 Grid Control
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    Connector type is Remedy Connector
    The connector type guid is 4C10D5D7F74044008281A7D38F45C845
    Oracle Enterprise Manager 10g Release 4 Grid Control
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    Connector type is Remedy Connector
    The connector type guid is 4C10D5D7F74044008281A7D38F45C845
    Oracle Enterprise Manager 10g Release 4 Grid Control
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    Connector type is Remedy Connector
    The connector type guid is 4C10D5D7F74044008281A7D38F45C845
    Oracle Enterprise Manager 10g Release 4 Grid Control
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    Connector type is Remedy Connector
    The connector type guid is 4C10D5D7F74044008281A7D38F45C845
    Oracle Enterprise Manager 10g Release 4 Grid Control
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    Connector type is Remedy Connector
    The connector type guid is 4C10D5D7F74044008281A7D38F45C845
    Oracle Enterprise Manager 10g Release 4 Grid Control
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    Connector type is Remedy Connector
    The connector type guid is 4C10D5D7F74044008281A7D38F45C845
    INFO: oracle.sysman.top.oms:El comando es: cmd /c C:\OracleHomes\oms10g/perl/5.6.1/bin/MSWin32-x86/perl C:\OracleHomes\oms10g/sysman/plugins/connector/install_momcntr.pl C:\OracleHomes\oms10g CONSOLAORACLE 1521 emrep
    INFO: oracle.sysman.top.oms:El valor de salida es = 0
    INFO: oracle.sysman.top.oms:STDERR=
    "stty" no se reconoce como un comando interno o externo,
    programa o archivo por lotes ejecutable.
    "stty" no se reconoce como un comando interno o externo,
    programa o archivo por lotes ejecutable.
    STDOUT=
    C:\OracleHomes\oms10g/bin/emctl extract_jar connector C:\OracleHomes\oms10g/j2ee/OC4J_EM/applications/em/em/WEB-INF/lib/momconnector.jar "Microsoft Operations Manager Connector" C:\OracleHomes\oms10g
    Oracle Enterprise Manager 10g Release 4 Grid Control
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    C:\OracleHomes\oms10g
    Destination directory: C:\OracleHomes\oms10g\sysman\connector\Microsoft_Operations_Manager_Connector
    Creating directory C:\OracleHomes\oms10g\sysman\connector\Microsoft_Operations_Manager_Connector ...
    Done
    Extracting MOMConnector.xml
    Extracting acknowledge_request.xsl
    Extracting cleanup_request.xsl
    Extracting createEvent_request.xsl
    Extracting createEvent_response.xsl
    Extracting defaultTargetInstance.xml
    Extracting getNewAlert_request.xsl
    Extracting getNewAlerts_response.xsl
    Extracting getUpdatedAlert_request.xsl
    Extracting getUpdatedAlerts_response.xsl
    Extracting initialize_request.xsl
    Extracting setup_request.xsl
    Extracting setup_response.xsl
    Extracting targetType.xml
    Extracting uninitialize_request.xsl
    Extracting update_alert_request.xsl
    Extracting updateEvent_request.xsl
    Extracting updateEvent_response.xsl
    Extracting cleanup_request.xml
    Extracting GenericAcknowledgeRequest.xsd
    Extracting GenericGetAlertRequest.xsd
    Extracting GenericGetUpdateRequest.xsd
    Extracting generic_request_acknowledgealerts.xml
    Extracting generic_request_newalerts.xml
    Extracting generic_request_updatedalerts.xml
    Extracting GenericSetupRequest.xsd
    Extracting getResponse_request.xml
    Extracting getResponse_request.xsl
    Extracting initialize_request.xml
    Extracting setup_request.xml
    Extracting uninitialize_request.xml
    Extracting update_alert_request.xml
    SYSMAN Password:
    C:\OracleHomes\oms10g/bin/emctl register_connector connector C:\OracleHomes\oms10g/sysman/connector/Microsoft_Operations_Manager_Connector/MOMConnector.xml CONSOLAORACLE 1521 emrep sysman ****** C:\OracleHomes\oms10g
    Oracle Enterprise Manager 10g Release 4 Grid Control
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    Connector type f2e4e0ac139b4917bc4dd6651f9a9f89 registered.
    Loading target type C:\OracleHomes\oms10g\sysman\connector\Microsoft_Operations_Manager_Connector\targetType.xml
    isTargetTypeExist checking for : mom_managed_host
    Target type is mom_managed_host
    Done.
    Loading default target instance C:\OracleHomes\oms10g\sysman\connector\Microsoft_Operations_Manager_Connector\defaultTargetInstance.xml
    TargetName added :generic_mom_managed_host
    Done.
    INFO: oracle.sysman.top.oms:El comando es: cmd /c C:\OracleHomes\oms10g/jdk/bin/java -jar C:\OracleHomes\oms10g/sysman/jlib/emclikit.jar client -install_dir=C:\OracleHomes\oms10g/bin
    INFO: oracle.sysman.top.oms:El valor de salida es = 0
    INFO: oracle.sysman.top.oms:STDERR=
    STDOUT=
    Oracle Enterprise Manager 10g Versión 10.2.0.4.0.
    Copyright (c) 1996, 2007 Oracle Corporation. Todos los Derechos Reservados.
    La instalación del cliente de EM CLI ha terminado correctamente.
    INFO: oracle.sysman.top.oms:El plugin Deploy Provision Application se ha realizado correctamente
    INFO: oracle.sysman.top.oms:About to execute plug-in Starting Oracle Management Server
    INFO: oracle.sysman.top.oms:El plugin Starting Oracle Management Server se está ejecutando
    INFO: oracle.sysman.top.oms:Internal PlugIn Class: oracle.sysman.emcp.oms.StartOMS
    INFO: oracle.sysman.top.oms:Classpath = C:\OracleHomes\oms10g\sysman\jlib\omsPlug.jar;C:\OracleHomes\oms10g\jlib\emConfigInstall.jar;C:\OracleHomes\oms10g\sysman\jlib\emCORE.jar;C:\OracleHomes\oms10g\sysman\jlib\emagentSDK.jar;C:\OracleHomes\oms10g\sysman\jlib\log4j-core.jar;C:\OracleHomes\oms10g\jdbc\lib\classes12.jar
    INFO: oracle.sysman.top.oms:EmcpPlug:invoke:Starting EmcpPlug invoke method on an aggregate=oracle.sysman.top.oms for Action=patchsetConfiguration in step=5:microstep=0
    INFO: oracle.sysman.top.oms:inside perform
    INFO: oracle.sysman.top.oms:Starting Oms again
    INFO: oracle.sysman.top.oms:PerformSecureCommand:runCmd:Performing Command=CMD /C C:\OracleHomes\oms10g\opmn\bin\opmnctl stopall
    INFO: oracle.sysman.top.oms:PerformSecureCommand:runCmd:CMD /C C:\OracleHomes\oms10g\opmn\bin\opmnctl stopall have completed with exitCode=0
    INFO: oracle.sysman.top.oms:PerformSecureCommand:runCmd:Command Output stdout:
    'opmnctl: stopping opmn and all managed processes...
    INFO: oracle.sysman.top.oms:PerformSecureCommand:runCmd:Command Output stderr:
    INFO: oracle.sysman.top.oms:PerformSecureCommand:runCmd:Performing Command=CMD /C C:\OracleHomes\oms10g\opmn\bin\opmnctl startall
    INFO: oracle.sysman.top.oms:PerformSecureCommand:runCmd:CMD /C C:\OracleHomes\oms10g\opmn\bin\opmnctl startall have completed with exitCode=0
    INFO: oracle.sysman.top.oms:PerformSecureCommand:runCmd:Command Output stdout:
    'opmnctl: starting opmn and all managed processes...
    INFO: oracle.sysman.top.oms:PerformSecureCommand:runCmd:Command Output stderr:
    INFO: oracle.sysman.top.oms:starting opmn service again
    INFO: oracle.sysman.top.oms:EmcpPlug:invoke:Completed EmcpPlug invoke method on an aggregate=oracle.sysman.top.oms for Action=patchsetConfiguration in step=5:microstep=0
    INFO: oracle.sysman.top.oms:El plugin Starting Oracle Management Server se ha realizado correctamente
    INFO: CfwProgressMonitor:actionProgress:About to perform Action=patchsetconfigure Status=is running with ActionStep=2 stepIndex=2 microStep=0
    INFO: Cfm.save() was called
    INFO: Cfm.save(): 15 aggregate instances saved

  • How to control the result of  a batch input

    Hi everyone,
    We have a program that update the item category in the sales orders, after that using a batch input the system executes the va02 transaction to update the order, after the order has been updated we have to make the materials movement.
    Th eproblrm is that I need to know how can I control if the batch input has been executed correctly or not, because in that case the materials movement must not be executed.
    If help, the code is the following:
    FORM Batch_VA02.
      data: begin of bdcdata occurs 0.
        include structure bdcdata.
      data: end of bdcdata.
      data: campo(20) type c.
      data: campopos(20) type c.
      data: campomarcar(20) type c.
      data: campocambiar(20) type c.
    loop at PA1 where sel = 'X'. "ya está en un loop, al estar en en
    LANZAR_BATCH
        refresh bdcdata.
      Primera pantalla, introducir número pedido y enter.
        perform p TABLES BDCDATA using 'SAPMV45A' '0102' .
        perform c TABLES BDCDATA using 'VBAK-VBELN' pa1-pedid.
        perform c TABLES BDCDATA using 'BDC_OKCODE' '/00'.
      Segunda pantalla. Pulsar "Aprovisionamiento".
        perform p TABLES BDCDATA using 'SAPMV45A' '4001'.
        perform c TABLES BDCDATA using 'BDC_OKCODE' '=T05'.
      Antes de la tercera pantalla hay que posicionarse.
        perform p TABLES BDCDATA using 'SAPMV45A' '4001'.
        perform c TABLES BDCDATA using 'BDC_OKCODE' '=POPO'.
      Introducir número de posición
        campo = '01'.
        perform posicion changing campo.
        perform p TABLES BDCDATA using 'SAPMV45A' '0251'.
      Inicio modificación Chema Campos 28.06.2007 (CAU  58283)
      perform c TABLES BDCDATA using 'RV45A-POSNR' pa1-posic.
        if global_pos_nueva is initial.
          perform c TABLES BDCDATA using 'RV45A-POSNR' pa1-posic.
        else.
          perform c TABLES BDCDATA using 'RV45A-POSNR' global_pos_nueva.
        endif.
        clear global_pos_nueva.
      Fin modificación Chema Campos 28.06.2007 (CAU  58283)
        perform c TABLES BDCDATA using 'BDC_OKCODE' '=POSI'.
        move 'VBAP-BEDAE(01)'       to campopos.
        move 'RV45A-VBAP_SELKZ(01)' to campomarcar.
        move 'VBAP-BEDAE(01)'       to campocambiar.
      Antes de la tercera pantalla hay que posicionarse.
       campo = '01'.
       perform posicion changing campo.
       do.
         if campo > '10'. "hay que paginar.
           perform p TABLES BDCDATA using  'SAPMV45A' '4001'.
           perform c TABLES BDCDATA using  'BDC_OKCODE' '=P+'.
           campo = campo - 10.
         endif.
         condense campo.
         if campo+1(1) eq space.
           concatenate '0' campo into campo.
         endif.
         if campo <= '10'.
           exit.
         endif.
       enddo.
       condense campo.
       clear: campopos, campomarcar, campocambiar.
       concatenate 'VBAP-BEDAE(0' campo ')' into campopos.
       concatenate 'RV45A-VBAP_SELKZ(0' campo ')' into campomarcar.
       concatenate 'VBAP-BEDAE(0' campo ')' into campocambiar.
      Tercera pantalla.  Introducir valor ZRES y grabar.
        perform p TABLES BDCDATA using  'SAPMV45A' '4001'.
        perform c TABLES BDCDATA  using  'BDC_CURSOR' campopos.
          "posicionamos
        perform c TABLES BDCDATA using  campomarcar 'X'.
          "marcamos
        perform c TABLES BDCDATA using  campocambiar 'ZRES'.
          "actualizamos valor
        perform c TABLES BDCDATA using  'BDC_OKCODE' '=SICH'.
        CALL TRANSACTION 'VA02' USING bdcdata  UPDATE c_update
             MESSAGES INTO messa MODE  modo.
                         "A" temporalmete visible pra pruebas en integración
        COMMIT WORK AND WAIT.
        WAIT UP TO 2 SECONDS.
    endloop.
    ENDFORM.                    " Batch_VA02
    Thanks everyone

    hi,
    after executing va02 check for sy-subrc, if it is not equal to 0 .
    catch the errors into BDCmsg of structure BDCMSGCOLL and there open session for error records and u can transfer them into file aslo.
    ex:
    REPORT  zsr_report
    NO STANDARD PAGE HEADING
                            LINE-SIZE 255
                            MESSAGE-ID ZRASH.
    *--Internal Table for Data Uploading.
    DATA : BEGIN OF IT_FFCUST OCCURS 0,
             KUNNR(10),
             BUKRS(4),
             KTOKD(4),
             ANRED(15),
             NAME1(35),
             SORTL(10),
             STRAS(35),
             ORT01(35),
             PSTLZ(10),
             LAND1(3),
             SPRAS(2),
             AKONT(10),
           END OF IT_FFCUST.
    *--Internal Table to Store Error Records.
    DATA : BEGIN OF IT_ERRCUST OCCURS 0,
             KUNNR(10),
             EMSG(255),
           END OF IT_ERRCUST.
    *--Internal Table to Store Successful Records.
    DATA : BEGIN OF IT_SUCCUST OCCURS 0,
             KUNNR(10),
             SMSG(255),
           END OF IT_SUCCUST.
    *--Internal Table for Storing the BDC data.
    DATA : IT_CUSTBDC LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
    *--Internal Table for storing the messages.
    DATA : IT_CUSTMSG LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    DATA : V_FLAG1(1) VALUE ' ',
    "Flag used for opening session.
           V_TLINES LIKE SY-TABIX,
           "For storing total records processed.
           V_ELINES LIKE SY-TABIX,
           "For storing the no of error records.
           V_SLINES LIKE SY-TABIX.
           "For storing the no of success records.
    SELECTION-SCREEN BEGIN OF BLOCK B1.
    PARAMETERS : V_FNAME LIKE RLGRAP-FILENAME,
                 V_SESNAM  LIKE RLGRAP-FILENAME.
    SELECTION-SCREEN END OF BLOCK B1.
    START-OF-SELECTION.
    *-- Form to upload flatfile data into the internal table.
      PERFORM FORM_UPLOADFF.
    TOP-OF-PAGE.
      WRITE:/ 'Details of the error and success records for the transaction'
      ULINE.
      SKIP.
    END-OF-SELECTION.
    *-- Form to Generate a BDC from the Uploaded Internal table
      PERFORM FORM_BDCGENERATE.
    *--To write the totals and the session name.
      PERFORM FORM_WRITEOP.
    FORM FORM_UPLOADFF .
    *--Variable to change the type of the parameter file name.
      DATA : LV_FILE TYPE STRING.
      LV_FILE = V_FNAME.
    *--Function to upload the flat file to the internal table.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                      =  LV_FILE
        FILETYPE                      = 'ASC'
          HAS_FIELD_SEPARATOR           = 'X'
        HEADER_LENGTH                 = 0
        READ_BY_LINE                  = 'X'
        DAT_MODE                      = ' '
      IMPORTING
        FILELENGTH                    =
        HEADER                        =
        TABLES
          DATA_TAB                      = IT_FFCUST
        EXCEPTIONS
          FILE_OPEN_ERROR               = 1
          FILE_READ_ERROR               = 2
          NO_BATCH                      = 3
          GUI_REFUSE_FILETRANSFER       = 4
          INVALID_TYPE                  = 5
          NO_AUTHORITY                  = 6
          UNKNOWN_ERROR                 = 7
          BAD_DATA_FORMAT               = 8
          HEADER_NOT_ALLOWED            = 9
          SEPARATOR_NOT_ALLOWED         = 10
          HEADER_TOO_LONG               = 11
          UNKNOWN_DP_ERROR              = 12
          ACCESS_DENIED                 = 13
          DP_OUT_OF_MEMORY              = 14
          DISK_FULL                     = 15
          DP_TIMEOUT                    = 16
          OTHERS                        = 17
      IF SY-SUBRC = 0.
    *--Deleting the headings from the internal table.
        DELETE IT_FFCUST INDEX 1.
    *--Getting the total number of records uploaded.
        DESCRIBE TABLE IT_FFCUST LINES V_TLINES.
      ENDIF.
    ENDFORM.                    " form_uploadff
    FORM FORM_BDCGENERATE .
    *--Generating the BDC table for the fields of the internal table.
      LOOP AT IT_FFCUST.
        PERFORM POPULATEBDC USING :
                                    'X' 'SAPMF02D' '0105',
                                    ' ' 'BDC_OKCODE'  '/00' ,
                                    ' ' 'RF02D-KUNNR' IT_FFCUST-KUNNR,
                                    ' ' 'RF02D-BUKRS' IT_FFCUST-BUKRS,
                                    ' ' 'RF02D-KTOKD' IT_FFCUST-KTOKD,
                                    'X' 'SAPMF02D' '0110' ,
                                    ' ' 'BDC_OKCODE'  '/00',
                                    ' ' 'KNA1-ANRED'  IT_FFCUST-ANRED,
                                    ' ' 'KNA1-NAME1' IT_FFCUST-NAME1,
                                    ' ' 'KNA1-SORTL'  IT_FFCUST-SORTL,
                                    ' ' 'KNA1-STRAS' IT_FFCUST-STRAS,
                                    ' ' 'KNA1-ORT01' IT_FFCUST-ORT01,
                                    ' ' 'KNA1-PSTLZ' IT_FFCUST-PSTLZ,
                                    ' ' 'KNA1-LAND1' IT_FFCUST-LAND1,
                                    ' ' 'KNA1-SPRAS' IT_FFCUST-SPRAS,
                                    'X' 'SAPMFO2D' '0120',     
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0125',     
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0130',     
                                    ' ' 'BDC_OKCODE'  '=ENTR',
                                    'X' 'SAPMF02D' '0340',     
                                    ' ' 'BDC_OKCODE'  '=ENTR',
                                    'X' 'SAPMF02D' '0360',
                                    ' ' 'BDC_OKCODE'  '=ENTR',
                                    'X' 'SAPMF02D' '0210',     
                                    ' ' 'KNB1-AKONT'  IT_FFCUST-AKONT,
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0215',
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0220',     
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0230',     
                                    ' ' 'BDC_OKCODE'  '=UPDA'.
    *--Calling the transaction 'fd01'.
        CALL TRANSACTION 'FD01' USING IT_CUSTBDC MODE 'N' UPDATE 'S'
        MESSAGES INTO IT_CUSTMSG.
        IF SY-SUBRC <> 0.
    *--Populating the error records internal table.
          IT_ERRCUST-KUNNR = IT_FFCUST-KUNNR.
          APPEND IT_ERRCUST.
          CLEAR IT_ERRCUST.
    *--Opening a session if there is an error record.
          IF V_FLAG1 = ' '.
            PERFORM FORM_OPENSESSION.
            V_FLAG1 = 'X'.
          ENDIF.
    *--Inserting the error records into already open session.
          IF V_FLAG1 = 'X'.
            PERFORM FORM_INSERT.
          ENDIF.
    *--Populating the Success records internal table.
        ELSE.
          IT_SUCCUST-KUNNR = IT_FFCUST-KUNNR.
          APPEND IT_SUCCUST.
          CLEAR IT_SUCCUST.
        ENDIF.
    *--Displaying the messages.
        IF NOT IT_CUSTMSG[] IS INITIAL.
          PERFORM FORM_FORMATMSG.
        ENDIF.
    *--Clearing the message and bdc tables.
        CLEAR : IT_CUSTBDC[],IT_CUSTMSG[].
      ENDLOOP.
    *--Getting the total no of error records.
      DESCRIBE TABLE IT_ERRCUST LINES V_ELINES.
    *--Getting the total no of successful records.
      DESCRIBE TABLE IT_SUCCUST LINES V_SLINES.
    *--Closing the session only if it is open.
      IF V_FLAG1 = 'X'.
        PERFORM FORM_CLOSESESS.
      ENDIF.
    ENDFORM.                    " Form_bdcgenerate
    FORM POPULATEBDC  USING    VALUE(P_0178)
                               VALUE(P_0179)
                               VALUE(P_0180).
      IF P_0178 = 'X'.
        IT_CUSTBDC-PROGRAM = P_0179.
        IT_CUSTBDC-DYNPRO = P_0180.
        IT_CUSTBDC-DYNBEGIN = 'X'.
      ELSE.
        IT_CUSTBDC-FNAM = P_0179.
        IT_CUSTBDC-FVAL = P_0180.
      ENDIF.
      APPEND IT_CUSTBDC.
      CLEAR IT_CUSTBDC.
    ENDFORM.                    " populatebdc
    *&      Form  FORM_OPENSESSION
          Form to Open a session.
    FORM FORM_OPENSESSION .
    *--Variable to convert the given session name into reqd type.
      DATA : LV_SESNAM(12).
      LV_SESNAM = V_SESNAM.
    *--Opening a session.
      CALL FUNCTION 'BDC_OPEN_GROUP'
       EXPORTING
         CLIENT                    = SY-MANDT
         GROUP                     = LV_SESNAM
         HOLDDATE                  = '20040805'
         KEEP                      = 'X'
         USER                      = SY-UNAME
         PROG                      = SY-CPROG
    IMPORTING
       QID                       =
       EXCEPTIONS
         CLIENT_INVALID            = 1
         DESTINATION_INVALID       = 2
         GROUP_INVALID             = 3
         GROUP_IS_LOCKED           = 4
         HOLDDATE_INVALID          = 5
         INTERNAL_ERROR            = 6
         QUEUE_ERROR               = 7
         RUNNING                   = 8
         SYSTEM_LOCK_ERROR         = 9
         USER_INVALID              = 10
         OTHERS                    = 11
      IF SY-SUBRC <> 0.
        WRITE :/ 'Session not open'.
      ENDIF.
    ENDFORM.                    " FORM_OPENSESSION
    *&      Form  FORM_INSERT
          fORM TO INSERT ERROR RECOED INTO A SESSION.
    FORM FORM_INSERT .
    *--Inserting the record into session.
      CALL FUNCTION 'BDC_INSERT'
        EXPORTING
          TCODE                  = 'FD01'
        POST_LOCAL             = NOVBLOCAL
        PRINTING               = NOPRINT
        SIMUBATCH              = ' '
        CTUPARAMS              = ' '
        TABLES
          DYNPROTAB              = IT_CUSTBDC
        EXCEPTIONS
          INTERNAL_ERROR         = 1
          NOT_OPEN               = 2
          QUEUE_ERROR            = 3
          TCODE_INVALID          = 4
          PRINTING_INVALID       = 5
          POSTING_INVALID        = 6
          OTHERS                 = 7
      IF SY-SUBRC <> 0.
        WRITE :/ 'Unable to insert the record'.
      ENDIF.
    ENDFORM.                    " FORM_INSERT
    *&      Form  FORM_CLOSESESS
          Form to Close the Open Session.
    FORM FORM_CLOSESESS .
      CALL FUNCTION 'BDC_CLOSE_GROUP'
        EXCEPTIONS
          NOT_OPEN    = 1
          QUEUE_ERROR = 2
          OTHERS      = 3.
      IF SY-SUBRC <> 0.
      ENDIF.
    ENDFORM.                    " FORM_CLOSESESS
    *&      Form  FORM_FORMATMSG
          Form to format messages.
    FORM FORM_FORMATMSG .
    *--Var to store the formatted msg.
      DATA : LV_MSG(255).
      CALL FUNCTION 'FORMAT_MESSAGE'
        EXPORTING
          ID        = SY-MSGID
          LANG      = SY-LANGU
          NO        = SY-MSGNO
          V1        = SY-MSGV1
          V2        = SY-MSGV2
          V3        = SY-MSGV3
          V4        = SY-MSGV4
        IMPORTING
          MSG       = LV_MSG
        EXCEPTIONS
          NOT_FOUND = 1
          OTHERS    = 2.
      IF SY-SUBRC = 0.
        WRITE :/ LV_MSG.
      ENDIF.
      ULINE.
    ENDFORM.                    " FORM_FORMATMSG
    *&      Form  form_writeop
          To write the totals and the session name.
    FORM FORM_WRITEOP .
      WRITE :/ 'Total Records Uploaded :',V_TLINES,
               / 'No of Error Records :',V_ELINES,
               / 'No of Success Records :',V_SLINES,
               / 'Name of the Session :',V_SESNAM.
      ULINE.

Maybe you are looking for

  • IWeb '08 - Web Widget - MobileMe Gallery

    Hi, Since the software update, I made an iMovie and published it to my Web Gallery. I went to put a copy of it in my iWeb by inserting a Web Widget from my MobileMe Gallery - but the new movie I made wasn't listed. All of my old movies were there but

  • Can anyone guide me to ideas on basics of parallel processing in SQL

    Hi all, Can anyone guide me to ideas on basics of parallel processing in SQL and its usage in the the performance tuning of the query. If so what's the syntax to be followed and how to arrive at the optimized query after tuning

  • The Tree component

    Do any one know how to make the tree component transparent? I´ve tried a lot of different things but it doesn´t seem to work. I´ve tried to make it to a moviclip and drag the Alpha to 0 but then it doesn´t work at all. You can´t see the nodes.. Pleas

  • Sorting in Oracle (Urgent)

    Hi Experts I need to sort multilingual values Like COMP_NAME Manishã Manishñ Manishà ManishÑ Manishâ ManishÓ Manishó Manishú ManishÚ ManishU~ Manishu~ in below format Manishâ Manishã Manishà Manishñ ManishÑ ManishÓ Manishó Manishú ManishÚ ManishU~ Ma

  • ITunes not responding. Can anyone help?

    iTunes (latest version) is running incredibly slow on my Windows 7 laptop. Every action I take (i.e click on the artists tab in the music section, click on a searched name, add a song to a playlist) seems to take at least a minute. The Windows task m