Skip to Content
author's profile photo Former Member
Former Member

Change title of a box in a dynpro

In a dynpro there is defined a box. Is it possible to change the title of this box dynamically in the program?

Regards and thank you in advance

Volker

Message was edited by: Volker Zink

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2005 at 08:15 AM

    hi,

    in dynpro the let us assume the name of text box is l_matnr.

    define the same variable in the progrm like

    data l_matnr like mara-matnr.

    and in PBO set the value

    l_matnr = '3488844'.

    you can set the value in PAI also

    cheers,

    sasi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2005 at 08:17 AM

    Hi,

    You can give a program global variable or a ddic structure field name as "Name" to this box and in your PBO,

    You can fill it with the text that you want..

    Sri

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2005 at 08:21 AM

    Hi Volker,

    What you can do ... is

    LOOP AT SCREEN.

    CHECK SCREEN-NAME = 'MY_BOX_NAME_ON_THE_SCREEN'.

    |

    |

    |

    modify screen.

    endloop.

    check the structure of screen to see the fields you can modidy.

    If you have question about that ask me and If i did help you, reward me plz

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2005 at 08:29 AM

    yes its possible.

    first of all declare a variable e.g temp..

    giv this name to ur box.

    also in the attributes of the box check the output field.

    Now in the PAI of the dynpro you can change the value of this temp vairable like any other vairable...

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.