URL address greater than 255 characters. How to overcome that limit in ABAP

380 pts.
Tags:
ABAP-program
BAPI
SAP development
SAP ECC 6.0
URL
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Chippy088
    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 pointsBadges:
    report
  • SuperSapper
    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 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following