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: 

TEXTS IN STXH.

Former Member
0 Kudos
436

HOW DO V USE THE FM'S CREATE_TEXT,COMMIT_TEXT AND READ_TEXT

AS IN WAT PARAMETER R PASSED FOR EACH N WAT CODE IS TO B WRITTEN FOE EACH?

I NEED IT VERY BADLY.

PLEASE REPLY.

8 REPLIES 8

Former Member
0 Kudos
351

hi

CALL FUNCTION 'CREATE_TEXT'

EXPORTING

FID = 'ST '

FLANGUAGE = 'E'

FNAME = WS-TEMP_NAME

FOBJECT = 'TEXT'

  • SAVE_DIRECT = 'X'

  • FFORMAT = '*'

TABLES

FLINES = ST_LINES

EXCEPTIONS

NO_INIT = 1

NO_SAVE = 2

OTHERS = 3.

Check this thread also for more info.......

Hope this helps !!!

Cheers

Alfred

Former Member
0 Kudos
351

CREATE_TEXT is used to create a new text, READ_TEXT is used to read the existing text, COMMIT_TEXT is used to commit data to SAP which is been used after CREATE_TEXT...U need to pass parameter values to CREATE_TEXT & READ_TEXT Fm.

Former Member
0 Kudos
351

TELL ME WAT KIND OF ITAB IS TO B USED AND WAT PARAMETERS TO BE PASSED AND HOW THE CODE IS WRITTEN ON THE WHOLE??

Former Member
0 Kudos
351

The parameters change depending on what text you are dealing with.

Usually you will be able to see the same text in the standard transaction as well.

So, go to that text in the full screen mode, in the menu Go To--> Header and you should be able to see the parameter values for that texts.

Then you can use the same values in the function modules as well. Declare variables same as that of the function module parameters and then assign values and use them.

Here is a example of the same

http://www.sapdevelopment.co.uk/fmodules/fms_readtext.htm

Regards,

Ravi

Note - Please mark all the helpful answers

Message was edited by:

Ravikumar Allampallam

Former Member
0 Kudos
351

R THE PARAMETERS WHICH R TO B USED IN CREATE_TEXT FROM THE ONES V CREATE. I AM NOT CLEAR ABOUT IT.

0 Kudos
351

Yes sirisha,

You have to use the same varibles which ever u declared at the starting for the corresponding fileds.

0 Kudos
351

First you need to create Text object using SE75. Please refer this thread.

Regards,

Ramki.

andreas_mann3
Active Contributor