10-11-2007 9:26 AM
I am using TCODE VA02.
I go to GOTO --> Header --> Partner and it displays Partner list. Then I double click on one of those partner which displays Partner data, addr (SAPLV09C Screen 5000) in change mode. I need to make this screen in DISPLAY mode not in Change but I've not found a USEREXIT before the screen is displayed.
What can I do?
SAPLV09C is a function pool with include LV09CF70 where I have found the form FCODE_PSDE_1000; here, I think to insert the code so as to obtain my purpose.
Do you think is the best solution (even if I had to modify a standard object)?
I thank you in advance.
Best regards, Paolo.
10-16-2007 7:13 AM
Hi ,
sorry for late reply ! as i was busy with some other work.
ZSDAUTHO1 is the include and its being called from userexit_field_modification function. as it might not come coz u r searching for partner data.
but MV45AFZZ should work definately , as everyone can write user exit functions here ...
try it out , tell me if u can get any other solution.
thanks & regards,
10-12-2007 6:23 AM
Hi Paolo,
Here is some of the partial solutions , i dont know weather it will be helpful or not,
1. You can u can freeze screen fields using the subroutine <b>userexit_field_modification</b> in the include <b>MV45AFZZ</b> .
2. check the function exit <b>EXIT_SAPMV45A_004</b> in the enchancement <b>V45A0003</b> .
3. Also you can make changes and write a code in to <b> Include ZSDAUTH01</b> in Program <b>SAPLV69A</b>. In that UserExit_Field_Modification Function is there , u can write code like,
loop at screen.
if screen-name = 'NAME_OF_FIELD_HERE_IN_CAPS'.
e.g. screen-input = 0.
modify screen.
endif.
endloop.
<b>[ set attributes of screen such as REQUIRED, INPUT, OUTPUT, INTENSIFIED, INVISIBLE, ACTIVE, DISPLAY_3D, VALUE_HELP to 1(ON) or 0(OFF) ] </b>
Try this solutions , and tell me weather its useful or not !!
Reward with some points if useful ...
Thanks & Regards,
10-12-2007 5:09 PM
Hi bh_hir,
first I would like to thank you for your reply. I've tried the first and the second
solution as you suggested me, but they are not called when I double click on
a partner in order to go to subscreen of Partner data.
Regarding the third solution I have not understood where I found the include ZSDAUTH01; do I have to insert it in the functionpool SAPLV69A?
Please, could you explain me this point in detail?
I thank you again. Regards,
Paolo.
10-16-2007 7:13 AM
Hi ,
sorry for late reply ! as i was busy with some other work.
ZSDAUTHO1 is the include and its being called from userexit_field_modification function. as it might not come coz u r searching for partner data.
but MV45AFZZ should work definately , as everyone can write user exit functions here ...
try it out , tell me if u can get any other solution.
thanks & regards,
10-18-2007 10:15 AM
Hi,
thank you for your reply. I've tried to work with MV45AFZZ but I believe that
there are no call to it between the double click on partner code
(pgm SAPLV09C subscreen 1000) and the address data (SAPLSZA1 subscreen 030).
At present I've applied this solution:
I have modified the include LV09CF70 of functionpool SAPLV09C as follow:
- step 1 (row 26)
. . . . . .
lv_parnr = gt_tc_selected_lines-rec-partner.
*{ INSERT D03K909152 2
In trans.'VA02' (Change Sales Order), for the partner function
'AG'(Sold-to party) and 'RG'(Payer) adress data are not modifiable.
IF sy-tcode EQ 'VA02' AND
( lv_parvw EQ 'AG' or lv_parvw EQ 'RG' ).
lv_display_only = 'X'.
ENDIF.
*} INSERT
call pop-up partner detail information
CALL FUNCTION 'SD_PARTNER_ADDRESS_DIALOG'
EXPORTING
. . . . . .
step 2 (row 66)
. . . . . . .
IF lvs_sel_partner cn ' 0'.
*{ INSERT D03K909152 3
In trans.'VA02' (Change Sales Order), for the partner function
'AG'(Sold-to party) and 'RG'(Payer) adress data are not modifiable.
IF sy-tcode EQ 'VA02' AND
( lv_parvw EQ 'AG' or lv_parvw EQ 'RG' ).
lv_display_only = 'X'.
ENDIF.
*} INSERT
call pop-up
CALL FUNCTION 'SD_PARTNER_ADDRESS_DIALOG'
EXPORTING
. . . .
I wish to thank you again for your interest.
Paolo.