Skip to Content
avatar image
Former Member

Smartforms - How to know (by table) if a translation is existing ?

Hello,

without using se63 and test every langage - How to know in how many language the forms ZTEST is translated ?

I woukd have the list of the langage that the form ZTEST is translated ...

tks,

roberto

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jan 11, 2011 at 12:49 PM

    I had a similar requirement earlier. We had a language field in selection screen. If user enters any language that the form is not available or is not existing then it should trigger a message.

    Check this code snippet:

    SELECT SINGLE sform FROM tnapr INTO (form_name) WHERE kschl = 'ZSM3'
                                                          AND nacha = 1
                                                          AND kappl = 'EF'.
    
        IF NOT form_name IS INITIAL.
          SELECT SINGLE langu FROM stxfadmt INTO (st_langu) WHERE langu = p_spras
                                                            AND   formname = form_name.
    
          IF sy-subrc NE 0.
            MESSAGE e000 WITH 'Language selected is not available for form' form_name .
            STOP.
          ENDIF.
        ENDIF.

    So you can check table STXFADMT .

    Add comment
    10|10000 characters needed characters exceeded