Skip to Content
0

Problem with new custom field in VL03N

Jan 29 at 10:25 AM

87

avatar image

Hi experts,

I've been sked to add a new field in VL0*N. This field is a DMS link. This is already done, when I créate a new delivery, the DMS link is created and the field in LIKP is updated.

My problem is that I can't navigate from VL0*N to CV02N. What I see is when I double clik on my field there is no reaction.

This new field is in dynpro 9000, program SAPLZSD_ELE59_001.

I have this implementation: ZE_SHP_TAB_CUST_HEAD with this methods:

ACTIVATE_TAB_PAGE

TRANSFER_DATA_TO_SUBSCREEN

TRANSFER_DATA_FROM_SUBSCREEN

PASS_FCODE_TO_SUBSCREEN

The dynpro 9000 and the element are as follows:

Dynpro 9000:

MODULE user_command_9000 INPUT.

CASE sy-ucomm.
WHEN 'TEDE'.
IF likp-zzdoknr IS NOT INITIAL.
SET PARAMETER ID 'CV1' FIELD likp-zzdoknr.
* SET PARAMETER ID 'CV2' FIELD likp-zzdoknr(3).
CALL TRANSACTION 'CV02N' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.

ENDMODULE. " USER_COMMAND_9000 INPUT

When I double-click on "Numero de documento", nothing happens. I put a breakpoint at module user command but it doesn't execute this method.

I know I'm missing somethin but I don't know waht :(

Thanks in advance,

Maria

Edited: I've seen if I click intro on the new field, user-command works fine, the sy-ucomm is HDET_T. I hope this is ok for the user. :)

ka0gk.png (14.1 kB)
fyyi0.png (10.8 kB)
ioxwb.png (31.8 kB)
jvgh1.png (25.2 kB)
olwss.png (6.7 kB)
d57zw.png (21.2 kB)
pf0nx.png (12.8 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Alban Leong Jan 30 at 05:06 AM
1

Hi Maria,

Follow these three steps and you should be able to make the field respond to a double click

1. On your field LIKP-ZZDOKNR, Check the checkbox - "Responds to double-click" on the Field->Display tab - see example below

2. In the PF-STATUS of the main screen, make sure that a Function Code has been added to the key F2. Standard SAP should already have one defined. Check to see what that Function Code is.

3. Finally, in your Screen 9000 PAI user command code - use the code 'GET CURSOR FIELD LV_FIELD VALUE LV_VALUE.' to find out which field was double-clicked on and what is the value in that field. See example below.


step-1.jpg (74.0 kB)
step-2.jpg (59.1 kB)
step-3.jpg (234.6 kB)
Share
10 |10000 characters needed characters left characters exceeded
Uwe Fetzer Jan 29 at 03:30 PM
0

Have entered the function code "TEDE" into the field attribute?


function.png (4.5 kB)
Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Uwe,

I can't because this field is disabled.

Maria

0

But it should be open on the input field (in your screenshot it shows the entry of the label, not the input field itself)

0
Maria Merino Feb 02 at 11:12 AM
0

Hi Alban,

Thanks for your answer, I tried what you told me but SAP doesn't allow me to create a new status in this screen.

María

Share
10 |10000 characters needed characters left characters exceeded