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

CS_BOM_EXPL_MAT_V2 function module

Former Member
0 Likes
1,601

Function module is "CS_BOM_EXPL_MAT_V2" ,in this function module passing parameters are same in both SE37 and my program.its working fine in SE37 and not working in my program Plz cud any one help me regarding this.

This is for BOM explosion.

IN my program in out table its blank

where as in SE37 in table STB there four records.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,084

Pls check whether DATE(parameter DATUV) is given properly or not..

It is very important

4 REPLIES 4
Read only

Former Member
0 Likes
1,085

Pls check whether DATE(parameter DATUV) is given properly or not..

It is very important

Read only

0 Likes
1,084

Hi,

Take a look at the following code :

  CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
       EXPORTING
            AUSKZ                 = ' '
            CAPID                 = 'PP01'
            DATUV                 = SY-DATUM
            EMENG                 = '1.000'
            STLAN                 = '3'
            MTNRV                 = MATNR
            MEHRS                 = 'X'
            MMORY                 = '1'
            STPST                 = '0'
            WERKS                 = WERKS
       IMPORTING
            TOPMAT                = SELPOOL
            DSTST                 = DSTST_FLG
       TABLES
            STB                   = STB
            MATCAT                = MATCAT
       EXCEPTIONS
            MATERIAL_NOT_FOUND    = 4
            NO_PLANT_DATA         = 8
            NO_BOM_FOUND          = 12
            NO_SUITABLE_BOM_FOUND = 16.

Hope this helps,

Best regards,

Erwan

Read only

0 Likes
1,084

i posted date properly boss

Read only

0 Likes
1,084

Hi Erwan,

I am passing this Parameters correct me

if i am wrong in this.

CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'

EXPORTING

AUMNG = 0

CAPID = 'PP01'

CUOBJ = 000000000000000

CUOVS = 0

DATUV = datum

EMENG = 0

MKTLS = 'X'

MEHRS = 'X'

MTNRV = OUT_MATNR

SANFR = 'X'

STLAL = '1'

STLAN = '1'

STPST = '0'

SVWVO = 'X'

WERKS = TBL_UPLOAD-WERKS

VRSVO = 'X'

TABLES

STB = T_STB1

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.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Ragrds,

Simha