Skip to Content
avatar image
Former Member

Problem with PCSD0002

Hallo,

i try to use the PCSD0002, but i have Problemsto use.

I want to show additional Information from MARA (MARA-WRKST, MARA-ZEINR).

First i create an object Z_PCSD with PCSD0002,

the structure CI_STPO with both fields, the Dynpro SAPLXCSA1000 with both fields and use EXIT_SAPCSDI_002

and ..003.

My Problem is, that are no DATA in CS01/02/03.

it's not nessasary to update the STPO, I want only show

the data from MARA.

Questtion: Witch fields shell i use in EXIT_SAPCSDI_002/003?

Has anybody a Code-Exampls?

Thanks for help

Dieter

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Apr 18, 2006 at 02:30 PM

    Hi Dieter,

    Please try field <b>CSCI_STPO-ZZEINR</b>.

    You need to populate field CSCI_STPO-ZZEINR in order to display the value.

    You can code something like this.

    CLEAR: CSCI_STPO-ZZ_ZEINR,       
    CSCI_STPO-ZZ_WRKST.
    
    SELECT SINGLE *
    FROM MARA
    WHERE MATNR = CSCI_STPO-MATNR.
    
    IF SY-SUBRC = 0.    
      CSCI_STPO-ZZ_ZEINR = MARA-ZEINR.  
      CSCI_STPO-ZZ_WRKST = MARA-WRKST.
    ENDIF.
    

    Hope this will help.

    Regards,

    Ferry Lianto

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ferry,

      thanks for your Answer.

      I made a mistake in EXIT_SAPLCSDI_002 because before using CSCI_STPO-ZZEINR i have to declare it like this.

      Tables: CSCI_STPO.

      Now it works very good.

      Thanks for help.

      Regards,

      Dieter

  • Apr 13, 2006 at 02:14 PM

    Can you explain a little bit more please?

    You have created some additional fields using this enhancement and appended them to the CI_STPO structure.

    You want to fill these fields with information from MARA. So I am assuming that you need the componant material number to go to MARA. This is available in the ITEMDATA structure of EXIT_SAPLCSDI_002 in the field IDNRK.

    In EXIT_SAPLCSDI_003, you will update the structure USERDATA, if you need to.

    So, where are you having trouble? Please explain.

    Srinivas

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Srinivas,

      at first thanks for your answer. I will use it in Tcodes CS01, CS02 and CS03.

      I created CI_STPO, read in EXIT_SAPLCSDI_002 the MARA,

      move in EXIT_SAPLCSDI_003 MARA-ZEINR to USERDATA-ZZEINR.

      This works correct. In the Itemlist is the field ZZEINR

      filled correct.

      But when i Jump into Details, the Subscreen SAPLXCSA 1000 doesn't show the ZZEINR. I have tried several Fields like USERDATA-ZZEINR or STPO-ZZEINR etc.

      What field shell i take or have i do something in PBO??

      Thanks for Help

      Dieter

  • Apr 13, 2006 at 08:10 PM

    Hi Dieter,

    1. Insert new field <b>ZZ_ZEINR</b> with component type <b>DZEINR</b> and <b>ZZ_WRKST</b> with component type <b>WRKST</b> in structure CSCI_STPO via <b>SE11</b>. Save and activated once done.

    2. Go to <b>SE51</b> (Screen Painter), enter program SAPLCSDI and screen number 0910 and click on change and select maintain in original language.

    3. Click on <b>Layout</b> button and create text field and input/output field for <b>CSCI_STPO-ZZ_ZEINR</b> and <b>CSCI_STPO-ZZ_WRKST</b>. Save and activated.

    4. Go to <b>SE37</b> and enter function module <b>EXIT_SAPLCSDI_002</b> and click on include <b>ZXCSAU02</b>. In here you can code something like this. Save and activated once done.

    <b>CLEAR: CSCI_STPO-ZZ_ZEINR,
           CSCI_STPO-ZZ_WRKST.
    
    SELECT SINGLE *
    FROM MARA
    WHERE MATNR = CSTSD01-MATNR.
    
    IF SY-SUBRC = 0.  
      CSCI_STPO-ZZ_ZEINR = MARA-ZEINR.
      CSCI_STPO-ZZ_WRKST = MARA-WRKST.
    ENDIF.</b>
    

    Hope this will help.

    Regards,

    Ferry Lianto

    Add comment
    10|10000 characters needed characters exceeded