Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SO10 text in function module

former_member806481
Participant
0 Likes
2,212

Here is the line of code i have written

PR_ID = SENDER-INSTID.

SELECT SINGLE ERNAM,
ERDAT
FROM EBAN
INTO @DATA(LS_EBAN)
WHERE BANFN EQ @PR_ID.

IF not LS_EBAN is initial.
CALL FUNCTION 'ISR_GET_USER_DETAILS'
EXPORTING
ID_USER_ID = LS_EBAN-ERNAM
CHANGING
IS_USER_DATA = LT_USER_NAME
EXCEPTIONS
USER_NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
ENDIF.

CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = GC_ID
LANGUAGE = SY-LANGU
NAME = GC_DME_REFUS
OBJECT = GC_OBJ
TABLES
LINES = GT_LINES
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7

OTHERS = 8.

And actually i am not getting any sy-subrc errors in this code.

However when i am displaying this text i am not getting the variables updated.

Below is the text i have made in so10

1 ACCEPTED SOLUTION
Read only

former_member806481
Participant
0 Likes
2,139

thank you for your answers i was able to search more efficiently i should say.

FOR ANSWER i refered the below mentioned blog

https://abapinho.com/en/2012/04/mete-variaveis-dentro-de-textos-standard/

5 REPLIES 5
Read only

FredericGirod
Active Contributor
0 Likes
2,139

Why do you want the system update the variable ? did you see any part of your code doing this task ?

Read only

Sandra_Rossi
Active Contributor
0 Likes
2,139

If you use an ITF text without framework (SAPScript, Smart Form, etc.) then you must use the SAPScript API to replace the symbols. Look at help in SAP Library or forum to see how to replace the symbols.

(EDIT: the link given by Frederic provides an example of the SAPScript API)

Read only

former_member806481
Participant
0 Likes
2,139

thank you for your answers i was able to search more efficiently i should say.

FOR ANSWER i refered the below mentioned blog

https://abapinho.com/en/2012/04/mete-variaveis-dentro-de-textos-standard/

Read only

former_member806481
Participant
0 Likes
2,140

thank you for your answers i was able to search more efficiently i should say.

FOR ANSWER i refered the below mentioned blog

https://abapinho.com/en/2012/04/mete-variaveis-dentro-de-textos-standard/