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

BDC in Table control

Hi geeks,

Can any body help , how sholud i go forward in a data uplaod, if the fields are in TABLE CONTROL.

Let me tell you scenario.

In general all table controls has the fields with their techincal field names same all through the screen.

for eg: assume field name is MATNR.

If screen can accomadate 9 records in the Table control.

after recording we get like

matnr_01, matnr_02, matnr_03.. so on till matnr_09.

after this =P+ (page down)..

and again

matnr_01, matnr_02, matnr_03.. so on till matnr_09.

i have the materails more than 1000.

during the upload , the screen should dynamically take page down and till all the materials filled inthis.

please help , if at all you have worked in this kind of upload anytime.

any kind of input is greatly appreciated.

Regards

satheesh.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 04, 2005 at 12:20 PM

    Hi Satheesh,

    you should write something like this:

    clear: l_tabix.
    loop at itab.
      add 1 to l_tabix.
      perform dynpro using:   "here you fill the data
        ...
      if l_tabix >= 1000.
        clear: l_tabix.
        perform dynpro using
          ' ' 'BDC_OKCODE' '=P+',
          'X' (screen_name) (dynpro_number).
      endif.
    endloop.
    

    Please let me know if it worked. Best regards,

    Alvaro

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 04, 2005 at 12:17 PM

    Hi Satheesh,

    Your problem is everybodies problem.

    It is just not possible to use BDC and more lines in a table control on your screen.

    There are several ways around it:

    1. If you use transaction <xxx>N use transaction <xxx> instead.

    2. Find out if for your transaction a standard BAPI exists. If so use it. BDC is a somewhat old method.

    3. Find out if in your transaction on the screen where table control resides, in the MENU, if there is a function like create new material (often these functions exist and they simply insert a new line in the table control always at the same position). If so, you must rewrite your BDC to accomodate that function.

    Hope this will help you.

    Regards,

    Rob.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 04, 2005 at 12:27 PM

    Hi Satheesh,

    I would recommend to do a 'new page' every time you entered a material or, as Rob mentioned, to do a 'new entry' if this function is available in your transaction each time you entered a material.

    regards

    Siggi

    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.