Category Archive Blog

Transport ALV Layout Variants

You can save your ALV layout variant in customising transport order with function module (SE37) : LT_VARIANTS_TRANSPORT.

In table T_VARIANTS, specify your report name (T_VARIANTS-REPORT) and variant name (T_VARIANTS-VARIANT) your want to transport.

Search tag: mise en forme, grille, variante

SAP color codes

You can get the color codes in SAP with program: SHOWCOLO.

Declare constant with initial value

This is the only way to declare initial value in a constant :


CONSTANTS : c_matnr_empty    TYPE matnr VALUE IS INITIAL.

Insert data into sorted table

With a sorted table, it is not possible to use statement APPEND to add line in a table.
APPEND will resquest to add the line at the end, which will perturbate the sort of table.
Use statement INSERT, which will automatically manage in which index will be inserted the line.

Use this code:


  DATA : li_table TYPE SORTED TABLE OF ts_structure WITH NON-UNIQUE KEY key_field,
         ls_table TYPE ts_structure.

  INSERT ls_table INTO TABLE li_table.

 

Search tag: table triée, insérer

Get serial numbers (SN) of documents

Use FM GET_SERNOS_OF_DOCUMENT.

Search tag: n°, numéro de série

Add button on selection screen in toolbar

Check program DEMO_SEL_SCREEN_FUNCTION_KEY.

Read More

Move files in SAP application server

You can use FM SXPG_COMMAND_EXECUTE.
Use transaction SM69 to configure the command name.

Read More

Get your development access key

It is stored into table DEVACCESS.

Search tag: dev access, clé de dev

Program to check TO

Program: /SDF/CMO_TR_CHECK

/!\ It is delivered in updates of ST-PI component. You can run this program in the normal system or from SAP solution manager.

Search tag: TR, OT, transport order, transport request