‎2006 Nov 29 1:16 PM
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
‎2006 Nov 29 1:20 PM
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
‎2006 Nov 29 1:32 PM
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
‎2006 Nov 29 1:46 PM
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
‎2006 Nov 29 1:21 PM
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.
‎2006 Nov 29 1:25 PM
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
‎2006 Nov 29 1:28 PM
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
‎2006 Nov 29 1:59 PM
Sonal,
Try to make use of BDCLM table where the session log will be stored you can take errors for session from this table.
‎2006 Nov 29 2:02 PM
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.