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 for CS15 + concatenation of values

Former Member
0 Likes
465

Dear All,

May i know which Function Module i should use to get the same features as that of t-code CS15?

In the material numbers read from this function module (eg: SM34213132, 234TF332, 563ABZX34 etc), i would like to search for a few character patterns, eg: SM, TF, ZX, ER etc. & then finaly CONCATENATE the values read into a variable i.e. output value should be like for example SM + ZX.

Await inputs.

Vivek

Dear All,

May i know which Function Module i should use to get the same features as that of t-code CS15?

In the material numbers read from this function module (eg: SM34213132, 234TF332, 563ABZX34 etc), i would like to search for a few character patterns, eg: SM, TF, ZX, ER etc. & then finaly CONCATENATE the values read into a variable i.e. output value should be like for example SM + ZX.

Await inputs.

Vivek

2 REPLIES 2
Read only

Former Member
0 Likes
435

Hi,

TRY fm

CS_BOM_EXPL_MAT_V2

data : it_stb2    like stpox occurs 0 with header line,
       it_spma2x like it_spma2 occurs 0 with header line,
       it_matcat  like cscmat occurs 0 with header line,

call function 'CS_BOM_EXPL_MAT_V2'
    exporting
      capid                 = 'PP01'
      datuv                 = sy-datum
      mktls                 = 'X'
      mehrs                 = 'X'
      mmory                 = '1'
      mtnrv                 = it_spma2-matnr
      werks                 = werks
    tables
      stb                   = it_stb2
      matcat                = it_matcat
    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
      others                = 8.

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Apr 10, 2008 10:53 AM

Read only

0 Likes
435

Mr. Balaji,

That is not the FM which gives CS15 functionality. Anyone else who can guide me on my issue?

Vivek