‎2006 Nov 21 8:00 AM
hi all:
I have got an error in my bdc program in processing sm35 ,but it didn't occur in transaction, my code is below:
data: l_opt TYPE ctu_params.
l_opt-dismode = CTUMODE.
l_opt-updmode = 'S'.
l_opt-nobinpt = 'X'.
batch input session
IF SESSION = 'X'.
CALL FUNCTION 'BDC_INSERT'
EXPORTING TCODE = TCODE
CTUPARAMS = l_opt
TABLES DYNPROTAB = BDCDATA.
IF SMALLLOG <> 'X'.
WRITE: / 'BDC_INSERT'(I03),
TCODE,
'returncode:'(I05),
SY-SUBRC,
'RECORD:',
SY-INDEX.
ENDIF.
call transaction using
ELSE.
call transaction using
REFRESH messtab.
CALL TRANSACTION TCODE USING BDCDATA
MODE CTUMODE
UPDATE CUPDATE
MESSAGES INTO MESSTAB.
CALL TRANSACTION tcode USING bdcdata
OPTIONS FROM l_opt
MESSAGES INTO messtab.
I got the error point . if l_opt-nobinpt = ' '. session mode and transaction mode are all error, but I can't find how to make session mode right.
I don't know how to show my picture ,sorry!
‎2006 Nov 21 8:33 AM
Hi Liang
Please check the reply in your other thread and close this thread to avoid confusion.
Kind Regards
Eswar
‎2006 Nov 21 8:33 AM
hi
good
you have not mentioned what kind of error you r getting while working with sm35 .Though you r using the BDCSession besically you use SM35 to run your sessions.i could not understand if you r using BDC Sessiion than why you have put this line in your code.
CALL TRANSACTION tcode USING bdcdata
OPTIONS FROM l_opt
MESSAGES INTO messtab.
go through this link who ll give you better idea about the BDC Session , go through this and use accordingly.
http://www.guidancetech.com/people/holland/sap/abap/zutbdcer.htm
thanks
mrutyun^