11-11-2008 9:15 PM
Hi All,
I have sales order header text and I have to display it in the delivery header text. I know that I have to use read_text, but where I should write this code.
Once I have the delivery text displayed I have to pass it to 940.
Please help.
Thanks,
veni.
11-11-2008 9:27 PM
If you have copy contols enable than this can be done without any efforts.
just check copy controls from VOTXN Tx for header level for sales orders.
11-11-2008 9:27 PM
If you have copy contols enable than this can be done without any efforts.
just check copy controls from VOTXN Tx for header level for sales orders.
11-11-2008 9:53 PM
Hi Amit,
I went to the transaction and in sales header texts I see the textid's which were created by me PST, PED and ZTM but I donot see them in delivery header texts.
Can you please let me know the process to display the texts from salesorder to delivery.
Thanks,
veni.
11-11-2008 10:02 PM
There is a configuration step under SD->Basic Functions->Text Control
where all the steps are located
First you defined you text type (TEXT).
Create or assign a text procedure for sales document type (ZD)[For example].
Assign your text type (TEXT) to the text procedure that you created for
the sales doc type (ZD).
11-12-2008 5:14 PM
Hi,
I went to VOTXN and then to Sales->Header I choosed the text procedure Z1 and went into Textid's in Textprocedure. Here I created 3 text Id's 0021, 0022 and 0023. I created these in Sales header.
So now do I have to create the same in Delivery to get the deliver text. Just by creating these textid's in delivery will the texts come automatically on delivery header texts?
Please help.
Thanks,
veni.
11-12-2008 5:18 PM
11-12-2008 5:43 PM
Hi MxG,
I created the same textid's in delivery. I processed a new 850 and the new sales order has header texts with data and when I create the Delivery for that order I see the Delivery header text texttypes but no data in them, all of them are empty.
Can you please help me with how to get these texts in delivery header.
Thanks,
veni.
11-12-2008 5:53 PM
When you created those Text Ids for deliviries, you need to make sure to check the field Refer / Duplicate. that will copy thsat from teh source document
11-12-2008 6:02 PM
Hi MxG,
I checked the Refer/Duplicate field now saved it and created a new order and delivery but no luck. The texts are not having any data in delivery.
Anything else I am missing?
Thanks,
Veni.
11-12-2008 6:30 PM
Thats the only thing needed. can you describe again what you did so far in VTOXN?
11-12-2008 6:36 PM
Hi MxG,
I created the textid's 0021, 0022 and 0023, checked Refer/Duplcate and created Access Sequence 32, 33 and 34 for the textid's for the sales order and did the same thing for delivery header also.
Thanks,
veni.
11-12-2008 7:19 PM
Hi,
I was looking at our texts which we have previously and there are few which were in sales texts but not in delivery texts and they were showing on 940's.
So can I get sales header texts to 940, as I am not getting the data in delivery texts.
Please help.
Thanks,
Veni.
11-12-2008 7:31 PM
yep that you can do. how are you creating the 940 txn? IDOC? whcih IDOC?
11-12-2008 8:01 PM
Hi MxG,
I am using 940 PICKSD SD_IDOC_OUTPUT_PICKINGexit_saplvmde_002 include ZXLIDU16. I am writing my code in ZXLIDU16. I have to display 0021 in Z1VPPI1-dummy1, 0022 in Z1VPPI1-dummy2 and 0023 in Z1VPPI1-dummy1.
Can you please let me know if the following code is correct.
Thanks,
Veni.
--
call function 'READ_TEXT'
EXPORTING
id = '0021'
language = 'E'
name = f_vbeln
object = 'VBBK'
TABLES
lines = itab_read
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
others = 8.
-----If there is an entry, move it to the itab_read table--
if sy-subrc = 0.
loop at itab_read.
read table itab_read.
itab_read-tdformat = '21'.
clear t_idocd.
h_index = h_index + 1.
move 'Z1EDKT1' to t_idocd-segnam.
move itab_read to t_idocd-sdata.
do 3 times.
replace '>' with 'greater than' into t_idocd-sdata.
replace '<(><<)>' with 'less than' into t_idocd-sdata.
replace '<(greater than<<)>' with 'less than' into t_idocd-sdata.
replace '*' with 'times' into t_idocd-sdata.
replace '<(>&<)>' with 'and' into t_idocd-sdata.
replace '<(greater than&<)>' with 'and' into t_idocd-sdata.
replace '%' with 'percent' into t_idocd-sdata.
replace '#' with 'number' into t_idocd-sdata.
replace '~' with '' into t_idocd-sdata.
replace '^' with '' into t_idocd-sdata.
replace ':' with '' into t_idocd-sdata.
replace ';' with '' into t_idocd-sdata.
enddo.
insert t_idocd index h_index.
clear itab_read.
endloop.
endif.
11-12-2008 9:55 PM
Hi,
I tried the above mentioned code but no luck. When i debuged I see f_vbeln as delivery number and
sy-subrc as 4. Can anyone please help me with getting text from order to 940.
Thanks,
veni.
11-13-2008 5:51 PM
Hi All,
I want to get the sales order header text. Can you please let me know if the following code is correct?
f_vgbel is order number.
data: itab_htext like thead occurs 10 with header line.
call function 'READ_TEXT'
EXPORTING
id = '0021'
language = 'E'
name = f_vgbel
object = 'VBBK'
IMPORTING
HEADER = itab_htext
TABLES
lines = itab_read
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
others = 8.
Thanks,
Veni.
11-21-2008 5:15 PM
Sales order text to delivery text did not work due to some config issues but I was able to get it on 940.
Thanks,
Veni.
12-03-2008 9:50 AM
Hi,
Whether your problem got solved?
I have a problem similar to you. If the delivery is created from project. I want to copy the text from Sales order header to Delivery header.
Whether RV_TEXT_COPY function module works?
Please give a reply.
Regards,
Ravi
Edited by: Ravi R on Dec 3, 2008 3:20 PM