Application Development 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: 

'SD_VBAP_READ_WITH_VBELN', ??

Former Member
0 Kudos

Hi Experts,

1)I found some piece of code, in of exit, so, Pls. let me clarify that, Wht is the functionality of the following FM/coding? (from its naming standards, I understood some thing, but, still, wanna to know, pls, clarify)

2) VBAPVB, Is it a temp. staructure?

<b><i>data: it_vbap type standard table of vbapvb,

l_trtyp type t180-trtyp.

call function 'SD_VBAP_READ_WITH_VBELN'

exporting

i_vbeln = i_lips-vgbel

tables

et_vbapvb = i_vbap

exceptions

record_not_found = 1

others = 2.</i></b>

thanq

3 REPLIES 3

ferry_lianto
Active Contributor
0 Kudos

Hi,

VBAPVB is a structure which has same fields as table VBAP.

You can also declare IT_VBAP and refer to table VBAP.


data: it_vbap type table of vbap,
      l_trtyp type t180-trtyp.

call function 'SD_VBAP_READ_WITH_VBELN'
  exporting
    i_vbeln   = i_lips-vgbel
  tables
    et_vbapvb = i_vbap
  exceptions
    record_not_found = 1
    others = 2.

Regards,

Ferry Lianto

0 Kudos

thanq,

actually, am interetsed in my first question, pls. clarify,

thanq

Former Member
0 Kudos

no more answers, closing