This file contains 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 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 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 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 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 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 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 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 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_brfplus_function_test. | |
data: lo_admin_data type ref to if_fdt_admin_data, | |
lo_function type ref to if_fdt_function, | |
lo_context type ref to if_fdt_context, | |
lo_result type ref to if_fdt_result, | |
"lx_fdt type ref to cx_fdt, | |
result type abap_bool, | |
event_code type string. |
This file contains 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
/* This UDF reads all contents and creates an output along with an attachment to SAP PI message, which has data in CSV foramt as expected by DB Schenker. | |
Please note that DB Schenker expect some of the fields as empty and hence only commas are added in the payload. For future enhancements if further fields are required to be added, pass them as input to UDF and update the | |
content field to use that input | |
*/ | |
AbstractTrace trace = container.getTrace(); | |
String firstRow = "Organization Name,,Contact Name,Email Address,Phone Number,Handling Office,Trucker,US Principal Party of Interest / ISF Importer,Factory,Consignee/Destination/ISF Ship To,Freight Forwarder,Third Party,Equipment Stuffing Location,Secondary Name/3rd Party Description,Address (Line 1),Address (Line 2),Address (Line 3),Email Address,State,City,Country (ISO Country Code),Postal Code,Phone,Fax,Internal Customer Account #,Importer of Record Number,Type (EIN, SSN, Foreign),Consignee #,Type (EIN, SSN, Foreign),Vendor Name,Vendor Code,Contact Name"; | |
St |