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

FM SD_DELIVERY_VIEW

Former Member
0 Likes
1,476

Hello!

This FM

is a very useful one. But it doesn't provide

any entries in the tables. They are just empty

when I call it as below shown:

These tables are totaly empty, what is wrong ?

VBDKL

VBDPL

VBPLK

VBPLP

VBPLS

Regards

Ilhan

*Prog

data: COMWA type VBCO3,
      VBPLA type VBPLA,
      VBDKL type  VBDKL occurs 0 with header line,
      VBDPL type  VBDPL occurs 0 with header line,
      VBPLK type  VBPLK occurs 0 with header line,
      VBPLP type  VBPLP occurs 0 with header line,
      VBPLS type  VBPLS occurs 0 with header line.

data gv_vbeln type vttp-vbeln.
data gv_venum type vepo-venum.      


select single vbeln from vttp into gv_vbeln
                    where TKNUM = gw_vttk-tknum.
select single venum from vepo into gv_venum
                    where VBELN = gv_vbeln.

COMWA-VENUM = gv_venum.
COMWA-MANDT = sy-mandt.
COMWA-SPRAS = sy-langu.
COMWA-TKNUM = gw_vttk-tknum.

VBPLP-VENUM = gv_venum.
append VBPLP.


  CALL FUNCTION 'SD_DELIVERY_VIEW'
  EXPORTING
    COMWA                         = COMWA
*   AUFTRAG_NICHT_LESEN           = ' '
*   EXPORTDATEN_NICHT_LESEN       = ' '
*   GEFAHRGUT_NICHT_LESEN         = ' '
*   EDI                           = ' '
 IMPORTING
     VBPLA_WA                      =  VBPLA
  TABLES
    VBDKL_TAB                     = VBDKL
    VBDPL_TAB                     = VBDPL
    VBPLK_TAB                     = VBPLK
    VBPLP_TAB                     = VBPLP
    VBPLS_TAB                     = VBPLS
* EXCEPTIONS
*   OBJECT_NOT_FOUND              = 1
*   OTHERS                        = 2
          .
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
889

Thank you very much, but it didn' t help.

It is the same as before.

Regards

Ilhan

Hello!

This FM

is a very useful one. But it doesn't provide

any entries in the tables. They are just empty

when I call it as below shown:

These tables are totaly empty, what is wrong ?

VBDKL

VBDPL

VBPLK

VBPLP

VBPLS

Regards

Ilhan

*Prog

data: COMWA type VBCO3,
      VBPLA type VBPLA,
      VBDKL type  VBDKL occurs 0 with header line,
      VBDPL type  VBDPL occurs 0 with header line,
      VBPLK type  VBPLK occurs 0 with header line,
      VBPLP type  VBPLP occurs 0 with header line,
      VBPLS type  VBPLS occurs 0 with header line.

data gv_vbeln type vttp-vbeln.
data gv_venum type vepo-venum.      


select single vbeln from vttp into gv_vbeln
                    where TKNUM = gw_vttk-tknum.
select single venum from vepo into gv_venum
                    where VBELN = gv_vbeln.

COMWA-VENUM = gv_venum.
COMWA-MANDT = sy-mandt.
COMWA-SPRAS = sy-langu.
COMWA-TKNUM = gw_vttk-tknum.

VBPLP-VENUM = gv_venum.
append VBPLP.


  CALL FUNCTION 'SD_DELIVERY_VIEW'
  EXPORTING
    COMWA                         = COMWA
*   AUFTRAG_NICHT_LESEN           = ' '
*   EXPORTDATEN_NICHT_LESEN       = ' '
*   GEFAHRGUT_NICHT_LESEN         = ' '
*   EDI                           = ' '
 IMPORTING
     VBPLA_WA                      =  VBPLA
  TABLES
    VBDKL_TAB                     = VBDKL
    VBDPL_TAB                     = VBDPL
    VBPLK_TAB                     = VBPLK
    VBPLP_TAB                     = VBPLP
    VBPLS_TAB                     = VBPLS
* EXCEPTIONS
*   OBJECT_NOT_FOUND              = 1
*   OTHERS                        = 2
          .
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

3 REPLIES 3
Read only

Former Member
0 Likes
889

Enter delivery number in COMWA-VBELN. Check where-used list of this FM

Read only

Former Member
0 Likes
890

Thank you very much, but it didn' t help.

It is the same as before.

Regards

Ilhan

Read only

0 Likes
889

If you just enter delivery number and language then it will return you delivery info,

try it directly with test function in SE37.