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

DYNP_UPDATE_FIELDS and table control question.

Former Member
0 Likes
485

Hello,

There is one problem I'm having. I have to implement a mass upload functionality to standard transaction, so that user can point to external document and data from it is transferred to screen. There can be hundreds of items in a document.

I managed to do it partly. Problem is that if document has more items than table control has visible lines, then those lines that don't fit on screen don't appear at all.

Is there a way to make it work? To trick table control into believing it has more lines than it actually does?

3 REPLIES 3
Read only

Former Member
0 Likes
376

Hi

I believe you can only try to get them by field-symbols if you know which is the internal table for the table screen:

*--> wa_itab has to be like the internal table of the std program

DATA: BEGIN OF WA_ITAB,

END OF WA_ITAB.

FIELD-SYMBOLS <ITAB> TYPE TABLE.

DATA: FIELDNAME(30) VALUE '(<standard program>)ITAB[]'.

ASSIGN (FIELDNAME) TO <ITAB>.

LOOP AT <ITAB> INTO WA_ITAB.

ENDLOOP.

Max

Read only

Former Member
0 Likes
376

Hi Jurijs,

The problem is not so complex as it appears to be.

Firstly, check if there is any option to entrer the data item wise(Without using the table control).

Secondly, if no such option exists, check if there is any button upon clicking which, you would get the record to the first visible line in the table control.

Or else, you can use the Page Down button to handle a table control.

Refer this example to do a BDC for a table control.

http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm

Regards,

Ravi

Read only

Former Member
0 Likes
376

Hi,

Look at the below DEMP Programs

DEMO_DYNPRO_TABLE_CONTROL_1

DEMO_DYNPRO_TABLE_CONTROL_2

Regards

Sudheer