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
// | |
// Write the mock request payload to a file for checking later... | |
// newWrite() is the important it to ensure you get a *new* file each time. | |
// | |
def filename = "C:\\MyScratchFolder\\soapUI projects\\Testing\\procon\\mock_po_activity_request.xml" | |
def file = new File(filename) | |
def w = file.newWriter() | |
w << mockRequest.requestContent | |
w.close() |
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
import com.eviware.soapui.support.types.StringToStringsMap | |
def authSucceeded = false | |
// get the request headers | |
StringToStringsMap headers = mockRequest.getRequestHeaders() | |
headers.each { | |
if (it.key.equals("Authorization")) { | |
String content = it.value | |
String[] contentArray = content.split() |
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
*"* use this source file for any type of declarations (class | |
*"* definitions, interfaces or type declarations) you need for | |
*"* components in the private section | |
types: | |
begin of event_rec, | |
evt_name type string, | |
sort_order type i, | |
end of event_rec. |
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
sap.ui.define([ | |
"sap/ui/model/json/JSONModel", | |
"jquery.sap.storage" | |
], function(JSONModel, jQuery) { | |
"use strict"; | |
return JSONModel.extend("sap.ui.demo.cart.model.CartModel", { | |
_STORAGE_KEY : "LOCALSTORAGE_MODEL", | |
_storage : jQuery.sap.storage(jQuery.sap.storage.Type.local), |
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
@AbapCatalog.sqlViewName: 'ZPURITEMS' | |
define view PurchaseOrderItem | |
as select from ekko inner join ekpo on ekko.ebeln = ekpo.ebeln { | |
key ekko.ebeln as id, | |
key ebelp as item_no, | |
lifnr as vendor, | |
ernam as created_by, | |
ekko.aedat as created_on, | |
txz01 as text, |
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_abap_740. | |
interface lif_test. | |
methods: | |
importing msg type string. | |
endinterface. | |
class lcl_test definition. | |
public section. |
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
" Create MDG change pointers if email or street2 have changed | |
try. | |
data(mdg_cp) = value mdg_cp_s_cp( object_key = vendor ). | |
"Create a MDG Change Pointer so Vendor can be replicated later via DRF (TCODE DRFOUT) | |
call method cl_mdg_change_pointer=>create_cp | |
exporting | |
iv_business_object = 'ZM_VENDOR' | |
is_change_pointer = mdg_cp. |
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_json_output. | |
DATA purchaseorders TYPE STANDARD TABLE OF ekko. | |
SELECT * FROM ekko | |
INTO TABLE @purchaseorders | |
where bukrs = '2000' | |
and ernam = 'JSCOTT'. | |
DATA(lo_json_writer) = cl_sxml_string_writer=>create( type = if_sxml=>co_xt_json ). |
NewerOlder