2011 Oct 11 4:21 PM
Dear Gurus,
I write a common BDC program using 'CALL TRANSACTION..' command for tcode TRIP_EWT (Travel Mgmt module) :
CALL TRANSACTION 'TRIP_EWT' USING bdc_tab MODE 'N' UPDATE 'S'
MESSAGES INTO messtab.
When I run it online, everything is perfect : the program runs OK, and the data is updated successfully. But we want to schedule and run this program in background, and that's where the problem begins. When we run the program in background as a job, we get a run time error. The error dump suggests me to use these keywords :
"RAISE_EXCEPTION" " "
"CL_GUI_HTML_VIEWER============CP" or "CL_GUI_HTML_VIEWER============CM002"
"CONSTRUCTOR"
or
"CL_GUI_HTML_VIEWER============CP" "CNTL_ERROR"
Can anyone suggest me what to do ? Thanks.
Regards,
Arief
2011 Oct 11 4:36 PM
Hi,
Unfortunately, what you are trying to achieve is just not possible since no gui control (such as HTML viewer) can be used in background...
Kr,
m.
Dear Gurus,
I write a common BDC program using 'CALL TRANSACTION..' command for tcode TRIP_EWT (Travel Mgmt module) :
CALL TRANSACTION 'TRIP_EWT' USING bdc_tab MODE 'N' UPDATE 'S'
MESSAGES INTO messtab.
When I run it online, everything is perfect : the program runs OK, and the data is updated successfully. But we want to schedule and run this program in background, and that's where the problem begins. When we run the program in background as a job, we get a run time error. The error dump suggests me to use these keywords :
"RAISE_EXCEPTION" " "
"CL_GUI_HTML_VIEWER============CP" or "CL_GUI_HTML_VIEWER============CM002"
"CONSTRUCTOR"
or
"CL_GUI_HTML_VIEWER============CP" "CNTL_ERROR"
Can anyone suggest me what to do ? Thanks.
Regards,
Arief
2011 Oct 11 4:36 PM
Hi,
Unfortunately, what you are trying to achieve is just not possible since no gui control (such as HTML viewer) can be used in background...
Kr,
m.
2011 Oct 12 2:41 AM
Thank you for your confirmation M.
From your experience, do you know any tcode which does the same thing as TRIP_EWT but does not use any sophisticated screen control ?
Regards,
Arief
Edited by: Arief Akbar on Oct 12, 2011 4:07 AM
2011 Oct 12 7:08 AM
Hi,
there are many BAPIs in SE37, search for BAPI_TRIP_* in SE37. Further there are many function groups with prefix FITP, FITV and HR which are including fm's with term TRIP.
Regards,
Klaus
2011 Oct 12 2:18 PM
Thanks for the hint Klaus. I close the thread now.
Regards,
Arief