Application Development 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: 

CALL TRANSACTION

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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.

0 Kudos

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

former_member223537
Active Contributor
0 Kudos

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>