Skip to Content
author's profile photo
Former Member

TCODE COHV - CAPTURE SCREEN PARAMETERS FROM USEREXIT

Hello all:

The specs given to me include to capture production orders in TCODE COHV with certain selection status profile (Screen field is P_SELID). I did identify an userexit (EXIT_SAPLCORE_003) that goes thru TCODE COHV when the user tries to Technically Complete production orders. Is there is a way that I can capture the parameters in COHV at the moment the transaction is executed from EXIT_SAPLCORE_003?, or there is a way to keep a log of the TECO production orders with a certain profile at the moment of the transaction execution?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • author's profile photo
    Former Member
    Posted on May 19, 2004 at 11:15 AM

    Hello Erik,

    If P_SELID has an SET/GET Param-ID You can

    fetch it using

    GET PARMETER ID '<Param-id>' FIELD <variable>

    You will find the PARAM-ID while processing the DYnpro

    presssing <F1> within the field P_SELID

    and click the Toolbox-Symbol.

    Hope i could help You

    BR

    Michael

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on May 19, 2004 at 02:24 PM

    There's a function module PRINT_SELECTIONS that will store all screen values into an internal table.

    Regards,

    D.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      If a variant is specified, then table contains values stored in the variant. If no variant specified (value - SPACE) then table contains values entered into screen at runtime.

      Regards,

      D.

  • author's profile photo
    Former Member
    Posted on May 20, 2004 at 09:13 AM

    Hello Eric,

    May be i am wrong, but I guess You have to watch following points:

    To read the selection-screen parameters works fine until you are still in the Main-program-context.

    But if You will fetch the data within a Function-Module,

    i think it won't work.

    SET/GET Parameter-ID works in the whole session-context.

    BR Michael

    Add comment
    10|10000 characters needed characters exceeded