Skip to Content
0
Former Member
Aug 05, 2008 at 08:01 AM

stracture and fm

16 Views

hi to all ,

here my problem is that i am using the FM and the STRU to getting the records which i needed but i am not getting it. it is syntatically correct.

here is my code:

my structure is:

vbeln

ZERDAT

ZERNAM

ZVKORG

ZPOSNR

ZMATNR

ZMATWA

import as:

p_vbeln type vbak-vbeln

export as:

jtab type zst1,

sorce code as:

select aerzet aerdat avbeln bposnr bvbeln into jtab FROM VBAK AS A INNER JOIN vbap as b on avbeln = b~vbeln

where a~vbeln = p_vbeln.

endselect.

if sy-subrc = 0.

message i009(zmysmsm) with 'records fetched'.

endif.

if u help me with this u will be much appricaited.

jacob.