Skip to Content
-1

Error in importing and exporting values from subscreen to DB table in ME21n/ME22n

May 09, 2017 at 08:23 AM

60

avatar image
Former Member

Hi everyone,

My requirement is to add a new field in ME21N/22N/23N. I have added a new append structure ZZEKKO_PLACE-ZZPLACE. Activated it . Using CMOD created a project and using screen exit placed the field ZZEKKO_PLACE-ZZPLACE in the screen.

The subscreen is in place and the project has been activated without issues. But i have issues in EXIT_SAPMM06E_006 and EXIT_SAPMM06E_008.

In EXIT_SAPMM06E_006, included the fields in import tab as

I_EKKO_PL TYPE ZZEKKO_PLACE.

and in include ZXM06U36, gave

IF SY-TCODE EQ 'ME22N' OR SY-TCODE EQ 'ME23N'.

ZZEKKO_PLACE-ZZPLACE = I_EKKO_PL-ZZPLACE.

ENDIF.

but i get a error stating "ZZEKKO_PLACE" is unknown.

Please help! what im doing wrong. im new to this. thanks in advance.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Sandra Rossi May 10, 2017 at 06:50 PM
1

I'm not sure that you did it well : you shouldn't add a parameter to EXIT_SAPMM06E_006 for instance, and you should use the CI_EKKO customer include to add your own fields to EKKO table)

There are probably how-to blog posts/step-by-step guides about this well-known extension of purchase requisitions/orders. You'd really gain a lot by looking at them...

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member May 10, 2017 at 11:08 AM
0

Hi Janani,

Please put a break-point in include ZXM06U36 and check whether you can access ZZEKKO_PLACE in this include.

FUNCTION EXIT_SAPMM06E_006.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*" IMPORTING
*" VALUE(I_EKKO) LIKE EKKO STRUCTURE EKKO
*" VALUE(I_TRTYP)
*" VALUE(I_CI_EKKO) LIKE EKKO_CI STRUCTURE EKKO_CI
*" VALUE(I_BSTYP) LIKE EKKO-BSTYP
*" VALUE(I_NO_SCREEN)
*" VALUE(I_LFA1) LIKE LFA1 STRUCTURE LFA1
*" VALUE(I_LFM1) LIKE LFM1 STRUCTURE LFM1
*" VALUE(I_KEKKO) LIKE EKKO STRUCTURE EKKO
*" VALUE(I_AEKKO) LIKE EKKO STRUCTURE EKKO
*" VALUE(I_REKKO) LIKE EKKO STRUCTURE EKKO
*" VALUE(I_EKKO_OLD) LIKE EKKO STRUCTURE EKKO OPTIONAL
*" VALUE(I_VORGA) LIKE T160-VORGA
*" TABLES
*" TEKPO STRUCTURE BEKPO OPTIONAL
*" TEKET STRUCTURE BEKET OPTIONAL
*" TEKKN STRUCTURE EKKNU OPTIONAL
*" TKOMV STRUCTURE KOMV OPTIONAL


Only these structures and tables can be accessed in this Include or you need to Export and Import the required structures and tables in this include.

Thanks,

Jenny

Share
10 |10000 characters needed characters left characters exceeded