Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Custom Additional field in tcode COHVPI

Former Member
0 Likes
1,752

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.

1 ACCEPTED SOLUTION
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,461

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

5 REPLIES 5
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,462

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

Read only

0 Likes
1,461

Hi Nabheet,

If I add text-sys it picks the text "Syst. Status" as it is defined by SAP in Text elements,

I need Campain Number as text.

In my case I cannot declare in Text elements as it asks for Access Key.

Read only

0 Likes
1,461

Do as below dont use text symbol directly provide text

tioned syntax. Kindly use the same    SELECTION-SCREEN:    COMMENT 1(20) `campaign number` FOR FIELD p_syst1             MODIF ID fnr,    POSITION 33. 

Read only

0 Likes
1,461

Direct Hardcode is not allowing to Activate.

Read only

0 Likes
1,461

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'.