cancel
Showing results for 
Search instead for 
Did you mean: 

**URGENT**-Problem with Sales text of sales oder-- Please help

Former Member
0 Kudos

Hi Friends,

Original sales text is as follows :(Transaction VA03)

SAMPLE SALES ORDER TEXT-1 This is a test material sales text entry....

& The maximum length of each line is 45 charac

ters. &&&

but when I am retriving the above text using function module READ_TEXT

Parameters passed in function module(just for help)

CLIENT 201

ID 0001

LANGUAGE EN

NAME 10-11-420 S10001

OBJECT MVKE

it is coming like this :

SAMPLE SALES ORDER TEXT-1 This is a test material sales text entry....

<(>&<)> The maximum length of each line is 45 charac

ters.<(>&<)><(>&<)><(>&<)>

Note ==>where ever '&' ambersand has been used it is been

displayed with some other special characters. e.g <(>&<)>

you can contact me on my email id :anshul.garg@xansa.com or anshul792k4@rediffmail.com

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

try this: instead of write the text directly in the box of the text of the sales order, make double clique i that box and write the text there.

With me this works.

Dora Sousa

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Guys n Gals,

Many thanks for your support and helpfull answers to my question.

I would like to share the solution I used for my query:

  • Retrieval of Sales Text

call function 'READ_TEXT'

exporting

client = sy-mandt

id = '0001'

language = sy-langu

name = w_text_name

object = 'MVKE'

importing

header = t_header

tables

lines = t_lines

exceptions

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

others = 8.

if sy-subrc eq 0.

loop at t_lines.

REPLACE ALL OCCURRENCES OF '<(>&<)>' IN t_lines WITH '&' .

REPLACE ALL OCCURRENCES OF '<(><<)>' IN t_lines WITH '<' .

concatenate w_arktx t_lines-tdline into w_arktx separated by space.

endloop.

endif.

Former Member
0 Kudos

Hiu Anshul.,

In Sales order ir is VER MUCH possible but in the change mode In VA02 there is in top left side Small icon appears in Sales order also

From here we can browse the doccument what ever we need & Attach

REWARD if helpfull

Thanks & Regards

Narayana

Former Member
0 Kudos

hi,

you may type the content of your choice as a word document.Go to the text tab in va03 and import it from the

that word document(preferably from the desk top).

this should help you.

regards,

r.srinivasan

former_member183879
Active Contributor
0 Kudos

Hi

The symbol & is used to dynamically infer values during runtime. So may be the FM is looking for the determination of some values and hence this problem.

You can use some other symbol instead of this and check whether the issue is replicable. If not you can use different symbol instead of &.

If the same issue is replicable with other symbols too, you can ask some development guy who can help you in this problem. Otherwise the values declared are correct to my knowledge.

Pls assign reward points if this test script helps.