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

Transporting No fields

Former Member
0 Likes
10,336

What is the use of transporting no fields operation on internal table & Where it can be extensively used?

Give me an example for that.

Please no links.

Regards,

Chandru

1 ACCEPTED SOLUTION
Read only

Madhu2004
Active Contributor
6,358

hi Chandra,

Transporting no fields is used when u want to check some condition based on which u need to do some action

after,

read table itab with key kunnr = 1000 transpoerting no fileds.

if 1000 value exists then sy-subrc is equal to zero or else sy-subrc = 4.

Madhu

5 REPLIES 5
Read only

Former Member
0 Likes
6,358

Hi Chandra,

TRANSPORTING NO FIELDS will be used to check for a particular condition without using its contents.

You want to do a particular operation if customer country is Germany then

READ TABLE IT_KNA1 WITH KEY LAND1 = 'DE' TRANSPORTING NO FIELDS.

This only needs to check whethter country for Cusotmer is Germany or not but it doest not need the contents of IT_KNA1.

Thanks,

Vinay

Read only

Former Member
0 Likes
6,358

Hi Chandra,

If the addition TRANSPORTING NO FIELDS is used, the statement READ TABLE only checks whether the row that is being searched for exists, and fills the system fields sy-subrc and sy-tabix.

Regds,

Gaurav

Read only

0 Likes
6,358

addition TRANSPORTING NO FIELDS is used whenevr we r not bothered about the result contents but hav to check the system fields like sy-subrc...

maily it is used to check SY_SUBRC

Read only

Former Member
0 Likes
6,358

Read Operation :

-


When your prime consideration is checking whether or not a record exists, not the contents.

Modify operation:

-


When u want to modify an internal table row using a work_area, but only few fields need to be updated.

e.g.

modify itab from wa transporting field1, field4, field19.

Read only

Madhu2004
Active Contributor
6,359

hi Chandra,

Transporting no fields is used when u want to check some condition based on which u need to do some action

after,

read table itab with key kunnr = 1000 transpoerting no fileds.

if 1000 value exists then sy-subrc is equal to zero or else sy-subrc = 4.

Madhu