Block function showing differnt from QI06 to QI03 tocde

Hi,
Providing below is my requirement:
I am using SAP ECC 6.0
In QI06 Tcode (QM Releases: Mass maintenance) selection screen I am providing Plant = "XXXX" and in "Change" tab under "Block" section providing value to Block Function = "Qualified" and clicked on execute or F8 button. From the out put I was selected one material(i.e.row) and clicked on Q-inforecord or F9 button as per the selection criteria of selection screen it should show for that particular material as "Qualified" but it is showing under Block section ---> Block Function = Lock Purchase order.
When I click Q-inforecord in QI06Tcode it is going to QI03 Tcode.
Please let me know how to resolve this issue.
Thanks in Advance.
- Kishore

Did you save the QI06 output? Did you get the message  "nn info records were saved'
Follow these steps
1. In QI06 enter selection criteria
2. when the list of Q info record is displayed, select the records to be saved and click save.
3. you should get the messgae 1 info records were saved.
4.Now go to QI03 transaction and you should see your changes
Hope this helps.

Similar Messages

  • Calendar...list function shows only events for date select instead of events from that date forward.

    Calendar list function shows only events for date selected....instead of events for date selected and events forward from that date.  Is there a setting change needed?  Help!

    Hi,
    Did you check that your universe object referring "Date of Completion" has Date data type?
    Can you also provide the BOE verson you are using?
    I remembered that the calendars were not displayed in XIR2 version.
    Didier

  • Timeout in Block Function doesn't work

    Hi, I'm using a BLOCK FUNCTION, with a timeout of 3 minutes from a attribute type, I wait for about 10 minutes, but the process still blocked... what's wrong ? can't I use a block function with timeout, or the block process need to be completed by CompleteActivity() function before the timeout engine check for that.
    Thanks.

    No, you don´t have to use completeActivity.
    I think you are missing something.
    Did you start your background engine?
    Regards,
    Luiz Soares

  • How to show details from web part as pop up window

    Hello
    I designed few web pages in SharePoint Designer 2010 and trying to customize it. I have a XSLTListView web part that is displaying filtered data from the external SQL database. When user choses the item from this list, I need it to show in the new pop
    up window. I can't seem to find the way to do it. Saw multiple references to use SP.UI.ModalDialog.ShowPopupDialog(url), but I don't know how and where to incorporate it, since there is no place in the page where it actually specifies that url
    of the page that I need to show as pop up.
    Below there is a code for the XsltListWebPart, where I'm hoping I could make changes to make it pop up (it seems that this is the part that is calling the display details form). The form that I'd like to pop up is DispForm.aspx
    <script>
    function showpreview<xsl:value-of select="$ViewCounter" />(o) {
    count = 1;
    for(i = 0; i &lt; o.childNodes.length; i++)
    var child = o.childNodes[i];
    if (child.style.display == &quot;none&quot; &amp;&amp; child.tagName == &quot;DIV&quot;)
    f = document.getElementById(&quot;n&quot; + count + &quot;<xsl:value-of select="$WPQ" />&quot;);
    f.innerHTML = unescape(child.innerHTML) + &apos;&#160;&apos;;
    count ++;
    </script>
    <div id="previewpaneerror{$ViewCounter}" style="width: 801px"></div>
    <table cellspacing="0" cellpadding="0" border="0" id="previewpanetable{$ViewCounter}" dir="{List/@Direction}">
    <xsl:choose>
    <xsl:when test="not($dvt_RowCount=0)">
    <tr>
    <td valign="top" style="width: 186px">
    <div class="ms-ppleft" style="width: 100px">
    <table cellspacing="0" cellpadding="0" border="0" style="width: 122%">
    <xsl:apply-templates select="." mode="RenderView"/>
    </table>
    </div>
    </td>
    <td valign="top">
    <div id="preview1{generate-id()}" class="style2" style="width: 690px; margin-left: 30px;">
    <table border="0" cellpadding="0" cellspacing="0">
    <xsl:for-each select="ViewFields/FieldRef[not(@Explicit='TRUE')]">
    <tr>
    <td nowrap="nowrap" valign="top" class="ms-formlabel" style="width: 143px">
    <nobr>
    <xsl:value-of select="@DisplayName"/>
    </nobr>
    </td>
    <td valign="top" class="ms-formbody" id="n{position()}{$WPQ}" style="width: 370px">
    </td>
    </tr>
    </xsl:for-each>
    </table>
    </div>
    </td>
    </tr>
    </xsl:when>
    <xsl:otherwise>
    <tr>
    <td class="ms-vb">
    <table class="ms-summarycustombody" cellpadding="0" cellspacing="0" border="0">
    <xsl:call-template name="EmptyTemplate" />
    </table>
    </td>
    </tr>
    <tr>
    <td height="5">
    <img src="/_layouts/images/blank.gif" width="1" height="5" alt="" />
    </td>
    </tr>
    </xsl:otherwise>
    </xsl:choose>
    </table>
    </xsl:template>
    Alla Sanders

    Hi Alla,
    You can show details from web part as pop up window using JavaScript with SP.UI.ModalDialog.ShowPopupDialog(url). Here is a demo you can refer to:
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function(){
    var obj1=$("a[id='forum0-NewPostLink']");
    url="http://sp13"+obj1.attr("href");
    //alert(url);
    obj1.removeAttr("href");
    obj1.click(function(){
    openDialogBox(url);
    function openDialogBox(url) {
    var pageUrl=url;
    var title="New Discussion";
    SP.UI.ModalDialog.showModalDialog(
    url: pageUrl,
    autoSize: true,
    title: title,
    dialogReturnValueCallback: function (result){
    if(result== SP.UI.DialogResult.OK){
    //refresh parent window
    window.location.href=window.location.href;
    </script>
    Reference:
    https://social.technet.microsoft.com/Forums/en-US/f18062ed-2e17-440e-8e00-2904f5316802/discussion-board-forum-opens-in-other-page?forum=sharepointdevel
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Is it possible to show data from two different sql tables?

    Is it possible to show data from two different sql tables? Either to show combined data by using a join on a foreign key or showing a typical master detail view?
    I have one table With data about a house, and another table With URL's to images in the blob. Could these two be combined in the same Gallery?
    Best regards Terje F - Norway

    Hi Terje,
    If you have a unique key, you could use one of the following functions for your scenarios:
    If you only have one image per house, you can use LookUp:
    http://siena.blob.core.windows.net/beta/ProjectSienaBetaFunctionReference.html#_Toc373745501
    If you have multiple images per house, you can use Filter:
    http://siena.blob.core.windows.net/beta/ProjectSienaBetaFunctionReference.html#_Toc373745487
    Thanks
    Robin

  • Not working Billing Block functionality for Invoicing Plan

    Hi Experts,
    I am using Invoicing plan functionality to purchase materials by using Milestones from Network of Project System. The system is allowing to post Vendor Invoice (MIRO) without removing of Billing Block of Invoicing Plan from PO and the system should give error message because of non removal of Billing block.
    The following configuration was done in Invoicing Plan of PS.
    1. Assigned Date Category to Invoicing Plan Type (30)
    2. Assignment of Invoicing Plan Type to Network Profile
    The following configuration was done in Invoicing Plan of MM.
    1. Assigned default date category to Partial Invoicing Plan type
    2. Maintained Date category to Invoicing Plan type
    3. Assigned Date proposal category to Invoicing Plan Type
    4. Maintained Date Proposal to Invoicing Plan Type
    What are the changes needs to do in configuration or transaction to prevent to post vendor Invoice because of nonremoval of Billing block from Invoicing Plan?
    Please give me the solution.
    Thanks in advance,
    Rao

    Hi Rao
    You need to have the invoicing plan done in Project System (PS) under the project with Milestones and save the plan. On dong this, the system would generate a 'Reference Number'. This can be seen when you again go to the invoicing plan.
    Use this reference number in the MM invoicing plan to link the PS & MM plans. This would create a block automatically in MM which can be lifted only on confirmation of the appropriate Milestone in PS.
    Hope this helps
    Venu

  • Cover flow albums show songs from multiple albums

    I love my iPod classic. the only issue I'm having is that when reviewing some albums via the coverflow feature, about 5 albums shows songs from multiple albums. they play correctly. It appears just the listing is messed up. I've tried deleting, adding the albums back to the library and resyncing, but it's still happening. Anybody seen this?

    Try *One cover, too many tracks* below:
    *HowTo: Grouping Tracks Into Albums*
    Excuse the long post, but hopefully covering all the bases (that I can think of) will help you fix the other issues you are likely to run into as you try to organise your iTunes library.
    *Use an album friendly view*
    iTunes will let you sort music on many columns, some of which are unlikely to group albums together or put the tracks in their normal order. The most useful order for editing the library is probably *Album by Artist*. If you're not already there, select the list view and click on the column heading for Artist until it reads Album by Artist.
    *One cover, too many tracks*
    The iPod (and iTunes to a lesser extent) conflates two or more albums with the same title, most obviously with *Greatest Hits*. On the iPod this can result in one album acting as a combination of two or more. Selecting any cover gives all the tracks of all albums with the same title. The workaround for this "Greatest Hits" bug is to give each album a unique title - I tend to go for *Album - Album Artist* as this reads clearly in the iTunes browser. Alternatively you could use the wording as it appears on the cover or append different numbers of spaces for each different album. Somewhat oddly, setting different values for Sort Album doesn't work.
    *Missing Artist or Album not with others by same artist*
    iTunes relies on the Gracenote CDDB database when identifying CD's. This often marks collections or anthologies of an artist's work as a compilation. In iTunes, however, the compilation flag has the logical function of grouping together tracks with the same album name, but different artists on each track, e.g. "Now That's What I Call Metal 666!". These compilations are then all grouped together at the end of cover flow. Most of us however, would expect "Greatest Hits" albums to be listed with the other albums by the same album artist. For albums which are essentially by a single album artist or group it is best to set the appropriate value for the album artist and clear the compilation flag.
    *One album, too many covers*
    For true compilations, where each track is by a different artist, the answer is to set the compilation flag to true and enable the iTunes preference to *Group compilations when browsing*. If the album is not a compilation however, any tracks which list guest artists may be treated as separate items. Filling in the Album Artist field is enough to link things in iTunes. Sadly, however, the iPod ignores the Album Artist field when grouping albums so this is only a partial solution. You can simply mark the entire album as a compilation which seems to be the way iTMS handles it, however that's not an ideal fix. Short of waiting for Apple to address this issue (and as far as I can tell it goes back to the 1st gen. of iPods) we need a workaround. What I do is to put any additional artist info. in square brackets after the song name. E.g. *Track \[Feat. Guest\]* and then set *Artist=Album Artist* for each track. For anthologies where the Album Artist is credited as part of another group, e.g. for Cream tracks on an Eric Clapton anthology, I use *Track \[As Group\]*. For a track where the main Album Artist doesn't receive a credit, e.g. the first track of the Slim Shady LP credited to Jeff Bass, I just set the track name to *Track \[Guest\]* while still setting the artist to the album artist. N.b. I use square brackets to indicate that this is information about the track as distinct from the song title and also use this style for Mix/Live/Bonus info.
    *One album, still too many covers*
    iTunes may split albums into two or more sections if some tracks from the album have different values for Artist, Album Artist, Album, No. of Discs or Part of a Compilation. Tiny differences such as trailing spaces, accented characters or variants of symbols can sometimes be quite hard to spot. The iPod is also more sensitive to case variations and may split or reorder an album that looks okay in iTunes. Normally overtyping the desired value for each shared field will complete the grouping of the album into one entity. Occasionally, however, this method seems to fail. When this happens I've found that you can force every field to update properly by adding some extra text - e.g. a trailing X, which once applied seems to complete the joining of the tracks into one album. Once this has happened the extra data can be removed and the album should remain properly grouped.
    *Tried that, there are STILL too many covers!*
    The Sort Artist, Sort Album & Sort Album Artist fields can be used to override the normal sort order. For example iTunes automatically drops leading articles (a/an/the) so "The Beatles" are arranged under "B" instead of "T". Occasionally different tracks from the same album can have different values in these sort fields which can also break up the grouping. Making the sort columns visible in iTunes can help with spotting & correcting such problems.
    *One cover for multi-disc album*
    Multi-disc albums are often listed as *Album (CD1)* for CD 1, *Album (CD2)* for CD 2 etc. To display these properly using just one cover, each disc should have the correct *Disc X of Y* values set, and then the entire album should be given the single title Album. Being somewhat obsessive I also renumber the tracks sequentially, working backwards from the last track (so that no two tracks ever have the same number) until I reach disc 1. BTW You can still give the individual discs different artwork should it be relevant so that the correct artwork will be displayed as the album progresses.
    *One artist, many names*
    With some artists, particularly classical composers, you should be aware of alternative representations of their names. E.g. 2Pac vs. Tupac. The menus will work best if for each artist you standardise on just one form of their name. E.g. make a choice between Mozart, W.A. Mozart or Wolfgang Amadeus Mozart, and then apply it consistently. For classical music I tend also to use the Composer as the Artist & Album Artist and either discard the performer details or place these into the Comments field.
    tt2

  • How can I show message from server?

    Has anyone idea, how can I show message from server? I want to show message after some files are uploaded via FTP.

    Hi,
    You can use OPEN DATASET for this purpose.
    Try this code:
    <b>****************************************</b>
    Data:
    A_FILE TYPE RLGRAP-FILENAME,   "Application server
    P_FILE TYPE RLGRAP-FILENAME.   "Presentation server
    DATA: BEGIN OF ITAB OCCURS 0,
    LINE TYPE STRING,
    END OF ITAB.
    DATA: FILENAME TYPE STRING.
    FILENAME = P_FILE.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                = FILENAME
      TABLES
        DATA_TAB                = ITAB[]
      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.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    OPEN DATASET A_FILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    LOOP AT ITAB.
      TRANSFER ITAB-LINE TO A_FILE.
    ENDLOOP.
    <b>*****************************************</b>
    Hope this helps,
    Regards,
    Pragya

  • Where is the function show the double in the version 11?

    Where is the function show the double in version 11

    if you mean show duplicates - this function is gone from iTunes 11

  • My messaging function has disappeared from my iphone 5S, it's no longer in my settings

    My messaging function has disappeared from my iphone 5S, it's no longer in my settings &amp; I have no messages icon. When I get a SMS message it shows in my notification screen with the heading com.apple.MobileSMS, it will not let me click into the message or reply. Please can anyone help?

    Use the form on this page to request a free redownload, or use the Transfer Purchases feature. If neither of these works, you will need to purchase the songs and other content again to get them back; Apple needs to pay the copyright holders for each download from the iTunes Store other than podcasts and album artwork.
    (32837)

  • The monitors of on location CS3 not showing image from Sony FX7

    O.L records OK and plays back but at no time do
    any of the monitors show an image. Was OK in Vista now gone to Windows 7
    Pre Pro CS3 ok on 7 (capture and playback.) Any suggestions please

    Dear Sir, Many many thanks for your very detailed answer everything works just fine. I'm not sure wether I should reply to your answer elsewhere please advise me if this is the case.
    thanks again William sign on name Breezley.
    Date: Mon, 4 Jan 2010 18:44:18 -0700
    From: [email protected]
    To: [email protected]
    Subject: the monitors of on location CS3 not showing image from Sony FX7
    Breezley,
    OnLocation CS3 used Direct Draw to create the video window.  In Vista, you may have noticed that OnLocation CS3 would disable 'Aero' themed desktops as they did not support Direct Draw.  Windows 7 does not have this functionality, so you must disable the Aero theme manually to see the video in OnLocation CS3.
    To do this, right click on open desktop and choose Personalize.
    This will display available Themes.
    Scroll down to the 'Basic and High Contrast Themes'.
    Choose any one of the basic or high contrast themes.
    Restart OnLocation CS3.
    This should bring your video back into view.
    >

  • Show Files from PC On STB?

    I would like to show pictures from my PC on my Set top box and I would also like to view video files I've stored on my PC, on my STB.  Is this possible? In today's day and age, one would think you can do this.  Then again, I THOUGHT the "Redbox by Verizon" would show up on my Set top boxes as well...silly me...lol.

    THIS IS HOW I DO IT
    w Windows 7 Professional
    Stream your media to devices and computers using Windows Media Player
    If you have a home network, you can use Windows Media Player to stream media to computers and media devices in your home. For example, if you have a networked digital media receiver connected to your home stereo system, you can use Windows Media Player to stream music, pictures, and videos from your computer to your stereo. This allows you to enjoy the contents of your Player Library anywhere in your home—even in rooms that don't have a computer.
     Watch a demo: Windows 7 Play To demo
    The following procedures explain how to get started. For an overview about streaming media, including information about device and network requirements, see Getting started with media streaming.
     To connect a device or another computer to your network
    Before you can stream media, you'll need to connect your digital media devices or other computers to your home network. Here's how:
    Connect an Ethernet cable from your device or other computer to your wired network, or set up your device or computer to join your wireless network.
    For help connecting a device or computer to your network, check the documentation that came with your device or computer.
    If you're connecting a device, turn it on, and then follow the instructions that appear on the device's screen. If you're connecting another computer, turn that computer on.
    For more information about adding a device or computer to your network, see Add a device or computer to a network.
     To turn on home media streaming
    If media sharing isn't already turned on, follow these steps:
    Click the Start button , click All Programs, and then click Windows Media Player.
    If the Player is currently open and you’re in Now Playing mode, click the Switch to Library button in the upper-right corner of the Player.
    Click Stream, and then click Turn on home media streaming.
    Turn on home media streaming won't be available on the Stream menu if streaming is already turned on.
    On the Media streaming options page, click Turn on media streaming.  If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
    Click OK.
    Notes
    If your computer is on a public network, you will be prompted to change the network location before you can stream media. For more information about network locations, see Choosing a network location.
    If you have set up a homegroup, you might be prompted to share your media libraries with your homegroup before you can stream media. For more information about sharing libraries with a homegroup, see Share libraries with your homegroup.
     To set up basic streaming preferences
    After you turn on media streaming, Windows Media Player will automatically detect any computers and devices on your network that can receive media streams. You can stream media to all computers and devices on your network, or allow access to your media on a case-by-case basis. To choose which devices will receive your media streams, follow these steps:
    Click the Start button , click All Programs, and then click Windows Media Player.
    If the Player is currently open and you’re in Now Playing mode, click the Switch to Library button in the upper-right corner of the Player.
    Click Stream, and then click More streaming options.
    Stream menu
    More streaming options won't appear on the Stream menu until after you turn on home media streaming.
    On the Media streaming options page, do one of the following:
    If you want to stream media to all computers and devices on your network, click Allow All.
    If you don't want to stream media to any computers or devices on your network, click Block All.
    If you want to stream media to some computers and devices, click either Allowed or Blocked on the menu next to each item in the list of computers and devices.
    Click OK.
    For more information about media steaming settings, see Change settings for streaming media in Windows Media Player.
     To receive a media stream from another computer or device on your network
    You can use Windows Media Player to receive a media stream from another computer or media device on your network so that you can play it on your computer. To do this, follow these steps:
    Click the Start button , click All Programs, and then click Windows Media Player.
    If the Player is currently open and you’re in Now Playing mode, click the Switch to Library button in the upper-right corner of the Player.
    Click another computer's Player Library on your network listed under Other Libraries in the navigation pane.
    If you don't see Other Libraries in the navigation pane, then do the following:
    Click Organize, and then click Customize navigation pane.
    At the top of the Customize Navigation Pane dialog box, click the name of the Library in the drop-down list, and then click Other Libraries.
    Select the Show Other Libraries check box, and then click OK.
    Find an item you want to play in the details pane, and then double-click it.
     To stream media to another computer or device using Play To
    You can use Windows Media Player to stream media, or play to, another computer or media device on your network.
    Play To dialog box
    For example, if you have a digital media receiver connected to your home network, Windows will automatically detect it and allow you to play music on it using Windows Media Player. To play to another computer or device, follow these steps:
    Click the Start button , click All Programs, and then click Windows Media Player.
    If the Player is currently open and you’re in Now Playing mode, click the Switch to Library button in the upper-right corner of the Player.
    If the list pane is closed or if the Burn or Sync tabs are exposed, click the Play tab.
    Find the items that you want to play in the Player Library, and then drag those items from the details pane into the list pane.
    Click the Play to button at the top of the list pane, click the device on your network that will receive the media.
    In the Play To dialog box, use the playback controls to play, pause, or stop the media stream, and to change to the next or previous item in the list.
    For more information about the Play tab, the list pane, and playback controls, see Getting started with Windows Media Player. For more information about Play To, see Using the Play To feature to stream media.
    Note
    When you stream music to a digital media receiver, you might not be able to switch tracks using controls on the device itself or the remote control that came with the device.
    Tom
    Freedom Essentials, QIP 7100 1,Bose SOLO TV Sound System,,QIP 7216 P2,M1424WR Rev F, iPad 2 WiFi,iPhone 5,TV SYST INFO Release 1.9.5 Build No. 17.45
    Data Object 39.45

  • People Picker Showing Users From Both Domains

    We recently have begun setting up and laying out SharePoint 2010 Standard. It was brought to my attention that when using the search/browse function of the 'people picker' it is showing users from both the domains currently available on our network. Our
    current domain is a *.local domain and the old one which is no longer used for very much is a *.com domain. I have researched this issue and tried running the stsadm 'getproperty' and 'setproperty' commands. The 'getproperty' command for "peoplepicker-distributionlistsearchdomains",
    "peoplepicker-searchadforests", "searchadfilter", etc; always returns "<Property Exist="No" />" even after I have just run a set command and it reports that the command had run successfully. I read something
    about setting the stsadm -o setapppassword -password command, but I am unsure what this does to the current sharepoint configuration.
    Hopefully someone can help me fix this issue so that when people select browse/search only users from the *.local domain are shown.
    Thank you very much to anyone who can help me with this. I have been researching this issue for some time, but my knowledge regarding SharePoint is very limited, and I do not want to continue trying other more in-depth approaches I have found that may resolve
    this issue until I am better informed.

    This is normal when there is a trust between the domains. It is also normal if you previously added users from the .com domain to a SharePoint site as they'll be in the ULS logs.
    To resolve the first type of issue, where a trust does exist, run:
    stsadm -o setproperty -pn peoplepicker-searchadforests -pv "forest:domain.local" -url http://webAppUrl
    To resolve the second issue, run:
    $user = Get-SPUser -Identity "COMdomain\username" -Web http://webUrl
    Move-SPUser -Identity $user -NewAlias "LOCALdomain\username" -IgnoreSid
    Trevor Seward, MCC
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Function for reading from serial port

    Hi experts,
    We are trying to read data from the serial port with the following function we got from internet.
    The problem is when creating the object with the sentence CREATE OBJECT o_obj '"MSCOMMLib.MSComm.1"'.
    This returns a sy-subrc = 2 and shows the exception NO_CREATE_OBJECT.
    We already copied the file MSCOMM32.OCX in c:\windows\system32 and we successfuly registered it, with regsvr32.exe.
    We tried it with Windows XP and Vista.
    Anybody has any idea?
    Thanks in advance
    FUNCTION ZSERIALCOM.
    ""Interfase local
    *"  IMPORTING
    *"     REFERENCE(MODE) TYPE  I DEFAULT 0
    *"     REFERENCE(COMMPORT) TYPE  I DEFAULT 1
    *"     REFERENCE(SETTINGS) TYPE  C DEFAULT '2400,N,8,1'
    *"     REFERENCE(OUTPUT) TYPE  C OPTIONAL
    *"  EXPORTING
    *"     REFERENCE(INPUT) TYPE  C
    *"  EXCEPTIONS
    *"      NO_CREATE_OBJECT
      TYPE-POOLS: sabc.
      INCLUDE ole2incl.
      PERFORM init.
      PERFORM open_port USING commport settings.
      IF mode = 0.
        PERFORM read_port
        CHANGING input.
      ENDIF.
      IF mode = 1.
        PERFORM write_port
        USING output
        CHANGING input.
      ENDIF.
      PERFORM final.
    ENDFUNCTION.
    DATA: o_obj TYPE ole2_object.
    *& Form Init
    text
    --> p1 text
    <-- p2 text
    FORM init.
    DATA:
    wa_repid LIKE sy-repid.
    wa_repid = sy-repid.
    CALL FUNCTION 'AUTHORITY_CHECK_OLE'
    EXPORTING
    program = wa_repid
    activity = sabc_act_call
    application = 'MSCOMMLib.MSComm.1'
    EXCEPTIONS
    no_authority = 1
    activity_unknown = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    CREATE OBJECT o_obj '"MSCOMMLib.MSComm.1"'.
    IF sy-subrc <> 0.
    RAISE no_create_object.
    ENDIF.
    ENDFORM. " Init
    FORM open_port *
    --> COMMPORT *
    --> SETTINGS *
    FORM open_port USING commport settings.
    SET PROPERTY OF o_obj 'CommPort' = commport.
    SET PROPERTY OF o_obj 'Settings' = settings.
    SET PROPERTY OF o_obj 'InputLen' = 0.
    SET PROPERTY OF o_obj 'PortOpen' = 1.
    ENDFORM. "open_port
    FORM read_port *
    --> INPUT *
    FORM read_port
    CHANGING input.
    DATA:
    wa_buffer TYPE i.
    DO 10 TIMES.
    GET PROPERTY OF o_obj 'InBufferCount' = wa_buffer.
    IF wa_buffer > 0.
    GET PROPERTY OF o_obj 'Input' = input.
    EXIT.
    ENDIF.
    ENDDO.
    ENDFORM. " read_port
    FORM write_port *
    --> OUTPUT *
    FORM write_port
    USING output
    CHANGING input.
    DATA:
    wa_buffer TYPE i.
    SET PROPERTY OF o_obj 'Output' = output.
    DO 10 TIMES.
    GET PROPERTY OF o_obj 'InBufferCount' = wa_buffer.
    IF wa_buffer > 0.
    GET PROPERTY OF o_obj 'Input' = input.
    EXIT.
    ENDIF.
    ENDDO.
    ENDFORM.
    *& Form final
    text
    --> p1 text
    <-- p2 text
    FORM final.
    SET PROPERTY OF o_obj 'PortOpen' = 0.
    FREE OBJECT o_obj.
    ENDFORM. " finalbligw

    Hi ,
    I want to read value form weigh bridge through COMM port. I have developed the FM and done the setting as mentioned in the below link
    Read COMM port using ABAP w/o third party software 
    but while executing the FM independently I am able to get the value from the COMM port,but when I call the FM from a program I am not able to get the output value from the FM.I am calling the FM from the report program.please find the code below.
    report test.
    data : lv_input TYPE c.
    CALL FUNCTION 'ZFM_WEIGHINTERFACE'
      EXPORTING
        MODE                         = 0
        COMMPORT               = 1
        SETTINGS                  = '1200,N,8,1'
        OUTPUT                     = ''
      IMPORTING
        INPUT                        = lv_input
      EXCEPTIONS
        NO_CREATE_OBJECT       = 1
        OTHERS                 = 2
    IF SY-SUBRC <> 0.
    * Implement suitable error handling here
    ENDIF.
    if I execute the FM independently the output is getting perfectly.but while calling from a program i am facing the issue..
    any suggestion is appreciated.
    Thanks
    Vivek

  • How to block a partner customer from transaction posting

    Dear Experts,
    Please suggest/advice how to block a partner customer from transaction posting,As we have two customer categories defined 1.Parent customer 2.Child customer.One parent customer has several child customers and they are assigned in partner function part of the child master record.We have defined the parent customers for reporting purpose only,not for any transactions to be done.
    So please suggest how can we block those parent codes from being transacted directly.We wan them only for reporting purpose.
    Can we do the restriction on account group level or we have to make a validation for this.
    Please advice.
    Regards
    Partha

    Dear Partha,
    You need to Block customer against posting -> Transaction FD05 (you can choose foe selected company or for all)
    You can block also directly the invoice/payment in the document
    Or define some tolerance limits and system block automatically
    Let me know if it is not clear
    Thanks
    Tarek

Maybe you are looking for

  • CNTL_ERROR while running a custom report program in background mode

    Hi, I am running a report in background on daily basis. I am using cl_gui_custom_container class here and calling the constructor of this class. I am getting a CNTL_ERROR exception at this point. But if i run the same report directly, it is not throw

  • Question about PGA and TEMP usage

    hi, we had a situation whereby OEM was reporting that because the PGA was too small during a time frame that extra I/O on the TEMP was being created. Does this then mean that the TEMP was acting as a pseudo PGA. regards

  • Ggraphic chart Java project planning ?

    Please, does anyone know of a link to the conventional chart symbols for project planning in Java Programming ? Or a link to any assistance for graphic chart Java project planning.

  • Clean Mavericks Install - Can you selectively transfer Time Machine Contents

    Hello, My iMac, running OS X Mavericks, has been slowing down more and more for unknown reasons.  I've heard that this tends to be a problem in the OS X world and a clean install can be a remedy. I am familiar with the process of formating/clean inst

  • Inbound ECC, ADRMAS/DEBMAS Processing with Customer # Assignment

    I am looking for someone with recommendations on how we can get ADRMAS and DEBMAS IDocs transformed with new customer number and processed in proper order in ECC.  The IDocs are being sent from a hub MDG system with a hub customer number in them.  Th