This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example | |
| import scalaz._ | |
| import Scalaz._ | |
| object testing { | |
| 1 |+| 1 //> res0: Int = 2 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| report y_test_email_with_chart. | |
| type-pools: abap . | |
| tables: sflight . | |
| constants: image_name_01 type string value 'Sailing.jpg' . | |
| constants: image_name_02 type string value 'chart_01.jpg' . | |
| constants: c_series_01 type string value 'series_01' . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| method get_address_as_gdt. | |
| data addresses type standard table of sadrvb with empty key. | |
| data partners type standard table of vbpavb with empty key. | |
| data(country) = value land1_gp( ). | |
| data(state) = value regio( ). | |
| clear: r_result, addresses, partners. | |
| r_result-internal_id-content = me->ship_to_party. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * A monad to abstract dependencies in the code, see https://coderwall.com/p/kh_z5g | |
| */ | |
| object Reader { | |
| /** | |
| * an implicit to convert a function A => B in a Reader[A, B] | |
| */ | |
| implicit def reader[C, R](block: C => R): Reader[C, R] = Reader(block) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @LibraryMethod(title="", description="", category="User-Defined", type=ExecutionType.SINGLE_VALUE) | |
| public String setASMA ( | |
| @Argument(title="setASMA") String s, | |
| Container container) throws StreamTransformationException{ | |
| DynamicConfiguration dc = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION); | |
| DynamicConfigurationKey dck = DynamicConfigurationKey.create("urn_asma_test", "Z_ASMA"); | |
| dc.put(dck, "ASMA ASMA ASMA Oi Oi Oi"); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class zcl_zusers_dpc_ext definition | |
| public | |
| inheriting from zcl_zusers_dpc | |
| create public . | |
| public section. | |
| methods /iwbep/if_mgw_appl_srv_runtime~execute_action redefinition. | |
| protected section. | |
| methods userset_get_entity redefinition. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try. | |
| data(forwarding_agent_details) = me->partners_tab[ parvw = c_forwarding_agent_partner ]. | |
| r_result-content = forwarding_agent_details-lifnr. | |
| catch cx_sy_itab_line_not_found. | |
| "Do nothing if not found | |
| endtry. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data(ret) = value BAPIRET2( | |
| type = 'E' | |
| id = 'ZM_ILO' | |
| number = '017' | |
| message_v1 = delivery | |
| message_v2 = shipping_data_exc->get_text( ) | |
| ). | |
| data(rettab) = value bapirettab( ( ret ) ). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| method payment_terms_text. | |
| data(text) = new lcl_text_reader( )->get_as_string( | |
| id = '0002' | |
| name = conv #( i_delivery ) | |
| object = 'VBBK' | |
| ). | |
| data proxy_text_collection type zxi_text_collection_text_tab. | |
| data proxy_text_line like line of proxy_text_collection. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data(delivery_value) = new string( delivery ). | |
| data(text) = new lcl_text_reader( )->get_as_string( | |
| id = '0002' | |
| name = delivery_value->* | |
| object = 'VBBK' | |
| ). |