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: 

FM FOR TRANSACTION CS15

0 Kudos

Hi Gurus.,

Is there any function module(FM) available for standard CS12 transaction .. its urgent .. please help me ..

Regards.,

S.Sivakumar

4 REPLIES 4

former_member708410
Contributor
0 Kudos

cv = 'PPC1'.

call function 'CK_F_CSTG_STRUCTURE_EXPLOSION'

exporting

klvar = cv

kalnr = itkeko-kalnr

kadky = itkeko-kadky

tvers = itkeko-tvers

werk = itkeko-werks

  • SICHT = '01'

  • S_LOSGR = ' '

  • S_BEZUGSMENGE =

  • S_BEZUGSMENGENEINHEIT =

  • S_ACCEPT_NULLMENGE = ' '

  • S_AUFLOESUNGSTIEFE = '1'

  • S_READ_ONLY_DB = 'X'

  • S_ONLY_MAT_POS = ' '

  • S_EXPLODE_KF_TOO = ' '

  • S_EXPLODE_RAW = ' '

  • S_SKIP_TOTALS = 'X'

  • S_USE_KKE3_CACHE = ' '

  • S_EXPLODE_BPO = ' '

  • S_VUC_READ_ONLY_DB = ' '

  • IMPORTING

  • F_KEKO =

  • F_HEADER_MAT =

  • S_AUFL_UNVOLLSTAENDIG =

tables

strukturtabelle = it1

  • T_KEKO_IMP =

exceptions

invalid_bzobj = 1

keko_not_found = 2

meta_model_error = 3

ckhs_not_found = 4

others = 5.

if sy-subrc <> 0.

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

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

endif.

dhruv_shah3
Active Contributor
0 Kudos

HI,

Call the function module 'CS_BOM_EXPL_MAT_V2' in your program & you will get the same output as you do in CS12.

call function 'CS_BOM_EXPL_MAT_V2'

exporting

datuv = il_datuv " bom expln date

mehrs = 'X'

mtnrv = il_matnr "Material number

stlal = il_stlal

stlan = il_stlan

werks = il_werks " plant

tables

stb = it_stpox

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.

HTH

Regards,

Dhruv Shah

abapdeveloper20
Contributor
0 Kudos

Hi,

Check this function module unde se37

CS_WHERE_USED_MAT

reward points if useful,

~Lakshmiraj~

0 Kudos

solved