Category Archive Tips’n trick

Byfjourneau

Adobe form, count number of elements in a subform with JS

The goal here is to define of there are data into the table, if not, we hide the subform. That means, we hide the whole table (border and header line).
There are several ways to proceed, this is one :

Table from context is binded like :

  • TABLE_TEXT_HEADER_PO binded with $.TABLE_HEADER
  • LINE_TEXT_HEADER_PO binded with $.DATA[*] (repeat subform for each data item is ticked)
  • HEADER_PO_TEXT binded with $.TEXT_CONTENT
Read More
Byfjourneau

Merge PDF files with ABAP

If you want to merge PDF files on SAP server, you will need a third party software installed on SAP Server.
Here is one solution with PDF ToolKit :

Read More
Byfjourneau

Re-init buffers

In transaction code input field : /$sync
(to be done in transaction SESSION_MANAGER).

This re-init all buffers, useful when developping ALV layouts.

Search tag: clear buffer

Byfjourneau

TRANSLATE and code inspector

By using TRANSLATE key word, you can have in code inspector, or extended check issues/warnings, the error : “Dangerous use of translate in multilingual system”.

To avoid that :


* Set locale for given language (needed for upper-case translation)
  SET LOCALE LANGUAGE sy-langu.

* Translate to upper-case
  TRANSLATE  TO UPPER CASE.

Byfjourneau

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

Byfjourneau

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.

Byfjourneau

Get your development access key

It is stored into table DEVACCESS.

Search tag: dev access, clé de dev