2014 Aug 08 8:05 AM
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
2014 Aug 10 8:52 AM
Hi,
What are you trying to do ?
Are you trying to call a transaction ?
Regards.
2014 Aug 11 4:42 AM
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
2014 Aug 11 5:10 AM
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.
2014 Aug 11 5:34 AM
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
2014 Aug 11 5:45 AM
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.
2014 Aug 11 5:49 AM
Hi,
Have you succeeded to push a large number of orders to IE38 .
Regards.
2014 Aug 11 5:55 AM
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¶m={orders}
{orders} contains all the orders and called in 1 parameter param.
2014 Aug 11 6:02 AM
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.
2014 Aug 11 6:04 AM
Try to use cl_http_client to get the whole page and parse it.
I did not try this .
Regards.
2014 Aug 11 6:07 AM
Thanks Eitan,
I will try ur suggestion.
Need to co-ordinate with the web development team.
Regards,
Nik..
2014 Aug 11 6:13 AM
You are welcome .
Can you post the html file .
I think you need to rename it as txt .
2014 Aug 11 6:22 AM
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
2014 Aug 11 6:44 AM
Good luck .
I have the feeling that you will need a lot of this...
Regards.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |