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

function module to find finished material

former_member225134
Participant
0 Likes
514

Hi,

    I want to find finished materials,so am using this function module

data: it_stpo standard table type of stpox

CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'

         EXPORTING

           capid                 = 'PP01'

           datuv                 = sy-datum

           emeng                 = WA_FINAL-menge_i"W_ERFMG

           mktls                 = 'X'

           mehrs                 = 'X'

           mtnrv                 = WA_FINAL-imatnr              "W_MATNR2

           stlal                 = w_stlal

           werks                 = WA_FINAL-werks_i"W_WERKS

         TABLES

           stb                   = it_stpo

         EXCEPTIONS

           alt_not_found         = 1

           call_invalid          = 2

           material_not_found    = 3

           missing_authorization = 4

           no_bom_found          = 5

           no_plant_data         = 6

           no_suitable_bom_found = 7

           conversion_error      = 8

           OTHERS                = 9.

       IF sy-subrc <> 0.

       ENDIF.


in this internal table it_stpo (stpox table) which one is finished material.

and PP01 is standard or any reason to use this as capid.????

2 REPLIES 2
Read only

Arun_Prabhu_K
Active Contributor
0 Likes
474

Hello Anitha.

     What do you mean by finished material?

Regards.

Read only

Former Member
0 Likes
474

Dear

to find finished goods you can use following link

BAPI Material Avalibility Check

Stock function modules

Regards