cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

upload text lines in Sales Order

Former Member
0 Kudos
624

Hi All!

Can any one please give me the FM for uploading the sales material text lines into Sales Order VA01.

Thanks in advance

Points will be awarded

Kumar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I am not in front of the system, but you can search the forum for SAVE_TEXT and you will find a lot of hits. If you are stuck at some point, then we can help.

Answers (2)

Answers (2)

Former Member
0 Kudos

If this is the material sales text that you want to copy from the material master into the sales order, use text procedures.

That way, the text from the material master will automatically be copied into the sales order while the order is being created.

Consult your functional guy to set up the text procedures or text determination procedures.

For SAVE_TEXT, here are the parameters:

DATA:

header like thead,

t_tline like tline occurs 0 with header line.

header-tdobject = <text object that you want to save to>

header-tdname = <would be the sales order>

header-tdid = <text id that you want to save to>

header-tdspras = <language>

In internal table t_tline, populate the text you want

call function 'SAVE_TEXT'

exporting

header = header

insert = ' ' "Automatic determination

savemode_direct = ' ' "according to text object

or

'X' "to save immediately

tables

lines = t_tline

exceptions

id = 1

language = 2

name = 3

object = 4

others = 5.

Hope this helps.

If you can give us your actual requirement, then we can help better.

Regards,

-Ramesh

Former Member
0 Kudos

Use SAVE_TEXT.

Former Member
0 Kudos

Hi Srini,

Can u give me sample code with all the parameters needed for upload.

Thanks for your swift reply

Points awarded

Kumar