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

Double quotes issue while calling save_text

Former Member
0 Likes
1,122

we have one issue while calling save_text in our PRD system,

text content is [hello world] without [], then after call save_text,

text becomes ["hello worlk"] with double quotes ""

But big problem is no "" in QAS system~~

why carry "" in PRD and ok in QAS~~

FORM f01_save_text  USING    p_i_ebeln

                              p_f01_text.

   DATA: it_tlines  LIKE tline OCCURS  0 WITH HEADER LINE.

   DATA : x_header TYPE thead.

   x_header-tdobject = 'EKKO'.

   x_header-tdname   = p_i_ebeln.

   x_header-tdid     = 'F01'.

   x_header-tdspras  = sy-langu.

   it_tlines-tdformat = '*'.

   it_tlines-tdline = p_f01_text.

   APPEND it_tlines.

   CLEAR  it_tlines.

   CALL FUNCTION 'SAVE_TEXT'

     EXPORTING

       client                = sy-mandt

       header                = x_header

*       INSERT                = ' '

       savemode_direct       = 'X'

*       OWNER_SPECIFIED       = ' '

*       LOCAL_CAT             = ' '

*     IMPORTING

*       FUNCTION              =

*       NEWHEADER             =

     TABLES

       lines                 = it_tlines

*     EXCEPTIONS

*       ID                    = 1

*       LANGUAGE              = 2

*       NAME                  = 3

*       OBJECT                = 4

*       OTHERS                = 5

             .

ENDFORM.

8 REPLIES 8
Read only

Juwin
Active Contributor
0 Likes
1,071

Where are you seeing the double quotes? This code above is to save the data in database. How are retrieving this and viewing it?

Thanks,

Juwin

Read only

Former Member
0 Likes
1,071

we checked in PO header text. It will show extra double quotes

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,071

This is not a standard problem, so you should trace your own custom code. Probably, f01_save_text is called with p_f01_text filled already with extra quotes.

Read only

0 Likes
1,071

Our issue is no extra quotes in QAS and with it in PRD system, so I wanna know is this related with system settings, and which attribute will cause this.

Read only

matt
Active Contributor
0 Likes
1,071

In order to find out what system settings and attributes will cause this, you must do what Sandra says.

Problem analysis and resolution is your job. You can't hand it over to SCN members. In any case, we haven't got access to your system.

Read only

0 Likes
1,071

Thanks, I know this is our job, I wonder maybe someone happen this before and share with me~~

Read only

matt
Active Contributor
0 Likes
1,071

And sometimes you'll get a response indicating what analysis is required - not just "the answer", that you seem to be demanding. You need to do the analysis. If you get stuck, then post back, and explain what you've done and why you're stuck.

If you resolve the issue, post back with the solution.

Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
1,071

I would be even more concerned that "world" becomes "worlk".

It seems illogical any system setting would cause such effect (wouldn't every single text be affected? and why would anyone change this in QA only? how would you get any testing done then?), but your Basis admin should be able to clarify.

You were already asked to clarify where the text is coming from. That would seem like an obvious culprit to me too, not sure why you seem to be in denial about this... We have no access to your system, only the least relevant part of the code was posted (with totally unnecessary commented lines), so not sure what other response could be expected.