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: 

call trans, classification scrn doesn't work in the same way as the standard CS02 transaction

former_member307398
Participant
0 Kudos

Hello All,

When I tried CS02 transaction for recording, the classification screen doesnot work on the same way as the standard CS02 transaction.

I am trying to call CS02 in my Z program with initial values for Material, Plant, BOM Usage and Change Number.

Hence i am using 'SET PARAMETER ID :' in that and am passing the following values.

SET PARAMETER ID:

'MAT' FIELD wa_display-matnr,

'WRK' FIELD wa_display-werks,

'CSV' FIELD wa_display-stlan,

'AEN' FIELD wa_display-aennr.

Issue is for Change Number(AEN), the values are not appearing.

In both the ways I have tried but its not working

Please tell me anyone for this solution?

Regards,

Santhosh G

1 ACCEPTED SOLUTION

former_member400468
Active Participant
0 Kudos

Hi!

You should use such construction to call CS02 transaction as it was done in the BO method for BOM:

    CONSTANTS:
      lc_mem_id TYPE char30 VALUE 'WFBOMCOM'.
    DATA:
      ls_wfbomcom type rc29n.

    ls_wfbomcom-matnr = is_data-matnr.
    ls_wfbomcom-werks = is_data-werks.
    ls_wfbomcom-stlan = is_data-stlan.
    ls_wfbomcom-stlal = is_data-stlal.
    ls_wfbomcom-aennr = is_data-aennr.

    EXPORT wfbomcom  = ls_wfbomcom TO MEMORY ID lc_mem_id.
    CALL TRANSACTION 'CS02' AND SKIP FIRST SCREEN.

Hope it's helpful

Evgeny

6 REPLIES 6

former_member400468
Active Participant
0 Kudos

Hi!

You should use such construction to call CS02 transaction as it was done in the BO method for BOM:

    CONSTANTS:
      lc_mem_id TYPE char30 VALUE 'WFBOMCOM'.
    DATA:
      ls_wfbomcom type rc29n.

    ls_wfbomcom-matnr = is_data-matnr.
    ls_wfbomcom-werks = is_data-werks.
    ls_wfbomcom-stlan = is_data-stlan.
    ls_wfbomcom-stlal = is_data-stlal.
    ls_wfbomcom-aennr = is_data-aennr.

    EXPORT wfbomcom  = ls_wfbomcom TO MEMORY ID lc_mem_id.
    CALL TRANSACTION 'CS02' AND SKIP FIRST SCREEN.

Hope it's helpful

Evgeny

0 Kudos

Hello Evgeny,

Thanks for your reply.

I want to know why you are passing value for AENNR?

Regards,

Santhosh G

0 Kudos

I've set it as example for you, how it can be, for me was only requirement to show BOM via CS03 without change number

0 Kudos

Hello Evgeny,

Thanks for your reply.

Now its working fine.

Regards,

Santhosh G

raymond_giuseppi
Active Contributor
0 Kudos

Look at form PARAMS_GET_02 in module/form D0100_INIT of SAPLCSDI. Then look for CAD_RFC_FLAG initialization in RFC_IMPORT_CAD_RFC_FLAG_MEMORY...

/or/

Build a small BDC to call the transaction

0 Kudos

Hello Raymond,

Thanks for your reply.

I have already tried but I am getting different screen output through BDC.

Regards,

Santhosh G