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

BDC TABLE CONTROL

Hi,

Can anyone provide me the code on how to use CTU_PARAMS in bdc table control

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 09, 2007 at 08:48 AM

    Hi,

    Use CALL TRANSACTION 'XXX' OPTIONS FROM w_ctu_params.( type CTU_PARAMS)

    This structure contains the follwing.

    DISMODE : Display mode (like the MODE addition)

    UPDMODE: Update mode (like the UPDATE addition)

    CATTMODE: CATT mode (controls a CATT)

    CATT mode can have the following values:

    ' ' No CATT active

    'N' CATT without single-screen control

    'A' CATT with single-screen control

    DEFSIZE : Use default window size (Here we are handling those transaction by giving default window size)

    RACOMMIT: Do not end transaction at COMMIT WORK

    NOBINPT : No batch input mode (that is, SY-BINPT = SPACE)

    NOBIEND : No batch input mode after the end of BDC data.

    The components DEFSIZE , RACOMMIT, NOBINPT, and NOBIEND always take the following values:

    'X' Yes

    This might help u in better understanding...

    Cheers,

    Simha.

    Reward if helpful...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 09:15 AM

    Hi,

    "CTU_PARMS will force the BDC to use the standard default screen size (rather than being dynamic based on the user's settings. I think I explained that right, but all I know is that it keeps the BDC from behaving differently between users and makes things more consistent for coding logic".

    Here's an example (note that DEFSIZE is the key to the solution here):

    data: begin of tran_opts,

    dismode type ctu_params-dismode value 'N',

    updmode type ctu_params-updmode value 'S',

    cattmode type ctu_params-cattmode,

    defsize type ctu_params-defsize value 'X',

    racommit type ctu_params-racommit,

    nobinpt type ctu_params-nobinpt,

    nobiend type ctu_params-nobiend,

    end of tran_opts.

    call transaction 'F-02'

    using bdcdata

    options from tran_opts

    messages into bdc_messages

    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.