on 06-28-2010 2:09 PM
Hi experts,
I would like to know if it's possible to display a real hypertext link into a sapscript.
If it's possible, how can i do it?
Thanks
real hypertext link?
Do u mean to say u want to navigate to the link when u click it?
Its not possible in sapscripts
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, I may want to differ. It is posssible with some effort.
Firstly one should note that SAPscript itself is an SAp propriotory hypertext language itself. Als it takes to make this happen is conversion. There numerous function groups and clases that process conversions form SAPscript to HTML, XML, PDF. All you need to do is to pick the right pieces to come up with what you need.
Decide if you need the hypertext you want to convert into SAPscript keep its formating. This will make it trickier as you have to parse the HTML to create the corresponding SAPscript or ITF format.
1.) Load HTML
function htmlcntl_load_html_document.
*"----
""Lokale Schnittstelle:
*" IMPORTING
*" REFERENCE(H_CONTROL) TYPE CNTL_HANDLE
*" REFERENCE(DOCUMENT_ID) TYPE C
*" REFERENCE(DOCUMENT_TEXTPOOL) LIKE SY-REPID OPTIONAL
*" REFERENCE(DOCUMENT_URL) TYPE C OPTIONAL
*" REFERENCE(IS_GLOBAL) TYPE C DEFAULT ' '
*" EXPORTING
*" REFERENCE(ASSIGNED_URL) TYPE C
*" CHANGING
*" VALUE(MERGE_TABLE) TYPE SWWW_T_MERGE_TABLE OPTIONAL
*" EXCEPTIONS
*" CNTL_SYSTEM_ERROR
*" CNTL_ERROR
*" DOCUMENT_NOT_FOUND
*" DP_INVALID_PARAMETER
*" DP_ERROR_PUT_TABLE
*" DP_ERROR_GENERAL
*" CONTROL_NOT_INITIALIZED
*"----
2. Parse HTML, check out function group CNHT and DSVAS_HTML
You need to write something lik eth einverse of FM DSVAS_HTML_SAPSCRIPT_INS
3. Create your SAPscript
CALL FUNCTION 'OPEN_FORM' ...
CALL FUNCTION 'WRITE_FORM_LINES' ...
CALL FUNCTION 'CLOSE_FORM' ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.