cancel
Showing results for 
Search instead for 
Did you mean: 

Hypertext in sapscript

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member205763
Active Contributor
0 Kudos

real hypertext link?

Do u mean to say u want to navigate to the link when u click it?

Its not possible in sapscripts

Former Member
0 Kudos

thanks so it's not possible

andreas_mau
Participant
0 Kudos

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' ...

Former Member
0 Kudos

Hi Marc,

check the repy by sravanthi in this thread...

Former Member
0 Kudos

hi,

thanks but i already saw it and the link doesn't work, only the text is dislayed without shortcut.

regards

Former Member
0 Kudos

Adobe forms.