Application Development 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: 

ABAP: create Popup for Input in selection Table for longer strings

Former Member
0 Kudos

Hello,

I am new in ABAP programming.

I have created an application with SE38, in this application I call a table from an selection-screen. I pass a variable which I got from the selection-screen and call data from an InfoProvider that I have created.

Now in this table the user has to enter some data into certain fields.

There is a character field with a length of 60. This is not enough.

I know that it is possible to have an InfoObject with attributes and split a string into the attributes to transport string with a longer length than 60.

But my inputfield in the table doesn't give me the possiblity to enter data that is longer.

So I am asking here if it is possible to access that field and call an inputfield somehow?

I need an inputfield where I can enter data that is longer than 60 characters (maybe about 600) and after submitting it has to be splittet into several hidden fields. After saving of the table I will call a process-chain which will transfer the data from the table back into the InfoProvider.

If you need any more informations about my application please let me know, I don't know if my question is clear enough..


Regards

Martin

4 REPLIES 4

raphael_almeida
Active Contributor
0 Kudos

Hi Martin, how are you ?!

I dont understand what you want, can you post your code?

Regards,

0 Kudos

Hey Raphael,

I try to explain with some code samples:

I have a abap application with a table definition and additional an alv grid definition:

TABLES: ytable_mytable.

DATA: ok_code LIKE sy-ucomm,

          save_ok LIKE sy-ucomm,

          g_container TYPE scrfname VALUE 'BCALV_GRID_DEMO_0100_CONT1',

          g_grid TYPE REF TO cl_gui_alv_grid,

          g_custom_container TYPE REF TO cl_gui_custom_container,

          gs_layout TYPE lvc_s_layo,

          g_max TYPE i VALUE 100.

TYPES: BEGIN OF ty_mytable,

     column definitions..

END OF ty_mytable.

DATA: ls_mytable01 TYPE ty_mytable,

          it_mytable01 TYPE STANDARD TABLE OF ty_mytable.

so I also have a selection-screen where I ask for an input to call up an InfoProvider from BW and load data - after I loaded this data I am calling up the alv grid with the table inside..

gs_layout-edit = 'X'.

gs_layout-stylefname = 'CELL'.

CALL METHOD g_grid->set_table_for_first_display

     EXPORTING

          i_structure_name = 'ytable_mytable'

          is_layout  = gs_layout

     CHANGING

          it_outtab = it_table01.

CALL METHOD g_grid->set_ready_for_input

     EXPORTING

          i_ready_for_input = 1.

(this code is not copied out from my application, it is manually wrote of the screen because I don't have access to that from here)

code works..

I come to a new screen with the table that I defined above. Here I want to select a CELL and get a POPUP window with a bigger input field for that..

And I need that because the specific cell that I click on is a character cell with an only length of 60 characters, but I need more than this..

I really hope that you could understand me because it is hard for me to understand everything 100%.. i am too new to his. But I am an experienced programmer..

Regards

0 Kudos

Hi Martin !

Try to use the FM "REUSE_ALV_POPUP_TO_SELECT" to make this.

Regards.

raphael_almeida
Active Contributor
0 Kudos

Hi Martin, how are you?!

You solved your problem ?!

Regards