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: 

How to use function module to update data

Former Member
0 Kudos

Hello ,

Can any body have idea how we can use function module SAVE_TEXT to update the master recipe header and operation long text.

I want to use this functional module to update the master recipe long text

step by step procedure is highly appreciated

thanks & regards

siddhasrth

6 REPLIES 6

Former Member

0 Kudos

Thanks Prasad and Pawan for your valuable response ,another thing i want to regarding this is Can we use text file or any other type of file..to update the long text with this functional module like we use in LSMW or BDC..if yes then how can i use that ...

thanks in advance

siddharth

0 Kudos

Yes siddarth you can use this SAVE_TEXT to upload data of bdc

Regards

Pavan

Former Member
0 Kudos

Hi

SAVE_TEXT

SAVE_TEXT writes a text module back to the text file or the text memory, depending on the storage mode of the corresponding text object.

You can use this module either to change existing texts or to create new texts. If you know for sure that the text is new, use the parameter INSERT to indicate this. The system then does not have to read the text first, which improves the performance of the function module.

If the lines table passed with the function module is empty, the system deletes the text from the text file.

Function call:


CALL FUNCTION 'SAVE_TEXT' 

EXPORTING CLIENT = SY-MANDT

HEADER = ?...

INSERT = SPACE

SAVEMODE_DIRECT = SPACE

OWNER_SPECIFIED = SPACE

IMPORTING FUNCTION = 

NEWHEADER = 

TABLES LINES = ?...

EXCEPTIONS ID =

LANGUAGE =

NAME =

check thi sample code

CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT
HEADER = t_header
SAVEMODE_DIRECT = 'X'
* OWNER_SPECIFIED = ' '
* LOCAL_CAT = ' '
* IMPORTING
* FUNCTION =
* NEWHEADER =
TABLES
LINES = t_long
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5
.

Reward all helpfull answers

Regards

Pavan

0 Kudos

Hello .

Can any body have idea how to use SAVE_TEXT to update the long text for recipe ....any suggetion is highly appreciated.

thanks & regards

siddharth

0 Kudos

Hello Pawan ,

Do you have any idea about this....?

regards

Siddharth