‎2008 Apr 10 2:58 PM
hi experts,
i had a interview question,
-> i am developing my bdc with 10 line items in my development server and in Onsite, it is showing only 5 line items. how come v adjust to get the same no, of line items in both the servers?
plz answer me...
‎2008 Apr 11 3:32 AM
Hi Sakthi Sri,
Have a look at this . Use additon OPTIONS FROM <ctu_params> to Call Transction statement by specifying defsize = 'X'. Then problem will be solved.
I hope that it helps you .
Regards,
Venkat.O
DATA:
w_params TYPE ctu_params,
i_msgcoll TYPE STANDARD TABLE OF bdcmsgcoll,
i_bdcdata TYPE STANDARD TABLE OF bdcdata.
"structure of ctu_params.
"----------------------
"dismode processing mode for call transaction using...
"updmode update mode for call transaction using...
"cattmode catt mode for call transaction using...
"defsize default screen size for call transaction using...
"racommit call transaction using... is not completed by commit
"nobinpt sy-binpt=space for call transaction using...
"nobiend sy-binpt=space after data end for call transaction using...
w_params-dismode = 'A'. "All screen mode
w_params-updmode = 'A'. "Asynchronous update
w_params-defsize = 'X'. "standard size
CALL TRANSACTION 'PA30' USING i_bdcdata MESSAGES INTO i_msgcoll OPTIONS FROM w_params .
‎2008 Apr 10 10:30 PM
Hi,
do this way ...
CALL TRANSACTION 'VA01' USING it_bdcdata
OPTIONS FROM OPT
MESSAGES INTO it_mesg.
opt of type ctu_params.
OPT-DISMODE = 'N'. "no screen mode
OPT-UPDMODE = 'S'. "synchronus update
OPT-NOBINPT = 'X'.
OPT-NOBIEND = 'X'.
OPT-DEFSIZE = 'X'. "Default size
Regards,
KK
‎2008 Apr 11 3:32 AM
Hi Sakthi Sri,
Have a look at this . Use additon OPTIONS FROM <ctu_params> to Call Transction statement by specifying defsize = 'X'. Then problem will be solved.
I hope that it helps you .
Regards,
Venkat.O
DATA:
w_params TYPE ctu_params,
i_msgcoll TYPE STANDARD TABLE OF bdcmsgcoll,
i_bdcdata TYPE STANDARD TABLE OF bdcdata.
"structure of ctu_params.
"----------------------
"dismode processing mode for call transaction using...
"updmode update mode for call transaction using...
"cattmode catt mode for call transaction using...
"defsize default screen size for call transaction using...
"racommit call transaction using... is not completed by commit
"nobinpt sy-binpt=space for call transaction using...
"nobiend sy-binpt=space after data end for call transaction using...
w_params-dismode = 'A'. "All screen mode
w_params-updmode = 'A'. "Asynchronous update
w_params-defsize = 'X'. "standard size
CALL TRANSACTION 'PA30' USING i_bdcdata MESSAGES INTO i_msgcoll OPTIONS FROM w_params .