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

Run time error CL_GUI_HTML_VIEWER during call transaction

Former Member
0 Likes
4,809

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

1 ACCEPTED SOLUTION
Read only

Former Member
3,826

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

4 REPLIES 4
Read only

Former Member
3,827

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.

Read only

0 Likes
3,826

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

Read only

0 Likes
3,826

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

Read only

0 Likes
3,826

Thanks for the hint Klaus. I close the thread now.

Regards,

Arief