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

CL_GUI_HTML_VIEWER class SAPEVENT GETDATA limit

Former Member
0 Likes
4,870

Hi Experts,

I am currently struggling b/w string and Char 2048 limit to launch a URL which is more than 2048char.


What i am doing is, i have embedded a web page in SAP Screen using CL_GUI_HTML_VIEWER method SHOW_URL which works fine as the length is less than 2048 char.

But from when i do a event handling and passing data from embedded web page to another program in SAP using SAPEVENT, the GETDATA parameter is limited with 2048 char.

Is there any way to handle more than 2048 char on SAPEVENT ?

Regards,

Nik

Hi Experts,

I am currently struggling b/w string and Char 2048 limit to launch a URL which is more than 2048char.


What i am doing is, i have embedded a web page in SAP Screen using CL_GUI_HTML_VIEWER method SHOW_URL which works fine as the length is less than 2048 char.

But from when i do a event handling and passing data from embedded web page to another program in SAP using SAPEVENT, the GETDATA parameter is limited with 2048 char.

Is there any way to handle more than 2048 char on SAPEVENT ?

Regards,

Nik

13 REPLIES 13
Read only

rosenberg_eitan
Active Contributor
0 Likes
4,604

Hi,

What are you trying to do ?

Are you trying to call a transaction ?

Regards.

Read only

0 Likes
4,604

Hi Eitan,

Yes. I want to launch SAP Standard transactions IW38.

I have created a Z Transaction (program with screen) which embeds my webpage. It all works fine.

Now from this ZTransaction (from my webpage), i am selecting orders and using the SAPEVENT in CL_GUI_HTML_VIEWER class, i am am getting data in GETDATA parameter which i have to pass it to my next step to launch  transaction IW38 in SAP.

I am able to launch this transaction using SAPEVENT easily, but the problem is GETDATA is limited to 2048 char.

Orders i am selecting in webpage are more than 1000 (i.e. more than 5000 char) and GETDATA parameter truncates my data.


Appreciate if anyone can help me with some other way to do the same.


Regards,

Nik

Read only

0 Likes
4,604

Hi,

"Orders i am selecting in webpage are more than 1000"

You mean that the web page contain more a 1000 numbers ? and you want to send those as

parameters to IW38 ?

Regards.

Read only

0 Likes
4,604

Thats ture.

I am passing 1000 orders (i.e. 1000* 8 char = 8000+Char) to multiple selection of Order Number field. I have no issue passing the order numbers to IW38, its just i only get few hundreds because by order list get truncated in GETDATA.

Regards,

Nik

Read only

0 Likes
4,604

Hi,

I did a small test with program SAPHTML_LONGTEXT_DEMO .

Create a large numbers of "Orders" using excel .

Copy those to text field in the html .

press submit.

Check the value in field postdata (it is a table)

Up to number 100001986

Can you post a picture of the html ?

Where the work order number comming from external site ?

Can this site expose a web service ?

Honestly I do not like this design

Regards.

Read only

0 Likes
4,604

Hi,

Have you succeeded to push a large number of orders to IE38 .

Regards.

Read only

0 Likes
4,604

Hi Eitan,

I agree we can handle that i table but i have this data in a string

the SAP Event in this Webpage is like

SAPEVENT:SHOW_FRAMESET?tcode=IW38&param={orders}

{orders} contains all the orders and called in 1 parameter param.

Read only

0 Likes
4,604

Hi,

In the past I had similar task I ask the site people to generate dynamic xml and store it on the server .

The name of the file was a link in the web page .

I used the navigate_complete event of cl_gui_html_viewer .

In navigate_complete I use cl_http_client to get the xml and cl_ixml to parse the data .

So the data was well formed and no problems with size.

Regards.

Read only

0 Likes
4,604

Try to use cl_http_client to get the whole page and parse it.

I did not try this .

Regards.


Read only

0 Likes
4,604

Thanks Eitan,

I will try ur suggestion.

Need to co-ordinate with the web development team.

Regards,

Nik..

Read only

0 Likes
4,604

You are welcome .

Can you post the html file .

I think you need to rename it as txt .

Read only

0 Likes
4,604

Sorry, Eitan.

I dont have the html file as it is a Map display page which displays the SAP Orders in Map using some js and other languages like python etc (which i am unaware) and user selects multiple orders on the Map. Selected Orders are passed to SAP.

I didn't try More than few hundred orders to SAP screen, i guess it should be fine with SUBMIT.

Regards,

Nik

Read only

0 Likes
4,604

Good luck .

I have the feeling that you will need a lot of this...

Regards.