Write EPC code to a tag

Does anyone tried writing LPN/EPC to a tag?
I am calling edg_utl.sendtoedge with all the values... But I do not see the device writes to the tag.
When a device is configured, can it read and write at the same time?
Can someone help me here!
Thank you in advance.
-Prasad

Hi Prasad,
I wanted to knowif you were able to accomplish the tag write . I am also attempting similarly,
Edg_utl.sendtoedge (101, 0, ,’MySite', ‘Alien RFID Reader’, ‘<methods> <method> <params> <param name ="tagid"> 307401D4C00159000000AECA </param> </params> </method> </methods>’, sysdate,’src’,’cor’);
The event is succssfully executed but tag doesnot get encoded. Below is a clip from the log fileon the same,
Fri Sep 30 16:59:53 CDT 2005: The device with name: Alien RFID Reader does exist on this machine, attempting to process instruction. Type = 101, Subtype = 0
Fri Sep 30 16:59:53 CDT 2005: Device with name: Alien RFID Readersuccessfully processed msg
Fri Sep 30 16:59:54 CDT 2005: Dispatching event with id: 0000 0000 0000 6102 9202 5461
Fri Sep 30 16:59:54 CDT 2005: Dispatching event with id: 1
Fri Sep 30 16:59:54 CDT 2005: StreamsDispatcher: Sending msg:Type = 200, Subtype = 0Devicename = Alien RFID Reader
Fri Sep 30 16:59:54 CDT 2005: StreamsDispatcher: Msg sent:Type = 200, Subtype = 0Devicename = Alien RFID Reader
Fri Sep 30 16:59:54 CDT 2005: StreamsDispatcher: Sending msg:Type = 1, Subtype = 0[b]Devicename = null
Fri Sep 30 16:59:54 CDT 2005: StreamsDispatcher: Msg sent:Type = 1, Subtype = 0[b]Devicename = null
Fri Sep 30 16:59:55 CDT 2005: Dispatching event with id: 0000 0000 0000 6102 9202 5461
Fri Sep 30 16:59:55 CDT 2005: StreamsDispatcher: Sending msg:Type = 200, Subtype = 0Devicename = Alien RFID Reader
Fri Sep 30 16:59:55 CDT 2005: StreamsDispatcher: Msg sent:Type = 200, Subtype = 0Devicename = Alien RFID Reader
Fri Sep 30 16:59:56 CDT 2005: Dispatching event with id: 0000 0000 0000 6102 9202 5461
Please also note the 'DeviceName = null' , that occurs after the execution of the instruction.
Would appreciate if anyone in the group could help me resolve this.
Thanks,
Vijay

Similar Messages

  • Write PHP code above HTML tag

    I've created a toolset that allows me to add Form fields that
    we use in our system. But now I want to take that a step further. I
    want to be able to write corresponding PHP code above the HTML tag
    at a specific location. This while looping through the formfields
    in the form and dynamically write the INSERT and/or UPDATE query.
    The last bit I can probably figure out. What I would like to
    know is how to write the code above the HTML tag between <?
    ?> or with a search/replace of the INSERT or UPDATE line in the
    code.
    Can anyone give me some hints or tips on this?
    Thanks in advance!

    Hi Bahare,  
    The <script> tag is used to define a client-side script, such as a JavaScript.
    The <script> element either contains scripting statements or it points to an external script file through the src attribute.Common
    uses for JavaScript are image manipulation, form validation, and dynamic changes of content.
    You should write C# code inside asp.net (C#)(.cs).page. For more infomation,Please check
    http://msdn.microsoft.com/en-us/library/vstudio/k33801s3(v=vs.100).aspx
    In addition,
    This forum is to discuss problems of C# development.
    You'll need to post it in
    ASP.NET forum for more efficient responses, where you can contact ASP.NET experts.
    Best Regards,
    Kristin

  • How to write C# code in HTML code?

    Hi,
    I want that write C# code in script tag in html document. I write this code:
    <script>
    function AddNewLinkfn()
    var LinkName = prompt("Please enter Link Name:", "");
    var LinAddress = prompt("Please enter Link Address:", "");
    if (LinkName != "" && LinAddress != "" && LinkName != null && LinAddress != null) {
    <% string esmelink=%> LinkName <% ,adreselink= %> LinkAddress<%;%>
    </script>
    but this has error.
    I Thanks anyOne that guide me. :)
    Good luck!

    Hi Bahare,  
    The <script> tag is used to define a client-side script, such as a JavaScript.
    The <script> element either contains scripting statements or it points to an external script file through the src attribute.Common
    uses for JavaScript are image manipulation, form validation, and dynamic changes of content.
    You should write C# code inside asp.net (C#)(.cs).page. For more infomation,Please check
    http://msdn.microsoft.com/en-us/library/vstudio/k33801s3(v=vs.100).aspx
    In addition,
    This forum is to discuss problems of C# development.
    You'll need to post it in
    ASP.NET forum for more efficient responses, where you can contact ASP.NET experts.
    Best Regards,
    Kristin

  • Using a %% tag to write vb code in aspx file

    <p>Trying to create a pdf from an rpt. I used the wizard wich generated the code within the div tags. I authored the code inside the <%%> tags. I am following an article written by Edward Tanguay-How to create PDF files from ASP.NET pages. Can I refer to the Crystal Report filename outside the div code-block and refer to those elements inside my <%-block. Here is the code</p><hr /><font size="1"><%</font><font size="1" color="#0000ff">@</font><font size="1"> </font><font size="1" color="#800000">Page</font><font size="1"> </font><font size="1" color="#ff0000">Language</font><font size="1" color="#0000ff">="VB"</font><font size="1"> </font><font size="1" color="#ff0000">AutoEventWireup</font><font size="1" color="#0000ff">="false"</font><font size="1"> </font><font size="1" color="#ff0000">CodeFile</font><font size="1" color="#0000ff">="Default.aspx.vb"</font><font size="1"> </font><font size="1" color="#ff0000">Inherits</font><font size="1" color="#0000ff">="_Default"</font><font size="1"> %></font><font size="1"> <p><%<font size="1" color="#0000ff">@</font><font size="1"> </font><font size="1" color="#800000">Register</font><font size="1"> </font><font size="1" color="#ff0000">TagPrefix</font><font size="1" color="#0000ff">="CR"</font><font size="1"> </font><font size="1" color="#ff0000">Namespace</font><font size="1" color="#0000ff">="CrystalDecisions.Web"</font><font size="1"> </font><font size="1" color="#ff0000">Assembly</font><font size="1" color="#0000ff">="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"</font><font size="1"> %><%</font></p></font><font size="1" color="#0000ff">@</font><font size="1"> </font><font size="1" color="#800000">Import</font><font size="1"> </font><font size="1" color="#ff0000">Namespace</font><font size="1" color="#0000ff">="CrystalDecisions.CrystalReports.Engine"</font><font size="1"> %></font><font size="1"> <p><%<font size="1" color="#0000ff">@</font><font size="1"> </font><font size="1" color="#800000">Import</font><font size="1"> </font><font size="1" color="#ff0000">Namespace</font><font size="1" color="#0000ff">="CrystalDecisions.Shared"</font><font size="1"> %></font></p></font><font size="1" color="#0000ff"><!</font><font size="1" color="#800000">DOCTYPE</font><font size="1"> </font><font size="1" color="#ff0000">html</font><font size="1"> </font><font size="1" color="#ff0000">PUBLIC</font><font size="1"> </font><font size="1" color="#0000ff">"-//W3C//DTD XHTML 1.1//EN"</font><font size="1"> </font><font size="1" color="#0000ff">"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"></font><font size="1" color="#0000ff"> <<font size="1" color="#800000">html</font><font size="1"> </font><font size="1" color="#ff0000">xmlns</font><font size="1" color="#0000ff">="http://www.w3.org/1999/xhtml"</font><font size="1"> </font><font size="1" color="#0000ff">></font><font size="1" color="#0000ff"> <p><<font size="1" color="#800000">head</font><font size="1"> </font><font size="1" color="#ff0000">runat</font><font size="1" color="#0000ff">="server"></font></p></font></font><font size="1" color="#0000ff"><</font><font size="1" color="#800000">title</font><font size="1" color="#0000ff">></font><font size="1">Test Report</font><font size="1" color="#0000ff"></</font><font size="1" color="#800000">title</font><font size="1" color="#0000ff">></font><font size="1" color="#0000ff"> </<font size="1" color="#800000">head</font><font size="1" color="#0000ff">></font><font size="1" color="#0000ff"> <p><<font size="1" color="#800000">body</font><font size="1" color="#0000ff">></font></p></font></font><font size="1"><p><font size="1" color="#0000ff"><</font><font size="1" color="#800000">form</font><font size="1"> </font><font size="1" color="#ff0000">id</font><font size="1" color="#0000ff">="form1"</font><font size="1"> </font><font size="1" color="#ff0000">runat</font><font size="1" color="#0000ff">="server"></font></p></font><font size="1"><p><font size="1" color="#0000ff"><</font><font size="1" color="#800000">div</font><font size="1" color="#0000ff">></font></p></font><font size="1"><p><font size="1" color="#0000ff"><</font><font size="1" color="#800000">CR</font><font size="1" color="#0000ff">:</font><font size="1" color="#800000">CrystalReportViewer</font><font size="1"> </font><font size="1" color="#ff0000">ID</font><font size="1" color="#0000ff">="CrystalReportViewer1"</font><font size="1"> </font><font size="1" color="#ff0000">Runat</font><font size="1" color="#0000ff">="server"</font><font size="1"> </font><font size="1" color="#ff0000">AutoDataBind</font><font size="1" color="#0000ff">="True"</font></p></font><font size="1"><p><font size="1" color="#ff0000">Height</font><font size="1" color="#0000ff">="947px"</font><font size="1"> </font><font size="1" color="#ff0000">ReportSourceID</font><font size="1" color="#0000ff">="CrystalReportSource1"</font><font size="1"> </font><font size="1" color="#ff0000">Width</font><font size="1" color="#0000ff">="845px"</font><font size="1"> </font><font size="1" color="#ff0000">BackColor</font><font size="1" color="#0000ff">="Beige"/></font></p></font><font size="1"><p><font size="1" color="#0000ff"><</font><font size="1" color="#800000">CR</font><font size="1" color="#0000ff">:</font><font size="1" color="#800000">CrystalReportSource</font><font size="1"> </font><font size="1" color="#ff0000">ID</font><font size="1" color="#0000ff">="CrystalReportSource1"</font><font size="1"> </font><font size="1" color="#ff0000">runat</font><font size="1" color="#0000ff">="server"></font></p></font><font size="1"><p><font size="1" color="#0000ff"><</font><font size="1" color="#800000">Report</font><font size="1"> </font><font size="1" color="#ff0000">FileName</font><font size="1" color="#0000ff">="CrystalReport1.rpt"></font></p></font><font size="1"><p><font size="1" color="#0000ff"></</font><font size="1" color="#800000">Report</font><font size="1" color="#0000ff">></font></p></font><font size="1" color="#0000ff"></</font><font size="1" color="#800000">CR</font><font size="1" color="#0000ff">:</font><font size="1" color="#800000">CrystalReportSource</font><font size="1" color="#0000ff">></font><font size="1"> </font><font size="1"><p><font size="1" color="#0000ff"></</font><font size="1" color="#800000">div</font><font size="1" color="#0000ff">></font></p></font><font size="1"><p><% </p></font><font size="1" color="#0000ff">Dim</font><font size="1"> myDoc </font><font size="1" color="#0000ff">As</font><font size="1"> ReportDocument = </font><font size="1" color="#0000ff">New</font><font size="1"> ReportDocument</font><font size="1"> <p><font size="1" color="#0000ff">Dim</font><font size="1"> ExpOpt </font><font size="1" color="#0000ff">As</font><font size="1"> ExportOptions = myDoc.ExportOptionsmyDoc.Load(</font></p></font><font size="1" color="#800000">"CrystalReport1.rpt"</font><font size="1">) </font><font size="1"><p>ExpOpt.ExportFormatType = ExportFormatType.PortableDocFormat</p><p>ExpOpt.ExportDestinationType = ExportDestinationType.DiskFile</p><p>myDoc.Export()</p><p>%> </p><p><font size="1" color="#0000ff"></</font><font size="1" color="#800000">form</font><font size="1" color="#0000ff">></font></p></font><font size="1" color="#0000ff"><</font><font size="1" color="#800000">button</font><font size="1"> </font><font size="1" color="#ff0000">title</font><font size="1" color="#0000ff">="Click Me"></font><font size="1">Do me again</font><font size="1" color="#0000ff"><</font><font size="1" color="#800000">img</font><font size="1"> </font><font size="1" color="#ff0000">src</font><font size="1" color="#0000ff">="icon-adobe-acrobat.gif"</font><font size="1"> </font><font size="1" color="#ff0000">alt</font><font size="1" color="#0000ff">="WoW"</font><font size="1"> </font><font size="1" color="#0000ff">/></</font><font size="1" color="#800000">button</font><font size="1" color="#0000ff">></font><font size="1" color="#0000ff"> </<font size="1" color="#800000">body</font><font size="1" color="#0000ff">></font><font size="1" color="#0000ff"> <p></<font size="1" color="#800000">html</font><font size="1" color="#0000ff">></font></p></font></font>

    You're trying to put code tag in an auto-generated CrystalReportViewer aspx page, and putting code in the code tag.
    That won't work - ASP.NET won't work like classic ASP.
    In VS, drop a component - like a Button - on the page, then put your code in the codebehind for the click event for the Button.
    Sincerely,
    Ted Ueda

  • How can I write HTML code in this forums

    Sorry but I didn't know where to post this thread.....
    How can I write HTML code in this forums?

    Hello,
    Every piece of code in your post should be wrapped with the forum tags [ code] and [ /code], without the blanks.
    In case of the &lt;a> tag, that is not enough. In this case, you have several options. The most elegant one is to use the entity name for the less-then sign - & lt; - without any spaces. Other options is to add a space between the less-then and the ‘a’ character (and make a note of it) or change the less-then character with a left bracket one.
    When posting code, you should always use the forum preview option, just to make sure the forum software “understood” your code correctly.
    Hope this helps,
    Arie.

  • Where i shall write html code in jdeveloper

    Hello,
    please tell me where i can write html code in jdeveloper.
    Thanks

    Hi catalina,
    Html tags should not be used directly inside ADF faces pages which may lead to some undesirable results instead you can use ADF Faces tags itself using which you can do what ever you wanted to do with html tags.
    If you still need to use html tags, you can use ADF Faces html tags.
    Tag doc: http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/tagdoc/html/index.html
    Sireesha

  • EPC CODE - RFID

    Hi all,
    what is EPC code in RFID?
    Please give me details about EPC code and its functionalities in RFID?

    hi.Dirk
    1)SAP AII is a "RFID-Middleware", but mostly it is a RFID Middleware for business process. It focus on business more than RFID readers. So it is not a RFID Reader manager(Device connector, or something like that)
    2)Savant is a specification or a product release by EPC global. You can download the savant specification on EPC global .
    http://www.epcglobalinc.org/about/AutoID_Archive/documents/6_auto_id_savant-1_0.pdf
    Savant is also a product, many company IBM, SUN make their RFID Middleware follow the EPC savant specification. And also EPC has a RFID-Middleware call savant.
    Savant is design to manager RFID readers, filter RFID tag information, and log events.
    3)The relation between AII and savant is they are on the diferrent layer of RFID Middleware, they should be work together.
    4)ONS is another EPC RFID issue, it is design to record RFID tag data. On EPC's idea, all the data about RFID tag should be record on ONS server. I do not know if it will come true in the future.
    5) On SAP solution, Most of the data is still stored in SAP backend-system(R3,SCM,BW......), and information about RFID, e.g. RFID tag, RFID device, tag event is stored in SAP AII. And you can use BW in AII, if mass data is generated.
    6) PML is just a RFID XML.
    Regards
    Sheng

  • How difficult would it be to write a code that prevents sites from changing your homepage wtihout u knowing it happened?

    Today I had the unhappy experience of a company or site I visited that installed three programs I didn't want. I uninstalled all of them in windows control panel (]remove programs). This however did not solve my problem.....no matter what I did I could not get startpage to come back. I did many things like go to tools and options and type it in close out and open and it was still not there. Finally my grandson uininstalled Firefox and reinstalled it and it was back.
    My question is: Can you not write a code in the software that prevents this from happening and when people install Firefox ask them if they want this feature or write an ad on. Please this problem grows every day it gets worse. Before all you had to do is change it back now one can not get rid if it so easily.
    We really would love this feature ask anyone.
    Susan and TY for listening.

    Thanks You for your feedback. However this is support forum, You should suggest new features trought ''Help -> Send Your opinion'' or [https://input.mozilla.org/pl/feedback/firefox/31.0/ this website].
    By the way there is method described in [http://kb.mozillazine.org/Locking_preferences this support article], maybe someone using Windows will write user friendly guide how to do it.
    All I can tell you is that you have to lock ''browser.startup.homepage'' to ''about:home''

  • How to write source code in smart forms?

    hi friends,
    can anyone can help me in writing  sorcecode in smartforms r
    any materail link.
    if it is helpful points can b rewarded.Thanks in advance.

    Hi,
    Check this link for
    how to write source code in smart forms?
    http://****************/Tutorials/Smartforms/GettingStarted/SimpleText.htm
    You can write Source Code in smartforms By Choosing Program Lines.
    Check this link with Screen Shots
    http://****************/Tutorials/Smartforms/PO/page1.htm
    Reward All Helpfull Answers
    Regards
    Fareedas
    Edited by: Fareeda Tabassum S on May 21, 2008 3:09 PM

  • How to write a code for  open new txt file in swing

    hai all,
    now i do one project in java.that project's GUI is Swing. But i don't known swing (basic).So how to write a code for open new txt file and "Open window " in menu item on swing.that means when i click the "New" on menu that time open a new txt file. open also like that type.
    plz give me that code ! very urgent
    Advance Thanks !
    RSK

    Swing Tutorial:
    http://java.sun.com/docs/books/tutorial/uiswing/index.html
    Since you don't know the basic of swing read the tutorial, it is for your own good because it is useless if we provide you with a code you don't even understand and how it works.
    If you want a menu read the tutorial about using menus and for opening a file read using JFileChooser.
    note: don't use the word urgent because it implies that your problem is more important than others.

  • How can we write the code for opening the command prompt and closing the

    how can we write the code in java for opening the command prompt and closing the cmd prompt from eclipse (cmd prompt should close when click on the turminate button in eclipse)

    rakeshsikha wrote:
    how can we write the code for opening the command prompt and closing theBy typing in Eclipse (which you seemingly have)?

  • Write HTML code in webdynpro

    Hi All,
      Can anyone tell me how two to write HTML code in
      webdynpro application
    to make myself clearer. this is what i want.
    IWDTextView txt = (IWDTextView) view.createElement(IWDTextView.class, "txt" );
    txt.setText("<hr>" + "Today Order");
    But the above code is displaying literal string <hr> by the mean of &lt;HR&gt;
    regards
    Arun

    Hi Nibu,
      What I actually want to do is that- I have designed
    a view having order details one below other on same screen.
      What I want is to print the order detail page wise.
    i.e Ist Orderdetail on first page , 2nd Order detail on 2nd page and so on.....that is I want a page break.
    I got a code to provide a page break which is in javascript -
    <script>
    //<!--
    document.write("hi");
    document.write("<p style=\"color: blue; page-break-before: always\" >");
    document.write("hiafter");
    //-->
    </script>
    How 2 use this code in my webdynpro application.....or
    is there any other mean to do so.
    regards
    Arun

  • Html snippet is not working on iweb 9. i can't write a code, Html snippet is not working on iweb 9. i can't write a code

    Html snippet is not working on iweb 9. i can't write a code, Html snippet is not working on iweb 9. i can't write a code

    You don't get this window when you insert an HTML snippet on the page?
    Click to view full size
    If you don't try the following:
    delete the iWeb preference files, com.apple.iWeb.plist and com.apple.iWeb.plist.lockfile, that resides in your Home() /Library/Preferences folder.
    go to your Home()/Library/Caches/com.apple.iWeb folder and delete its contents.
    Click to view full size
    launch iWeb and try again.
    OT

  • How to write the code?

    Hi,
    I have a internal table T. when the t-zuonr is blank, the ALV look like:
    t-zuonr                     document no       data
                              200630303  AB  2007.08.31
                              200627855  AB  2007.06.30
                              200627887  AB  2007.06.30
    MSFT047/07         93631164   RV  2007.10.19
    MSFT061/07         93594484   RV  2007.10.09
    MSFT061/07         93594485   RV  2007.10.09
    MSFT061/07         93594486   RV  2007.10.09
    MSFT061/07         93594487   RV  2007.10.09
    MSFT061/07         93594488   RV  2007.10.09
    MSFT061/07         93594489   RV  2007.10.09
    MSFT061/07         93594490   RV  2007.10.09
    *I need to not show the company which t-zuonr is space.
    How can I write the code?*
    The original source code is as following:
    SORT t.
      LOOP AT t.
        AT NEW bukrs.
          CLEAR anz_dl.
          CLEAR htext-anzahl.
          CLEAR htext-datei.
          htext-text1 = ' records writen in file '.
          CLEAR p_pfad.
          CONCATENATE
              i_pfad
              'CU_CC'
              t-bukrs
              sy-datum+6(2)
              sy-datum+4(2)
              sy-datum(4)
              sy-uzeit
              '.txt'
         INTO p_pfad.
          CLEAR outtab.
          REFRESH outtab.
          REFRESH: gt_outalv.                                  "INS MG020207
        ENDAT.
       IF t-shkzg = 'H'.
         h_betrg  = t-wrbtr * -1.
       ELSE.
        h_betrg  = t-wrbtr.
        h_dmbtr  = t-dmbtr.
       ENDIF.
        s-filler1 = s-filler2 = s-filler3 = s-filler4 = s-filler5 = ';'.
        s-filler6 = s-filler7 = s-filler8 = ';'.
        s-filler9 = s-filler10 = s-filler11 = s-filler12 = s-filler13 = ';'.
        s-filler14 = ';'.
        s-belnr = t-belnr.
        IF t-xblnr NE space.                                    "WD041005a
          s-xblnr      = t-xblnr.                               "WD041005a
        ELSE.                                                   "WD041005a
          s-xblnr      = t-belnr.                               "WD041005a
        ENDIF.                                                  "WD041005a
        WHILE s-xblnr(1) EQ '0'.                            "INS MG130606
          SHIFT s-xblnr LEFT.                               "INS MG130606
        ENDWHILE.                                "INS MG130606
    *<<< CR01 CHANGE START BY LI_Y 2008/01/10
        IF t-waers = 'JPY'.
        h_dmbtr = h_dmbtr.
        else.
        h_dmbtr = h_dmbtr * 100.
        endif.
    *>>> CR01 CHANGE END BY LI_Y 2008/01/10
        WRITE t-kunnr TO s-kunnr NO-ZERO.
        s-lifn2 = s-kunnr.
        shift s-lifn2 RIGHT.
        s-lifn2(1) = 'R'.
      S-KUNNR = T-KUNNR+5(5).
        s-bldat+2(1) = '/'.
        s-bldat+5(1) = '/'.
        s-bldat0(2) = t-bldat4(2).
        s-bldat3(2) = t-bldat6(2).
        s-bldat6(4) = t-bldat0(4).
        s-budat+2(1) = '/'.
        s-budat+5(1) = '/'.
        s-budat0(2) = t-budat4(2).
        s-budat3(2) = t-budat6(2).
        s-budat6(4) = t-budat0(4).
        s-netdt+2(1) = '/'.
        s-netdt+5(1) = '/'.
        s-netdt0(2) = t-netdt4(2).
        s-netdt3(2) = t-netdt6(2).
        s-netdt6(4) = t-netdt0(4).
        s-waers      = t-waers.
        s-dmbtr      = t-dmbtr.
        s-sgtxt      = t-sgtxt.
        CLEAR s-twaer.
        SELECT SINGLE waers INTO s-twaer
                            FROM t001
                            WHERE bukrs = t-bukrs.
        IF h_betrg < 0.
          hs_betrg+0(1) = '-'.
        ELSE.
          hs_betrg+0(1) = ' '.
        ENDIF.
        WRITE h_betrg CURRENCY t-waers TO hs_betrg+1 NO-GROUPING
                                                        NO-SIGN
                                                        LEFT-JUSTIFIED.
        REPLACE ',' WITH '.' INTO hs_betrg.
        WRITE hs_betrg TO s-betrg.
        IF h_dmbtr < 0.
          hs_betrg+0(1) = '-'.
        ELSE.
          hs_betrg+0(1) = ' '.
        ENDIF.
        WRITE h_dmbtr CURRENCY t-waers TO hs_betrg+1 NO-GROUPING
                                                        NO-SIGN
                                                        LEFT-JUSTIFIED.
        REPLACE ',' WITH '.' INTO hs_betrg.
        WRITE hs_betrg TO s-dmbtr.
        s-compcode   = t-bukrs.                                 "fw070905
        IF p_downl = 'X'.
          MOVE s TO outtab-s.
          APPEND outtab.
          ADD 1 TO anz_dl.
        ENDIF.
        gs_outalv-belnr = s-belnr.                             "INS MG020207
    *<<<< CR01 START CHANGE BY LI_Y 2007/12/24      " ADD as_outalv-zuonr
        gs_outalv-zuonr = s-zuonr.                             "CR01
    *>>>> CR01 EDD CHANGE BY LI_Y 2007/12/24         "ADD as_outalv-zuonr
        gs_outalv-kunnr = s-kunnr.                             "INS MG020207
        gs_outalv-bldat = s-bldat.                             "INS MG020207
        gs_outalv-netdt = s-netdt.                             "INS MG020207
        gs_outalv-betrg = s-betrg.                             "INS MG020207
        gs_outalv-waers = s-waers.                             "INS MG020207
        gs_outalv-compcode = s-compcode.                       "INS MG020207
        gs_outalv-budat = s-budat.                             "INS MG020207
        gs_outalv-sgtxt = s-sgtxt.
        gs_outalv-kmmnt = s-kmmnt.
        gs_outalv-vbeln = s-vbeln.
        gs_outalv-xblnr = s-xblnr.
        gs_outalv-lifn2 = s-lifn2.
        gs_outalv-dmbtr = s-dmbtr.
        gs_outalv-twaer = s-twaer.
        APPEND gs_outalv TO gt_outalv.                         "INS MG020207
        AT END OF bukrs.
          WRITE anz_dl  TO htext-anzahl.
          WRITE p_pfad  TO htext-datei.
          CONDENSE htext.
    *<<<< CR01 START CHANGE BY LI_Y 2007/12/24
    WA_SORT-fieldname = 'BELNR'.     " speicfy field name..
    WA_SORT-UP = 'X'.
    WA_SORT-SUBTOT = 'X'.
    APPEND WA_SORT TO I_SORT.
    Thank you!!

    Hi,
    Do this. Declare another internal table of identical structure as table t say t1.
    REFRESH t1.
    APPEND LINES OF t TO t1.
    DELETE t1 WHERE zuonr IS INITIAL.
    and then use t1 to display the ALV.
    Hope this helps.
    Regards,
    Aditya

  • How to write the code to send the report output to the local file.

    dear all,
    how to write the code to send the report output to the local file.
    Thanks & Regards,
    Jyothi.

    Hi,
    Try this , it will display report and download the file as well. Just vhange the path and execute
    TYPE-POOLS : SLIS.
    DATA : IT_SCARR TYPE TABLE OF SCARR,
           IT_FCAT  TYPE SLIS_T_FIELDCAT_ALV.
    SELECT *
    FROM SCARR
    INTO TABLE IT_SCARR.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    *   I_PROGRAM_NAME               =
    *   I_INTERNAL_TABNAME           =
        I_STRUCTURE_NAME             = 'SCARR'
    *   I_CLIENT_NEVER_DISPLAY       = 'X'
    *   I_INCLNAME                   =
    *   I_BYPASSING_BUFFER           =
    *   I_BUFFER_ACTIVE              =
      CHANGING
        CT_FIELDCAT                  = IT_FCAT
    * EXCEPTIONS
    *   INCONSISTENT_INTERFACE       = 1
    *   PROGRAM_ERROR                = 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.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    *   I_INTERFACE_CHECK              = ' '
    *   I_BYPASSING_BUFFER             =
    *   I_BUFFER_ACTIVE                = ' '
    *   I_CALLBACK_PROGRAM             = ' '
    *   I_CALLBACK_PF_STATUS_SET       = ' '
    *   I_CALLBACK_USER_COMMAND        = ' '
    *   I_STRUCTURE_NAME               =
    *   IS_LAYOUT                      =
       IT_FIELDCAT                    = IT_FCAT
    *   IT_EXCLUDING                   =
    *   IT_SPECIAL_GROUPS              =
    *   IT_SORT                        =
    *   IT_FILTER                      =
    *   IS_SEL_HIDE                    =
    *   I_DEFAULT                      = 'X'
    *   I_SAVE                         = ' '
    *   IS_VARIANT                     =
    *   IT_EVENTS                      =
    *   IT_EVENT_EXIT                  =
    *   IS_PRINT                       =
    *   IS_REPREP_ID                   =
    *   I_SCREEN_START_COLUMN          = 0
    *   I_SCREEN_START_LINE            = 0
    *   I_SCREEN_END_COLUMN            = 0
    *   I_SCREEN_END_LINE              = 0
    *   IR_SALV_LIST_ADAPTER           =
    *   IT_EXCEPT_QINFO                =
    *   I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
    * IMPORTING
    *   E_EXIT_CAUSED_BY_CALLER        =
    *   ES_EXIT_CAUSED_BY_USER         =
      TABLES
        T_OUTTAB                       = IT_SCARR
    * EXCEPTIONS
    *   PROGRAM_ERROR                  = 1
    *   OTHERS                         = 2
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
      EXPORTING
    *    BIN_FILESIZE              =
        FILENAME                  = 'C:\Documents and Settings\sap\Desktop\Hi.xls' " Change path
    *    FILETYPE                  = 'ASC'
    *    APPEND                    = SPACE
    *    WRITE_FIELD_SEPARATOR     = SPACE
    *    HEADER                    = '00'
    *    TRUNC_TRAILING_BLANKS     = SPACE
    *    WRITE_LF                  = 'X'
    *    COL_SELECT                = SPACE
    *    COL_SELECT_MASK           = SPACE
    *    DAT_MODE                  = SPACE
    *    CONFIRM_OVERWRITE         = SPACE
    *    NO_AUTH_CHECK             = SPACE
    *    CODEPAGE                  = SPACE
    *    IGNORE_CERR               = ABAP_TRUE
    *    REPLACEMENT               = '#'
    *    WRITE_BOM                 = SPACE
    *    TRUNC_TRAILING_BLANKS_EOL = 'X'
    *  IMPORTING
    *    FILELENGTH                =
      CHANGING
        DATA_TAB                  = IT_SCARR
    *  EXCEPTIONS
    *    FILE_WRITE_ERROR          = 1
    *    NO_BATCH                  = 2
    *    GUI_REFUSE_FILETRANSFER   = 3
    *    INVALID_TYPE              = 4
    *    NO_AUTHORITY              = 5
    *    UNKNOWN_ERROR             = 6
    *    HEADER_NOT_ALLOWED        = 7
    *    SEPARATOR_NOT_ALLOWED     = 8
    *    FILESIZE_NOT_ALLOWED      = 9
    *    HEADER_TOO_LONG           = 10
    *    DP_ERROR_CREATE           = 11
    *    DP_ERROR_SEND             = 12
    *    DP_ERROR_WRITE            = 13
    *    UNKNOWN_DP_ERROR          = 14
    *    ACCESS_DENIED             = 15
    *    DP_OUT_OF_MEMORY          = 16
    *    DISK_FULL                 = 17
    *    DP_TIMEOUT                = 18
    *    FILE_NOT_FOUND            = 19
    *    DATAPROVIDER_EXCEPTION    = 20
    *    CONTROL_FLUSH_ERROR       = 21
    *    NOT_SUPPORTED_BY_GUI      = 22
    *    ERROR_NO_GUI              = 23
    *    others                    = 24
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
      EXPORTING
        DOCUMENT               = 'C:\Documents and Settings\sap\Desktop\Hi.xls' "Change path
    *    APPLICATION            =
    *    PARAMETER              =
    *    DEFAULT_DIRECTORY      =
    *    MAXIMIZED              =
    *    MINIMIZED              =
    *    SYNCHRONOUS            =
    *    OPERATION              = 'OPEN'
    *  EXCEPTIONS
    *    CNTL_ERROR             = 1
    *    ERROR_NO_GUI           = 2
    *    BAD_PARAMETER          = 3
    *    FILE_NOT_FOUND         = 4
    *    PATH_NOT_FOUND         = 5
    *    FILE_EXTENSION_UNKNOWN = 6
    *    ERROR_EXECUTE_FAILED   = 7
    *    SYNCHRONOUS_FAILED     = 8
    *    NOT_SUPPORTED_BY_GUI   = 9
    *    others                 = 10
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

Maybe you are looking for

  • How do I get the byte size of a server file before sending output via HTTP?

    I need to get the byte size of the file prior to streaming it. I can't seem to find a class/method I need. Basically, I have the path c:\\tomcat\\webapps\\documents\\sample.pdf in the servlet, I was hoping I could just use something from the File cla

  • How to initialize this correctly?

    import java.util.Scanner; public class Paycheck public static void main (String [] args) Scanner scan = new Scanner (System.in); double workedHours, overtimeHours, sSecurity, medicareTax, federalWithhold, paycheck; double health, dentalInsurance, vis

  • I can't see the show status bar option in iTunes 11

    I can't find the 'show status bar' option in the View Option section, it simply isn't there. Also, every time I go to the store, iTunes crashes.

  • Authentication In Mobile IP

    Dear all I start learning about Mobile IP( read the RFC 3344) and some related RFC documents. Now i have a concern question, Hope that you  clear a canal of obstruction because it makes me getting mad. As i know about Mobile IP like this: +The Foreig

  • I can't activate my FaceTime after upgraded to Lion, Help!

    The Server encountered an error processing registration. Please try again later. BUT, i try again again and agina. It still doesn't work. Why?