Problem with PCSD0002
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
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
Ferry Lianto replied
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.