Scanning through code

hi
I am trying to create a ZProgram A which will scan the code of another Z program B and check whether code standards are maintained in it or not.
So for this I need to copy the source code of Z Program B into Z Program A's internal table.
Can you help me how to get the source code into an internal table, I mean how to read it.
All helpful answers will be rewarded

Hello,
Do like this:
Regards,
Vasanth
DATA itab TYPE string OCCURS 0 WITH HEADER LINE.
READ REPORT <prog> INTO itab.
LOOP AT itab.
IF sy-tabix = 25.
EXIT.
ELSE.
WRITE:/ itab.
ENDIF.
ENDLOOP.

Similar Messages

  • Problems on scanning BAR CODES

    Hi people!
    I have to print bar codes from an abap report and then scan. I've done the first part (printing) but I just can't scan the code I print. Does someone have an idea?
    Thanks,
    Rodrigo.

    Hi Rodrigo,
    Didn't know you could produce Barcodes from ABAP reports - how did you do this? As Christian said, you could also make the font bigger. What are the barcode specs? Sometimes, you need to have the ratios between the "thin" and "thick" lines set up based onthe type of scanner you use. You can manipulate these settings through the Bar Code Settings via SE73.
    This is how you can do it. Let's assume you are using a HP1200 Device Type and a Code 128A Barcode Font. From SE73, click on the "Printer Bar Codes" Radio button and select Display.
    Double Click on the HP1200 Device Type and you will see all the Bar Codes that have been set up for that Device Type. Find "C128A_00" and single click on the Prefix 'SBP25' and hit the "Displ. Print Control" button.
    This Prefix is the external printer control command that SAP will pass to the printer in the printer's language. Once you hit the "Disp. Print Control" button a popup will appear, now look at the Control Char. Seq. This is the printer command for this particular Barcode font. All the characteristics relating to Barcode Font, Size, Height, Spacing, Ratios, etc are defined here.
    Because these commands are in the Printer's Native Language, you will need to get the relevant programming guide for your printer to know what values to manipulate.
    Let me know if you need more info.
    Cheers,
    Pat.
    P.S. Kindly aloocate Reward Points as appropriate.

  • MF4890dw not scanning through wireless

    I use iMac with OSX 10.9.2.  I installed latest version of MF Toolbox, upgraded the firmware to 15.04.  I can scan with USB. Wireless works because I can print with wireless.  However, when I disconnect USB and try to scan through wireless network, either from iMac or from MF4890dw, it will scan the first page and hangs for a while, then MF2890 will show "An error has occurred [close]"   and the computer will pop up an error window:
    "Cannot communicate with the scanner.
    The cable may be disconnected, or the scanner may be turned off.
    Check the scanner status and try again.
    Scanner driver will be terminated.
    Error code: 200010"
    MF4890dw is communicating with iMac because it will scan the first page and it will tell me to put paper in the feeder.
    Any help is appreciated.

    I'm having the same error on my 4880 wireless. It previews the scan but it comes up with that **bleep** error. Why hasn't the tech responded? Clearly his generic answer didn't help.

  • ABAP Service: Scanning through HTML

    Dear ABAP community,
    Iu2019m thinking about a method to scan through HTML code of an specified URL.
    The idea is to scan the HTML content by a search term; so I need a function to get the data of the page specified by a URL and scan this page.
    Is there any method/function in ABAP?
    Thanks for your feedback.
    Best regards,
    Kurt.

    Hello to all,
    a colleague of mine found a very good solution to scan a page provided by an appropriated URL:
      data: lv_html   type string,
            lv_url    type string.
    * Create client
      call method cl_http_client=>create_by_url
        exporting
          url                = lv_url
        importing
          client             = lv_client
        exceptions
          argument_not_found = 1
          plugin_not_active  = 2
          internal_error     = 3
          others             = 4.
      if sy-subrc ne 0.
        message id sy-msgid type sy-msgty number sy-msgno
          with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    * Get request:
      call method lv_client->send
        exceptions
          http_communication_failure = 1
          http_invalid_state         = 2
          http_processing_failed     = 3
          others                     = 4.
      if sy-subrc ne 0.
        message id sy-msgid type sy-msgty number sy-msgno
          with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    * Prepare client-receive:
      lv_client->receive( exceptions others = 1 ).
    * Get HTML:
      lv_html = lv_client->response->get_cdata( ).
    * Sesrch for a string in HTML:
      if not pa_find is initial.
        find first occurrence of pa_find in lv_html in character mode ignoring case.
        if sy-subrc eq 0.
        endif.
      endif.
    Best regards,
    Kurt.

  • MF4890dw not scanning through wireless with win7,win8.1 or OSX 10.9

    I use iMac with OSX 10.9.2.  I installed latest version of MF Toolbox, upgraded the firmware to 15.04.  I can scan with USB. Wireless works because I can print with wireless.  However, when I disconnect USB and try to scan through wireless network, either from iMac or from MF4890dw, it will scan the first page and hangs for a while, then MF2890 will show "An error has occurred [close]"   and the computer will pop up an error window:
    "Cannot communicate with the scanner.
    The cable may be disconnected, or the scanner may be turned off.
    Check the scanner status and try again.
    Scanner driver will be terminated.
    Error code: 200010"
    When I use with win 7- 64 or win8-64, I also get the same question.
    "Cannot communicate with the scanner.
    The cable may be disconnected, or the scanner may be turned off.
    Check the scanner status and try again.
    Scanner driver will be terminated.
    Error code: 155 0 0"
    Any help is appreciated.

    Same problem here, with Windows 7.  Appeared out of nowhere.  Reinstalling drivers and MF Toolbox did not help.

  • Exception while accessing web service through code

    I have a web service developed using AXIS deployed on Weblogic 8.1
    Another web application cotaining GUI deployed on Weblogic 10 tries to access this web service through code.
    This piece of code to invoke the web service is written in Action Class present inside web application. (Struts is used in GUI based web app)
    When the code tries to invoke web service I am getting following error.
    (401)Unauthorized xxx
         at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
         at org.apache.axis.client.Call.invoke(Call.java:2553)
         at org.apache.axis.client.Call.invoke(Call.java:1753)
         at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.invokeAx(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:243)
         at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.callUCS77_1ProcessOfficialChangeWebService(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:173)
         at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.processAction(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:133)
         at com.ebv.framework.web.action.EBVAction.execute(EBVAction.java:106)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    The web service URL is as follows:
    http://10.140.96.5:7808/services/ucs77_1/ProcessOfficialChangeSave77_1-v0001.soap
    However
    When I try to hit the webservice URL directly on browser login window appears where same username/password I provide which are passed in code to invoke the web service. I get the success page indicating that web service is invoked on hitting enter.
    The method used in UCS77_1ProcessOfficialChangeSaveDetailsAction.java to invoke web service is as follows:
    public String invokeAx
                   String xmlMessage,
                   String webServiceURL,
                   String webServiceOperation,
                   String username,
                   String password)
              String xmlResponse = null;
              Call webServiceCall = null;
              InputStream input = new ByteArrayInputStream(xmlMessage.getBytes());
              Service service = new Service();
              try
                   webServiceCall = (Call) service.createCall();
                   SOAPEnvelope env = new SOAPEnvelope(input);
                   SOAPEnvelope resEnv = null;
                   webServiceCall.setTargetEndpointAddress(new URL(webServiceURL));
                   webServiceCall.setOperationName(new QName(webServiceOperation));
                   webServiceCall.setUsername(username);
                   webServiceCall.setPassword(password);               
                   try
                        resEnv = webServiceCall.invoke(env);
                   catch (AxisFault e)
                        e.printStackTrace();
                        Message responseMessage = webServiceCall.getResponseMessage();
                        SOAPEnvelope soapXml = (SOAPEnvelope) responseMessage.getSOAPEnvelope();
                        xmlResponse = new String(soapXml.toString().getBytes(AppConstants.UTF8),AppConstants.UTF8);     
                   if (xmlResponse == null)
                        xmlResponse = resEnv.toString();
              catch (Exception e1)
                   e1.printStackTrace();
              return xmlResponse;
    Both the weblogic server reside on two different AIX machines.
    Can anybody tell what's the problem while invoking web service through code?

    time to look into the gateway logs as stated by the fault ..
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode xmlns:p="http://schemas.oblix.com/ws/2003/08/Faults">c</faultcode><faultstring>Step execution failed with an exception</faultstring><detail></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
    looks like the cipher step might have failed

  • Which multifunction Laser printer (MFP) for Lion? - need multipage scanning through automatic document feeder

    Hi all,
    I'd love to get your advice on what MFP laser printer to buy.
    I need:
    - Laser color PRINTING for a small business (+/- 1500 pages per month)
    - SCANNING, preferably easy multipage scanning through the automatic document feeder
    Optionally:
    - 2nd paper feed tray
    I think of buying the HP Color LaserJet CM2320fxi, but there seem to be plenty of compatibility issues with Lion (e.g. scan to network folder does not work on Lion).
    I'd love to hear about success or failure of MFP on Lion from HP, Brother, Xerox, Lexmark, etc...
    Thx for your advace,
    S.

    I can recommend the Canon MF8380C. It has a document feeder that supports duplex scanning to Lion, either via Image Capture or Preview or 3rd party application like Acrobat Pro. You can also push scan documents from the machine by first configuring the scan settings using the Canon MF Toolbox that gets installed on the Mac.
    The print quality is good for office documents, but not that accurate for colour proofing. It uses Canon's proprietary UFR2 v2.30 driver of which the Lion version of this driver is available from the Canon web.
    As for the monthly volume, 1500 pages per month is the maximum recommended volume, so not sure if this would suit your business needs. It's recommended monthly volume is 800 colour pages.

  • Changing the Updatable property of a View Object Attribute through code

    Hi,
    Is there a way to set the "Updatable" property of an attribute in a view object through code ?
    I checked the API docs for the AttributeDef class but there is no method to set this. there is a constant (UPDATEABLE_WHILE_NEW) which gives the current value.
    My requirements in short - I have a ADF editable Table. Based on a flag whether it is SET or NOT, i need to make a particular column such that the inputTextBox on this column must appear for only the new rows inserted into the table. For all the existing rows users should not be allowed to edit values on this column.
    I know this can be controlled with the UPDATABLE property on the attribute in the view object by setting the value as "WHILE  NEW".
    Now i need to control this through code at runtime.
    Please let me know on ow to do this.
    JDev version: 11.1.2.3
    Thanks.

    the method you are looking for is available in the AttributeDefImpl class which you can get from the EntityImpl like
    this.mDefinitionObject.getAttributeDefImpl("YOUR_ATTRIBUTE_NAME").setUpdateableFlag(AttributeDef.UPDATEABLE_WHILE_NEW);
    Timo

  • Creating Business Partner Through Code

    Hi Everyone
    I just wanted to know if any of you knew a way to create a business partner through code.
    If there is a way or a sample that anyone can provide that would greatly
    apreciated.
    What would mandatory fields be? I know CardCode would be one mandatory field but what else would be essential?

    Hi Sebastiano,
    If you only need to read the BP data from the 'source' company then you shouldn't need to log in to it. The RecordSet object should be capable of sending a SQL query that references the other database.
    For example:
    string sSQL = "select * from " + sSourceDatabase +"..OCRD where CardCode = '" + sMyBPCode +"'"
    where sSourceDatabase is the Database ID for the source company and sMyBPCode is the BP you wish to copy.
    Using this you should only need to log in to the company where the BP needs to be created. So the whole process should be something like this:
    1) Connect to second company
    2) Run the query to collect the BP data from the first company
    3) Create an instance of the BP object and use the recordset object to assign the properties
    4) Add the BP
    Hope this makes sense
    Owen
    P.S. The other option is to use XML. See this post:
    Copy items between databases

  • When I open iTunes or even change a preference, iTunes scans through all of my apps. How can I stop this?

    To get straight to the point, whenever I open iTunes or close a pop-up from iTunes, it starts scanning through my collection of applications. This has slowly got on my patient nerve. It wasn't always this was. Before I transfered all my data from my Mac to Pc, it worked fine. So I am wondering what is it doing, and how can I stop this. Bare in mind I have alot of apps. Thanks in advance for the help!
    Sincerely,   
         Tarellano

    You can only use the German iTunes/App store if you are located in Germany.  The German store is in the German language.

  • How to create a Xfdf doc. in Acrobat Pro 10 through code?

    Hi All..!!!
    I wanted to know whether there is a way to create an XPdf document in Acrobat Pro 10. I know that we can create a pdf document through code using the SDK.. I wanted to know whether the same can be done for XPdf documents..
    Thanks!! 

    Writing an XFDF is not that difficult; all you need is a tool allowing you to assemble text strings.
    The preferred way to get a sample on how the XFDF should look like is to export one from the form concerned, and to repeat it using your code. In this case, the document knows best how the XFDF should look like.
    Hope this can help.
    Max Wyss.

  • How to create a XPdf doc. in Acrobat Pro 10 through code?

    Hi All..!!!
    I wanted to know whether there is a way to create an XPdf document in Acrobat Pro 10. I know that we can create a pdf document through code using the SDK.. I wanted to know whether the same can be done for XPdf documents..
    Thanks!! 

    You're better off asking in the SDK forum:
    http://forums.adobe.com/community/acrobat/acrobat_sdk

  • Getting something went wrong while trying to open workbook through code?

    hi,
    i am getting something went wrong while  trying to open workbook through code below is m code:
    ES.ExcelService client = new ES.ExcelService();
                    client.Credentials = System.Net.CredentialCache.DefaultCredentials;
                    ES.Status[] status;
                    string sessionId = client.OpenWorkbook("http://servername/Documents/exceles.xlsx", "en-us", "en-us", out status);
    i have also added modify  permission to wpg_wss group but i am still getting the same error.
    any help is appreciated.
    thanks,
    gaurav 

    Hi Gaurav,
    For your issue, you need to make sure the site where your workbook is stored in is a Trusted Location in Excel Service Application:
    http://technet.microsoft.com/en-in/library/ff191194(v=office.14).aspx
    For more information, you can have a look at the blog:
    http://blogs.msdn.com/b/cumgranosalis/archive/2006/03/24/excelserviceshelloworld.aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Accessing Party EDI details through code in 2013

    Hi,
    We are looking at options of accessing the Party EDI details from orchestration in BTS 2013 R2. But looks like the property X12Receiver belonging to the partner object  Microsoft.BizTalk.Edi.PartnerAgreementManager.Partner
    has been deprecated. Although, using the property does not give a compilation error, it throws exception during runtime with the below error:
    System.Data.SqlClient.SqlException (0x80131904): Could not find stored procedure 'edi_PartnerX12InterchangeSelect'.
    Any pointers on how the accessing of party EDI details through code/within orchestration can be achieved? Appreciate any help on this regards. Thanks.

    Refer "Custom Party Resolution" sample available in the BizTalk SDK -
    http://msdn.microsoft.com/en-in/library/aa559134.aspx and pay specific attention to the code in "PartyResolutionStream.cs". This has the logic for querying the BizTalk Party database tables.
    You can expose you own library/helper with this code and leverage it in the orchestration.
    That having said, if you use the EDI Pipelines, the party resolution is done for you and available on the received message in the orchestration as promoted property. Refer
    http://msdn.microsoft.com/en-us/library/bb226500.aspx
    Regards.

  • Creating UDO through code  with 1 Docment table & 4 Document Line Tables

    Hi,
    I need to create one Document table and four Document Line tables(child tables) and make them UDO through code. This process is working When I am creating UDO with one Document table and one Document Line table but if I add more than one Child table it is taking only one child.... Can anyone give me some solution or code example related to this problem this problem?
    Regards,
    Sudeshna.

    Hi,
    Firstly Trinidad, unfortunately I could not open that link.
    And secondly, the following is my code... Through this code I am trying to create an UDO with one document table and two document line tables.... here the UDO is being created but it is not taking two line table, its taking only one Document line table.... how can I create udo with more than one Document line tables?
    Dim oUserObjectMD As SAPbobsCOM.UserObjectsMD
    oUserObjectMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD)
    oUserObjectMD.CanCancel = SAPbobsCOM.BoYesNoEnum.tYES
    oUserObjectMD.CanClose = SAPbobsCOM.BoYesNoEnum.tYES
    oUserObjectMD.CanCreateDefaultForm = SAPbobsCOM.BoYesNoEnum.tYES
    oUserObjectMD.CanDelete = SAPbobsCOM.BoYesNoEnum.tYES
    oUserObjectMD.CanFind = SAPbobsCOM.BoYesNoEnum.tYES
    oUserObjectMD.CanLog = SAPbobsCOM.BoYesNoEnum.tNO
    oUserObjectMD.CanYearTransfer = SAPbobsCOM.BoYesNoEnum.tYES
    oUserObjectMD.ManageSeries = SAPbobsCOM.BoYesNoEnum.tYES
    oUserObjectMD.ChildTables.TableName = "childSplitNew1"
    oUserObjectMD.ChildTables.TableName = "childSplitNew2"
    oUserObjectMD.Code = "udoSplitNew"
    oUserObjectMD.ManageSeries = SAPbobsCOM.BoYesNoEnum.tNO
    oUserObjectMD.Name = "udoSplitNew"
    oUserObjectMD.ObjectType = SAPbobsCOM.BoUDOObjType.boud_Document
    oUserObjectMD.TableName = "masterSplitNew"
    lRetCode = oUserObjectMD.Add()
    Regards,
    Sudeshna.

Maybe you are looking for