Skip to Content
author's profile photo Former Member
Former Member

Custom Additional field in tcode COHVPI

Hi Guru,

I have added below logic to get custom field in selection screen of tcode COHVPI under Include IOCTOPSL using Enhancement-Point.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(28) W_PCMNR FOR FIELD S_PCMNR.

SELECT-OPTIONS: S_PCMNR FOR IOHEADER-ZZPCMNR MODIF ID fau.

SELECTION-SCREEN END OF LINE.

Now I have to populate the variable W_PCMNR with text 'Campain Number' to get the text in selection screen.

Pls guide me where can I write this logic to get text or How to display text. I do not have access key to create Text Element.

COHVPI.jpg (16.3 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Feb 17, 2014 at 07:46 AM

    Hi Nand

    Kindly use the comment command for the same. I checked in same include in one of the enhancement SAP is using the below mentioned syntax. Kindly use the same

    SELECTION-SCREEN:

    COMMENT 1(20) text-sys FOR FIELD p_syst1 MODIF ID fnr,

    POSITION 33.

    Nabheet

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Problem Solved.

      SELECTION-SCREEN BEGIN OF LINE.

      SELECTION-SCREEN COMMENT 1(28) V_CAMP FOR FIELD S_PCMNR.

      SELECT-OPTIONS: S_PCMNR FOR IOHEADER-ZZPCMNR.

      SELECTION-SCREEN END OF LINE.



      Populated V_CAMP in At Selection-Screen output. Created 1 more Enhancement.

      V_CAMP = 'Campian Number'.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.