Tag Archives: SAP

Login SAP CRM as a Separate User than Single Sign-On

If you have SSO enabled on SAP CRM, you can sometimes get stuck with your user on your computer’s certificate and you can’t get out of it with logout, delete cookies, no auto-login etc. But what you can do is add

?sap-user=DIFFERENTUSER

at the end of your usual sap/bc/bsp/sap/crm_ui_start/default.htm URL and the login dialog will prompt. Try it in conjunction with ‘Clear SSL state’ button in the Content tab of Internet Options


ABAP Get REST XML and Parse XML

This tutorial will help you use ABAP to connect to any web service and process the resulting output. ABAP has native support for XML so it will be easiest to get your information in XML format rather than JSON and others. For this example, I will use a CBC’s news feed but it can be Digg top stories, Twitter, anything. The XML should look something like the picture below where each news article is enclosed in <ITEM> tags. Continue reading


ABAP Get Columns of a Table with Includes in Structure

There are multiple ways of making use of the subclasses of cl_abap_typedescr to get info on runtime instance data objects in ABAP. This is just one of the ways to get the columns of an internal table where its line structure has includes.

Suppose you start with an internal table named “table

DATA table_descr TYPE REF TO cl_abap_tabledescr.
DATA struct_descr TYPE REF TO cl_abap_structdescr.
DATA columns TYPE abap_compdescr_tab.
FIELD-SYMBOL
<column> LIKE LINE OF columns.
 
table_descr ?= cl_abap_typedescr=>describe_by_data( table ).
struct_descr ?= table_descr->get_table_line_type( ).
columns = struct_descr->components.
 
LOOP AT columns ASSIGNING <column>.
    [do something with] <column>-name.
ENDLOOP.

cl_abap_structdescr also has a GET_COMPONENTS( ) method but it doesn’t return a flat structure (doesn’t unpack includes). Of course, this doesn’t do any error checks and would crash if “table” isn’t a table.


Sizing conflicts exist on the screen error in SAP

Getting an annoying dialog box about “Sizing conflicts exist on the screen; For more information see SAP Note 570861″ in SAPGUI all the time?

Get rid of the warning at Customize Local Layout (Alt-F12), Options. Then, in SAP Internal, uncheck ‘Enable dialog box for screen size check‘.

I’m running on Frontend 720.