Application Development and Automation 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:Ā 
Read only

Shipping type text

Former Member
0 Likes
1,569

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

1 ACCEPTED SOLUTION
Read only

gouravkumar64
Active Contributor
0 Likes
1,140

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.

4 REPLIES 4
Read only

gouravkumar64
Active Contributor
0 Likes
1,141

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.

Read only

0 Likes
1,140

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

Read only

0 Likes
1,140

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.

Read only

0 Likes
1,140

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