document on dynpro

Question: hello,

I have 2 dynpros:
Dynpro1: The user can select button1 or button2. These buttons are important for the table control on dynpro2 (different text fields and table content).

Now I want to create a button on my dynpro2 to give the user the possibility to write some information in a document (to explain the input on the dynpro2) depending on the buttons 1 or 2.

Does anybody has an idea how to manage this ?

Answer:
Attach an OK Code to the buttons, that when clicked, store which button was clicked in a global variable.

Then in your second dynpro (I'm not sure what you mean here), but if you mean enter text when button one clicked, and not when button two clicked, you can use the TextEdit control (see SAPTEXTEDIT_DEMO_3 for an example of how to use this), displaying the control when the global variable contains the relevent button code (ie button 1 or 2)

You can then either save this as a local file, or create a table to hold the text entered.
_________________
Regards

R


Abap KC
SFMDR

Answer:
Hi u can do taht by using Dynamic Documents.

Answer:
what is dynamic document ?

Is there a docu or example program how to use ???


Thanks

Answer:
Hi u can search Dynamic Documents in Type-pool Sdydo.

Answer:
Not much help, but here's a few demo programs covering dynamic documents:


DD_ADD_FORM_BUTTON
DD_ADD_FORM_INPUT
DD_ADD_LINK
DD_ADD_LINK_SCROLLED
DD_ADD_TABLE
DD_ADD_TEXT
DD_SIMPLE_ALV_TOP
DD_SPLIT_DOCUMENT
DD_STYLE_TABLE
MP56T_OVERVF02
_________________
Regards

R


Abap KC
SFMDR

Answer:
Attach an OK Code to the buttons, that when clicked, store which button was clicked in a global variable.

Crikey O'Reily, if all he needs is to store which button was pressed, why didn't he use radiobuttons?

Answer:
Attach an OK Code to the buttons, that when clicked, store which button was clicked in a global variable.

Crikey O'Reily, if all he needs is to store which button was pressed, why didn't he use radiobuttons?

Because I'm assuming that on clicking the button the user will be directed to another screen, and radio buttons generally (although you can do that) are not associated with such an action.
_________________
Regards

R


Abap KC
SFMDR

Answer:
Thanks to everybody but my real problem hasn't been solved...

I want to press a button, a popup opens and I can write some text into this popup, save and close it.
Now user X press this button and sees my text....

Is it possible on a dynpro ?

and sorry for my bad english

Answer:

Because I'm assuming that on clicking the button the user will be directed to another screen, and radio buttons generally (although you can do that) are not associated with such an action.
Well he didn't say that. In fact, he didn't say much of any use at all.

my real problem hasn't been solved...
Perhaps that's because your explanation/description of it was vague, sketchy and ambiguous - and those were just the good points.

http://www.catb.org/~esr/faqs/smart-questions.html

Answer:
You can use function TXW_TEXTNOTE_EDIT to display a pop-up screen on which you can write text. Function CREATE_TEXT will save the text - if the text is not to relate to a SAP object eg a purchase order you may need to create a custom object id for it. READ_TEXT will retrieve the text so that you can display it on your pop-up screen. There are other functions to maintain texts; search this forum for more information.
Copyright ?2007 - 2008 www.jt77.com