FM CREATE_TEXT
Hi,
I'm trying to create a new text for an existing production order using FM:
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
fid = 'KOPF'
flanguage = sy-langu
fname = l_name "mandt+Prod.order
fobject = 'AUFK'
TABLES
flines = i_line[] "Message text info
EXCEPTIONS
no_init = 1
no_save = 2
OTHERS = 3.
But when I go to see it with transaction CO03 ... this created text do not appear !!!!!
Table STXH has my new register .... can someone help me?
I see the problem now, it shows in STXH, but not in CO02. The problem is that in this transaction, it checks an indicator in AUFK called LTEXT. This needs to be set in order to show the text in the text container in CO02. Normally, I wouldn't suggest a direct table update, but in this case it may be ok to do so. Move SY-LANGU to this field and update, then the text should show fine in the CO02 transaction. See the sample program, this works in my system. I can see the text in the container in CO02.
report zrich_0001.
data: xaufk type aufk.
data: header type thead.
data: ilines type table of tline with header line.
parameters: p_aufnr type aufk-aufnr.
header-tdobject = 'AUFK'.
concatenate sy-mandt p_aufnr into header-tdname.
condense header-tdname no-gaps.
header-tdid = 'KOPF'.
header-tdspras = sy-langu.
ilines-tdline = 'This is a test 1'.
append ilines.
ilines-tdline = 'This is a test 2'.
append ilines.
call function 'SAVE_TEXT'
exporting
client = sy-mandt
header = header
savemode_direct = 'X'
tables
lines = ilines
exceptions
id = 1
language = 2
name = 3
object = 4
others = 5
<b>
* Direct Database Update.
if sy-subrc = 0.
select single * into xaufk from aufk
where aufnr = p_aufnr.
check sy-subrc = 0.
xaufk-ltext = sy-langu.
modify aufk from xaufk.
endif.</b>
Regards,
Rich Heilman
Similar Messages
-
How to keep long text in bdc using create_text function module
hi,
ihave bdc in that i having field like long text i have to upload the long text using create_text function module how to use and where to use in bdc. wat parameters i have to pass exactly.
i need some other information like how can i pass this to BDC i got like this .
can u plz check it.
its a length of 255 chaters
perform bdc_field using 'RSTXT-TXLINE(02)'
'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'
& 'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'.
perform bdc_field using 'RSTXT-TXLINE(03)'
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
& 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'.
perform bdc_field using 'RSTXT-TXLINE(04)'
'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
& 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'.
perform bdc_field using 'RSTXT-TXLINE(05)'
'hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh'
& 'hhhhhhhhhhhhhhhhhhhhhh'.Hi,
Use this coding where do u want,
data: begin of textline occurs 10.
include structure tline.
data: end of textline.
start-of-selection.
textline-tdformat = '*'.
textline-tdline = 'TESTING FOR CREATION OF TEXT'.
append textline.
clear textline.
call function 'CREATE_TEXT'
exporting
fid = '0013'
flanguage = sy-langu
fname = '0095000501'
fobject = 'VBBK'
tables
flines = textline
exceptions
no_init = 01
no_save = 02.
end-of-selection. -
Using CREATE_TEXT function module in LSMW for Tcode: FD32
Hi Friends,
I have to upload texts to the transaction FD32 via LSMW by using
CREATE_TEXT function module. If anyone has worked on this before
then please clarify the following doutb.
In which event (Begin of record, End of transaction etc) I have to write the code?
Any sample code snippet for this requiremen would be helpful to me.
Thanks in Advance
MurthyHi,
Thanks for your responses.
I had found the solution on my own.
Thanks
Murthy -
Re: using create_text and read_text should save text in database table
Hi,
what are the parameters i need to pass for create_text and read_text in dialog programming, i have a 4 i/o fields where in each i need to enter 30 email ids , after entering email ids i need to save to the database, what is the logic
fields: SNO---serial number
mail1------> need to enter less than r more than 30 email address
mail2----> need to enter less than r more than 30 email address
mail3-----> need to enter less than or more than 30 email address
when i click create insert into database and from database it should b displayed on the table control. How to do using create_text ( using text objects function modules)If you are updating a custom Z Table, then look at redesigning it:
Fields:
<b>Client</b>
<b>SNO</b>
<b>MAIL ID ( 1, 2, 3)</b> etc
<b>COUNTER</b> (001 to 999)
These fields make up the key.
Email Address
This way you can store many email addresses.
It is not a good idea to store data in a free form text field. -
Problem in Getting Long Text After uploading LT using CREATE_TEXT in CORS
Hi Gurus,
i am uploading long text for Reason for cancellation in CORS Transaction through CREATE_TEXT.
after uploading this text by using this FM CREATE_TEXT i am seeing the long text what ever i uploaded through CREATE_TEXT , i am unable to see first 40 characters of that long text.
if anybody faced this problem earlier please guide me to resolve this problem.
Thanks & Regards
Venkata Ramesh JHi,
can you please check this link
Replacing the text created in create_text
Thanks
durga.K -
Problem in CREATE_TEXT FM
Hi ,
In our RFC to place an order we are using the FM CREATE_TEXT to save header text in salesorder . The text that needs to be saved is entered through the front end ( java ). Now the issue we are facing is that , if in the front end they use a new line character while they enter the header text ( i.e. , if the user press enter ) , the same character is being stored in SAP as ##. We don't want this character to be stored as it is creating some errors while transferring the sales order data to some other system other than SAP , through IDOC's .
Assumption is that ## is a command for page break (probably done when entered the text in the front end and translated into this command when posting the text in SAP).
Is there anyway that we can avoid this special character being stored in SAP ?
Any help in this regard would be highly appreciated
Regards,
BeenaHi Beena,
While passing the text to the FM CREATE_TEXT, why dont you search and replace '##' with a single blank space?
Or, you dont have control over the text passed to the FM?
Understood that you dont find them while creating, then use FMs READ_TEXT modify the text, so that these are removed('##') and again use FM SAVE_TEXT, to save the text.
Regards,
Raj
Message was edited by: Rajasekhar Dinavahi -
Prblm in create_text or save_text
Hi Folks,
Iam uploading long text using a call transaction program.
case1: selection screen
version : N0
fiscal year : 2007
in coding tried both FM (save_text or create_text).
result if check the tcode 'kp06' the text is uploaede successfully wrking with any FM.
case2 selection screen
version : 001
fiscal year : 2007
inthis case i used same data
result if i check the t code 'kp06' except long text other fileds uploaded successfully.
in the debugging the FM is working properly but the text is not visible in KP06.
please tell me the problem is with FM? or the selection screen data?
Thanks
niruHi Beena,
While passing the text to the FM CREATE_TEXT, why dont you search and replace '##' with a single blank space?
Or, you dont have control over the text passed to the FM?
Understood that you dont find them while creating, then use FMs READ_TEXT modify the text, so that these are removed('##') and again use FM SAVE_TEXT, to save the text.
Regards,
Raj
Message was edited by: Rajasekhar Dinavahi -
Differences between the FMs of SAVE_TEXT and CREATE_TEXT.
Hi Experts,
Let me know that, the differences between the FMs of SAVE_TEXT and CREATE_TEXT.
Like, Wht Wht scenarioes demand each FM?
Which is best one, if both perform same functionality.
replies appreciated.
thanqCREATE_TEXT is used to create a new Text. It uses the SAVE_TEXT inside it.
SAVE_TEXT is used to update the existing text.
Regards,
Naimesh Patel -
Problem with Create_Text Function module
Hi All,
I am using the function module Create_Text to create the text for Condition types in ME31K. Its working fine and creating text when i go to debug mode. Its updating into transactions(ME31K). But if i run the program in back ground or foregorund with out debuging modes its not creating text. Please do let me know any reasonsHi,
Have you used FM COMMIT_TEXT after CREATE_TEXT ? :
CALL FUNCTION 'COMMIT_TEXT'
EXPORTING
OBJECT = 'PMS'
NAME = W_TDNAME
ID = 'LTXT'
LANGUAGE = 'E'.
Try adding the 'COMMIT_TEXT' and check.
Thanks & Regards,
Faheem. -
Use CREATE_TEXT on VA01 user exits
Hi,
I need to write item text using FM CREATE_TEXT in VA01 user exits. The FM required VBELN and I don't have when creating order.
How can I create item text in VA01 user exits ?
Thanks,
QuincyHi,
i have a similar requirement where i need to copy custom populated fields of vbap table into item->text->item notes tab.
i tried with both create_text and save_text. but i couldn't see the item in the item->texts->item notes.
here is my code:
CONCATENATE vbap-zzrelid vbap-zzsorg2 vbap-zzsorg3
vbap-zzsorg4 vbap-zzsorg5 vbap-zzsorg6
vbap-zzsorg7 vbap-zzsorg8 vbap-zzsorg9
vbap-zzsorg10 INTO gt_textname.
gt_textobject-tdid = c_0002.
gt_textobject-tdname = gt_textname.
gt_textobject-tdobject = c_vbbp.
gt_textobject-tdspras = sy-langu.
APPEND gt_textobject.
CONCATENATE 'relationship Owner:' vbap-zzrelid INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 2 :' vbap-zzsorg2 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 3 :' vbap-zzsorg3 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 4 :' vbap-zzsorg4 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 5 :' vbap-zzsorg5 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 6 :' vbap-zzsorg6 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 7 :' vbap-zzsorg7 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 8 :' vbap-zzsorg8 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 9 :' vbap-zzsorg9 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 10 :' vbap-zzsorg10 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
header = gt_textobject
savemode_direct = 'X'
TABLES
lines = gt_text
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
kindly resolve the problem with the above code.
Thanks,
Preethi. -
Problem when Saving Texts using Function Module CREATE_TEXT
Hi All,
I am using Function Module CREATE_TEXT to save text in transaction XK02.
But the first character of few lines disappears in one of (Ruled) editor while that character appears in a new line in another editor.
In debug mode, I found that value of TDFORMAT is '=' in the line in which first character disappears.
while in rest its value is '*'.
I tried hardcoding the value FFORMAT in function module CREATE_TEXT with '*'. Please suggest me solution to this.
Regards,
NibhaHI.
Refer this link.
http://www. ****************/Tutorials/ABAP/MaterialLongText/info.htm
Regards.
Jay -
FM: CREATE_TEXT Parameters
Hi Experts,
I tried to create a text directly to the fm CREATE_TEXT. FROM Box A with MySap version, the value of TDNAME = 41712345 (Delivery Doc Number). But in lower version like 4.6, the valie is 00417345000000 (Delivery Doc+REference ID). I just don't know why it is required and what is the Reference ID for? It seems that CREATE_TEXT has differennt parameter requirement in each version..
Need clarification on this...<removed_by_moderator>
Thanks!
Edited by: Julius Bussche on Jun 24, 2008 7:18 PMthank you guys:D
The object id is correct.
create_text
obj id: z004
object name : 0041712345
objkey: vbbk
the values in create_text comes from SWE_EVENT_CREATE.. from event_container-value move to TEXTL_GN table for text line item, .the line number is blank. and it passes # i tried TEXTL_GN-RFPOS='1' or '00001' since it has dta type: int(5). still it doesn't create text. -
How to delete header text, I know create_text, read_text?
Hi,
I know READ_TEXT and CREATE_TEXT FMs.
Now, am working with iodc_input_orders.
In my scenario....i know that, there is header text is populated.
if the slaes org = 1234, then i need to delete/remove this header text. ( i can not put the below IF condition " IF XVBAK-VKORG = '1234'........then delete ENDIF"
let me know that, How to delete the header text, i mean is there any FM?
thanqthanq
i know the text segments(DXE1EDKT2, E1EDKT2) r available in exit zxvedu11.......but, for some reason i can not use it!!
yes, already i hv seen the exits of zxvedu04, zxvedu05 here the text segments r not available!!
so, let me know that, in which exit these text segments r available?
thanq -
Sales Text of material master using create_text
Hi All,
I need to update Sales Text field for existing materials in material master.
(mm02->sales Text view>sales text)
This text will be of 40-50 char length.
Now if i use CREATE_TEXT with following paramters, no text is getting updated in the material master.
Import Paramters:
FID: 0001
FLANGUAGE: EN
FNAME: <material no><sales org><Dist channel>
FOBJECT: MVKE
SAVE-DIRECT : X
FFORMAT: *
Tables:
FLINES: <Sales text>
After execution of this FM, no error message is popped up.
Is it the right way to update the sales Text or any changes need to be done in defining paramters in Function module?
Kindly Guide me.....
Regards
PavanMArtin,
Can you inform me what all paramters to be passed in SAVE-TEXT module?
Regards
Pavan -
Regarding the FM 'CREATE_TEXT' to writer text in the header
Hi all,
I am writing the text in header by using the FM 'CREATE_TEXT', in this we will pass the tables as it_tline,
this it_tline is declared as
data : it_tline TYPE STANDARD TABLE OF tline WITH HEADER LINE.
this tline table is having 2 fileds,
TDFORMAT
TDLINE
is that first field will repressent the column and sendcodn will be the test for that column..
Please correct me if i m wrong...
if the it_tline contains the data like this means
TDFORMAT TDLINE
01 SVB34334334,suresh
02 SVB25876666,Ch
then how it will write in the header.. please clarify me..
i gave the model how i m calling the FM in the below..
for writing the text into the invoice header
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
FID = c_z122
FLANGUAGE = sy-langu
FNAME = gv_param
FOBJECT = c_vbbk
SAVE_DIRECT = 'X'
FFORMAT = '*'
TABLES
FLINES = it_tline
EXCEPTIONS
NO_INIT = 1
NO_SAVE = 2
OTHERS = 3 .
IF SY-SUBRC <> 0.
MESSAGE I111 WITH text-005.
ENDIF.
Thanks,
SureshPlease look at FM SCMS_DOWNLOAD .. to know how this is
used ...
If U can download it onto your desktop .. U'll get the file -
How can i modify the text created by create_text FM
Hi Gurus,
How can i change a long text created using create_text FM?
I couldn find any FM to modify the text!
Thanks.Hello Umit,
Sorry...I mislead you. the function to edit the content of a long text is SAVE_TEXT and not RENAME_TEXT.
In SAVE_TEXT FM, fill this information.
In HEADER parameter, enter your TDOBJECT, TDNAME, TDID, TDSPRAS and TDTITLE information.
In SAVEMODE_DIRECT parameter put an X value
In LINES table, put your new content.
Execute it.
Confirm it after, using READ_TEXT function.
Regards,
Bruno
Maybe you are looking for
-
How do I back up my external hard drive?
I use aperture and quickly ran out of internal hard drive space so I migrated everything to a larger external hard drive. Now I want to backup the external hard drive to a second external hard drive. But clicking and draging my Maxtor 250G external d
-
Help - the spinning wheel is going to kill me.
I am a powerBook G4 user with OS X3.9. It took forever just to get to this posting because anytime I am in my Safari Browser (1.3.2) the spinning wheel comes up on every click, anytime i try to scroll the page, any time i try to fill in an empty fiel
-
Problem with Mail losing passwords
I have owned a MacBook Pro for a year now and mail rarely works correctly. I have 4 email accounts and they continue to lose the passwords, and will not accept the passwords even though they are correct. Every once in a while they all work, but mos
-
SCEP last quick scan end times not showing up in console
Hello My company is using SCEP to protect our environment with SCCM 2012 R2. We have schedule quick scans to run at 2am on Sundays, but when we look at any device collection and add the column "Endpoint Protection Last Quick Scan End Time", no time a
-
I'm trying to import IDOC from SAP, but i'm getting "login failed (authorization insufficient)" error. But i'm able to login into SAP GUI using the same login info. What authorizations/roles i should have on SAP and XI system for IDOC transfers? Than