380 pts.
 URL address greater than 255 characters. How to overcome that limit in ABAP
I have a button on my opening screen that calls a function that brings up a URL containing documentation. It worked great in testing until I tried to use a URL address that is longer than 255 characters. Is there a BAPI or method or something that will work with more than a 255 character string?

It is an ABAP program in version SAP ECC 6.0.



Software/Hardware used:
SAP ABAP
ASKED: June 16, 2010  8:00 PM
UPDATED: July 23, 2010  6:43 PM

Answer Wiki:
I found the answer to my own question. There is a demo program called SAPHTML_R3HTTP_DEMO. It uses Screen Painter and Menu painter so you have to remember to take care of those. The bread and butter is the following: FORM load_home_page. DATA: doc_url(1024). *(Build your address here.) CONCATENATE html_control->m_http_htmlviewer (build your address here.) 'wwwdata/SAPHTML_R3HTTP_DEMO' INTO doc_url. "#EC NOTEXT CALL METHOD html_control->show_url EXPORTING url = doc_url. ENDFORM. " LOAD_HOME_PAGE I copied SAPHTML_R3HTTP_DEMO as an INCLUDE in another program and called it with call screen 100.
Last Wiki Answer Submitted:  July 23, 2010  6:43 pm  by  SuperSapper   380 pts.
All Answer Wiki Contributors:  SuperSapper   380 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Your detail is a bit sketchy.

Not to sure of ABAP, but if there is a way to include a path in the string, then it may be possible to set the system path, and add more path info in the button code.

Done something similar in DOS batch file many years ago. Basically, you set a path string in a previous statement, and call the short path name in the button.

 4,625 pts.

 

The string is the path.
I provide a function code with the URL path(address) and the function does the rest except that the field the function code uses is only 255 characters which is the standard limit for all character strings in ABAP. I am looking for something outside standard ABAP that ABAP can call.

 380 pts.