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

continuing a string in the next line

Former Member
0 Likes
1,188

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
Read only

Former Member
0 Likes
1,123

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.

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

6 REPLIES 6
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,123

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

Read only

0 Likes
1,123

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

Read only

Former Member
0 Likes
1,124

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.

Read only

0 Likes
1,123

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

Read only

0 Likes
1,123

Rich,

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

Read only

0 Likes
1,123

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

Regards,

Rich Heilman