09-29-2007 3:19 AM
Hi all,
I have an issue in a BDC. The scenario is I'm recording a "Y" transaction. This "Y" transaction calls a standard transaction "CV01" and in this transaction based on the inputs given in the "Y" transaction the data gets populated automatically.
When I recorded this "Y" transaction it worked perfectly. I removed the "Default Size" checkbox and checked the "Cont. after commit" checkbox (RACOMMIT) when i recorded this "Y" transaction in SHDB.
Now, when I converted this into program the "Y" transaction is coming perfectly but the standard transaction is not getting called and the BDC ends abruptly. What could be the reason?? I have not used any additions in call transaction statement. My call transaction statement is like this:- call transaction 'YXXXX' using bdcdata mode 'A' update 'S'.
Kindly throw some light into this issue. Any inputs would be of great help!!!!!!!!
Thanks in Advance,
Ramky.G
09-29-2007 8:28 AM
Try it by setting the same options as you did when you were recording the transaction by using this addition
CALL TRASNACTION 'YABC' USING BDCDATA OPTIONS FROM CTU_PARAMS
you can read about it in the documentation of CALL TRANSACTION.
09-29-2007 8:28 AM
Try it by setting the same options as you did when you were recording the transaction by using this addition
CALL TRASNACTION 'YABC' USING BDCDATA OPTIONS FROM CTU_PARAMS
you can read about it in the documentation of CALL TRANSACTION.
10-03-2007 6:20 AM
Hi,
I tried using ctu_params but still its not working......Is there any other way to solve this issue??
Thanks in Advance,
Ramky.G
10-03-2007 6:24 AM
DATA class_name TYPE c LENGTH 30 VALUE 'CL_SPFLI_PERSISTENT'.
DATA: bdcdata_wa TYPE bdcdata,
bdcdata_tab TYPE TABLE OF bdcdata,
itab type table of bdcmsgcoll.
DATA opt TYPE ctu_params.
CLEAR bdcdata_wa.
bdcdata_wa-program = 'SAPLSEOD'.
bdcdata_wa-dynpro = '1000'.
bdcdata_wa-dynbegin = 'X'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_CURSOR'.
bdcdata_wa-fval = 'SEOCLASS-CLSNAME'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'SEOCLASS-CLSNAME'.
bdcdata_wa-fval = class_name.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_OKCODE'.
bdcdata_wa-fval = '=CIDI'.
APPEND bdcdata_wa TO bdcdata_tab.
opt-dismode = 'E'.
opt-defsize = 'X'.
CALL TRANSACTION 'SE24' USING bdcdata_tab OPTIONS FROM opt
MESSAGES INTO itab.
<b>Collect the error messages in ITAB in check what is the issue.</b>