how can u write in single program call transaction and
session method logic?
if u write logic in call transaction ,is there any errors ?
how can u see in session ?

Answer Posted / raghava reddy

SITUATION..........IF U HANDLE THE ERRORS IN CALL
TRANSACTION WE HAVE SEVERAL WAYS

1)USING FORMAT_MESSAGE
2)WHATEVER U GET THE ERRORS IN CALL TRANSACTION,SIMPLY PASS
THOSE ERRORS TO SESSION METHOD

................THIS IS THE SITUATION OF BOTH ARE USING IN
THE SAME PROGRAM...OK

WRITE THE LOGIC FOR CALL TRANSACTION
-------------
---------
---------
----------
CALL THE CALL TRANSACTION

IF SY-SUBRE < > 0.

......MEANS THE ABOVE STAT NOT EXECUTED
SUCCESSFULLY....MEANS WE GET THE ERRORS IN CALL TRANSACTION
METHOD...OK

SIMPLY PASS THOSE ERRORS TO SESSION METHOD


LIKE THIS...............

.............

CALL THE TRANSACTION BY USING

BDE_INSERT
......PROVIDE THE INPUT...........OK

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is use of transparent table in abap? How it is different from pool tables?

623


while implementing badi what are the tables u find??

3614


Why do we use FOR ALL ENTRIES and what is the pre-requisite

915


why to create a custom BAPI if the BAPI already exists? y to find BAPI again? frankly even i dint undstnd tne question properly. if any one come across this q please do anser me.

1717


What are the domains and data elements?

912






foreign key enforcement?

1618


What is the advantage of structures?

574


In ALV reporting when u execute your report which event gets triggered.

1626


Does sap handle multiple languages?

548


How to write a code in tab control? : abap bdc

620


What do you do when the system crashes in the middle of a BDC batch session?

691


What is “call mode”?

572


How to debug rfc function module?

684


How can the standard tables of sap be modified?

625


What is the use of lock objects?

564