Application Development 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: 

continuing a string in the next line

Former Member
0 Kudos

How can a string be continued in the next line ... in the below function call for popup_title i have to give 'Enter Sold-to party's Postal code and Region'

CALL FUNCTION 'POPUP_GET_VALUES'

EXPORTING

  • NO_VALUE_CHECK = ' '

POPUP_TITLE = 'Enter Postal code and Region'

START_COLUMN = '5'

START_ROW = '5'

  • IMPORTING

  • RETURNCODE =

TABLES

FIELDS = IVALS

  • EXCEPTIONS

  • ERROR_IN_FIELDS = 1

  • OTHERS = 2

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

I appreciate your response

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Are you having a problem because of the apostrophe?

If so, do like this:

'Enter Sold-to party<b>''</b>s Postal code and Region'

Note the two single quotes in the title.

6 REPLIES 6

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Please try.....




<b>data: title_string type string.

title_string  = 'Enter Sold-to party<b>''</b>s Postal code and Region'.</b>



call function 'POPUP_GET_VALUES'
exporting
* NO_VALUE_CHECK = ' '
<b>popup_title = title_string</b> 
start_column = '5'
start_row = '5'
* IMPORTING
* RETURNCODE =
tables
fields = ivals
* EXCEPTIONS
* ERROR_IN_FIELDS = 1
* OTHERS = 2
.
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.


Regards,

Rich Heilman

0 Kudos

I see that the problem is because of 's in sold-to party's ... how can that be corrected

Former Member
0 Kudos

Are you having a problem because of the apostrophe?

If so, do like this:

'Enter Sold-to party<b>''</b>s Postal code and Region'

Note the two single quotes in the title.

0 Kudos

Or if you are on new releases, you can use the ` to wrap the literal, this is the one next to "1" on the keyboard.

data: title_string type string.

title_string = <b>`</b>Enter Sold-to party's Postal code and Region<b>`</b>.

Regards,

Rich Heilman

0 Kudos

Rich,

Thatz not working,but i have give two single quotes and its working now.Thanks anyway

0 Kudos

Right, newer releases allow you to use the ` It doesn't work in 46c

Regards,

Rich Heilman