Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Smartforms with text type DOKU

FredericGirod
Active Contributor
0 Likes
813

Hi,

I would like to display a text in a Smartforms. This text is a standard include from the QM module. The name is QM_QCERT_GENERAL_TEXT.

Inside this text, when I display the content in the transaction SO10, there is the code :

INCLUDE QM_QCERT_GENERAL_TEXT OBJECT DOKU ID TX

When I press the preview button in SO10 I saw a text, but when I use this text in a smartform nothing append.

Do you have any idea about this problem ?

Rgd

Frédéric

Hi,

I would like to display a text in a Smartforms. This text is a standard include from the QM module. The name is QM_QCERT_GENERAL_TEXT.

Inside this text, when I display the content in the transaction SO10, there is the code :

INCLUDE QM_QCERT_GENERAL_TEXT OBJECT DOKU ID TX

When I press the preview button in SO10 I saw a text, but when I use this text in a smartform nothing append.

Do you have any idea about this problem ?

Rgd

Frédéric

3 REPLIES 3
Read only

Former Member
0 Likes
611

Use a text node and change the type to 'Include'. Then enter the name, id, etc.

Read only

0 Likes
611

Hi Matt,

that didn't work, I can't find any "normal" way to insert this text.

For the moment, I have created my own code like this :

* Recupère la version max de la doc.
  select max( dokversion )
         into w_version
         from dokhl
         where id     eq 'TX'
         and   object eq 'QM_QCERT_GENERAL_TEXT'
         and   langu  eq sy-langu.

* Recherche des textes d'en-tete du document QM.
  select dokformat doktext
         into table it_text_line
         from doktl
         where id         eq 'TX'
         and   object     eq 'QM_QCERT_GENERAL_TEXT'
         and   langu      eq sy-langu
         and   dokversion eq w_version.


Rgd

Frédéric

Read only

0 Likes
611

If the text you are looking for is 'This product was produced in accordance with the guidelines ... and monitored in every manufacturing stage',

then use Text Object = Text, Text ID = ST, in your text node.