Skip to content

Instantly share code, notes, and snippets.

Nigel James njames

Block or report user

Report or block njames

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
njames / navigate_bol.abap
Last active Dec 16, 2015
example on how to navigate the bol
View navigate_bol.abap
lr_core TYPE REF TO cl_crm_bol_core
, lr_entity TYPE REF TO cl_crm_bol_entity
, lv_partner_guid TYPE bu_partner_guid
, lv_object_guid TYPE crmt_object_guid
** get guid and navigate to the partner and get Description_name
current->get_property_as_value( EXPORTING iv_attr_name = 'CRM_GUID'
njames / logo.php
Created Apr 17, 2013
SAP Inside Track Logo Generator
View logo.php
* @author Nigel James
* @email
* @date 15 Apr 2013
* Create an image for SAP Inside Track events with Year and City
function LoadPNG($pngName)
njames / size_bol_collection.abap
Last active Dec 17, 2015
Determine the size of a BOL collection
View size_bol_collection.abap
* the last two buttons are displayed only if there is data in the table
lv_btn_enabled = abap_true.
lv_col_wrapper = typed_context->builactivity->collection_wrapper.
IF lv_col_wrapper->size( ) > 0.
lv_btn_enabled = abap_false.
View z_hello_datetime.abap
REPORT z_hello_datetime.
dt type REF TO zcl_datetime
, fs type string
, ts type timestamp
get time STAMP FIELD ts.
njames / ABAP_compare_set.abap
Last active Dec 17, 2015
Two ways of comparing a set of values in ABAP.
View ABAP_compare_set.abap
DATA: lv_status TYPE j_estat
, lo_current TYPE REF TO if_bol_bo_property_access
, table_rows TYPE i
* default condition to false and change if in correct status
njames / Types_include.abap
Created May 23, 2013
Example of including a structure with a types command in ABAP
View Types_include.abap
date_from TYPE d,
time_from TYPE t,
date_to TYPE d,
time_to TYPE t.
INCLUDE TYPE crmst_date_btil.
CREATE DATA rv_sample TYPE line.
njames / copy_structure.abap
Created Dec 13, 2013
copy from one structure to another copy of the same structure and only overwrite the new items
View copy_structure.abap
METHOD copy_structure .
* parameters
* i_new type any
* i_old type any
* final - changing type any
* copy by component only if the new value is populated else take
* the existing component
DATA: _componentno TYPE i VALUE 0
njames /
Last active Aug 29, 2015
Themes thoughts for open ui5

icf handler class


Theme link

njames / .bash_alias
Last active Aug 29, 2015
Alias for bash
View .bash_alias
source ~/
alias vm="cd /var/www/laravel/Homestead/;vagrant up"
alias hs="cd /var/www/laravel/Homestead/;vagrant ssh"
alias xo="xdg-open $PWD"
alias copy="xclip -sel clip"
#alias cdv="DIR=/var/www/"$1";cd $DIR"
alias e="echo $1"
alias ..="cd .."
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart -
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
You can’t perform that action at this time.