Application Development and Automation 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: 
Read only

BDC session method

Former Member
0 Likes
831

Hi,

In BDC session method can we use <u>messtab</u> for getting the messages in the transaction as in BDC call transaction method.

In my case i want to do something like below through <u>BDC session method</u>..

CALL TRANSACTION 'O3A1' USING bdctab

MODE 'E'

UPDATE 'L'

MESSAGES INTO messtab .

ENDLOOP.

PERFORM MESSAGE1.

PERFORM NEXT_TRANS.

FORM MESSAGE1.

LOOP AT messtab.

SELECT SINGLE * FROM T100 WHERE SPRSL = MESSTAB-MSGSPRA

AND ARBGB = MESSTAB-MSGID

AND MSGNR = MESSTAB-MSGNR.

<b><u>var_msg = messtab-msgv1</u></b>.

can anybody help me applying similar logic through session method.

it is very urgent requirement so ur valuable support will grant to maximum points.

Thanks''

sonal

8 REPLIES 8
Read only

Former Member
0 Likes
789

BDC session method will not give you the messages back as the BDC is not being executed immediately. It creates a session which you can see in SM35 and see the messages there.

So you cannot read from the program where the BDC is being triggered.

Regards,

Ravi

note - Please mark all the helpful answers

Read only

0 Likes
789

Hi

I want to use one variable from the messtab in next transaction as a important field .

for example in O3A1 transaction ,exchange no is created which i want to use in next transaction O3A2.

Please suggest a way to solve this problem.

I need the answer asap.

answering fulfilling my requirement will be awarded.

Thanks..

sonal

Read only

0 Likes
789

Sonal,

In that case you will have restrict yourself to the CALL TRANSACTION method which will give you immediate results and you can do your further transactions.

BDC session method will not execute the trasaction immediately and it's not meant to do that.

Regards,

Ravi

Read only

Former Member
0 Likes
789

Hi

When you create the BDC Session MEthod a session is created in SM35.

Why do you need to use messtab.

The error log will be available in SM35 itself after you process the session.

Read only

Former Member
0 Likes
789

Session method will not return the messages. when you run the BDC it create the session , you have to process the session in SM35 and see the log.

Regards

Vijay

Read only

Former Member
0 Likes
789

Hi,

The error log is made in SM35. more over a session cannot return messages coz it is not an online process like call transaction. it has be processed using sm35 and the logs are made in sm35.

santhosh

Read only

Former Member
0 Likes
789

Sonal,

Try to make use of BDCLM table where the session log will be stored you can take errors for session from this table.

Read only

Former Member
0 Likes
789

if you want to execute the sesion immediately,use submit command.Submit your queue ID(exp parameter of open_group) to program RSBDCBTC in the report. and and take error log from BDCLM table.