cancel
Showing results for 
Search instead for 
Did you mean: 

include text in Adobe form doesn't print with correct item

0 Kudos

Hi,

I'm in transaction QM02 printing the 3D report.

I need to print the longtext per item line (the containment actions).

Text is added to data structure as include-text within the context area.

text name comes from a field in the same structure (CONTAINMENT_ACTION-LONGTEXT).

text object is 'QMSM'.

text ID is 'LTQM'.

language comes from VIQMEL-KZMLA.

The texts are all pulled, but the output gets messed up:

If item line 1 and 4 have a long text.

Long text 1 gets printed after action code 1.

Long text 4 is then printed after action code 2 (should be printed after action code 4).

In the layout structure I use a subform structure:

form 1

--> subform 1.1: contains text element with action code

--> subform 1.2: contains text with include text

action code and include text point to the data fields declared in the context structure.

How can I add the "blank lines" as long text for action codes 2 and 3, so that the long text for action code 4 gets printed where it belongs?

Thanks for your help!

Accepted Solutions (0)

Answers (4)

Answers (4)

0 Kudos

Thank you, Florian!!

This has helped solve my problem - for some reason wrapping it into another subform, that can be repeated for each data line, has solved it.

Florian
Active Contributor
0 Kudos

Wrap your subforms into another subform, so that it is printed through the same line.

i think, your longtext-id is also not cleared for item 2 and 3, make sure, your Id is really just filled for 1 and 4.

0 Kudos

Hi Roberto,

thank you for your answer.

The problem is not to get the text, but printing it at the right position if that makes sense.

I believe the problem lies in the layout part. My layout looks like this:

Both fields TextField31 (contains action code) and TextField32 (contains longtext) point to fields of the same structure.

Example: Action 1 and 3 have a long text. The print out still looks like this:

Action 1
longtext1

Action2

longtext3

Action3

Action4

roberto_forti
Contributor
0 Kudos

Hi Anne,

Following SAP ADOBE documentation which will help you figuring out it.

Try to implement ABAP code (Interface FORM Routines) to retrieve and format considering that structure (action codes 1,2,3 e 4 and text as well as blank lines) into an internal table and send it as a parameter to Adobe works with it like table.

ABAP code for Interface FORM Routines. 
...
*Read text
  CALL FUNCTION 'READ_TEXT'
    EXPORTING
      client                  = sy-mandt
      id                      = 'LTQM'
      language                = VIQMEL-KZMLA
      name                    = ...
      object                  = 'QMSM'
    TABLES
      lines                   = lt_lines[]
    EXCEPTIONS
      id                      = 1
      language                = 2
      name                    = 3
      not_found               = 4
      object                  = 5
      reference_check         = 6
      wrong_access_to_archive = 7
      OTHERS                  = 8.

  IF sy-subrc EQ 0.
*Read text
    LOOP AT lt_lines[] INTO lw_lines.
    *** lw_lines-tdlines
    ...
    ENDLOOP.
  ENDIF.