Code for sending records to error stack

Hi All,
Requirement: Record satisfying the condition should be sent to error stack and rest should be proceeded further.
Following is the code written by me to send data to error stack.
Data gets appended to Monitor but it is not reaching the error stack.
IF <SOURCE_FIELDS>-FINISHDATE LT wa_cal-VJAHR OR
    <SOURCE_FIELDS>-FINISHDATE GT wa_cal-BJAHR.
      monitor_rec-msgid = 'ZBW'.
      monitor_rec-msgty = 'E'.
      monitor_rec-recno = <SOURCE_FIELDS>-FINISHDATE.
      monitor_rec-skipped = 'X'.
      Append monitor_rec TO MONITOR.
      DELETE TABLE SOURCE_PACKAGE FROM <SOURCE_FIELDS>.
ENDIF.
Can you please tell me if the above procedure is fine or needs to be changed?

Hi Ramesh,
To me it seems that the code you have written is incorrect. In the 5th line of code you have written:
monitor_rec-recno = <SOURCE_FIELDS>-FINISHDATE.
Here you should remember that RECNO & FINISHDATE are of different data types, so may be you can try changing this line of your code to : monitor_rec-recno = <SOURCE_FIELDS>-Record
U can try this & let me know its working or not, coz i think rest of the code is pretty fine,
Hope it helps.
Ragerds,
Raj

Similar Messages

  • Edit the error records in error stack

    Hi,
    I want to edit the error records in error stack. There are around 300 records in error stack . I want to replace the value in one field with blank to correct the records. Can you please help me how to replace the value with blank.
    Thanks,
    Priya

    Hi,
    Open the original DTP and click on change.
    1) In Update you will find "create error DTP", just click on it system automatically create error DTP for you original DTP.
    2) Do not change any thing, just come back to your original DTP and activate your DTP again.
    Now come back and refresh the info provider tree.
    now execute your DTP, request will be green in target and you will error records in error stack.
    How to edit the error records in error DTP
    please find the doc.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0406328-29c7-2e10-5db5-afe9b5695eeb?overridelayout=t…
    Thanks,
    Phani.

  • I want to writte C# code for 503 Service Unavailable error to web application page immediate close connection any page loaded

    Here is a ticket regarding our current client web application (  Image data add, edit , delete in folder with form data in MSSQL Database) that using code c#, web form, ajax, VS2008, MSSQL Server2008 , it appears that there is an error where the HTTP
    503 error occurs. 
    . Below is a conversation with Host Server support assistant.Can you take a look at it? 
    Ben (support) - Hi 
    Customer - We're having an issue with our windows host 
    Ben (support) - What's the issue? 
    Customer - 503 errors 
    Ben (support) - I am not getting any 503 errors on your site, is there a specific url to duplicate the error? 
    Customer - no, it comes and goes without any change Customer - could you have access to any logs ? 
    Ben (support) - Error logs are only available on Linux shared hosting, however with this error it may be related to you reaching your concurrent connections 
    Ben (support) - You can review more about this at the link \ 
    Customer - probably yes - how can we troubleshoot ? 
    Ben (support) - http://support.godaddy.com/help/article/3206/how-many-visitors-can-view-my-site-at-once 
    Ben (support) - This is something you need to review your code and databases to make sure they are closing the connections in a timely manner 
    Customer - we're low traffic, this is an image DB to show our product details to our customers 
    Customer - ahhhh, so we could have straying sessions ? 
    Ben (support) - Correct Customer - any way you could check if it's the case ? 
    Customer - because it was working previously 
    Ben (support) - We already know that's the case as you stated the 503 errors don't happen all the time if it were issue on the server the the 503 would stay. 
    Customer - so our 2/3 max concurrent users can max out the 200 sessions 
    Customer - correct ? 
    Customer - is there a timeout ? 
    Ben (support) - no that's not a time out concurrent connections are a little different then sessions and or connections. Lets say for an example you have 5 images on your site and 5 7 users come to your site this is not 7 concurrent connections but 35. They
    do close after awhile hence why the 503 error comes and goes. You can have these connections close sooner using code but this is something you have to research using your favorite search engine 
    Customer - thank you so much 
    Customer - I'm surprised that this just started a few weeks ago when we haven't changed anything for months 
    Customer - any changes from your side ? lowering of the value maybe ? 
    Customer - I'm trying to understand what I can report as a significant change 
    Ben (support) - We haven't touched that limit in years 
    Ben (support) - This could just be more users to your site than normal or even more images 
    Customer - I was thinking that could be it indeed 
    Customer - so I need to research how to quickly close connections when not needed 
    Ben (support) - Correctly 
    Ben (support) - correct 
    Customer - thanks !! 
    Ben (support) - Your welcome 
     Analysis : 
     The link provided tells us : All Plesk accounts are limited to 200 simultaneous visitors. 
     From what Ben (support) says and a little extra research, if those aren't visitors but connections then it's quite easy to max out, especially if the connections aren't closed when finished using. I'd suggest forwarding this to Kasem to see what he thinks. 
    Cheers, 
    Customer

    Hi Md,
    Thank you for posting in the MSDN forum.
    >>
    I want to writte C# code for 503 Service Unavailable error to web application page immediate close connection any page loaded.
    Since
    Visual Studio General Forum which discuss VS IDE issue, I am afraid that you post the issue in an incorrect forum.
    To help you find the correct forum, would you mind letting us know more information about this issue? Which kind of web app you develop using C# language? Is it an ASP.NET Web Application?
    If yes, I suggest you could post the issue directly on
    ASP.NET forum, it would better support your issue.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • Facing problem with the code for sending an .xls attachment via email, a field value contains leading zeros but excel automatically removes these from display i.e. (00444 with be displayed as 444).kindly guide .

    Facing problem with the code for sending an .xls attachment via email, a field value contains leading zeros but excel automatically removes these from display i.e. (00444 with be displayed as 444).kindly guide .

    Hi Chhayank,
    the problem is not the exported xls. If you have a look inside with Notepad or something like that, you will see that your leading zeros are exported correct.Excel-settings occurs this problem, it is all about how to open the document. If you use the import-assistant you will have no problems because there are options available how to handle the different columns.
    Another solution might be to get familiar with ABAP2XLS-Project. I got in my mind, that there is a method implemented, that will help you solving this problem. But that is not a five minute job
    ~Florian

  • No Records in Error Stack

    Hi,
    I've created a Standard DSO on top of a flatfile datasource.
    I have few records in flatfile with special charcters like @, ~ etc.
    When I activate the data in DSO, activation fails with invalid SID message. Request turns red and no data are written to either Active table or to Error Stack.
    Below are DTP settings:
    1. Extraction Mode : FULL
    2. Error Handling:     Valid Records Update, Reporting Possible (Request Green)
    3. Maximum number of Errors in Pack: 999
    4. No Further Processing without Master Data
    Why no records are written to Error Stack...though error messages are written to application log? Do I need to perform some configuration for activating error stack?
    Please let me know.
    Regards,
    Vikrant.

    Here are the steps to take to resolve this issue for the long-term (not just a quick fix):
    1) Make sure that you have the string ALL_CAPITAL in RSKC. This should be the only thing in the column...nothing else.
    2) Implement the corrections of [OSS Note 1075403|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1075403].
    3) Test your activation again.
    4) If it still fails with the same issue, change the value in RSKC to ALL_CAPITAL_PLUS_HEX. Again, this should be the only value.
    Edited by: Dennis Scoville on Aug 4, 2009 1:28 PM

  • Code for send button. I need your help, guys!

    I would appreciate a Java code for a "send" button or a "send page" link that would send a complete web page to my email address. I have some forms for my users to fill out online and send them to me, and so the problem I am having is that when I use FrontPage forms (text boxes, check boxes, radio buttons, etc.,)for them to use, I am getting the input from those form only. What I NEED to get is the complete page, exactly what the users see on the screen with all the text in the forms. The need for this is that these forms (reports) will later be printed out, so they MUST look exactly as on the screen.
    So I am thinking a bit of Java code could help me out. Would you give me a hand guys? Thanks!

    Do some JNI and take a snapshot of the screen, it is the ONLY way I know to ensure EXACTLY what you ask for: even the HTML from the page may look different than what the users sees when filling out the form when that HTML is displayed on a different machine and system.
    Otherwise your agument seems a little trivial and you could just replicate the form on your local machine and insert the data you captured with a normal post operation into the local copy of the HTML form.

  • Non error records in error stack

    Hi,
    I have some error records collected in errorstack I know how to correct and update these error records.
    But the problem is there are several other records collected in error stack giving the message filtered in advance as the key is same as error records.
    Now my question is why is this happening?
    regards,
    preethi.

    Hi Preethi,
    This is happening because of the semantic key. The semantic key will be defined in the DTP.
    If any records are having the same semantic key as the error records, these records will also be collected in the error stack with out actually checking data.
    Regards,
    Srinath.

  • Web Reference inside Script Task causes Binary code for script not found error

    I am attempting to access a SOAP web API (sales force) from a SSIS package. To do this I created a script task.
    Inside the script task I went to Add Service Reference. Then I click advanced to make it a web reference. Then I point it to the WSDL file and give it a name SFEnterprise. It successfully finds and adds the Web Reference to the script task.
    I leave scriptMain.cs alone and I have no warnrings and no errors. Now in the solution explorer I right-click the script task and hit BUILD. I see the message from Output that BUILD succeeded.
    I close the VSTA script editor and now I am back on the control flow window. However I have a red X on the script task with the following message. "The Binary code for the script is not found. Please open the script in the designer by clicking EditScript
    button and make sure it builds successfully"
    But it does build successfully! And I have not even added any custom code except for the web reference using the WSDL file.
    I am using SSIS 2012 and Visual Studio 2012. I have been reading about this binary code error message on Google searches and suggestions about delay validation and turning off pre-compile do not apply to SSIS 2012.
    Is SSIS not capable of doing this?

    I was wanting to use the 2.0 coding style of accessing the soap service which is supported by adding the web reference vs. adding a service reference. But using a service reference instead of web reference actually allows the script task to compile. This
    is really odd behavior. I wonder why one works and not the other.
    Changing my C# code over to service reference coding style to access the SOAP service was still returning an error. When I added a break point I found the error message "Could not find default endpoint element that references contract in the ServiceModel
    client configuration section"when calling new SoapClient();
    I found this page http://www.sqlis.com/sqlis/post/Where-is-my-appconfig-for-SSIS.aspx and after I copied the System.ServiceModel app settings from the script task app.config to the DTSDebugHost.exe.config it was able to successfully login to the endpoint
    during package debug mode.
    This means I will have to edit the SQL Server DTS config files on the prod SSIS server to get the package to actually run in the job agent.
    So for now I am good I think just plugging away at coding what the script task is actually supposed to do now that is can actually login.

  • Run a code for all records

    Dear all, please tell me how can I perform a code save for all records in ms dynamics crm 2011. (I've changed part of a code and need it work for all old records)

    Andrii thanks for your reply, but it will not work. In this case I work with a N:N connected records. I found this:
    https://rajeevpentyala.wordpress.com/2012/02/05/update-record-using-odata-and-jquery-in-crm-2011/

  • Error while writing a code for sending SMS in METHOD http_client_receive

    Hi friends,
                   I have a requirement, where i have to send a SMS from SAP system, i tried follwing codes but in both it is giving me same error. HTTP path mensioned below[ztest_02] is provided by service provider.
    I tried the same url in explorer and i received the SMS properly.
    REPORT ztest_02.
      CONCATENATE
      'http://hapi.smsapi.org/SendSMS.aspx?UserName=xyz&password=586998&MobileNo=919836789543'
      '&SenderID=serdc&CDMAHeader=919833678945&Message=Hirdffan'  INTO  wf_string .
      CALL METHOD cl_http_client=>create_by_url
        EXPORTING
          url                = wf_string
        IMPORTING
          client             = http_client
        EXCEPTIONS
          argument_not_found = 1
          plugin_not_active  = 2
          internal_error     = 3
          OTHERS             = 4.".......................THIS IS WORKING FINE .. RETURNS SY-SUBRC = 0
      CALL METHOD http_client->send
        EXCEPTIONS
          http_communication_failure = 1
          http_invalid_state         = 2.".......................THIS IS WORKING FINE .. RETURNS SY-SUBRC = 0
      CALL METHOD http_client->receive
        EXCEPTIONS
          http_communication_failure = 1
          http_invalid_state         = 2
          http_processing_failed     = 3.".......................NOT WORKING FINE .. RETURNS SY-SUBRC = 1
    I COPIED ANOTHER CODE FROM NET WHICH IS AS FOLLOWS AS GIVES SAME SY-SUBRC IN SAME METHOD.
    CONCATENATE 'http://www.webservicex.net/globalweather.asmx/GetCitiesByCountry?CountryName='
                p_cnt              INTO http_url .
    CALL METHOD cl_http_client=>create_by_url
       EXPORTING
         url                = http_url
       IMPORTING
         client             = http_client
       EXCEPTIONS
         argument_not_found = 1
         plugin_not_active  = 2
         internal_error     = 3
         OTHERS             = 4. " ...RETURNS SY-SUBRC = 0
    http_client->request->set_header_field( name  = '~request_method'
                                            value = 'GET' ).
    http_client->send( ).
    CALL METHOD http_client->receive
        EXCEPTIONS
          http_communication_failure = 1
          http_invalid_state         = 2
          http_processing_failed     = 3
          OTHERS                     = 4.  '".........THIS RETURNS SY-SUBRC = 0
    My question is why it is failing in same call...
    Is there any authorisation issues?
    Any call is missing in between?
    Is there any network issue?
    pls help........
    Edited by: kiran chorge on Mar 11, 2010 7:42 AM

    Hi Kiran,
    I just resolved this error in my system. If you are running on AIX, then your DNS server will most likely not be configured. To fix this you just have to make the HTTP call without the domain name.
    Just ping the HTTP and find out which IP it is going to, then rewrite your HTTP address as below :
    http://<IP ADDRESS>/SendSMS.aspx?UserName=xyz&password=586998&MobileNo=919836789543'
    '&SenderID=serdc&CDMAHeader=919833678945&Message=Hirdffan
    This should resolve your error. Also the HTTP message you are getting in the given method actually refers to the problem in conversion of a domain name to an IP address as the DNS server is not available. So everything is most likely working fine.
    Thanks & Regards,
    Aditya

  • Wanted: Sample source code for voice recorder

    I've been google searching for some sample source code to implement a voice recorder on my AudioVox 5600. I would like to learn how to read from the microphone and write to my SD card in a standard file format like wav, wma or mp3.
    Can anyone help me understand how to do this?
    Thanks,
    Siegfried

    Basic would be ;
    RESULT_FIELDS -xxx = <SOURCE_FIELDS> -xxx
    you have the source fields as source, and result fields for as the target. In between you can check some conditions as in other routines of transformation.
    BEGIN OF tys_SC_1, shows your source fields ( in your case DSO chars and key figures)
    BEGIN OF tys_TG_1, , shows your result fields ( in your case Cube characteristics)
    Hope this helps
    Derya

  • Does any one have a sample code for sending email using IMAP ?

    Hi
    thank you for reading my post
    I have tried to use SMTP and because of some problems i could not use it and i must use Imap (authentication required)
    here is my SMTP code , does any one know how i can tune it to use Imap , or has a code snippet to send email using Imap ?
    thanks
    private static void postMail(String[] recipients, String subject, String message,
                             String from) throws MessagingException {
            boolean debug = false;
            class SMTPAuthenticator extends javax.mail.Authenticator
                    public PasswordAuthentication getPasswordAuthentication()
                        return new PasswordAuthentication(mail_usrname,mail_password);
            //Set the host smtp address
            Properties props = new Properties();
            FileInputStream fis;
            try {
                System.out.println("Loading property file");
                fis = new FileInputStream(new File("c:/email.properties"));
                props.load(fis);
                System.out.println("property file done");
            } catch (FileNotFoundException e) {
                System.out.println("file not found");
                e.printStackTrace();
            } catch (IOException e) {
                System.out.println("can not read properties file");
                e.printStackTrace();
            /*props.put("mail.smtp.user", mail_usrname);
    props.put("mail.smtp.host", smtpHost);
    props.put("mail.smtp.port", smtpPort);
    props.put("mail.smtp.starttls.enable","true");
    props.put("mail.smtp.socketFactory.port", smtpPort);
            // create some properties and get the default Session
            Authenticator auth = new SMTPAuthenticator();
            Session session = Session.getDefaultInstance(props, null);
            session.setDebug(debug);
            // create a message
            Message msg = new MimeMessage(session);
            // set the from and to address
            InternetAddress addressFrom = new InternetAddress(from);
            msg.setFrom(addressFrom);
            InternetAddress[] addressTo = new InternetAddress[recipients.length];
            for (int i = 0; i < recipients.length; i++) {
                addressTo[i] = new InternetAddress(recipients);
    msg.setRecipients(Message.RecipientType.TO, addressTo);
    // Setting the Subject and Content Type
    msg.setSubject(subject);
    msg.setContent(message, "text/HTML");
    System.out.println(msg.toString());
    Transport.send(msg);

    Please try this out!!!!!!!!!
    You can send emails using Outlook also. You can send email over Microsoft Exchange with this object (or another email server, using IMAP/POP).
    Sub SendMailOutlook(aTo, Subject, TextBody, aFrom)
    'Create an Outlook object
    Dim Outlook 'As New Outlook.Application
    Set Outlook = CreateObject("Outlook.Application")
    'Create e new message
    Dim Message 'As Outlook.MailItem
    Set Message = Outlook.CreateItem(olMailItem)
    With Message
    'You can display the message To debug And see state
    '.Display
    .Subject = Subject
    .Body = TextBody
    'Set destination email address
    .Recipients.Add (aTo)
    'Set sender address If specified.
    Const olOriginator = 0
    If Len(aFrom) > 0 Then .Recipients.Add(aFrom).Type = olOriginator
    'Send the message
    .Send
    End With
    End Sub

  • Start routine code for deleting records in different language

    Hello,
    can someone please specify the exact code to be used in start routine, and whre exactly it needs to be pasted?
    this code is needed for master data notifaction type which is loaded for both languages German and English.
    german records are to be avoided.
    thanks,

    Ciao Claudio,
    this issue about languages selection is an old situation...
    The problem is that language selection is not possible, even if you have this field checked for selection !!!
    Look at OSS Note 324684...
    "If a field of a DataSource - typically with field name 'LANGU' or 'SPRAS' - is assigned to InfoObject '0langu', the field is not provided in the selection fields although the field actually can be selected. In this case, all languages of the language vector active in the BW System are requested by the source system but the language selection cannot be defined in the Scheduler.
    A precondition is that the language field of the DataSource in the source system is maintained as selection field. This setting is done in Transaction RSA6 (or RSO2 for customer developments)."
    Bye,
    Roberto

  • T.Codes for Sending material outside..?

    HI gurus
    Can anybody explain me , what are all the T.codes available in STA SAP related to Sending materials to outside like Drillngm/c, grinding m/c,..etc
    To do the some customer service work.. materials are not consumable, we wil use the material for some service work at customer place and get back to my company.
    Pls explain me the abt the T.codes
    Thanks
    sap-mm

    Hi,
    There are two ways of handling your scenario. If the material which you are sending is a valuated material, then please create a "Z"movement type with the valuation option unchecked, so that you can issue against a cost center, by treating customer as a cost center. This causes a decrease in the stock of the material. Again when you want to bring the material back to the stock, you can verywell reverse the earlier transaction. Apart from it, you can have a development unlike the delivery challans (DC's) in the legacy in SAP and send the materials on the same.
    IF the material is non-valuated, you can send them on "201" mvt type only, which does not affect the value of the stock at any stage.
    Hope this answers your query.

  • Structuring Code For Manual, Record, Play Mode

    Hi,
    I have 3 Vi's, one for manual operation, one for record and one for playing back the recorded data. They take a 0-5V signal read by a Arduino Uno micro controller.
    Manual - this just constantly reads the signal
    Record - upon activation this records the signal from the Arduino ad writes the values into a file
    Playback - this takes the data written into a file and plays it back.
    I am unsure how to structure the code. I want the user to be able to chose between any of the modes, and randomly switch between them (i.e there is no defined sequence). I would also like the common features such as the output chart use the same plot, not use one plot for each mode.
    I have attempted to do this using a case structure, however you can only switch between cases if you change the case, then stop the currently active state. Even this does not work for switching between some stated as they do not have a stop button to allow release from the active state to the new one.
    I'm sure that there must be a convenient way of doing this, I'm just not sure what it is and am not sure what to be searching for on the forums. I have attached my present attempt. Any advice or example vi's of a similar type would be appreciated.
    Eventually the code will be integrated into a system for manually operating a 3 axis table (stepper motors), with the ability to record operations, and play them back. I have the stepper motor control dealt with, I just need to understand how to switch between operation modes. The input will come from joystick and potentiometers measured by a microcontroler to form the input.
    I'm using labview 2010.
    Solved!
    Go to Solution.
    Attachments:
    Record Data to File Pour_Machine_V1.vi ‏12 KB
    Master_Structure_V2.vi ‏100 KB
    vi structure.jpg ‏72 KB

    Code attached. Hope this helps.
    EDIT: I re-attached the Controller VI and added Batch Enable-Disable to make the UI more user friendly.  Why not, you know?
    Cheers,
    Rory
    Attachments:
    Batch Enable-Disable.vi ‏15 KB
    Controller.vi ‏30 KB
    states.ctl ‏5 KB

Maybe you are looking for

  • HT201441 can't activate my iphone 5s

    i bought my iphone from malaysia, and now I'm in India, i disabled my iphone. the previous owner(the seller) is in malaysia, and i don't have any address to contact him. I can't ask his apple ID and password.in this case,how can i re-activate my ipho

  • Safari hangs at start up

    Read through all the discussions and I seek help with the following. Safari hangs at start up. The window appears but the only thing I see is a spinning colored wheel. Did a force quit, repaired disk permissions and rebooted but still nothing. This i

  • Changing web root directory

    I've just managed to set up coldfusion (8, not that I think it should be very different to 7) on my mac. It's running perfectly, except that the wwwroot folder is in Applications/coldfusion8, and my CF pages are in a different directory. Is there som

  • How to minimize the components

    Hi,       when ever I minimizing the window,the components in that windows are not displaying properly.       I am using jdev 11.1.2.3      How to  properly render the components?      Can any one please give me the answer?

  • Adding the search help in program

    hi i want to add a search help in program for a particular field of a parameter how to do this?