2016 Jul 06 8:49 AM
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.
2016 Jul 06 2:18 PM
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
2016 Jul 07 3:16 AM
we checked in PO header text. It will show extra double quotes
2016 Jul 07 8:41 AM
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.
2016 Jul 07 9:34 AM
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.
2016 Jul 07 10:54 AM
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.
2016 Jul 08 3:53 AM
Thanks, I know this is our job, I wonder maybe someone happen this before and share with me~~
2016 Jul 08 6:28 AM
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.
2016 Jul 08 6:14 PM
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.