Correspondance de gamme

Bonjour à tous,
voilà depuis quelques temps que je pinaille avec mes différents problèmes;
j'aimerais modifier une échelle par correspondance de gamme pendant l'acquisition de tension.
c'est à dire, comment, au cours de l'aquisition de ma tension, modifié mon échelle ?? et donc voir l'impact sur mon graph et mes données...
Je vous mets le *.vi en question.
j'en profite d'ailleurs pour vous demander comment effacer les anciens points recueillis sur le graphique à chaque fois que je lance le projet ??
(la variable local, où donc la placer ??)
Merci bien pour votre aide.
Bob
Pièces jointes :
Page principale.vi ‏40 KB

Bon, ça ne marche pas Roderic.
impossible de faire focntionner cette correspondance de gamme...
si tu as une piste, je suis preneur...
Bobu
Pièces jointes :
Sans titre 6.vi ‏26 KB

Similar Messages

  • Problèmes d'hyperliens sous Indesign CS5

    Bonjour à tous,
    Je rencontre un problème d'hyperliens sous Indesign CS5.
    Je structure mon .indd avec des textes conditionnels (pour la traduction francais / anglais) et l'exporte en .PDF
    Lorsque tous les textes conditionnels sont visibles, les hyperliens fonctionnent dans mon .PDF
    Lorsque je n'affiche que l'un d'entre eux (francais ou anglais), le curseur se transforme bien lors du passage sur l'hyperlien mais rien ne se passe lorsque je clique dessus.
    Je précise que mon option "hyperliens" lors de mon export est cochée.
    Quelqu'un a t il rencontré le problème ?
    Est ce un bug ?
    Y a t il quelque chose que je ne fais pas ?
    Merci pour votre réponse.
    Cordialement.
         Loic

    bonjour à tous,
    j'ai trouvé l'explication à mon problème
    je remets dans le contexte :
    je travaille actuellement sur un catalogue de 300 pages avec des textes en francais et en anglais ... je m'oriente donc vers un système de textes conditionnels en désignant le francais en conditionnel/bleu et l'anglais en conditionnel/rouge ... je n'ai pas trouvé d'autres solutions plus simples ...
    chaque fiche produit est balisée par code produit (par exemple AAA), qui fait lui meme fait référence à un texte conditionnel/jaune ...
    dans mon sommaire ainsi que de mon index, j'utilise un objet interactif du type référence croisée pour pointer sur le code produit (donc AAA) correspondant à la bonne page ... le système de tables de matières ne semble pas adapté puisque j'ai un sommaire à plusieurs colonnes ; chaque colonne correspondant à une gamme de produits (exemple, une désignation de produit se retrouve dans une gamme A B et C ... la aussi, je n 'ai pas trouvé d'autres solutions plus simples ...
    pour revenir à mon problème :
    lorsque je décide d'afficher mes textes conditionnels francais, anglais et code produit = tous les liens fonctionnent parfaitement
    lorsque je décide de n'afficher que le francais, je cache 'anglais et code produit = les liens ne fonctionnent plus
    explication :
    lorsque je cache les textes conditionnels anglais et code produit, le lien n'est plus actif car le code produit n'est plus présent
    il faut donc que je laisse afficher le texte conditionnel code produit pour que mes liens fonctionnent
    voila, j'espère que mon explication aura été assez simple et que ce post pourra servir à quelqu'un
    a+
          Loic
    PS : merci à ceux qui m'ont deja repondu.

  • Problème d'échelle sur NIdaq

    Bonjour,
    j'ai un problème d'échelle avec un capteur 0-10V dont les valeurs une fois mis à l'échelle doivent allez de 1,4342 à 998.8342.
    or je suis limité de 0 à 22.706638.
    en effet en créant l'échelle linéaire à parti des points de mesures étalons du fournisseurs, l'affichage en graph défilant ou table bloque à une valeur cette valeurs.
    cependant si je retire l'échelle, les valeurs de mon capteur continue d'augmenter en V avec une équivalence de valeurs dépassant le 100.
    J'ai donc essayé une échelle en correspondance de gamme mais me problème n'a pas été résolu.
    Merci d'avance pour vos suggestions
    Résolu !
    Accéder à la solution.

    merci d'avance.
    mais je ne pense pas.
    voici 3 images de la configuration
    la 1e est l'échelle linéaire que j'ai construit à partir des points de mesures du fournisseur (construction de l'équation à partir des points suivants).
    charge kg
    signal V
    0
    0
    200
    1,985
    400
    3,987
    550
    5,491
    750
    7,504
    1000
    10,022
    la 2e est la voie utilisée avec l'échelle précedente avec saturation du signale à 21,7 (kg) soit 200mV
    la 3e est la voie utilisée sans échelle (donc en volt) qui est a réception brut du signal par la carte d'acquisition où on observe qu'on arrive à 650mV (63kg).
    merci d'avance
    Pièces jointes :
    échelle.JPG ‏255 KB
    graph + echelle.JPG ‏282 KB
    graph sans echelle.JPG ‏251 KB

  • Problèmes d'accent

    Bonjour,
    Je me suis mis à Dreamweaver cs3. J'utilise en plus le
    Dw Toolbox. Mon problème est que lorsque j'entre des
    caractères avec accent tel que é, è, à, etc
    dans ma table MySQL. et que je fais un test sur IE ou Firefox. Je
    retrouve un petit carré à la place de ces
    caractères.
    J'ai un autre travail qui n'avait pas été fait avec
    Dreamweaver, mais en codage manuel avec PHP et MySQL. Ce
    problème ne se présente pas: ce qui me fait dire qu'il ne
    se situe pas au niveau de la configuration de Wampserver.
    SVP, est-ce que quelqu'un pourrait me dire s'il s'agit d'une
    mauvaise configuration de Dw3 et comment résoudre ce
    problème ? Merci.

    bonjour à tous,
    j'ai trouvé l'explication à mon problème
    je remets dans le contexte :
    je travaille actuellement sur un catalogue de 300 pages avec des textes en francais et en anglais ... je m'oriente donc vers un système de textes conditionnels en désignant le francais en conditionnel/bleu et l'anglais en conditionnel/rouge ... je n'ai pas trouvé d'autres solutions plus simples ...
    chaque fiche produit est balisée par code produit (par exemple AAA), qui fait lui meme fait référence à un texte conditionnel/jaune ...
    dans mon sommaire ainsi que de mon index, j'utilise un objet interactif du type référence croisée pour pointer sur le code produit (donc AAA) correspondant à la bonne page ... le système de tables de matières ne semble pas adapté puisque j'ai un sommaire à plusieurs colonnes ; chaque colonne correspondant à une gamme de produits (exemple, une désignation de produit se retrouve dans une gamme A B et C ... la aussi, je n 'ai pas trouvé d'autres solutions plus simples ...
    pour revenir à mon problème :
    lorsque je décide d'afficher mes textes conditionnels francais, anglais et code produit = tous les liens fonctionnent parfaitement
    lorsque je décide de n'afficher que le francais, je cache 'anglais et code produit = les liens ne fonctionnent plus
    explication :
    lorsque je cache les textes conditionnels anglais et code produit, le lien n'est plus actif car le code produit n'est plus présent
    il faut donc que je laisse afficher le texte conditionnel code produit pour que mes liens fonctionnent
    voila, j'espère que mon explication aura été assez simple et que ce post pourra servir à quelqu'un
    a+
          Loic
    PS : merci à ceux qui m'ont deja repondu.

  • Gamma from AE doesn't correspond...

    Hi to all,
    I'm working on a XDCAM EX 72025p project. Some images are exported from the project, modified in After Effectson a PC and then exported as a qktime mov PNG sequence with alpha layer, then composited in FCP in normal and black alpha mode. We've tried with adobe RGB and Apple RGB and always have a problem with the gamma correspondance when reimported to FCP. I can see my layer borders. It all looks perfect in AE but not after it is reimported.
    would anyone have any ideas how i can fix this?
    Thanks in advance..;.
    Tee.
    Message was edited by: tee.

    Hey no problem... heh sorry about that. Entirely missed the whole PC part from your original post.. ha of course ProRes wouldn't help you.
    Sadly I'm not sure about windows codecs (other than sheer)... maybe you could try some image sequences like TIFF or TGA. Also check the gamma settings if you can. I know PC and mac gammas are different. You can check this out:
    http://www.photoshopsupport.com/tutorials/cb/gamma.html
    even though it is about photoshop the gamma stuff applies.
    Or read this for FCP specific info:
    http://www.kenstone.net/fcphomepage/gamma_macpc.html
    Good luck... let us know if/how you solve it!
    Message was edited by: ScottieB

  • Printing and Gamma correction

    I read somewhere in the aperture manuals to match the monitors gamma in prints you may need to set gamma correction to 1.1 or 1.2 in the print dialog.
    If I am exporting prints to a pro photo lab am I likely to need to correct the gamma of the exported image or should I send it uncorrected?
    Also, should I generally have black point compensation on or off?

    I've this code :
    short[] threshold = new short[256];
    for (int i = threshold_level; i < 256; i++) 
       threshold[i] = (short) i;
    BufferedImage dest = new BufferedImage(source.getWidth(),source.getHeight(),source.getType());
    LookupTable look = new ShortLookupTable(0,threshold);
    BufferedImageOp buff = new LookupOp(look,null);
    buff.filter(src, dest);but I don't know what it's really change, if it's the input level of the BufferedImage, the gamma, the twice...
    So to compare I used a commercial Software and I seen that my result is corresponding to a change of the input level of my BufferedImage and a gamma correction too. But i just want to change the input level of my BufferedImage, but I don't find example wich does that, so I try to make a gamma correction in the aim of cancel the first gamma correction produce by my LookupTable.
    I hope you understand me. The aim is to make an histogram modification of a BufferedImage.
    thank you

  • Aperture vs. Photoshop Gamma setting

    Hello,
    the first step of my retouching process in Photoshop consist of setting the gamma value between 2.2 and 2.7
    As you can see on the image here under, the range is going from Black=0 to White=255, middle being 1 (non linear scale)
    On the other hand, the gamma range in Aperture is linear (B=0 to W=+1, middle = 0.5)
    Now, if I want to set the gamma value of my process in Aperture, what should I enter ?

    Hi Kirby,
    Niveaux stands for Levels, with N = noir = black, G = gris = gray and B = blanc = white.
    Setting the gamma consists of setting the middle tones (i.e. G or middle case), what ever the software.
    Your explanation for the % is interesting, but... disturbing !
    If the default position of G correspond to a Photoshop value of 128 in Aperture, then it's not a typical gamma value. But I realize that I misled you... for sure.
    I tried something that I forgot before posting my previous message (my big mistake !)
    In Photoshop, if I "completely" move the middle cursor, the left most value is 10, the right most value is 0 (and not 0 to 255 as I was simply thinking...)
    In Aperture, if I move the middle cursor, the left most value is 0, the right most value is 1
    To summarize :
    Photoshop : [10 ; 0], middle = 1
    Aperture : [0 ; 1], middle = 0.5

  • Aperture Printing: Gamma Setting Counterpart in Photoshop?

    I've finally gotten my printing sorted out in Aperture and can get good prints from my Epson 7500 most of the time. I still have margin problems, but I suspect that is more a driver issue. At any rate, I'm really starting to like the gamma setting in Aperture. It allows me to turn up the brightness of my monitor a bit and then compensate when printing--works well and gives my aging eyes some relief.
    Now I'd like to keep it that way but have problems in Photoshop when I print--prints come out darker because I've got the monitor turned up. Does anyone know of a corresponding setting in Photoshop (CS2 by the way).
    Thanks in advance,
    Roy
    2.7 Dual G5   Mac OS X (10.4.6)   ATI X800 XT

    Victor,
    Thanks for the response, but perhaps I wasn't clear. Here's more detail on the scenario. The monitor is calibrated and everything prints fine, in PS and Aperture. Because the apple monitor is so bright, that it has to be turned down to make photo's match (too much luminance).
    Now what I would like to do is run the monitor a bit brighter (easier on the eyes). In Aperture, I can do everything as normal and just bump the gamma setting in the print dialog box from 1 to 1.1 or 1.2 and the photo prints great. Now I'd like to do the same in PS. So, the question is if there is anything in PS that accomplishes the same thing at the time of output.
    Roy

  • For BSID- Accounting Document Number corresponding PO Number is required

    Hi Gurus,
                 I have got a requirement to develop a report similiar to 'FBL5N' . I am getting the details of open and cleared items of a customer from BSID and BSAD tables respectively. My requirement is also to fetch the corresponding PO number of the LINE items displayed in the report.
                Can any one suggest how can I fetch PO number with Accounting document number(BSID-BELNR)  or (BSAD-BELNR).
               Your efforts in this matter are deeply appreciated and <<removed_by_moderator>>.
    Thanking You,
    ZIa.
    Edited by: Vijay Babu Dudla on Jan 28, 2009 11:07 PM

    If you have fields BSID-VBEL2 and BSID-VPOS2 are populated with the sales order, than access VBKD with the Sales Order to get the Customer PO (VBKD-BSTKD)
    Or
    First, You need to get the Billing document. Access BKPF with the BSID-BELNR to get the AWKEY where AWTYP = 'VBRK'
    Now, you can go to SD document flow with the billing document to find out the Sales Document. Access VBKD with the Sales document to get the Customer PO
    Regards,
    Naimesh Patel

  • What are the corresponding Data Types of some MDM Data Types

    Hi Guys,
    The MDM ABAP API involves creation of a DDIC structure in SRM. This structure should have the same fields with the MDM table fields. We would like to ask the corresponding ABAP Data Types for the following MDM Data Types.
         MDM                                                         SRM
    1.  Look up (flat)
    2.  Look up (taxonomy)
    3.  Look up (heirarchy)
    4.  Look up (qualified flat look up)
    Any significant inputs on this?
    Thanks and regards,
    RE

    Hi,
    Refer the below link. This is from the MDM Reference guide and contains the sample source code as well for almost all the things like creating repository, creating tables and fields etc. It would be helpful to you.
    http://help.sap.com/saphelp_mdm550/helpdata/en/47/5fd3f7cbd75518e10000000a421138/frameset.htm
    Regards,
    Jitesh Talreja

  • Need suggestion in uploading dynamic excel file to corresponding columns of internal table

    Hi Friends,
    I have an excel file which doesn't have standard template. Just the users will key in their header (in row1 ) and followed by item details in excel and upload to internal table. Now by doing some internal developments in program I need to place the values in corresponding fields.
    Let me explain with some examples.
    1. I have an internal table
    data : begin of itab occurs 0,
                       f1,
                       f2,
                       f3,
                       f4,
                       f5,
              end of itab.
    2. I have excel file as below
    3 . Now i need to fill my internal table itab as below
    Need to be placed in corresponding fields.
    4. When I used GUI_UPLOAD FM it updates internal table as
    Please give me suggestion on how to achieve it.
    Thanks in advance.

    Hi Kumar,
    use a temporary table to get excel values and then parse them to a second table with the format you want.
    This is pretty basic.
    regards,
    Edgar

  • How to Bind a Combo Box so that it retrieves and display content corresponding to the Id in a link table and populates itself with the data in the main table?

    I am developing a desktop application in Wpf using MVVM and Entity Frameworks. I have the following tables:
    1. Party (PartyId, Name)
    2. Case (CaseId, CaseNo)
    3. Petitioner (CaseId, PartyId) ............. Link Table
    I am completely new to .Net and to begin with I download Microsoft's sample application and
    following the pattern I have been successful in creating several tabs. The problem started only when I wanted to implement many-to-many relationship. The sample application has not covered the scenario where there can be a any-to-many relationship. However
    with the help of MSDN forum I came to know about a link table and managed to solve entity framework issues pertaining to many-to-many relationship. Here is the screenshot of my application to show you what I have achieved so far.
    And now the problem I want the forum to address is how to bind a combo box so that it retrieves Party.Name for the corresponding PartyId in the Link Table and also I want to populate it with Party.Name so that
    users can choose one from the dropdown list to add or edit the petitioner.

    Hello Barry,
    Thanks a lot for responding to my query. As I am completely new to .Net and following the pattern of Microsoft's Employee Tracker sample it seems difficult to clearly understand the concept and implement it in a scenario which is different than what is in
    the sample available at the link you supplied.
    To get the idea of the thing here is my code behind of a view vBoxPetitioner:
    <UserControl x:Class="CCIS.View.Case.vBoxPetitioner"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:v="clr-namespace:CCIS.View.Case"
    xmlns:vm="clr-namespace:CCIS.ViewModel.Case"
    mc:Ignorable="d"
    d:DesignWidth="300"
    d:DesignHeight="200">
    <UserControl.Resources>
    <DataTemplate DataType="{x:Type vm:vmPetitioner}">
    <v:vPetitioner Margin="0,2,0,0" />
    </DataTemplate>
    </UserControl.Resources>
    <Grid>
    <HeaderedContentControl>
    <HeaderedContentControl.Header>
    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
    <TextBlock Margin="2">
    <Hyperlink Command="{Binding Path=AddPetitionerCommand}">Add Petitioner</Hyperlink>
    | <Hyperlink Command="{Binding Path=DeletePetitionerCommand}">Delete</Hyperlink>
    </TextBlock>
    </StackPanel>
    </HeaderedContentControl.Header>
    <ListBox BorderThickness="0" SelectedItem="{Binding Path=CurrentPetitioner, Mode=TwoWay}" ItemsSource="{Binding Path=tblParties}" />
    </HeaderedContentControl>
    </Grid>
    </UserControl>
    This part is working fine as it loads another view that is vPetioner perfectly in the manner I want it to be.
    Here is the code of vmPetitioner, a ViewModel:
    Imports Microsoft.VisualBasic
    Imports System.Collections.ObjectModel
    Imports System
    Imports CCIS.Model.Party
    Namespace CCIS.ViewModel.Case
    ''' <summary>
    ''' ViewModel of an individual Email
    ''' </summary>
    Public Class vmPetitioner
    Inherits vmParty
    ''' <summary>
    ''' The Email object backing this ViewModel
    ''' </summary>
    Private petitioner As tblParty
    ''' <summary>
    ''' Initializes a new instance of the EmailViewModel class.
    ''' </summary>
    ''' <param name="detail">The underlying Email this ViewModel is to be based on</param>
    Public Sub New(ByVal detail As tblParty)
    If detail Is Nothing Then
    Throw New ArgumentNullException("detail")
    End If
    Me.petitioner = detail
    End Sub
    ''' <summary>
    ''' Gets the underlying Email this ViewModel is based on
    ''' </summary>
    Public Overrides ReadOnly Property Model() As tblParty
    Get
    Return Me.petitioner
    End Get
    End Property
    ''' <summary>
    ''' Gets or sets the actual email address
    ''' </summary>
    Public Property fldPartyId() As String
    Get
    Return Me.petitioner.fldPartyId
    End Get
    Set(ByVal value As String)
    Me.petitioner.fldPartyId = value
    Me.OnPropertyChanged("fldPartyId")
    End Set
    End Property
    End Class
    End Namespace
    And below is the ViewMode vmParty which vmPetitioner Inherits:
    Imports Microsoft.VisualBasic
    Imports System
    Imports System.Collections.Generic
    Imports CCIS.Model.Case
    Imports CCIS.Model.Party
    Imports CCIS.ViewModel.Helpers
    Namespace CCIS.ViewModel.Case
    ''' <summary>
    ''' Common functionality for ViewModels of an individual ContactDetail
    ''' </summary>
    Public MustInherit Class vmParty
    Inherits ViewModelBase
    ''' <summary>
    ''' Gets the underlying ContactDetail this ViewModel is based on
    ''' </summary>
    Public MustOverride ReadOnly Property Model() As tblParty
    '''' <summary>
    '''' Gets the underlying ContactDetail this ViewModel is based on
    '''' </summary>
    'Public MustOverride ReadOnly Property Model() As tblAdvocate
    ''' <summary>
    ''' Gets or sets the name of this department
    ''' </summary>
    Public Property fldName() As String
    Get
    Return Me.Model.fldName
    End Get
    Set(ByVal value As String)
    Me.Model.fldName = value
    Me.OnPropertyChanged("fldName")
    End Set
    End Property
    ''' <summary>
    ''' Constructs a view model to represent the supplied ContactDetail
    ''' </summary>
    ''' <param name="detail">The detail to build a ViewModel for</param>
    ''' <returns>The constructed ViewModel, null if one can't be built</returns>
    Public Shared Function BuildViewModel(ByVal detail As tblParty) As vmParty
    If detail Is Nothing Then
    Throw New ArgumentNullException("detail")
    End If
    Dim e As tblParty = TryCast(detail, tblParty)
    If e IsNot Nothing Then
    Return New vmPetitioner(e)
    End If
    Return Nothing
    End Function
    End Class
    End Namespace
    And final the code behind of the view vPetitioner:
    <UserControl x:Class="CCIS.View.Case.vPetitioner"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:vm="clr-namespace:CCIS.ViewModel.Case"
    mc:Ignorable="d"
    Width="300">
    <UserControl.Resources>
    <ResourceDictionary Source=".\CompactFormStyles.xaml" />
    </UserControl.Resources>
    <Grid>
    <Border Style="{StaticResource DetailBorder}">
    <Grid>
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="Auto" />
    <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <TextBlock Grid.Column="0" Text="Petitioner:" />
    <ComboBox Grid.Column="1" Width="240" SelectedValuePath="." SelectedItem="{Binding Path=tblParty}" ItemsSource="{Binding Path=PetitionerLookup}" DisplayMemberPath="fldName" />
    </Grid>
    </Border>
    </Grid>
    </UserControl>
    The problem, presumably, seems to be is that the binding path "PetitionerLookup" of the ItemSource of the Combo box in the view vPetitioner exists in a different ViewModel vmCase which serves as an ObservableCollection for MainViewModel. Therefore,
    what I need to Know is how to route the binding path if it exists in a different ViewModel?
    Sir, I look forward to your early reply bringing a workable solution to the problem I face. 
    Warm Regards,
    Arun

  • Error field is not getting populated into corresponding str. in Zrfc

    hi,
    In case of error in PO creation i am not getting all the data i nto correponding structure..
    *data it_head type standard table of bapimepoheader.
      DATA ls_head TYPE bapimepoheader.
      DATA it_headx TYPE STANDARD TABLE OF bapimepoheaderx.
      DATA ls_headx TYPE bapimepoheaderx.
      data : it_temp_ekpo type zpo_item_60 occurs 0 with header line.
      DATA it_item TYPE STANDARD TABLE OF bapimepoitem.
      DATA ls_item TYPE bapimepoitem.
      DATA it_itemx TYPE STANDARD TABLE OF bapimepoitemx.
      DATA ls_itemx TYPE bapimepoitemx.
      DATA it_sch TYPE STANDARD TABLE OF bapimeposchedule  .
      DATA ls_sch TYPE bapimeposchedule.
      DATA it_schx TYPE STANDARD TABLE OF bapimeposchedulx.
      DATA ls_schx TYPE bapimeposchedulx.
      DATA it_poact TYPE STANDARD TABLE OF bapimepoaccount.
      DATA ls_poact TYPE bapimepoaccount.
      DATA it_poactx TYPE STANDARD TABLE OF bapimepoaccountx.
      DATA ls_poactx TYPE bapimepoaccountx.
      DATA it_cond TYPE STANDARD TABLE OF bapimepocond.
      DATA ls_cond TYPE bapimepocond.
      DATA it_adrc TYPE STANDARD TABLE OF bapimepoaddrdelivery.
      DATA st_adrc TYPE bapimepoaddrdelivery.
      DATA it_condx TYPE STANDARD TABLE OF bapimepocondx.
      DATA ls_condx TYPE bapimepocondx.
      DATA it_popart TYPE STANDARD TABLE OF bapiekkop.
      DATA ls_popart TYPE bapiekkop.
      data : ret2 type bapiret2 occurs 0 with header line.
      DATA ls_ekko TYPE zpo_data_60.
      DATA st_ekko TYPE zpo_data_60.
      DATA ls_ekpo TYPE zpo_item_60.
      DATA st_ekpo TYPE zpo_item_60.
      DATA:     ls_adrc TYPE zpo_adrc_60,
              ls_ekkn TYPE zpo_ekkn_60,
             ls_eket TYPE zpo_eket_60,
              ls_ekbe TYPE zpo_ekbe_60,
              w_purchaseorder type BAPIMEPOHEADER-PO_NUMBER.
      LOOP AT lt_ekpo INTO st_ekpo.
        ls_ekpo = st_ekpo.
        AT NEW ebeln.
          READ TABLE lt_ekko WITH KEY ebeln = ls_ekpo-ebeln.
          IF sy-subrc = 0.
            ls_head-comp_code = lt_ekko-bukrs.
            ls_head-doc_type = lt_ekko-bsart.
            ls_head-vendor = lt_ekko-lifnr.
            ls_head-purch_org = lt_ekko-ekorg.
            ls_head-pur_group = lt_ekko-ekgrp.
            ls_head-pmnttrms = lt_ekko-zterm.
            ls_head-exch_rate = lt_ekko-wkurs.
          ls_head-incoterms1 = lt_ekko-inco1.
         ls_head-incoterms2 = lt_ekko-inco2.
            ls_head-currency = lt_ekko-waers.
            ls_head-PO_NUMBER = lt_ekko-ebeln.
    *append ls_head to it_head.
    *Parameter: POHEADERX
            ls_headx-comp_code = 'X' .
            ls_headx-doc_type = 'X' .
            ls_headx-vendor = 'X' .
            ls_headx-purch_org = 'X'.
            ls_headx-pur_group = 'X' .
            ls_headx-pmnttrms = 'X'.
            ls_headx-currency = 'X'.
            ls_headx-exch_rate = 'X'.
          ls_headx-incoterms1 = 'X'.
          ls_headx-incoterms2 = 'X'.
            ls_headx-currency = 'X'.
            ls_headx-PO_NUMBER = 'X'.
    *append ls_headx to it_headx.
          ENDIF.
        ENDAT.
        ls_item-po_unit = ls_ekpo-meins.
        ls_item-po_item  = ls_ekpo-ebelp.
        ls_item-material = ls_ekpo-matnr.
        ls_item-price_unit = ls_ekpo-peinh.
        ls_item-orderpr_un = ls_ekpo-bprme.
        ls_item-net_price = ls_ekpo-netpr.
        ls_item-matl_group = ls_ekpo-matkl.
       ls_item-short_text = ls_ekpo-txz01.
        ls_item-plant = ls_ekpo-werks.
        ls_item-stge_loc = ls_ekpo-lgort.
        ls_item-quantity = ls_ekpo-menge.
        ls_item-acctasscat = ls_ekpo-knttp.
        ls_item-gr_basediv  = ls_ekpo-webre.
        ls_item-vend_mat  = ls_ekpo-idnlf.
        ls_item-no_more_gr = ls_ekpo-elikz.
        ls_item-final_inv  = ls_ekpo-erekz.
        ls_item-gr_ind   = ls_ekpo-wepos.
        ls_item-gr_non_val = ls_ekpo-weunb.
        ls_item-conv_num1   = ls_ekpo-bpumz.
        ls_item-conv_den1   = ls_ekpo-bpumn.
        ls_item-ir_ind      = ls_ekpo-repos.
        ls_item-unlimited_dlv = ls_ekpo-uebtk.
        ls_item-reminder1 = ls_ekpo-mahn1.
        ls_item-reminder2  = ls_ekpo-mahn2.
        ls_item-reminder3   = ls_ekpo-mahn3.
        ls_item-vend_mat  = ls_ekpo-idnlf.
        ls_item-no_more_gr = ls_ekpo-elikz.
        ls_item-final_inv = ls_ekpo-erekz.
        ls_item-gr_ind  = ls_ekpo-wepos.
        append ls_ekpo to it_temp_ekpo.
    *Parameter: POITEMX
        ls_itemx-po_unit = 'X'.
        ls_itemx-po_item  = ls_ekpo-ebelp.
        ls_itemx-material = 'X'.
        ls_itemx-price_unit = 'X'.
        ls_itemx-orderpr_un = 'X'.
        ls_itemx-net_price = 'X'.
        ls_itemx-matl_group = 'X'.
       ls_itemx-short_text = 'X'.
        ls_itemx-plant = 'X'.
        ls_itemx-stge_loc = 'X'.
        ls_itemx-quantity = 'X'.
        ls_itemx-acctasscat = 'X'.
        ls_itemx-gr_basediv  = 'X'.
        ls_itemx-vend_mat  = 'X'.
        ls_itemx-no_more_gr = 'X'.
        ls_itemx-final_inv  = 'X'.
        ls_itemx-gr_ind   = 'X'.
        ls_itemx-gr_non_val = 'X'.
        ls_itemx-conv_num1   = 'X'.
        ls_itemx-conv_den1   = 'X'.
        ls_itemx-ir_ind      = 'X'.
        ls_itemx-unlimited_dlv = 'X'.
        ls_itemx-reminder1 = 'X'.
        ls_itemx-reminder2  = 'X'.
        ls_itemx-reminder3   = 'X'.
        ls_itemx-vend_mat  = 'X'.
        ls_itemx-no_more_gr = 'X'.
        ls_itemx-final_inv = 'X'.
        ls_itemx-gr_ind  = 'X'.
        APPEND ls_itemx TO it_itemx.
        APPEND ls_item TO it_item.
        READ TABLE lt_eket INTO ls_eket WITH KEY ebeln = ls_ekpo-ebeln
                                                 ebelp = ls_ekpo-ebelp.
        IF sy-subrc = 0.
    *Parameter: POSCHEDULE
          ls_sch-po_item = ls_ekpo-ebelp.
          ls_sch-sched_line = LS_EKET-ETENR.
          ls_sch-delivery_date = ls_eket-eindt.
          ls_sch-quantity = ls_ekpo-menge .
          APPEND ls_sch TO it_sch.
        ENDIF.
    *Parameter: POSCHEDULEX
        ls_schx-po_item = ls_ekpo-ebelp.
        ls_schx-sched_line = LS_EKET-ETENR.
        ls_schx-po_itemx = 'X' .
        ls_schx-sched_linex = 'X'.
        ls_schx-delivery_date = 'X'.
        ls_schx-quantity = 'X' .
        APPEND ls_schx TO it_schx.
    read table lt_ekkn into ls_ekkn with key ebeln = ls_ekpo-ebeln
                                             ebelp = ls_ekpo-ebelp.
    *Parameter: POACCOUNT
    IF SY-SUBRC = 0.
        ls_poact-po_item = ls_ekpo-ebelp.
        ls_poact-serial_no = sy-tabix.
        ls_poact-quantity = ls_ekpo-menge.
        ls_poact-gl_account = ls_ekkn-sakto.
        ls_poact-costcenter = ls_ekkn-KOSTL.
       ls_poact-co_area = '1000'.
        ls_poact-tax_code = ls_ekkn-mwskz.
        APPEND ls_poact TO it_poact.
    ENDIF.
    *Parameter: POACCOUNTX
        ls_poactx-po_item = 'X' .
        ls_poactx-serial_no = sy-tabix .
        ls_poactx-quantity = 'X' .
        ls_poactx-gl_account = 'X' .
        ls_poactx-costcenter = 'X' .
       ls_poactx-co_area = 'X' .
        ls_poactx-tax_code = 'X' .
        APPEND ls_poactx TO it_poactx.
    *Parameter: POCOND
        ls_cond-itm_number = ls_ekpo-ebelp.
        ls_cond-cond_st_no = '001' .
        ls_cond-cond_type = 'PB00' .
        ls_cond-cond_value = '79.900000000' .
        ls_cond-currency = ls_ekko-waers.
        ls_cond-currency_iso = 'USD'.
        ls_cond-cond_unit = 'KG' .
        ls_cond-cond_p_unt = '1' .
        ls_cond-change_id = 'U' .
        APPEND ls_cond TO it_cond.
    *Parameter: POCONDX
        ls_condx-itm_number = ls_ekpo-ebelp.
        ls_condx-cond_st_no = '000' .
        ls_condx-itm_numberx = 'X' .
        ls_condx-cond_type = 'X' .
        ls_condx-cond_value = 'X' .
        ls_condx-currency = 'X' .
        ls_condx-change_id = 'X' .
        APPEND ls_condx TO it_condx.
    *Parameter: POPARTNER,
       ls_popart-partnerdesc = 'OA' .
       ls_popart-langu = 'EN' .
       ls_popart-buspartno = '0000001100' .
       ls_popart-partnerdesc = 'GS' .
       ls_popart-langu = 'EN' .
       ls_popart-buspartno = '0000001200' .
       ls_popart-partnerdesc = 'IP' .
       ls_popart-langu = 'EN' .
       ls_popart-buspartno = '0000001000'.
       APPEND ls_popart TO it_popart.
    Address data
        READ TABLE lt_adrc  INTO ls_adrc WITH KEY addrnumber = ls_ekko-adrnr.
        IF sy-subrc = 0.
          st_adrc-addr_no = ls_adrc-addrnumber.
          st_adrc-name = ls_adrc-name1.
          st_adrc-street = ls_adrc-street.
          st_adrc-district = ls_adrc-city2.
          st_adrc-postl_cod1 = ls_adrc-post_code1.
          st_adrc-city = ls_adrc-city1.
          st_adrc-country = ls_adrc-country.
          st_adrc-region = ls_adrc-region.
          APPEND st_adrc TO it_adrc.
        ENDIF.
        AT END OF ebeln.
          CALL FUNCTION 'BAPI_PO_CREATE1'
            EXPORTING
             poheader                     =  ls_head
             poheaderx                    = ls_headx
      POADDRVENDOR                 =
      TESTRUN                      =
      MEMORY_UNCOMPLETE            =
      MEMORY_COMPLETE              =
      POEXPIMPHEADER               =
      POEXPIMPHEADERX              =
      VERSIONS                     =
      NO_MESSAGING                 =
      NO_MESSAGE_REQ               =
      NO_AUTHORITY                 =
      NO_PRICE_FROM_PO             =
    IMPORTING
       EXPPURCHASEORDER              = w_purchaseorder
      EXPHEADER                    =
      EXPPOEXPIMPHEADER            =
           TABLES
             return                       = ret2
             poitem                       = it_item
             poitemx                      = it_itemx
             poaddrdelivery               = it_adrc
             poschedule                   = it_sch
             poschedulex                  = it_schx
             poaccount                    = it_poact
      POACCOUNTPROFITSEGMENT       =
             poaccountx                   = it_poactx
      POCONDHEADER                 =
      POCONDHEADERX                =
             pocond                       = it_cond
             pocondx                      = it_condx
      POLIMITS                     =
      POCONTRACTLIMITS             =
      POSERVICES                   =
      POSRVACCESSVALUES            =
      POSERVICESTEXT               =
      EXTENSIONIN                  =
      EXTENSIONOUT                 =
      POEXPIMPITEM                 =
      POEXPIMPITEMX                =
      POTEXTHEADER                 =
      POTEXTITEM                   =
      ALLVERSIONS                  =
            popartner                    = it_popart
      POCOMPONENTS                 =
      POCOMPONENTSX                =
      POSHIPPING                   =
      POSHIPPINGX                  =
      POSHIPPINGEXP                =
    if w_purchaseorder is not initial.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
           LOOP AT ret2 WHERE type = 'S'.
                lt_success_po-ebeln =   ret2-message_v2.
                lt_success_po-type = ret2-type.
                lt_success_po-message = ret2-message.
                append lt_success_po.
                clear : lt_success_po.
              ENDLOOP.
    else.
    append lt_ekko to lt_ekko_error.
    append it_temp_ekpo to lt_ekpo_error.
    append ls_eket to lt_eket_error.
    append ls_adrc to lt_adrc_error.
    append ls_ekkn to lt_ekkn_error.
    *loop at ret2 where type = 'E'.
    **move-corresponding lt_ekko to lt_error_po.
    **move-corresponding ls_ekpo to lt_error_po.
    **move ret2-type to lt_error_po-type.
    **move ret2-message to lt_error_po-message.
    *append
    **lt_error_po.
    **clear :
    **lt_error_po.
    endloop.
      endif.
      CLEAR : ls_ekko,
                  st_ekko,
                  ls_ekpo,
                  st_ekpo,
                  ls_ekkn,
                  ls_ekbe,
                  ls_eket.
        ENDAT.
      ENDLOOP.
    ENDFUNCTION.
    Message was edited by:
            ruban R

    You must get all the messages into
    RET2
    table.
    You need to fill your ZRFC's RETURN table with the data from RET2 after the FM 'BAPI_PO_CREATE1' call. Because your BAPI is calling mulitple times and henceforth your RET2 is being refreshed and contains the last executed BAPI's return message.
    So,
    CALL FUNCTION 'BAPI_PO_CREATE1'
    EXPORTING
    EXCEPITON
    LOOP AT RET2.
      MOVE-CORRESPONDING RET2 TO IT_RETRUN.   " << This is the table which you need to pass back to ZRFC
      APPEND IT_RETURN.
    ENDLOOP.
    Regards,
    Naimesh Patel

  • Enable or disable particular record in list item based on a corresponding c

    Hi,
    How can i Enable or disable property of particular record in list item (multi record) based on a corresponding check box(multi record) ,
    e.g Form Structure:
    if press a button then record should populate where multi_post_query
    if my_check_box = 1 then
    my_list_item  disable to update;
    else
    my_list_item  enable to update;
    end if;
    now wanted result is like below
    my_check_box ---- my_list_item
    +----------------------enable
    +----------------------enable
    +----------------------enable
    _----------------------Disable
    _----------------------Disable
    Here "+" means checked,"_" means unchecked and "enable" means updatable "Disable" means not updatable
    the pseudo code is like,
    if my_check_box = 1 then
    my_list_item enable to update;
    else
    my_list_item disable to update;
    end if;
    Note: my_check_box is not updatable
    please tell me which trigger and where I should create
    Thanks
    Edited by: 838602 on Feb 21, 2011 11:12 PM
    Edited by: 838602 on Feb 22, 2011 1:40 AM

    Hi Abdetu,
    I created WHEN-NEW-RECORD-INSTANCE Trigger at data block level
    And I need should work like below pseudo code (sorry for previous pseudo code)
    if my_check_box = 1 then
    my_list_item  disable to update;
    else
    my_list_item  enable to update;
    end if;
    so change code as
    IF :MULTI.PROTECTED_FIELD = 1 THEN
    SET_ITEM_PROPERTY ('MULTI.ACTION',REQUIRED , PROPERTY_FALSE );
    SET_ITEM_PROPERTY('MULTI.ACTION',NAVIGABLE,PROPERTY_FALSE);
    SET_ITEM_PROPERTY ('MULTI.ACTION' ,UPDATE_ALLOWED,PROPERTY_FALSE);
    SET_ITEM_PROPERTY ('MULTI.ACTION' ,INSERT_ALLOWED,PROPERTY_FALSE);
    :multi.action := 0;
    ELSE
    SET_ITEM_PROPERTY ('MULTI.ACTION',REQUIRED , PROPERTY_TRUE);
    SET_ITEM_PROPERTY('MULTI.ACTION',NAVIGABLE,PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('MULTI.ACTION' ,UPDATE_ALLOWED,PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('MULTI.ACTION' ,INSERT_ALLOWED,PROPERTY_TRUE);
    END IF;
    Sorry, still I am not getting desired o/p. even i check item (ACTION) level Trigger
    Note: my_check_box is not updatable
    that would assign at time of button press (post query) as i mentioned
    Edited by: 838602 on Feb 22, 2011 1:41 AM

  • HTML links from Full Check Accessibility report do not open the corresponding PDF links

    I regularly generate full Check accessibility reports for the PDF user guides I create in MSWord. However, when I click the links in the HTML file/report generated, they are supposed to link/highlight the corresponding errors in the PDf file. Instead, I get an error message that "There was an error opening this document. Bad parameters."
    How can I get the links to work so I know which section in my PDF has the error (inaccessible items).
    Thanks

    I understand you are creating HTML reports and then using them to find errors/view the PDFs. 
    Is this a new problem or  have you always had problems with the links?  If it's a new problem, what has changed on your system?
    Can you view other PDFs in your browser? 
    Have you moved any of the files since you created the report -- as you may know the HTML report references a specific lcoation on your hard drive and if you moved the PDF after creating the report, it may not be able to find the file.

Maybe you are looking for

  • Poor quality glossy LCD screen

    I'm really disappointed by the quality of the glossy LCD screen on my MacBook Pro. I have at least 15 grey 'dots' (the Genius at the Genius Bar said they're not really pixels since they're not completely square in shape), one clearly dead pixel, and

  • Deleted or trashed emails reappearing in All Mail

    When I trash or delete a mail message from Apple Mail it never really goes away.  It is temporarily deleted but then shows up in my "All Mail" account.  If I use Gmail directly for this imap account it works.  But not when I use Apple mail.  Problem

  • Integrating UCCX with Presence - Unable to Add Users to Contacts List

    Hi, I'm trying to integrate UCCX with Presence via the Desktop Administrator. I have created an enduser (LDAP Sync) and assigned the user a Service Profile which includes the Directory UC Service for LDAP, have tried both LDAP and GC configuration. I

  • New Neeon Firmware 1.0

    FINALLY! I just noticed it today and immediately installed. My neeon is more responsi've now compared to the earlier ver .0005.Message Edited by rmam on 09-0-2005 09:3 AM

  • IPhone4 - How do you add multiple #'s?

    I'm new to the iPhone, just got it last night and have to manually enter all my contacts. I'm trying to add, home, work, etc. but it's only letting me enter one number which is cell. Help!! Any other tips or tricks would be great, like how to delete