ā2013 Apr 11 1:27 PM
Hello Everyone,
I have to print the shipping type text from the sales order on the order acknowledgement .
I am using T173T-BEZEI for the printing .
The text is not printing . If I use T173T-Vsart , even the number is not printing . When I debugg T173T-BEZEI it is empty .
Where could I possibly go wrong .
Mona
ā2013 Apr 11 2:07 PM
Hi,
There may be various reason,
1) Your select query may be not appropriate to fetch text,
at first select sales order,then pass to that table
Get shipping type value from vbkd table,vsart field.
then pass it to T173T table like this
if it_vbkd is not initial.
select spras vsart bezei from t173t for all entries in it_vbkd
where spras = 'EN' and vsart = it_vbkd-vsart.
endif.
Then write the value of BEZEI.
hope it will solve your problem.
2)If still not coming the may be value is not there in table.
Try It.
Hope it helps.
Thanks.
Gourav.
ā2013 Apr 11 2:07 PM
Hi,
There may be various reason,
1) Your select query may be not appropriate to fetch text,
at first select sales order,then pass to that table
Get shipping type value from vbkd table,vsart field.
then pass it to T173T table like this
if it_vbkd is not initial.
select spras vsart bezei from t173t for all entries in it_vbkd
where spras = 'EN' and vsart = it_vbkd-vsart.
endif.
Then write the value of BEZEI.
hope it will solve your problem.
2)If still not coming the may be value is not there in table.
Try It.
Hope it helps.
Thanks.
Gourav.
ā2013 Apr 11 2:10 PM
Thanks Gaurav, I will try and see what happens .
I have to write this in a sapscript ,how do i use the select statement.
Mona
ā2013 Apr 11 2:20 PM
Hi ,
For this You have to create subroutine (form endform).
From script to se38 program You can call that.
There are many link will help You,search in google/scn,that how to write code in script.
One of those is http://scn.sap.com/thread/1764347
Thanks
Gourav.
ā2013 Apr 11 2:32 PM
Thanks , but I do not want to chnage the print program .
without chnaging the print program is there a way of adding the code in the script so that it works .
Thanks a lot