Jump to content

wellys3

Level 1
  • Posts

    7
  • Joined

  • Last visited

About wellys3

wellys3's Achievements

0

Reputation

  1. I used "Enter" character for new lines. I hope Evernote Teams can solved this problem in new update.
  2. When copied and pasted into a code block. "New Line" completely removed. When i highlight code block copied and then pasted into notepad, "new line" completely removed. This is frustrated, i must bring "new line" manually into code block.
  3. I have inserted code using Evernote "Code Block". If "Text Area" just fine, otherwise for "Code Block". 😄
  4. Yes, thanks for the input. But, it would be nice, if when i'm paste to code block in Evernote "New Line" not missing. 😄
  5. Dear Evernote, i have question for you, i have installed Evernote Windows 10.56.9. I have code, but when i'm paste to Evernote Windows, the "New Line" missing in Evernote. In example, i have a code below: FUNCTION y01_get_xml_data. *"---------------------------------------------------------------------- *"*"Local Interface: *" EXPORTING *" REFERENCE(EX_OUTPUT) TYPE STRING *" REFERENCE(EX_MESSAGE) TYPE STRING *" TABLES *" IT_BOOKS STRUCTURE Y01_BOOKS *"---------------------------------------------------------------------- "Declarations for Try/Catch block exception handling DATA: lcl_exc TYPE REF TO cx_root. DATA: ld_msg TYPE string. "Declare a reference to your proxy consumer object DATA proxy_test TYPE REF TO y01co_sample_web_service_soap. TRY. "Instantiate the object reference IF proxy_test IS NOT BOUND. CREATE OBJECT proxy_test EXPORTING logical_port_name = 'YLP01_CO_SAMPLE_WEB_SERVICE_SOAP'. ENDIF. "Declare the input and ouput references to your web service call "You can find these by clicking on “Client Proxies” and selecting the "#External View” tab for your proxy DATA: input TYPE y01get_xml_data_soap_in, output TYPE y01get_xml_data_soap_out. "There is one input value for this service call for user id "input-d_num = im_input. "Call the method (web service call) you can use the pattern to generate the code if you wish CALL METHOD proxy_test->get_xml_data EXPORTING input = input IMPORTING output = output. "Process the output DATA: lt_data TYPE STANDARD TABLE OF x255, ld_output_length TYPE i. CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' EXPORTING buffer = output-get_xml_data_result IMPORTING output_length = ld_output_length TABLES binary_tab = lt_data. DATA: ld_string TYPE string. CALL FUNCTION 'SCMS_BINARY_TO_STRING' EXPORTING input_length = ld_output_length IMPORTING text_buffer = ld_string TABLES binary_tab = lt_data EXCEPTIONS failed = 1 OTHERS = 2. IF sy-subrc <> 0. "Implement suitable error handling here ENDIF. ex_output = ld_string. "*--------------------------------------------------------------------* DATA: lit_return TYPE TABLE OF bapiret2, lit_books_xml TYPE TABLE OF smum_xmltb. CALL FUNCTION 'SMUM_XML_PARSE' EXPORTING xml_input = output-get_xml_data_result TABLES xml_table = lit_books_xml return = lit_return. IF NOT lit_books_xml[] IS INITIAL. DATA: ld_tabix TYPE sy-tabix, lwa_books LIKE LINE OF it_books. LOOP AT lit_books_xml INTO DATA(lwa_books_xml) WHERE hier EQ '3' AND type EQ 'A' AND cname EQ 'id'. ld_tabix = sy-tabix + 2. CLEAR lwa_books. lwa_books-id = lwa_books_xml-cvalue. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname = 'author'. lwa_books-author = lwa_books_xml-cvalue. ENDIF. ld_tabix = ld_tabix + 1. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname EQ 'title'. lwa_books-title = lwa_books_xml-cvalue. ENDIF. ld_tabix = ld_tabix + 1. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname EQ 'genre'. lwa_books-genre = lwa_books_xml-cvalue. ENDIF. ld_tabix = ld_tabix + 1. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname EQ 'price'. lwa_books-price = lwa_books_xml-cvalue. ENDIF. ld_tabix = ld_tabix + 1. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname EQ 'pub_date'. lwa_books-pub_date = lwa_books_xml-cvalue(4) && lwa_books_xml-cvalue+5(2) && lwa_books_xml-cvalue+8(2). ENDIF. ld_tabix = ld_tabix + 1. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname EQ 'review'. lwa_books-review = lwa_books_xml-cvalue. ENDIF. APPEND lwa_books TO it_books. ENDLOOP. ENDIF. CATCH cx_ai_system_fault INTO lcl_exc. ld_msg = lcl_exc->get_text( ). ex_message = ld_msg. ENDTRY. ENDFUNCTION. When i'm paste in Evernote Windows using Code Block, looks like: FUNCTION y01_get_xml_data. *"---------------------------------------------------------------------- *"*"Local Interface: *" EXPORTING *" REFERENCE(EX_OUTPUT) TYPE STRING *" REFERENCE(EX_MESSAGE) TYPE STRING *" TABLES *" IT_BOOKS STRUCTURE Y01_BOOKS *"---------------------------------------------------------------------- "Declarations for Try/Catch block exception handling DATA: lcl_exc TYPE REF TO cx_root. DATA: ld_msg TYPE string. "Declare a reference to your proxy consumer object DATA proxy_test TYPE REF TO y01co_sample_web_service_soap. TRY. "Instantiate the object reference IF proxy_test IS NOT BOUND. CREATE OBJECT proxy_test EXPORTING logical_port_name = 'YLP01_CO_SAMPLE_WEB_SERVICE_SOAP'. ENDIF. "Declare the input and ouput references to your web service call "You can find these by clicking on “Client Proxies” and selecting the "#External View” tab for your proxy DATA: input TYPE y01get_xml_data_soap_in, output TYPE y01get_xml_data_soap_out. "There is one input value for this service call for user id "input-d_num = im_input. "Call the method (web service call) you can use the pattern to generate the code if you wish CALL METHOD proxy_test->get_xml_data EXPORTING input = input IMPORTING output = output. "Process the output DATA: lt_data TYPE STANDARD TABLE OF x255, ld_output_length TYPE i. CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' EXPORTING buffer = output-get_xml_data_result IMPORTING output_length = ld_output_length TABLES binary_tab = lt_data. DATA: ld_string TYPE string. CALL FUNCTION 'SCMS_BINARY_TO_STRING' EXPORTING input_length = ld_output_length IMPORTING text_buffer = ld_string TABLES binary_tab = lt_data EXCEPTIONS failed = 1 OTHERS = 2. IF sy-subrc <> 0. "Implement suitable error handling here ENDIF. ex_output = ld_string. "*--------------------------------------------------------------------* DATA: lit_return TYPE TABLE OF bapiret2, lit_books_xml TYPE TABLE OF smum_xmltb. CALL FUNCTION 'SMUM_XML_PARSE' EXPORTING xml_input = output-get_xml_data_result TABLES xml_table = lit_books_xml return = lit_return. IF NOT lit_books_xml[] IS INITIAL. DATA: ld_tabix TYPE sy-tabix, lwa_books LIKE LINE OF it_books. LOOP AT lit_books_xml INTO DATA(lwa_books_xml) WHERE hier EQ '3' AND type EQ 'A' AND cname EQ 'id'. ld_tabix = sy-tabix + 2. CLEAR lwa_books. lwa_books-id = lwa_books_xml-cvalue. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname = 'author'. lwa_books-author = lwa_books_xml-cvalue. ENDIF. ld_tabix = ld_tabix + 1. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname EQ 'title'. lwa_books-title = lwa_books_xml-cvalue. ENDIF. ld_tabix = ld_tabix + 1. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname EQ 'genre'. lwa_books-genre = lwa_books_xml-cvalue. ENDIF. ld_tabix = ld_tabix + 1. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname EQ 'price'. lwa_books-price = lwa_books_xml-cvalue. ENDIF. ld_tabix = ld_tabix + 1. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname EQ 'pub_date'. lwa_books-pub_date = lwa_books_xml-cvalue(4) && lwa_books_xml-cvalue+5(2) && lwa_books_xml-cvalue+8(2). ENDIF. ld_tabix = ld_tabix + 1. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname EQ 'review'. lwa_books-review = lwa_books_xml-cvalue. ENDIF. APPEND lwa_books TO it_books. ENDLOOP. ENDIF. CATCH cx_ai_system_fault INTO lcl_exc. ld_msg = lcl_exc->get_text( ). ex_message = ld_msg. ENDTRY. ENDFUNCTION. Result: "New Line" is missing. This happen Evernote Windows 10.56.9 and Evernote Web (https://www.evernote.com/client/web). Any kind help would be nice. Thank you.
×
×
  • Create New...