09-25-2008 8:07 AM
Hi,
I am trying to change the address of the Connection object through a Function Module using BDC of the transaction Code ES57.
Issue is that on the screen of ES57 there is a subscreen which internally does the Address Validation and a pop up is displayed when there is any inconsistency in the Address passed to the Screen.
i want to disable this address check function.
Is there any function Module to do this.
Regards
09-25-2008 8:14 AM
hi neha
prince here..just try this...go to spro and master data..connectio objectdefine field selection for address dataadres source
u can see many options for that like field only maitained..and field not diplsyed....try changing that statuses and check..
am not sure if it may work..but just try it..
kr
prince
09-25-2008 8:52 AM
See the function group :: XES55
EXIT_SAPLES55_001 IS-U: Duplicate Check
EXIT_SAPLES55_002 IS-U: User-Defined Checks in Screen Fields
EXIT_SAPLES55_003 IS-U: User-Defined Preassignment of Screen Fields
EXIT_SAPLES55_004 IS-U: User Exit PBO: PBO for Customer Subscreen
EXIT_SAPLES55_005 IS-U: User Exit PAI_BEFORE: Prepares the CALL SUBSCREEN PAI
EXIT_SAPLES55_006 IS-U: User Exit PAI_AFTER: Closes the CALL SUBSCREEN PAI
EXIT_SAPLES55_007 IS-U: User Exit OPEN: Opens Customer Object Processing
EXIT_SAPLES55_008 IS-U: User Exit INPUT: Checks and Copies Entries on Customer Subscreen
EXIT_SAPLES55_009 IS-U: User Exit PREPARE_CLOSE: Prepares Closing of Customer Data
EXIT_SAPLES55_010 IS-U: User Exit ACTION: Actions of Customer Subscreen
EXIT_SAPLES55_011 IS-U: User Exit CLOSE: Ends Customer Data Processing
These are the user exits for connection object .
I guess u can use below FM
EXIT_SAPLES55_002 IS-U: User-Defined Checks in Screen Fields
EXIT_SAPLES55_003 IS-U: User-Defined Preassignment of Screen Fields
Regards,
Shiva Kumar
09-26-2008 10:18 AM
Hi,
instead of a batch input maybe you should use the function modules to change the connection object, maybe something like:
FUNCTION zzzzzzzz_connobj_change.
*"----
""Local interface:
*" IMPORTING
*" REFERENCE(X_HAUS) LIKE EHAU-HAUS DEFAULT '6100000004'
*" REFERENCE(X_WMODE) LIKE REGEN-WMODE DEFAULT '2'
*" EXCEPTIONS
*" SYSTEM_ERROR
*"----
DATA: y_obj TYPE isu01_connobj,
y_auto TYPE isu01_connobj_auto,
y_db_update LIKE regen-db_update.
CALL FUNCTION 'ISU_O_CONNOBJ_OPEN'
EXPORTING
x_haus = x_haus
x_wmode = '1'
x_upd_online = 'X'
x_no_dialog = 'X'
IMPORTING
y_obj = y_obj
y_auto = y_auto
EXCEPTIONS
not_found = 1
existing = 2
foreign_lock = 3
invalid_key = 4
number_error = 5
system_error = 6
not_authorized = 7
not_customized = 8
status = 9
OTHERS = 10.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
break aaf550.
y_obj-addr1_data_new-house_num1 = '111111'.
y_obj-addrobj-auto_addr_data = y_obj-addr1_data_new.
y_obj-addrobj-changed = 'X'.
y_obj-contr-upd_online = 'X'.
y_obj-contr-no_dialog = 'X'.
y_obj-contr-db_update = 'X'.
y_obj-contr-wmode = x_wmode.
y_obj-contr-enq_done = 'X'.
CALL FUNCTION 'ISU_O_CONNOBJ_ACTION'
EXPORTING
x_okcode = 'SAVE' "=co_save aus ieokcode
x_no_message = 'X'
CHANGING
xy_obj = y_obj
EXCEPTIONS
not_allowed = 1
cancelled = 2
open_error = 3
duplicate = 4
OTHERS = 5.
IF sy-subrc <> 0
OR y_obj-ehau-haus IS INITIAL.
RAISE system_error.
ENDIF.
COMMIT WORK.
CALL FUNCTION 'ISU_O_CONNOBJ_CLOSE'
IMPORTING
y_db_update = y_db_update
CHANGING
xy_obj = y_obj.
ENDFUNCTION.
Cheers,
09-29-2008 9:04 AM
In the above code why have u used break aaf550 in the code.
Regards
Edited by: Neha Sharma on Sep 29, 2008 10:04 AM
Edited by: Neha Sharma on Sep 29, 2008 10:43 AM
09-29-2008 10:09 AM
I've made some test with it, that's my user ID. Can you delete that line in the answer? Thanks.
Adriano.
Edited by: Elevation on Sep 29, 2008 11:10 AM
Edited by: Elevation on Sep 29, 2008 11:12 AM
Edited by: Elevation on Sep 29, 2008 11:16 PM